commit:     bc0de303ee07f044d7adcee1ea670504053e3b0d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sun Feb 23 05:05:06 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Feb 23 05:09:05 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bc0de303

net-print/libppd: add 2.1.1

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

 net-print/libppd/libppd-2.1.1.ebuild | 61 ++++++++++++++++++++++++++++++++++++
 1 file changed, 61 insertions(+)

diff --git a/net-print/libppd/libppd-2.1.1.ebuild 
b/net-print/libppd/libppd-2.1.1.ebuild
new file mode 100644
index 000000000000..d30e44be37fa
--- /dev/null
+++ b/net-print/libppd/libppd-2.1.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit libtool
+
+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"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+IUSE="+postscript +poppler"
+
+# 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_prepare() {
+       default
+       elibtoolize
+}
+
+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
+}

Reply via email to