mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-23 11:17:21 -08:00
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
@@ -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 @@
|
||||
|
||||
@@ -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;
|
||||
Reference in New Issue
Block a user