diff options
author | Sam James <sam@gentoo.org> | 2023-03-10 08:05:41 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-03-10 08:07:03 +0000 |
commit | ef4cab9962c42b9572017becdb7bbc73cee1c2c4 (patch) | |
tree | d72b140df655f8a74a68dc5a3bc2127531e55545 /app-text | |
parent | dev-python/selenium: Keyword 4.8.2 x86, #900601 (diff) | |
download | gentoo-ef4cab9962c42b9572017becdb7bbc73cee1c2c4.tar.gz gentoo-ef4cab9962c42b9572017becdb7bbc73cee1c2c4.tar.bz2 gentoo-ef4cab9962c42b9572017becdb7bbc73cee1c2c4.zip |
app-text/a2ps: add 4.15
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/a2ps/Manifest | 1 | ||||
-rw-r--r-- | app-text/a2ps/a2ps-4.15.ebuild | 86 | ||||
-rw-r--r-- | app-text/a2ps/files/a2ps-4.14-stdout.patch | 3 | ||||
-rw-r--r-- | app-text/a2ps/files/a2ps-4.15-stdout.patch | 16 |
4 files changed, 106 insertions, 0 deletions
diff --git a/app-text/a2ps/Manifest b/app-text/a2ps/Manifest index a77cfa5fe179..6c5b905a04ee 100644 --- a/app-text/a2ps/Manifest +++ b/app-text/a2ps/Manifest @@ -1,2 +1,3 @@ DIST a2ps-4.14-ja_nls.patch.gz 27576 BLAKE2B 7300971fb76f6c8d2b0e5ffa519cf6064519a33f24430b9894e43778dff5b78f7cf7e2b9fe1e98fb475f452b39ccc29f88f579bbe1922ac3ef70775a05591b32 SHA512 f02f553dd9d9dbd9dfe41ebfe103493000aa4e9de5634c94e7453f73b66d88fea6b0010095913a4a99c7285990a1df1ebcc39da451b2b34f96b0c191112b125f DIST a2ps-4.14.tar.gz 2552507 BLAKE2B cd15a2b85f54f8bfb92adf9f4cf2c3c29091e528ae8072d0e905c58cc94caf55b76ac3e37891f8a0bc0909a177c5ee434fe5aaab3625a2c14127dabad8b506ed SHA512 fd6ac8ab47d789114c283e8ca508f7f56feabd1a189f4ac772cad9e6be7e3791e210892cfffd04ad1d39efe4b15386b2e61bf4cd56b70ed581c0554f36bfe06f +DIST a2ps-4.15.tar.gz 3723299 BLAKE2B b68c3939ad7af5eeb48c85fe6e36e350ce9d0081181bec4374441a1ed9dea6cf716fd3c30a29c06e987d7c26304f2e21ba9b258bb6ca591a6c68180faca8edd8 SHA512 4d88ed4c65c636aa7640e01cf19c259775a810eb91495dc39726554c8ab3b89a105d947c3b357a5b16e5d120b5530587b1838a99829862c9c081b5ae1b354798 diff --git a/app-text/a2ps/a2ps-4.15.ebuild b/app-text/a2ps/a2ps-4.15.ebuild new file mode 100644 index 000000000000..a8e2110dcdd5 --- /dev/null +++ b/app-text/a2ps/a2ps-4.15.ebuild @@ -0,0 +1,86 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools elisp-common + +DESCRIPTION="Any to PostScript filter" +HOMEPAGE="https://www.gnu.org/software/a2ps/" +SRC_URI="mirror://gnu/${PN}/${P}.tar.gz" +S="${WORKDIR}/${PN}-${PV:0:4}" + +LICENSE="GPL-3+" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos" +IUSE="cjk emacs latex nls static-libs vanilla" + +# a2ps-lpr-wrapper needs bash +RDEPEND=" + app-text/ghostscript-gpl + app-text/libpaper:= + >=app-text/psutils-1.17 + app-text/wdiff + app-shells/bash:* + >=sys-apps/coreutils-6.10-r1 + emacs? ( >=app-editors/emacs-23.1:* ) + latex? ( virtual/latex-base ) + nls? ( virtual/libintl ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + app-alternatives/yacc + >=dev-util/gperf-2.7.2 + nls? ( sys-devel/gettext ) +" + +SITEFILE="50${PN}-gentoo.el" + +src_prepare() { + default + + use vanilla || eapply "${FILESDIR}"/${PN}-4.15-stdout.patch + + eautoreconf +} + +src_configure() { + export LANG=C LC_ALL=C + + econf \ + --enable-shared \ + $(use_enable static-libs static) \ + --sysconfdir="${EPREFIX}"/etc/a2ps \ + $(use_enable nls) \ + COM_netscape=no \ + COM_acroread=no \ + $(usev !latex COM_latex=no) \ + $(usev !emacs EMACS=no) +} + +src_install() { + emake \ + DESTDIR="${D}" \ + lispdir="${EPREFIX}${SITELISP}"/${PN} \ + install + + newdoc "${ED}"/usr/share/a2ps/README README.a2ps + newdoc "${ED}"/usr/share/a2ps/ppd/README README.a2ps.ppd + newdoc "${ED}"/usr/share/ogonkify/README README.ogonkify + + rm -f "${ED}"/usr/share/{a2ps,a2ps/ppd,ogonkify}/README || die + + find "${ED}" -name '*.la' -delete || die + + use emacs && elisp-site-file-install "${FILESDIR}"/${SITEFILE} + + dodoc ANNOUNCE AUTHORS ChangeLog FAQ NEWS README* THANKS TODO +} + +pkg_postinst() { + use emacs && elisp-site-regen +} + +pkg_postrm() { + use emacs && elisp-site-regen +} diff --git a/app-text/a2ps/files/a2ps-4.14-stdout.patch b/app-text/a2ps/files/a2ps-4.14-stdout.patch index 6661b0e26f03..5ca7649ad3e7 100644 --- a/app-text/a2ps/files/a2ps-4.14-stdout.patch +++ b/app-text/a2ps/files/a2ps-4.14-stdout.patch @@ -1,3 +1,6 @@ +https://bugs.gentoo.org/47691 +https://bugs.gentoo.org/47764 +https://lists.gnu.org/archive/html/bug-a2ps/2001-05/msg00000.html --- a2ps-4.14/lib/printers.c +++ a2ps-4.14/lib/printers.c @@ -315,8 +315,8 @@ diff --git a/app-text/a2ps/files/a2ps-4.15-stdout.patch b/app-text/a2ps/files/a2ps-4.15-stdout.patch new file mode 100644 index 000000000000..00002ffb9524 --- /dev/null +++ b/app-text/a2ps/files/a2ps-4.15-stdout.patch @@ -0,0 +1,16 @@ +https://bugs.gentoo.org/47691 +https://bugs.gentoo.org/47764 +https://lists.gnu.org/archive/html/bug-a2ps/2001-05/msg00000.html +--- a/liba2ps/printers.c ++++ b/liba2ps/printers.c +@@ -287,8 +287,8 @@ a2ps_printers_new (struct a2ps_common_s * common) + res->ppd = NULL; /* Printer's ppd are not read yet */ + + /* Output */ +- /* Default is to send to default printer */ +- res->flag_output_is_printer = true; ++ /* Default is to send to stdout */ ++ res->flag_output_is_printer = false; + res->flag_output_name = NULL; + res->output_is_file = true; + res->output_name = NULL; |