Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/a2ps/
Date: Sun, 19 Mar 2023 22:07:39
Message-Id: 1679263591.b5dd614a53d66efe949ecf89960144373c13e827.sam@gentoo
1 commit: b5dd614a53d66efe949ecf89960144373c13e827
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Mar 19 22:06:31 2023 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Mar 19 22:06:31 2023 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b5dd614a
7
8 app-text/a2ps: add 4.15.2
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 app-text/a2ps/Manifest | 1 +
13 app-text/a2ps/a2ps-4.15.2.ebuild | 86 ++++++++++++++++++++++++++++++++++++++++
14 2 files changed, 87 insertions(+)
15
16 diff --git a/app-text/a2ps/Manifest b/app-text/a2ps/Manifest
17 index 51b484c868f4..3c28c5f929e6 100644
18 --- a/app-text/a2ps/Manifest
19 +++ b/app-text/a2ps/Manifest
20 @@ -1,3 +1,4 @@
21 DIST a2ps-4.14-ja_nls.patch.gz 27576 BLAKE2B 7300971fb76f6c8d2b0e5ffa519cf6064519a33f24430b9894e43778dff5b78f7cf7e2b9fe1e98fb475f452b39ccc29f88f579bbe1922ac3ef70775a05591b32 SHA512 f02f553dd9d9dbd9dfe41ebfe103493000aa4e9de5634c94e7453f73b66d88fea6b0010095913a4a99c7285990a1df1ebcc39da451b2b34f96b0c191112b125f
22 DIST a2ps-4.14.tar.gz 2552507 BLAKE2B cd15a2b85f54f8bfb92adf9f4cf2c3c29091e528ae8072d0e905c58cc94caf55b76ac3e37891f8a0bc0909a177c5ee434fe5aaab3625a2c14127dabad8b506ed SHA512 fd6ac8ab47d789114c283e8ca508f7f56feabd1a189f4ac772cad9e6be7e3791e210892cfffd04ad1d39efe4b15386b2e61bf4cd56b70ed581c0554f36bfe06f
23 DIST a2ps-4.15.1.tar.gz 3598826 BLAKE2B a205f1c5936329eda0768e1494aba62710ce6eccbdfc695f69d65e4c1cf0b84d6f52dd1c1b32b3aa55a037a37f783cb74cf9d2f3b63cffb07beb0bc15fe7303f SHA512 ed58bd03b9390f44b03ae2458bb94655ef0597f11aa89a2d778b14f03fba4d0e0272795d2f968ae304be46d7b862a2f0ce1dc82328d71a02b0293b23ec8b6fa5
24 +DIST a2ps-4.15.2.tar.gz 3600923 BLAKE2B 37d6dd76578301a629a4171e194cc34836b393ef293193191b2a4e3c5635c154b0d380f921e3862cad64e468108105a669c89e76ec8baa915587f8fff8af8aa9 SHA512 637bda87c7e8d59d923428398d0d67066c700e7e37d91cf3408bfe38f3367afdc651a8248984512fbe71e0d1cb07cb4a348816650748e1fbde52625e8e055a70
25
26 diff --git a/app-text/a2ps/a2ps-4.15.2.ebuild b/app-text/a2ps/a2ps-4.15.2.ebuild
27 new file mode 100644
28 index 000000000000..db63721729f2
29 --- /dev/null
30 +++ b/app-text/a2ps/a2ps-4.15.2.ebuild
31 @@ -0,0 +1,86 @@
32 +# Copyright 1999-2023 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=8
36 +
37 +inherit autotools elisp-common
38 +
39 +DESCRIPTION="Any to PostScript filter"
40 +HOMEPAGE="https://www.gnu.org/software/a2ps/"
41 +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz"
42 +
43 +LICENSE="GPL-3+"
44 +SLOT="0"
45 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
46 +IUSE="cjk emacs latex nls static-libs vanilla"
47 +
48 +# a2ps-lpr-wrapper needs bash
49 +RDEPEND="
50 + app-text/ghostscript-gpl
51 + app-text/libpaper:=
52 + >=app-text/psutils-1.17
53 + app-text/wdiff
54 + app-shells/bash:*
55 + dev-libs/boehm-gc
56 + >=sys-apps/coreutils-6.10-r1
57 + emacs? ( >=app-editors/emacs-23.1:* )
58 + latex? ( virtual/latex-base )
59 + nls? ( virtual/libintl )
60 +"
61 +DEPEND="${RDEPEND}"
62 +BDEPEND="
63 + app-alternatives/yacc
64 + >=dev-util/gperf-2.7.2
65 + nls? ( sys-devel/gettext )
66 +"
67 +
68 +SITEFILE="50${PN}-gentoo.el"
69 +
70 +src_prepare() {
71 + default
72 +
73 + use vanilla || eapply "${FILESDIR}"/${PN}-4.15-stdout.patch
74 +
75 + eautoreconf
76 +}
77 +
78 +src_configure() {
79 + export LANG=C LC_ALL=C
80 +
81 + econf \
82 + --enable-shared \
83 + $(use_enable static-libs static) \
84 + --sysconfdir="${EPREFIX}"/etc/a2ps \
85 + $(use_enable nls) \
86 + COM_netscape=no \
87 + COM_acroread=no \
88 + $(usev !latex COM_latex=no) \
89 + $(usev !emacs EMACS=no)
90 +}
91 +
92 +src_install() {
93 + emake \
94 + DESTDIR="${D}" \
95 + lispdir="${EPREFIX}${SITELISP}"/${PN} \
96 + install
97 +
98 + newdoc "${ED}"/usr/share/a2ps/README README.a2ps
99 + newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd
100 + newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify
101 +
102 + rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README || die
103 +
104 + find "${ED}" -name '*.la' -delete || die
105 +
106 + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE}
107 +
108 + dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO
109 +}
110 +
111 +pkg_postinst() {
112 + use emacs && elisp-site-regen
113 +}
114 +
115 +pkg_postrm() {
116 + use emacs && elisp-site-regen
117 +}