diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild |
reinit the tree, so we can have metadata
Diffstat (limited to 'net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild')
-rw-r--r-- | net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild | 77 |
1 files changed, 77 insertions, 0 deletions
diff --git a/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild b/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild new file mode 100644 index 000000000000..0e30bb154713 --- /dev/null +++ b/net-print/pnm2ppa/pnm2ppa-1.13-r1.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit base + +DESCRIPTION="Print driver for Hp Deskjet 710, 712, 720, 722, 820, 1000 series" +HOMEPAGE="http://pnm2ppa.sourceforge.net" +SRC_URI="mirror://sourceforge/pnm2ppa/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +SLOT="0" +LICENSE="GPL-2" +IUSE="syslog" + +# en on first place so others can override it +LANGS="en cs es fr it nl" +for lng in ${LANGS}; do + IUSE+=" linguas_${lng}" +done + +RDEPEND=" + app-text/ghostscript-gpl + net-print/cups + || ( >=net-print/cups-filters-1.0.43-r1[foomatic] net-print/foomatic-filters ) + sys-libs/glibc + syslog? ( virtual/logger ) +" +DEPEND="${RDEPEND}" + +src_configure() { + local lng i withval + + for lng in ${LANGS}; do + if use linguas_${lng}; then + if [[ -n ${i} ]] ; then + ewarn "This package supports only one translation at a time." + ewarn "Overriding previous value: \"${withval}\" with \"${lng}\"" + fi + withval="${lng}" + i=true + fi + done + + econf \ + --with-language="${lng}" \ + --enable-vlink \ + $(use_enable syslog) +} + +src_install() { + default + + dobin utils/Linux/detect_ppa utils/Linux/test_ppa + + insinto /usr/share/pnm2ppa + doins -r lpd pdq + + exeinto /usr/share/pnm2ppa/lpd + doexe lpd/lpdsetup + + exeinto /usr/share/pnm2ppa/sample_scripts + doexe sample_scripts/* + + exeinto /etc/pdq/drivers/ghostscript + doexe pdq/gs-pnm2ppa + exeinto /etc/pdq/interfaces + doexe pdq/dummy + + # install docs + cd docs/en + dodoc CALIBRATION*txt COLOR*txt PPA*txt RELEASE* CREDITS README sgml/*.sgml + + cd "${S}" + dohtml -r . +} |