diff options
author | Sam James <sam@gentoo.org> | 2024-09-26 22:32:40 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2024-09-26 22:34:07 +0100 |
commit | 7eba3af91f1fd96ebb7491890479e7aef6c649ac (patch) | |
tree | f1b3a8c4cd2a220c8f6abb1d4a5f2b6f5a7f42fb /net-print | |
parent | dev-python/pytest-bdd: remove obsolete comment (diff) | |
download | gentoo-7eba3af91f1fd96ebb7491890479e7aef6c649ac.tar.gz gentoo-7eba3af91f1fd96ebb7491890479e7aef6c649ac.tar.bz2 gentoo-7eba3af91f1fd96ebb7491890479e7aef6c649ac.zip |
net-print/libppd: add 2.1_beta1
Note that while this is technically a beta, it was a better
option than backporting patches to 2.0.0 because the relevant
upstream commit didn't apply cleanly (d681747ebf12602cb426725eb8ce2753211e2477)
and there's various mostly bug fixes between 2.0.0 and 2.1_beta1.
The only new feature is adding libcups-3 support which should be harmless.
i.e. The delta betewen 2.0.0 and 2.1_beta1 is almost entirely, modulo
libcups-3 support, stuff we would want to backport anyway (obvious and
trivial bug fixes).
Bug: https://bugs.gentoo.org/940312
Bug: https://bugs.gentoo.org/940311
Bug: https://bugs.gentoo.org/940313
Bug: https://bugs.gentoo.org/940314
Bug: https://bugs.gentoo.org/940315
Bug: https://bugs.gentoo.org/940316
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-print')
-rw-r--r-- | net-print/libppd/Manifest | 1 | ||||
-rw-r--r-- | net-print/libppd/libppd-2.1_beta1.ebuild | 54 |
2 files changed, 55 insertions, 0 deletions
diff --git a/net-print/libppd/Manifest b/net-print/libppd/Manifest index bc6ba554c08c..164c5dbf1ac4 100644 --- a/net-print/libppd/Manifest +++ b/net-print/libppd/Manifest @@ -1 +1,2 @@ DIST libppd-2.0.0.tar.xz 580716 BLAKE2B 8505c5ab5b515104308624a8f78505343b894df08ab8ac2727d7bd82d0d65d256d22ecaf384b212d9a5c45d2a619a6311722a8c5ed954b7a8a9780477aedb458 SHA512 8be9e67552528606fd804ba13b05710938ed7d02316c1c902ee657bc0e5fade663ffacb5b032609a1c1fdc80d976e7e54d2ca2f71db83cb8fdcee6a371e6bad4 +DIST libppd-2.1b1.tar.xz 583692 BLAKE2B f9889ba7758097d2f794b16bdd74758223036daa8e49b191d07789e36ad7e2d69693c9ebb0b89c1c52f23f90fee8b56e1532246da90b1898caf1c557a416c20c SHA512 2b1ab3444f9de4a856f116aae83fd2aaa61adec9862bdd6dcff5fe2672e593b1e69e4da3638994ac4762dcc0e2640c5e3cbf3af247017d3790f01ef10395f54a diff --git a/net-print/libppd/libppd-2.1_beta1.ebuild b/net-print/libppd/libppd-2.1_beta1.ebuild new file mode 100644 index 000000000000..4f6988252d6f --- /dev/null +++ b/net-print/libppd/libppd-2.1_beta1.ebuild @@ -0,0 +1,54 @@ +# Copyright 2023-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Legacy library for PPD files, split out of cups-filters" +HOMEPAGE="https://github.com/OpenPrinting/libppd" +SRC_URI="https://github.com/OpenPrinting/libppd/releases/download/${PV/_beta/b}/${P/_beta/b}.tar.xz" +S="${WORKDIR}"/${P/_beta/b} + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+postscript +poppler" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86" + +# pdftops has various possible implementations, but the default +# really needs to be decent +REQUIRED_USE="|| ( postscript poppler )" + +RDEPEND=" + >=net-print/cups-2 + net-print/libcupsfilters + !<net-print/cups-filters-2.0.0 + sys-libs/zlib + postscript? ( >=app-text/ghostscript-gpl-9.09[cups] ) + poppler? ( >=app-text/poppler-0.32[utils] ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + >=sys-devel/gettext-0.18.3 + virtual/pkgconfig +" + +src_configure() { + local myeconfargs=( + --localstatedir="${EPREFIX}"/var + --with-cups-rundir="${EPREFIX}"/run/cups + # This does build time checks for (preferred) tool interfaces. + $(use_enable postscript ghostscript) + $(use_enable poppler pdftops) + # These fallbacks are just probed for the path. Always enable them. + --with-mutool-path="${EPREFIX}"/usr/bin/mutool + --with-pdftocairo-path="${EPREFIX}"/usr/bin/pdftocairo # from poppler + # unpackaged + --disable-acroread + ) + + econf "${myeconfargs[@]}" +} + +src_install() { + default + find "${ED}" -name '*.la' -delete || die +} |