diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild')
-rw-r--r-- | net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild b/net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild new file mode 100644 index 000000000000..a27e4fb17d9e --- /dev/null +++ b/net-print/cups-pdf/cups-pdf-3.0.1-r2.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="7" + +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 ~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_compile() { + pushd src &>/dev/null || die + $(tc-getCC) ${LDFLAGS} ${CFLAGS} ${PN}.c -o ${PN} -lcups || die + popd &>/dev/null || die +} + +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 + + dodoc ChangeLog README +} |