Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 482748 | Differences between
and this patch

Collapse All | Expand All

(-)a2ps-4.14-r3.ebuild (-19 / +22 lines)
Lines 1-9 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2016 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Id$
3
# $Id$
4
4
5
EAPI=4
5
EAPI=6
6
inherit autotools elisp-common eutils flag-o-matic
6
inherit autotools elisp-common flag-o-matic
7
7
8
DESCRIPTION="Any to PostScript filter"
8
DESCRIPTION="Any to PostScript filter"
9
HOMEPAGE="http://www.inf.enst.fr/~demaille/a2ps/"
9
HOMEPAGE="http://www.inf.enst.fr/~demaille/a2ps/"
Lines 36-76 Link Here
36
S=${WORKDIR}/${PN}-${PV:0:4}
36
S=${WORKDIR}/${PN}-${PV:0:4}
37
37
38
src_prepare() {
38
src_prepare() {
39
	epatch "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff
39
	default
40
	# this will break
40
41
	#epatch "${FILESDIR}/${PN}-4.13c-stdarg.patch"
41
	eapply "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff
42
	use vanilla || epatch "${FILESDIR}"/${PN}-4.13-stdout.diff
42
	use vanilla || eapply -p0 "${FILESDIR}"/${PN}-4.13-stdout.diff
43
	if use linguas_ja; then
43
	if use linguas_ja; then
44
		epatch "${DISTDIR}"/${P}-ja_nls.patch.gz
44
		eapply "${WORKDIR}"/${P}-ja_nls.patch
45
		# bug #335803
45
		# bug #335803
46
		epatch "${FILESDIR}"/${P}-ja-cleanup.patch
46
		eapply -p0 "${FILESDIR}"/${P}-ja-cleanup.patch
47
	else
47
	else
48
		epatch "${FILESDIR}"/${P}-cleanup.patch
48
		eapply "${FILESDIR}"/${P}-cleanup.patch
49
	fi
49
	fi
50
50
51
	# fix fnmatch replacement, bug #134546
51
	# fix fnmatch replacement, bug #134546
52
	epatch "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch
52
	eapply "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch
53
53
54
	# bug #122026
54
	# bug #122026
55
	epatch "${FILESDIR}"/${P}-psset.patch
55
	eapply "${FILESDIR}"/${P}-psset.patch
56
56
57
	# fix emacs printing, bug #114627
57
	# fix emacs printing, bug #114627
58
	epatch "${FILESDIR}"/a2ps-4.13c-emacs.patch
58
	eapply "${FILESDIR}"/a2ps-4.13c-emacs.patch
59
59
60
	# fix chmod error, #167670
60
	# fix chmod error, #167670
61
	epatch "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch
61
	eapply "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch
62
62
63
	# add configure check for mempcpy, bug 216588
63
	# add configure check for mempcpy, bug 216588
64
	epatch "${FILESDIR}"/${P}-check-mempcpy.patch
64
	eapply "${FILESDIR}"/${P}-check-mempcpy.patch
65
65
66
	# fix compilation error due to invalid stpcpy() prototype, bug 216588
66
	# fix compilation error due to invalid stpcpy() prototype, bug 216588
67
	epatch "${FILESDIR}"/${P}-fix-stpcpy-proto.patch
67
	eapply -p0 "${FILESDIR}"/${P}-fix-stpcpy-proto.patch
68
68
69
	# fix compilation error due to obstack.h issue, bug 269638
69
	# fix compilation error due to obstack.h issue, bug 269638
70
	epatch "${FILESDIR}"/${P}-ptrdiff_t.patch
70
	eapply "${FILESDIR}"/${P}-ptrdiff_t.patch
71
72
	# fix compilation error due to texinfo 5.x, bug 482748
73
	eapply "${FILESDIR}"/${P}-texinfo-5.x.patch
71
74
72
	# fix building with sys-devel/automake >= 1.12, bug 420503
75
	# fix building with sys-devel/automake >= 1.12, bug 420503
73
	rm -f {.,ogonkify}/aclocal.m4
76
	rm -f {.,ogonkify}/aclocal.m4 || die
74
	sed -i \
77
	sed -i \
75
		-e '/^AM_C_PROTOTYPES/d' \
78
		-e '/^AM_C_PROTOTYPES/d' \
76
		-e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
79
		-e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
Lines 114-120 Link Here
114
	newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
117
	newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
115
	newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
118
	newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
116
119
117
	rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README
120
	rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README || die
118
121
119
	prune_libtool_files
122
	prune_libtool_files
120
123

Return to bug 482748