/[gentoo-x86]/app-text/a2ps/a2ps-4.13c-r6.ebuild
Gentoo

Contents of /app-text/a2ps/a2ps-4.13c-r6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jan 22 11:20:54 2008 UTC (6 years, 9 months ago) by ulm
Branch: MAIN
Fix Emacs support, bug 202331.
(Portage version: 2.1.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-text/a2ps/a2ps-4.13c-r5.ebuild,v 1.18 2007/05/24 17:52:25 beandog Exp $
4
5 WANT_AUTOCONF="latest"
6 WANT_AUTOMAKE="latest"
7
8 inherit eutils autotools elisp-common
9
10 S=${WORKDIR}/${PN}-${PV:0:4}
11 DESCRIPTION="Any to PostScript filter"
12 HOMEPAGE="http://www.inf.enst.fr/~demaille/a2ps/"
13 SRC_URI="mirror://gentoo/${P}.tar.gz
14 cjk? ( mirror://gentoo/${P}-ja_nls.patch.gz )"
15
16 LICENSE="GPL-2"
17 SLOT="0"
18 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd"
19 IUSE="cjk emacs nls tetex vanilla"
20
21 DEPEND=">=dev-util/gperf-2.7.2
22 || ( >=dev-util/yacc-1.9.1 sys-devel/bison )
23 virtual/ghostscript
24 >=app-text/psutils-1.17
25 emacs? ( virtual/emacs )
26 tetex? ( virtual/tetex )
27 nls? ( sys-devel/gettext )"
28 RDEPEND="virtual/ghostscript
29 || ( sys-apps/mktemp sys-freebsd/freebsd-ubin )
30 >=app-text/psutils-1.17
31 emacs? ( virtual/emacs )
32 tetex? ( virtual/tetex )
33 nls? ( virtual/libintl )"
34
35 SITEFILE=50${PN}-gentoo.el
36
37 src_unpack() {
38 unpack ${P}.tar.gz
39 cd "${S}"
40
41 epatch "${FILESDIR}/${PN}-4.13-select-freebsd.patch"
42 epatch "${FILESDIR}/${P}-locale-gentoo.diff"
43 epatch "${FILESDIR}/${PN}-4.13c-stdarg.patch"
44 use vanilla || epatch "${FILESDIR}/${PN}-4.13-stdout.diff"
45 epatch "${FILESDIR}/${PV}-gcc34.patch"
46 use cjk && epatch "${DISTDIR}/${P}-ja_nls.patch.gz"
47
48 # improve tempfile handling
49 epatch "${FILESDIR}/${P}-fixps.patch"
50 epatch "${FILESDIR}/${P}-psmandup.diff"
51
52 # fix fnmatch replacement, bug #134546
53 epatch "${FILESDIR}/${P}-fnmatch-replacement.patch"
54
55 # fix sandbox violation, bug #79012
56 sed -i -e 's:$acroread -helpall:acroread4 -helpall:' configure configure.in
57
58 # fix emacs printing, bug #114627
59 epatch "${FILESDIR}/a2ps-4.13c-emacs.patch"
60
61 # fix psset with sed-4.1, bug #126403
62 epatch "${FILESDIR}/a2ps-4.13c-psset.patch"
63
64 # fix >=autoconf-2.60, bug 138161
65 epatch "${FILESDIR}/a2ps-4.13-fixcachecheck.patch"
66
67 # fix chmod error, #167670
68 epatch "${FILESDIR}/a2ps-4.13-manpage-chmod.patch"
69
70 AT_M4DIR="m4" eautoreconf || die "eautoreconf failed"
71 }
72
73 src_compile() {
74 addpredict /usr/$(get_libdir)/mozilla-firefox/components/xpti.dat
75 addpredict /usr/$(get_libdir)/mozilla-firefox/components/xpti.dat.tmp
76 addpredict /usr/$(get_libdir)/mozilla-firefox/components/compreg.dat.tmp
77
78 addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat
79 addpredict /usr/$(get_libdir)/mozilla/components/xpti.dat.tmp
80
81 #export YACC=yacc
82 econf --sysconfdir=/etc/a2ps \
83 --includedir=/usr/include \
84 $(useq emacs || echo EMACS=no) \
85 $(use_enable nls) || die "econf failed"
86
87 export LANG=C
88
89 # sometimes emake doesn't work
90 make || die "make failed"
91 }
92
93 src_install() {
94 einstall \
95 sysconfdir=${D}/etc/a2ps \
96 includedir=${D}/usr/include \
97 lispdir="${D}${SITELISP}/${PN}" \
98 || die "einstall failed"
99
100 dosed /etc/a2ps/a2ps.cfg
101
102 # bug #122026
103 sed -i "s:^countdictstack: \0:" "${D}"/usr/bin/psset || die "sed failed"
104
105 if use emacs; then
106 elisp-site-file-install "${FILESDIR}/${SITEFILE}" \
107 || die "elisp-site-file-install failed"
108 fi
109
110 dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO
111 }
112
113 pkg_postinst() {
114 use emacs && elisp-site-regen
115 }
116
117 pkg_postrm() {
118 use emacs && elisp-site-regen
119 }

  ViewVC Help
Powered by ViewVC 1.1.20