diff options
author | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-01-26 12:43:18 +0000 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@gentoo.org> | 2011-01-26 12:43:18 +0000 |
commit | 8b691e5874f38d8a29ea8cae5397be22cd7f75b1 (patch) | |
tree | 143fe04fa651d9d7ad84fe2d83b25776d23c8d0b /net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild | |
parent | Add license for kyocera-mita-ppds. (diff) | |
download | gentoo-2-8b691e5874f38d8a29ea8cae5397be22cd7f75b1.tar.gz gentoo-2-8b691e5874f38d8a29ea8cae5397be22cd7f75b1.tar.bz2 gentoo-2-8b691e5874f38d8a29ea8cae5397be22cd7f75b1.zip |
Initial import of PPD files for Kyocera Mita printers (from the Italian website).
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild')
-rw-r--r-- | net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild b/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild new file mode 100644 index 000000000000..897ce8a91e29 --- /dev/null +++ b/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-print/kyocera-mita-ppds/kyocera-mita-ppds-8.4.ebuild,v 1.1 2011/01/26 12:43:18 flameeyes Exp $ + +DESCRIPTION="PPD description files for (some) Kyocera Mita Printers" +HOMEPAGE="http://www.kyoceramita.it/" +SRC_URI="Linux_PPDs_KSL${PV/\./_}.zip" + +LICENSE="kyocera-mita-ppds" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE_LINGUAS="en fr de it pt es" + +IUSE="" +for lingua in $IUSE_LINGUAS; do + IUSE="${IUSE} linguas_$lingua" +done + +RDEPEND="net-print/cups" +DEPEND="app-arch/unzip" + +S="${WORKDIR}/PPD's_KSL_${PV}" + +RESTRICT="fetch" + +pkg_nofetch() { + einfo "Please download ${A} from the following URL:" + einfo "http://www.kyoceramita.it/index/Service_Departement__/Richiesta_di_Supporto_Tecnico/download_center.false.driver.FS1020D._.IT.html" + einfo "" + einfo "The FS-1020D driver from the Italian website provides PPDs for a" + einfo "number of printers in six languages." +} + +src_compile() { :; } + +src_install() { + insinto /usr/share/cups/model/KyoceraMita + + local installall=yes + for lingua in $IUSE_LINGUAS; do + if use linguas_$lingua; then + installall=no + break; + fi + done + + inslanguage() { + if [[ ${installall} == yes ]] || use linguas_$1; then + doins $2/*.ppd || die "failed to install $2 ppds" + fi + } + + inslanguage en English + inslanguage fr French + inslanguage de German + inslanguage it Italian + inslanguage pt Portuguese + inslanguage es Spanish + + dohtml ReadMe.htm || die +} |