diff options
author | Markus Ullmann <jokey@gentoo.org> | 2006-04-06 19:56:36 +0000 |
---|---|---|
committer | Markus Ullmann <jokey@gentoo.org> | 2006-04-06 19:56:36 +0000 |
commit | 102c11e0a09c7a5d8963f9a2e3f63164128f15ee (patch) | |
tree | 956eb1a9acb3e25a0732f989a33f60af42957f4a /app-text | |
parent | Manual Manifest commit. (diff) | |
download | gentoo-2-102c11e0a09c7a5d8963f9a2e3f63164128f15ee.tar.gz gentoo-2-102c11e0a09c7a5d8963f9a2e3f63164128f15ee.tar.bz2 gentoo-2-102c11e0a09c7a5d8963f9a2e3f63164128f15ee.zip |
Adding languagepack building support
(Portage version: 2.1_pre7-r4)
Diffstat (limited to 'app-text')
-rw-r--r-- | app-text/acroread/ChangeLog | 7 | ||||
-rw-r--r-- | app-text/acroread/Manifest | 16 | ||||
-rw-r--r-- | app-text/acroread/acroread-7.0.5-r3.ebuild | 186 | ||||
-rw-r--r-- | app-text/acroread/files/digest-acroread-7.0.5-r3 | 48 |
4 files changed, 246 insertions, 11 deletions
diff --git a/app-text/acroread/ChangeLog b/app-text/acroread/ChangeLog index 6d4c948098a5..691c80b2272d 100644 --- a/app-text/acroread/ChangeLog +++ b/app-text/acroread/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for app-text/acroread # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.72 2006/03/15 16:25:16 herbs Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.73 2006/04/06 19:56:36 jokey Exp $ + +*acroread-7.0.5-r3 (06 Apr 2006) + + 06 Apr 2006; Markus Ullmann <jokey@gentoo.org> +acroread-7.0.5-r3.ebuild: + Adding languagepack building support 15 Mar 2006; Herbie Hopkins <herbs@gentoo.org> acroread-7.0.5-r2.ebuild: Stable on amd64. diff --git a/app-text/acroread/Manifest b/app-text/acroread/Manifest index 41d2eea4bf52..19cd73975671 100644 --- a/app-text/acroread/Manifest +++ b/app-text/acroread/Manifest @@ -1,6 +1,3 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - MD5 d756e669a8dae05384e175102a1763c3 ChangeLog 13213 RMD160 86d449843f08262747c7c9d78ff6a62055d96707 ChangeLog 13213 SHA256 c12a470072cb82e9f21b5685bebee1171d17995915f4366e7de9883613a55d96 ChangeLog 13213 @@ -16,6 +13,9 @@ SHA256 6b4a61807c9160b25a80027062b7fd56e0a5f4617583801db694bf8d97efb366 acroread MD5 e6fe35390ec645b3bc5cdeed18652208 acroread-7.0.5-r2.ebuild 3928 RMD160 c6d1056fe52a033bbd1f6f68a63f3f0a38a46f56 acroread-7.0.5-r2.ebuild 3928 SHA256 9beb80b86bf84b8e7a9638426ae84eea23d0f4f463a9b92cc29d30cf4683e6bb acroread-7.0.5-r2.ebuild 3928 +MD5 2f1f4887dbfbb4cb52acf45a3f9e03a9 acroread-7.0.5-r3.ebuild 5872 +RMD160 18f40d9fa519952dc569e68f114f237901d92365 acroread-7.0.5-r3.ebuild 5872 +SHA256 e2a2e663ecd3d61efe5f65d2d942be52a8d550859256399314dfa8afd99b3f63 acroread-7.0.5-r3.ebuild 5872 MD5 458977f344d5b207b3e2f4ffcb18ee7e acroread-7.0.5.ebuild 2881 RMD160 e14edc614a4cb1418fa20fdf139fbea9b4d4511d acroread-7.0.5.ebuild 2881 SHA256 7765f682e38b75e2c56953d5c49f39fcdd07b5cdaf9e21f5881778f8788ee12e acroread-7.0.5.ebuild 2881 @@ -40,13 +40,9 @@ SHA256 ef2def44e1ed155f332ebf27a156ed009f3f95f097005cea727339b271cf1316 files/di MD5 a2456b0b7b7ad8bd4072de13d53ffda3 files/digest-acroread-7.0.5-r2 4480 RMD160 ff52db6e53ca44321a4c5d2c493bc7061f7c4296 files/digest-acroread-7.0.5-r2 4480 SHA256 4491fdea8b5adc7334667841e526f6d88dd5107db730e5f910f06cc1cd11623a files/digest-acroread-7.0.5-r2 4480 +MD5 aa2f4981a0dde9c6c52cd2b96330d09f files/digest-acroread-7.0.5-r3 4480 +RMD160 fa4e5b9892cfacfda33bebd7ab49734fe93fba50 files/digest-acroread-7.0.5-r3 4480 +SHA256 66ac279619beba5ad6069acf229adfcbd15ef1c9bff9710363c75577f6930d93 files/digest-acroread-7.0.5-r3 4480 MD5 26b4b081d538c195dc39bcb2ec8e6f3a metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 metadata.xml 161 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76 metadata.xml 161 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v1.4.2.2 (GNU/Linux) - -iD8DBQFEGD/42G5bA0cA/ScRAh2uAKDMDcUPrYpFedFWiydSaZoUNxhgGwCgphpB -9Rr7nXBhlPT2G6o+BwMaa8U= -=9ATe ------END PGP SIGNATURE----- diff --git a/app-text/acroread/acroread-7.0.5-r3.ebuild b/app-text/acroread/acroread-7.0.5-r3.ebuild new file mode 100644 index 000000000000..9209fb92efee --- /dev/null +++ b/app-text/acroread/acroread-7.0.5-r3.ebuild @@ -0,0 +1,186 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-7.0.5-r3.ebuild,v 1.1 2006/04/06 19:56:36 jokey Exp $ + +inherit eutils nsplugins rpm versionator + +DESCRIPTION="Adobe's PDF reader" +HOMEPAGE="http://www.adobe.com/products/acrobat/" +SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/7x/7.0.5" +SRC_FOOT="-$(replace_version_separator 3 "-")-1.i386.rpm" +SRC_URI="nls? ( + linguas_de? ( ${SRC_HEAD}/deu/AdobeReader_deu${SRC_FOOT} ) + linguas_fr? ( ${SRC_HEAD}/fra/AdobeReader_fra${SRC_FOOT} ) + linguas_sv? ( ${SRC_HEAD}/sve/AdobeReader_sve${SRC_FOOT} ) + linguas_es? ( ${SRC_HEAD}/esp/AdobeReader_esp${SRC_FOOT} ) + linguas_pt? ( ${SRC_HEAD}/ptb/AdobeReader_ptb${SRC_FOOT} ) + linguas_no? ( ${SRC_HEAD}/nor/AdobeReader_nor${SRC_FOOT} ) + linguas_it? ( ${SRC_HEAD}/ita/AdobeReader_ita${SRC_FOOT} ) + linguas_fi? ( ${SRC_HEAD}/suo/AdobeReader_suo${SRC_FOOT} ) + linguas_nl? ( ${SRC_HEAD}/nld/AdobeReader_nld${SRC_FOOT} ) + linguas_da? ( ${SRC_HEAD}/dan/AdobeReader_dan${SRC_FOOT} ) + linguas_ja? ( ${SRC_HEAD}/jpn/AdobeReader_jpn${SRC_FOOT} ) + linguas_ko? ( ${SRC_HEAD}/kor/AdobeReader_kor${SRC_FOOT} ) + linguas_zh_CN? ( ${SRC_HEAD}/chs/AdobeReader_chs${SRC_FOOT} ) + linguas_zh_TW? ( ${SRC_HEAD}/cht/AdobeReader_cht${SRC_FOOT} ) + ) + ${SRC_HEAD}/enu/AdobeReader_enu${SRC_FOOT} + x86? ( !cups? ( mirror://gentoo/libcups.so-i386.bz2 ) )" +LICENSE="Adobe" +SLOT="0" +KEYWORDS="-* ~x86" +IUSE="cups ldap nsplugin nls" +RESTRICT="nostrip nomirror" + +DEPEND="app-arch/tar + sys-apps/gawk" +RDEPEND="virtual/libc + x86? ( >=x11-libs/gtk+-2.0 + cups? ( net-print/cups ) + ldap? ( net-nds/openldap ) ) + amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2 + >=app-emulation/emul-linux-x86-gtklibs-2.0 )" +PROVIDE="virtual/pdfviewer" + +INSTALLDIR=/opt/Acrobat7 + +S=${WORKDIR}/usr/local/Adobe/Acrobat7.0 + +pkg_setup() { + # x86 binary package, ABI=x86 + # Danny van Dyk <kugelfang@gentoo.org> 2005/03/25 + has_multilib_profile && ABI="x86" +} + +src_unpack() { + local x prefix ext myfail first_unpack curr_lang pack_dirs + + # create language packs for non-english versions in case we have LINGUAS + if [ "${LINGUAS}" != "" ] ; then + mkdir ${WORKDIR}/langpacks + for x in ${A}; do + myfail="failure unpacking ${x}" + ext=${x##*.} + if [ "$ext" == "rpm" ] ; then + prefix=${x%${SRC_FOOT}} + curr_lang=${prefix##*_} + curr_lang_upper=`echo ${curr_lang} | /bin/gawk -F: '{ print toupper($1); }'` + + if [ ${curr_lang} != "enu" ] ; then + + einfo "Preparing Language Pack for: ${curr_lang}" + + # unpack rpm first + cd ${WORKDIR} + rpm_unpack ${DISTDIR}/${x} || die "${myfail}" + + # apply patches for acrobat reader startscript + cd ${S} + epatch ${FILESDIR}/acroread-scim.patch + epatch ${FILESDIR}/acroread-low-startup-fontissue.patch + cp ${FILESDIR}/acroread-langpack.patch ./ + sed -i s/###LANG###/${curr_lang}/g ./acroread-langpack.patch + epatch ./acroread-langpack.patch + mv bin/acroread acroread + + # tar all language specific dirs + pack_dirs="Reader/HowTo/${curr_lang_upper} + Reader/Legal/${curr_lang_upper} + Reader/Messages/${curr_lang_upper} + Reader/help/${curr_lang_upper} + Reader/intellinux/plug_ins/Annotations/Stamps/${curr_lang_upper} + Reader/intellinux/res/Linguistics + Reader/intellinux/sidecars + Resource/Linguistics + acroread" + tar zcf ${WORKDIR}/langpacks/${P}-${curr_lang}.tar.gz ${pack_dirs} + fi + fi + done + fi + + # wipe out all files + x="AdobeReader_enu${SRC_FOOT}" + cd ${WORKDIR} + rm -rf usr + + # now unpack the english version + if use x86 && ! use cups ; then + unpack ${DISTDIR}/libcups.so-i386.bz2 + fi + rpm_unpack ${DISTDIR}/${x} || die "failure unpacking ${x}" + cd ${S} + epatch ${FILESDIR}/acroread-scim.patch + epatch ${FILESDIR}/acroread-low-startup-fontissue.patch + + cp ${FILESDIR}/acroread-langpack.patch ./ + sed -i s/###LANG###/enu/g ./acroread-langpack.patch + epatch ./acroread-langpack.patch + + if [ "${LINGUAS}" != "" ] ; then + # just tar the startscript for backswitch to english + cd bin + tar zcf ${WORKDIR}/langpacks/${P}-enu.tar.gz acroread + cd .. + fi +} + +src_install() { + local i + + cp Resource/Support/AdobeReader_KDE.desktop AdobeReader.desktop + domenu AdobeReader.desktop + doicon Resource/Icons/AdobeReader.png + + dodir ${INSTALLDIR} + DIRS="Reader Resource" + for i in ${DIRS} + do + if [ -d ${i} ] ; then + chown -R --dereference -L root:0 ${i} + mv ${i} ${D}${INSTALLDIR} + fi + done + + exeinto ${INSTALLDIR} + doexe bin/acroread || die "doexe failed" + # The Browser_Plugin_HowTo.txt is now in a subdirectory, which + # is named according to the language the user is using. + # Ie. for German, it is in a DEU directory. See bug #118015 + #dodoc Browser/${LANG_TAG}/Browser_Plugin_HowTo.txt + + if use nsplugin ; then + exeinto /opt/netscape/plugins + doexe Browser/intellinux/nppdf.so + inst_plugin /opt/netscape/plugins/nppdf.so + fi + + if ! use ldap ; then + rm ${D}${INSTALLDIR}/Reader/intellinux/plug_ins/PPKLite.api + fi + + # libcups is needed for printing support (bug 118417) + if use x86 && ! use cups ; then + mv ${WORKDIR}/libcups.so-i386 ${WORKDIR}/libcups.so.2 + exeinto ${INSTALLDIR}/Reader/intellinux/lib + doexe ${WORKDIR}/libcups.so.2 + dosym libcups.so.2 ${INSTALLDIR}/Reader/intellinux/lib/libcups.so + fi + + dodir /usr/bin + dosym ${INSTALLDIR}/acroread /usr/bin/acroread + + # install langpacks if we have LINGUAS + if [ "${LINGUAS}" != "" ] ; then + mkdir ${D}${INSTALLDIR}/gentoo-langpacks + mv ${WORKDIR}/langpacks/* ${D}${INSTALLDIR}/gentoo-langpacks + fi +} + +pkg_postinst () { + # fix wrong directory permissions (bug #25931) + find ${INSTALLDIR}/. -type d | xargs chmod 755 || die + + einfo "The Acrobat(TM) Security Plugin will be enabled with USE=ldap" + einfo "The Acrobat(TM) Browser Plugin will be enabled with USE=nsplugin" +} diff --git a/app-text/acroread/files/digest-acroread-7.0.5-r3 b/app-text/acroread/files/digest-acroread-7.0.5-r3 new file mode 100644 index 000000000000..7b84f309546f --- /dev/null +++ b/app-text/acroread/files/digest-acroread-7.0.5-r3 @@ -0,0 +1,48 @@ +MD5 e0c21aa21e89aa37d0e794757c6e82ca AdobeReader_chs-7.0.5-1.i386.rpm 55594372 +RMD160 a322414c22eb01f1d832a6b82d03b9e1b8ff3a3e AdobeReader_chs-7.0.5-1.i386.rpm 55594372 +SHA256 cb9cf60bdcc78821d5bfc137d59cba1707c3e1f0b2e9327d52869556a1342c9a AdobeReader_chs-7.0.5-1.i386.rpm 55594372 +MD5 26ac13e1597d3f87329ab6bd591868be AdobeReader_cht-7.0.5-1.i386.rpm 51256274 +RMD160 997527831d7e86ea484144122f53fa2ed9b71a79 AdobeReader_cht-7.0.5-1.i386.rpm 51256274 +SHA256 3f8ba894ebf66b1531e76c0d530010d4464dd380d64c185276f73124c48aa46b AdobeReader_cht-7.0.5-1.i386.rpm 51256274 +MD5 7f06f4f036dd948ec33dd228940c7719 AdobeReader_dan-7.0.5-1.i386.rpm 42937279 +RMD160 f8646cc1aad91564b82815119a59cb2b72640a72 AdobeReader_dan-7.0.5-1.i386.rpm 42937279 +SHA256 c1a1b79813e2fc7f1784c854480579fb683f711a8e40de9499e4e48471d27911 AdobeReader_dan-7.0.5-1.i386.rpm 42937279 +MD5 d3066743e14de81a92e6728e83a3c79f AdobeReader_deu-7.0.5-1.i386.rpm 43768693 +RMD160 258c05317dcc8c26d28c4827b1ae86d2b3c38c16 AdobeReader_deu-7.0.5-1.i386.rpm 43768693 +SHA256 1726d7a3076a8f06509f46a3d039bc49fa94a6d1608aa4205dc61b79f255ca94 AdobeReader_deu-7.0.5-1.i386.rpm 43768693 +MD5 f5a59ea1b7f46c347e6932d045a17f8c AdobeReader_enu-7.0.5-1.i386.rpm 38774864 +RMD160 6d4090c0c5ba6ff6223165a5b2525d2b6ca48b03 AdobeReader_enu-7.0.5-1.i386.rpm 38774864 +SHA256 74a21c13e28479d29145147947dfdefd5d7148968d724a1e5e44bcfc7df81c58 AdobeReader_enu-7.0.5-1.i386.rpm 38774864 +MD5 91577aef6643da37d55e677a590df3f9 AdobeReader_esp-7.0.5-1.i386.rpm 43044817 +RMD160 293d8851e6d7fa6eb767c13cdde7331523fdea1c AdobeReader_esp-7.0.5-1.i386.rpm 43044817 +SHA256 c135eb5b8615bc48fabdee26b0c5474225a4c94d526eee916ed6a38cda865ee4 AdobeReader_esp-7.0.5-1.i386.rpm 43044817 +MD5 4c76496f85c30025d9dddcd3318c4e39 AdobeReader_fra-7.0.5-1.i386.rpm 43326070 +RMD160 a0f5312e68d941e98f2ef127ad1b679d4605fb10 AdobeReader_fra-7.0.5-1.i386.rpm 43326070 +SHA256 399319393f738b5ad6fabf220c0020c53dceb5c7ea50c7adc5717deccf50a545 AdobeReader_fra-7.0.5-1.i386.rpm 43326070 +MD5 b92c42d8e5e41c0c296734c992b04ac4 AdobeReader_ita-7.0.5-1.i386.rpm 42831816 +RMD160 76cbf07fb921cce4a17723aaf3417af7f66cbd6b AdobeReader_ita-7.0.5-1.i386.rpm 42831816 +SHA256 a147395b0ff49de325c5bf153f79a3dc62500b90056dba4c658ebb5566e00ef7 AdobeReader_ita-7.0.5-1.i386.rpm 42831816 +MD5 105e5c27ece8d7d46b84cc1eaf5afdd2 AdobeReader_jpn-7.0.5-1.i386.rpm 52437779 +RMD160 ba6c83a1600d85705a71041835db5a274933609a AdobeReader_jpn-7.0.5-1.i386.rpm 52437779 +SHA256 c4af173554a0a62f0a5a2d3d535671cebecf43bf2c23abdaeaa3a3d9a67ab559 AdobeReader_jpn-7.0.5-1.i386.rpm 52437779 +MD5 d612c2f38e07a68ba46e3383cbd16e23 AdobeReader_kor-7.0.5-1.i386.rpm 47343485 +RMD160 01bb4c6c02e86cbaf89dbb0318c712d230230aca AdobeReader_kor-7.0.5-1.i386.rpm 47343485 +SHA256 7d5a213a421cd78e2bce6d45ff6ec572c83c43564c0344fe44f16fd3c7e52532 AdobeReader_kor-7.0.5-1.i386.rpm 47343485 +MD5 be0ef63ab14ed41ed052eab8b67a9833 AdobeReader_nld-7.0.5-1.i386.rpm 43165238 +RMD160 823e2ef28d47cc463725978e6ba25acfc9e861f4 AdobeReader_nld-7.0.5-1.i386.rpm 43165238 +SHA256 b723c5528bc4781f10ae63c61027c94d5b640cbb5302ae208bfa99d3bb6e7513 AdobeReader_nld-7.0.5-1.i386.rpm 43165238 +MD5 0dd67a697babbfff66c40d37bbd74e43 AdobeReader_nor-7.0.5-1.i386.rpm 43145452 +RMD160 58b02200a48890b2c3a3d42d5e606c5b52e33dd5 AdobeReader_nor-7.0.5-1.i386.rpm 43145452 +SHA256 538d49d138dd66e24312dfa68da39d0b20948f9cc1079bfb7e1502f86e060c4c AdobeReader_nor-7.0.5-1.i386.rpm 43145452 +MD5 076f2d301adcf2cd0cba4ef2fa8d6313 AdobeReader_ptb-7.0.5-1.i386.rpm 42991588 +RMD160 63892362bc478b025fb7a1925e68e132b8883078 AdobeReader_ptb-7.0.5-1.i386.rpm 42991588 +SHA256 a2cf21f8b9f2c84f31bc8f9b602ba41b84d4a77a27753c0f16e09d38e15c7923 AdobeReader_ptb-7.0.5-1.i386.rpm 42991588 +MD5 e6a4a0208d854e514293dee934ca8623 AdobeReader_suo-7.0.5-1.i386.rpm 43071488 +RMD160 807830e0ade479fd5b0ad96768b8c0c89d273523 AdobeReader_suo-7.0.5-1.i386.rpm 43071488 +SHA256 05e257328ce60876474bbbc80d6dfbf872093488ced7fccb85ba8f93aa83f23e AdobeReader_suo-7.0.5-1.i386.rpm 43071488 +MD5 c47748cddae624329213aa3700561e08 AdobeReader_sve-7.0.5-1.i386.rpm 43983930 +RMD160 cdf2364536f325f0766c11ce65b896a6fcbd1422 AdobeReader_sve-7.0.5-1.i386.rpm 43983930 +SHA256 a5e69fd5bf60f0a522c4fece967f6c804388f26b2bb23c2622b506c7019eed0d AdobeReader_sve-7.0.5-1.i386.rpm 43983930 +MD5 262fe0ef8f6de053c410e175aafa25b9 libcups.so-i386.bz2 50564 +RMD160 a8bedc7151eb1d547616124bfdd4844699a33c15 libcups.so-i386.bz2 50564 +SHA256 77eb5cd6aeab630812f7e911db04b6042cd6dee6aa7b9d8cf7756dca14e24b38 libcups.so-i386.bz2 50564 |