Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/a2ps/
Date: Tue, 24 Jan 2017 03:08:45
Message-Id: 1485227191.1802efb0b659c231f5e3c7c9e275603e6ae3c585.tamiko@gentoo
1 commit: 1802efb0b659c231f5e3c7c9e275603e6ae3c585
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jan 24 03:06:31 2017 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Tue Jan 24 03:06:31 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1802efb0
7
8 app-text/a2ps: drop vulnerable, bug #507024
9
10 Package-Manager: Portage-2.3.0, Repoman-2.3.1
11
12 app-text/a2ps/a2ps-4.14-r3.ebuild | 134 -------------------------------------
13 app-text/a2ps/a2ps-4.14-r4.ebuild | 137 --------------------------------------
14 2 files changed, 271 deletions(-)
15
16 diff --git a/app-text/a2ps/a2ps-4.14-r3.ebuild b/app-text/a2ps/a2ps-4.14-r3.ebuild
17 deleted file mode 100644
18 index a0a1ead..00000000
19 --- a/app-text/a2ps/a2ps-4.14-r3.ebuild
20 +++ /dev/null
21 @@ -1,134 +0,0 @@
22 -# Copyright 1999-2016 Gentoo Foundation
23 -# Distributed under the terms of the GNU General Public License v2
24 -# $Id$
25 -
26 -EAPI=4
27 -inherit autotools elisp-common eutils flag-o-matic
28 -
29 -DESCRIPTION="Any to PostScript filter"
30 -HOMEPAGE="https://www.gnu.org/software/a2ps/"
31 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
32 - linguas_ja? ( mirror://gentoo/${P}-ja_nls.patch.gz )"
33 -
34 -LICENSE="GPL-3"
35 -SLOT="0"
36 -KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
37 -IUSE="emacs latex linguas_ja nls static-libs userland_BSD userland_GNU vanilla"
38 -
39 -RESTRICT=test
40 -
41 -RDEPEND="app-text/ghostscript-gpl
42 - app-text/libpaper
43 - >=app-text/psutils-1.17
44 - app-text/wdiff
45 - emacs? ( virtual/emacs )
46 - latex? ( virtual/latex-base )
47 - nls? ( virtual/libintl )
48 - userland_GNU? ( >=sys-apps/coreutils-6.10-r1 )
49 - userland_BSD? ( sys-freebsd/freebsd-ubin )"
50 -DEPEND="${RDEPEND}
51 - >=dev-util/gperf-2.7.2
52 - virtual/yacc
53 - nls? ( sys-devel/gettext )"
54 -
55 -SITEFILE=50${PN}-gentoo.el
56 -
57 -S=${WORKDIR}/${PN}-${PV:0:4}
58 -
59 -src_prepare() {
60 - epatch "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff
61 - # this will break
62 - #epatch "${FILESDIR}/${PN}-4.13c-stdarg.patch"
63 - use vanilla || epatch "${FILESDIR}"/${PN}-4.13-stdout.diff
64 - if use linguas_ja; then
65 - epatch "${DISTDIR}"/${P}-ja_nls.patch.gz
66 - # bug #335803
67 - epatch "${FILESDIR}"/${P}-ja-cleanup.patch
68 - else
69 - epatch "${FILESDIR}"/${P}-cleanup.patch
70 - fi
71 -
72 - # fix fnmatch replacement, bug #134546
73 - epatch "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch
74 -
75 - # bug #122026
76 - epatch "${FILESDIR}"/${P}-psset.patch
77 -
78 - # fix emacs printing, bug #114627
79 - epatch "${FILESDIR}"/a2ps-4.13c-emacs.patch
80 -
81 - # fix chmod error, #167670
82 - epatch "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch
83 -
84 - # add configure check for mempcpy, bug 216588
85 - epatch "${FILESDIR}"/${P}-check-mempcpy.patch
86 -
87 - # fix compilation error due to invalid stpcpy() prototype, bug 216588
88 - epatch "${FILESDIR}"/${P}-fix-stpcpy-proto.patch
89 -
90 - # fix compilation error due to obstack.h issue, bug 269638
91 - epatch "${FILESDIR}"/${P}-ptrdiff_t.patch
92 -
93 - # fix building with sys-devel/automake >= 1.12, bug 420503
94 - rm -f {.,ogonkify}/aclocal.m4
95 - sed -i \
96 - -e '/^AM_C_PROTOTYPES/d' \
97 - -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
98 - -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
99 - -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
100 - configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4 || die
101 -
102 - eautoreconf
103 -}
104 -
105 -src_configure() {
106 - append-cppflags -DPROTOTYPES #420503
107 -
108 - local myconf="COM_netscape=no COM_acroread=no"
109 -
110 - use emacs || myconf="${myconf} EMACS=no"
111 - use latex || myconf="${myconf} COM_latex=no"
112 -
113 - export LANG=C LC_ALL=C
114 -
115 - econf \
116 - --enable-shared \
117 - $(use_enable static-libs static) \
118 - --sysconfdir="${EPREFIX}"/etc/a2ps \
119 - $(use_enable nls) \
120 - ${myconf}
121 -}
122 -
123 -src_compile() {
124 - # parallel make b0rked
125 - emake -j1
126 -}
127 -
128 -src_install() {
129 - emake \
130 - DESTDIR="${D}" \
131 - lispdir="${EPREFIX}${SITELISP}"/${PN} \
132 - install
133 -
134 - newdoc "${ED}"/usr/share/a2ps/README README.a2ps
135 - newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
136 - newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
137 -
138 - rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README
139 -
140 - prune_libtool_files
141 -
142 - if use emacs; then
143 - elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
144 - fi
145 -
146 - dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO
147 -}
148 -
149 -pkg_postinst() {
150 - use emacs && elisp-site-regen
151 -}
152 -
153 -pkg_postrm() {
154 - use emacs && elisp-site-regen
155 -}
156
157 diff --git a/app-text/a2ps/a2ps-4.14-r4.ebuild b/app-text/a2ps/a2ps-4.14-r4.ebuild
158 deleted file mode 100644
159 index eed2007..00000000
160 --- a/app-text/a2ps/a2ps-4.14-r4.ebuild
161 +++ /dev/null
162 @@ -1,137 +0,0 @@
163 -# Copyright 1999-2016 Gentoo Foundation
164 -# Distributed under the terms of the GNU General Public License v2
165 -# $Id$
166 -
167 -EAPI=6
168 -inherit autotools elisp-common flag-o-matic
169 -
170 -DESCRIPTION="Any to PostScript filter"
171 -HOMEPAGE="https://www.gnu.org/software/a2ps/"
172 -SRC_URI="mirror://gnu/${PN}/${P}.tar.gz
173 - linguas_ja? ( mirror://gentoo/${P}-ja_nls.patch.gz )"
174 -
175 -LICENSE="GPL-3"
176 -SLOT="0"
177 -KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
178 -IUSE="emacs latex linguas_ja nls static-libs userland_BSD userland_GNU vanilla"
179 -
180 -RESTRICT=test
181 -
182 -RDEPEND="app-text/ghostscript-gpl
183 - app-text/libpaper
184 - >=app-text/psutils-1.17
185 - app-text/wdiff
186 - emacs? ( virtual/emacs )
187 - latex? ( virtual/latex-base )
188 - nls? ( virtual/libintl )
189 - userland_GNU? ( >=sys-apps/coreutils-6.10-r1 )
190 - userland_BSD? ( sys-freebsd/freebsd-ubin )"
191 -DEPEND="${RDEPEND}
192 - >=dev-util/gperf-2.7.2
193 - virtual/yacc
194 - nls? ( sys-devel/gettext )"
195 -
196 -SITEFILE=50${PN}-gentoo.el
197 -
198 -S=${WORKDIR}/${PN}-${PV:0:4}
199 -
200 -src_prepare() {
201 - default
202 -
203 - eapply "${FILESDIR}"/${PN}-4.13c-locale-gentoo.diff
204 - use vanilla || eapply -p0 "${FILESDIR}"/${PN}-4.13-stdout.diff
205 - if use linguas_ja; then
206 - eapply "${WORKDIR}"/${P}-ja_nls.patch
207 - # bug #335803
208 - eapply -p0 "${FILESDIR}"/${P}-ja-cleanup.patch
209 - else
210 - eapply "${FILESDIR}"/${P}-cleanup.patch
211 - fi
212 -
213 - # fix fnmatch replacement, bug #134546
214 - eapply "${FILESDIR}"/${PN}-4.13c-fnmatch-replacement.patch
215 -
216 - # bug #122026
217 - eapply "${FILESDIR}"/${P}-psset.patch
218 -
219 - # fix emacs printing, bug #114627
220 - eapply "${FILESDIR}"/a2ps-4.13c-emacs.patch
221 -
222 - # fix chmod error, #167670
223 - eapply "${FILESDIR}"/a2ps-4.13-manpage-chmod.patch
224 -
225 - # add configure check for mempcpy, bug 216588
226 - eapply "${FILESDIR}"/${P}-check-mempcpy.patch
227 -
228 - # fix compilation error due to invalid stpcpy() prototype, bug 216588
229 - eapply -p0 "${FILESDIR}"/${P}-fix-stpcpy-proto.patch
230 -
231 - # fix compilation error due to obstack.h issue, bug 269638
232 - eapply "${FILESDIR}"/${P}-ptrdiff_t.patch
233 -
234 - # fix compilation error due to texinfo 5.x, bug 482748
235 - eapply "${FILESDIR}"/${P}-texinfo-5.x.patch
236 -
237 - # fix building with sys-devel/automake >= 1.12, bug 420503
238 - rm -f {.,ogonkify}/aclocal.m4 || die
239 - sed -i \
240 - -e '/^AM_C_PROTOTYPES/d' \
241 - -e '/^AUTOMAKE_OPTIONS.*ansi2knr/d' \
242 - -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
243 - -e 's:AM_PROG_CC_STDC:AC_PROG_CC:' \
244 - configure.in {contrib/sample,lib,src}/Makefile.am m4/protos.m4 || die
245 -
246 - eautoreconf
247 -}
248 -
249 -src_configure() {
250 - append-cppflags -DPROTOTYPES #420503
251 -
252 - local myconf="COM_netscape=no COM_acroread=no"
253 -
254 - use emacs || myconf="${myconf} EMACS=no"
255 - use latex || myconf="${myconf} COM_latex=no"
256 -
257 - export LANG=C LC_ALL=C
258 -
259 - econf \
260 - --enable-shared \
261 - $(use_enable static-libs static) \
262 - --sysconfdir="${EPREFIX}"/etc/a2ps \
263 - $(use_enable nls) \
264 - ${myconf}
265 -}
266 -
267 -src_compile() {
268 - # parallel make b0rked
269 - emake -j1
270 -}
271 -
272 -src_install() {
273 - emake \
274 - DESTDIR="${D}" \
275 - lispdir="${EPREFIX}${SITELISP}"/${PN} \
276 - install
277 -
278 - newdoc "${ED}"/usr/share/a2ps/README README.a2ps
279 - newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
280 - newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
281 -
282 - rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README || die
283 -
284 - prune_libtool_files
285 -
286 - if use emacs; then
287 - elisp-site-file-install "${FILESDIR}"/${SITEFILE} || die
288 - fi
289 -
290 - dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO
291 -}
292 -
293 -pkg_postinst() {
294 - use emacs && elisp-site-regen
295 -}
296 -
297 -pkg_postrm() {
298 - use emacs && elisp-site-regen
299 -}