mrueg       14/12/24 13:04:26

  Modified:             ChangeLog
  Added:                adobeps-1.0.6-r1.ebuild
  Removed:              adobeps-1.0.6.ebuild
  Log:
  EAPI bump. Remove old.
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key )

Revision  Changes    Path
1.3                  net-print/adobeps/ChangeLog

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/adobeps/ChangeLog?rev=1.3&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/adobeps/ChangeLog?rev=1.3&content-type=text/plain
diff : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/adobeps/ChangeLog?r1=1.2&r2=1.3

Index: ChangeLog
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-print/adobeps/ChangeLog,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ChangeLog   21 Jul 2013 09:06:51 -0000      1.2
+++ ChangeLog   24 Dec 2014 13:04:26 -0000      1.3
@@ -1,6 +1,12 @@
 # ChangeLog for net-print/adobeps
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-print/adobeps/ChangeLog,v 1.2 
2013/07/21 09:06:51 pacho Exp $
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-print/adobeps/ChangeLog,v 1.3 
2014/12/24 13:04:26 mrueg Exp $
+
+*adobeps-1.0.6-r1 (24 Dec 2014)
+
+  24 Dec 2014; Manuel RĂ¼ger <[email protected]> +adobeps-1.0.6-r1.ebuild,
+  -adobeps-1.0.6.ebuild:
+  EAPI bump. Remove old.
 
   21 Jul 2013; Pacho Ramos <[email protected]> metadata.xml:
   Cleanup due #92799



1.1                  net-print/adobeps/adobeps-1.0.6-r1.ebuild

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/adobeps/adobeps-1.0.6-r1.ebuild?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-print/adobeps/adobeps-1.0.6-r1.ebuild?rev=1.1&content-type=text/plain

Index: adobeps-1.0.6-r1.ebuild
===================================================================
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-print/adobeps/adobeps-1.0.6-r1.ebuild,v 
1.1 2014/12/24 13:04:26 mrueg Exp $

EAPI=5

inherit eutils

DESCRIPTION="Adobe PostScript drivers for Windows for use with CUPS"
HOMEPAGE="http://www.adobe.com/support/downloads/product.jsp?product=44&platform=Windows";
SRC_URI_BASE="ftp://ftp.adobe.com/pub/adobe/printerdrivers/win/1.x";
SRC_URI=""

LICENSE="AdobePS"
RESTRICT="mirror"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cups"

DEPEND="app-arch/cabextract"
RDEPEND="cups? ( >=net-print/cups-1.2 )"

IUSE_LINGUAS=( en da de es fi fr it ja ko nl no pt_BR se zh_CN )
IUSE_FILES=( winsteng winstDan winstger winstspa winstfin winstfre winstita
        winstjpn winstkor winstdut winstnor winstbrz winstswe Winstchs ) # 
winstcht

IUSE_LANGS=""
IUSE_CLOSE=""
for ((X=0; X < ${#IUSE_LINGUAS[*]}; X++)); do
        IUSE="${IUSE} linguas_${IUSE_LINGUAS[X]}"
        SRC_URI="${SRC_URI} linguas_${IUSE_LINGUAS[X]}? ( 
${SRC_URI_BASE}/${IUSE_FILES[X]}.exe )"
        IUSE_LANGS="${IUSE_LANGS} !linguas_${IUSE_LINGUAS[X]}? ("
        IUSE_CLOSE="${IUSE_CLOSE} )"
done
SRC_URI="${SRC_URI} ${IUSE_LANGS} 
${SRC_URI_BASE}/${IUSE_FILES[0]}.exe${IUSE_CLOSE}"

S="${WORKDIR}"

pkg_setup() {
        local X L=""
        ADOBEPS_LANG=""
        for X in ${LINGUAS}; do
                if [[ " ${IUSE_LINGUAS[*]} " =~ " ${X} " ]]; then
                        [ -z "${ADOBEPS_LANG}" ] && ADOBEPS_LANG="${X}"
                        L="${L} ${X}"
                fi
        done
        if [ -z "${ADOBEPS_LANG}" ]; then
                L="${IUSE_LINGUAS[0]}"; ADOBEPS_LANG="${L}"
        fi
        elog "Selected languages:" ${L}
        use cups && elog "CUPS drivers language: ${ADOBEPS_LANG}"
}

src_unpack() {
        local X L
        for ((X=0; X < ${#IUSE_LINGUAS[*]}; X++)); do
                L="${IUSE_LINGUAS[X]}"
                if use linguas_${L} || [ "${L}" = "${ADOBEPS_LANG}" ]; then
                        cabextract -Lq -d "${S}/${IUSE_LINGUAS[X]}" \
                                "${DISTDIR}/${IUSE_FILES[X]}.exe" || die 
"unpack failed"
                fi
        done
}

src_install() {
        local X
        for X in ${IUSE_LINGUAS[*]}; do
                if use linguas_${X} || [ "${X}" = "${ADOBEPS_LANG}" ]; then
                        # files and filenames taken from cupsaddsmb man-page
                        insinto "/usr/share/${PN}/${X}"
                        # Windows 2000 and higher
                        doins 
${X}/winxp/{ps5ui.dll,pscript.hlp,pscript.ntf,pscript5.dll}
                        # Windows 95, 98, and Me
                        newins ${X}/windows/adfonts.mfm  ADFONTS.MFM
                        newins ${X}/windows/adobeps4.drv ADOBEPS4.DRV
                        newins ${X}/windows/adobeps4.hlp ADOBEPS4.HLP
                        newins ${X}/windows/iconlib.dll  ICONLIB.DLL
                        newins ${X}/windows/psmon.dll    PSMON.DLL
                fi
        done
        # symlink primary language to cups drivers
        if use cups; then
                dodir /usr/share/cups/drivers
                for X in ps5ui.dll pscript.hlp pscript.ntf pscript5.dll \
                        ADFONTS.MFM ADOBEPS4.DRV ADOBEPS4.HLP ICONLIB.DLL 
PSMON.DLL; do
                        dosym "../../${PN}/${ADOBEPS_LANG}/${X}" 
"/usr/share/cups/drivers/${X}"
                done
        fi
}




Reply via email to