public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/a2ps/, app-text/a2ps/files/
Date: Fri, 10 Mar 2023 08:08:02 +0000 (UTC)	[thread overview]
Message-ID: <1678435623.ef4cab9962c42b9572017becdb7bbc73cee1c2c4.sam@gentoo> (raw)

commit:     ef4cab9962c42b9572017becdb7bbc73cee1c2c4
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Mar 10 08:05:41 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 10 08:07:03 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ef4cab99

app-text/a2ps: add 4.15

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-text/a2ps/Manifest                             |  1 +
 app-text/a2ps/a2ps-4.15.ebuild                     | 86 ++++++++++++++++++++++
 app-text/a2ps/files/a2ps-4.14-stdout.patch         |  3 +
 ...ps-4.14-stdout.patch => a2ps-4.15-stdout.patch} |  9 ++-
 4 files changed, 96 insertions(+), 3 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.14-stdout.patch b/app-text/a2ps/files/a2ps-4.15-stdout.patch
similarity index 57%
copy from app-text/a2ps/files/a2ps-4.14-stdout.patch
copy to app-text/a2ps/files/a2ps-4.15-stdout.patch
index 6661b0e26f03..00002ffb9524 100644
--- a/app-text/a2ps/files/a2ps-4.14-stdout.patch
+++ b/app-text/a2ps/files/a2ps-4.15-stdout.patch
@@ -1,6 +1,9 @@
---- a2ps-4.14/lib/printers.c
-+++ a2ps-4.14/lib/printers.c
-@@ -315,8 +315,8 @@
+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 */


             reply	other threads:[~2023-03-10  8:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-10  8:08 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-10-20 15:04 [gentoo-commits] repo/gentoo:master commit in: app-text/a2ps/, app-text/a2ps/files/ Ulrich Müller
2022-10-20  9:02 Ulrich Müller
2016-11-27  7:20 Aaron Bauman
2016-05-17 18:31 Andrew Savchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1678435623.ef4cab9962c42b9572017becdb7bbc73cee1c2c4.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox