diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-12-29 13:42:04 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-12-29 13:42:04 +0000 |
commit | 5cb89cb9de4cdd1a06010c3d45748c33afab2408 (patch) | |
tree | 26bd27474f2e409c4d36a9864299f2e4cc4f87f2 /net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild | |
parent | 8d12644534a171c85dd84343b976054ad30faa6d (diff) |
gentoo auto-resync : 29:12:2023 - 13:42:04
Diffstat (limited to 'net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild')
-rw-r--r-- | net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild b/net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild new file mode 100644 index 000000000000..ed52b55cd752 --- /dev/null +++ b/net-print/cups-pdf/cups-pdf-3.0.1-r3.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +DESCRIPTION="Provides a virtual printer for CUPS to produce PDF files" +HOMEPAGE="https://www.cups-pdf.de/" +SRC_URI="https://www.cups-pdf.de/src/${PN}_${PV/_}.tar.gz" +S=${WORKDIR}/${PN}-${PV/_} + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ppc ~ppc64 x86" +IUSE="+ppds" + +DEPEND="net-print/cups" +RDEPEND="${DEPEND} + >=app-text/ghostscript-gpl-9.54" + +PATCHES=( "${FILESDIR}"/${PN}-3.0.1-ghostscript-gpl-9.54-compat.patch ) + +src_configure() { + tc-export CC +} + +src_compile() { + LDLIBS="-lcups" emake -C src ${PN} +} + +src_install() { + exeinto /usr/libexec/cups/backend + exeopts -m0700 + doexe src/cups-pdf + + insinto /etc/cups + doins extra/cups-pdf.conf + + insinto /usr/share/cups/model + if use ppds; then + doins extra/CUPS-PDF_opt.ppd + else + doins extra/CUPS-PDF_noopt.ppd + fi + + einstalldocs +} |