You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-print/libppd/libppd-2.0.0.ebuild

53 lines
1.4 KiB

# 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}/${P}.tar.xz"
LICENSE="Apache-2.0"
SLOT="0"
IUSE="+postscript +poppler"
KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ~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
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
}