From c2b41965da0ee5343d995586733b227ba1def926 Mon Sep 17 00:00:00 2001 From: Timo Gurr Date: Fri, 25 Feb 2011 21:04:41 +0000 Subject: Version bump wrt security bug #354211, remove old. Package-Manager: portage-2.2.0_alpha24/cvs/Linux x86_64 --- app-text/acroread/ChangeLog | 10 +- app-text/acroread/Manifest | 24 +--- app-text/acroread/acroread-9.4.0.ebuild | 241 -------------------------------- app-text/acroread/acroread-9.4.1.ebuild | 4 +- app-text/acroread/acroread-9.4.2.ebuild | 239 +++++++++++++++++++++++++++++++ 5 files changed, 256 insertions(+), 262 deletions(-) delete mode 100644 app-text/acroread/acroread-9.4.0.ebuild create mode 100644 app-text/acroread/acroread-9.4.2.ebuild (limited to 'app-text/acroread') diff --git a/app-text/acroread/ChangeLog b/app-text/acroread/ChangeLog index 1ae16d17b8e3..48f57cce73ba 100644 --- a/app-text/acroread/ChangeLog +++ b/app-text/acroread/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-text/acroread -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.161 2010/12/09 11:53:46 hwoarang Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.162 2011/02/25 21:04:40 tgurr Exp $ + +*acroread-9.4.2 (25 Feb 2011) + + 25 Feb 2011; Timo Gurr -acroread-9.4.0.ebuild, + +acroread-9.4.2.ebuild: + Version bump wrt security bug #354211, remove old. 09 Dec 2010; Markos Chandras acroread-9.4.1.ebuild: Stable on amd64 wrt bug #343091 diff --git a/app-text/acroread/Manifest b/app-text/acroread/Manifest index 80ba8983335b..1c77891ffb55 100644 --- a/app-text/acroread/Manifest +++ b/app-text/acroread/Manifest @@ -1,23 +1,13 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA1 - AUX gentoo_config 356 RMD160 fde2e1f78d39d39611ea91fc94f8c31bc8634425 SHA1 ce38b7160e842d970804216e156d5edbcbfd3e1d SHA256 f7742c4df12cf080fbd763a78cb367b1015b57b58a00896b12931c0416bfc68f -DIST AdbeRdr9.4-1_i486linux_deu.tar.bz2 65880998 RMD160 08d6a173a9601742f254fe853ce3e6ff8291af89 SHA1 9e34909c3041f6b2c28e7bf5a62c362148379e74 SHA256 fbb956e28bcca56694902f6e0e196f14994661db736c9a64291aee86c2bc1af2 -DIST AdbeRdr9.4-1_i486linux_enu.tar.bz2 60172172 RMD160 ce33d6a66b175dce79ecdf820831b915ddacc9fb SHA1 a5ee3f94bb5027e1b3842ff373c953fb2ca5665a SHA256 ae2944c3b974cb12cd01556feba9d0a1dcee02b204aeb337586accb200d77524 -DIST AdbeRdr9.4-1_i486linux_fra.tar.bz2 64514677 RMD160 3a47596793633826044404c44abef16e50f2cc77 SHA1 6a25ed2663763e1df10a7f285f11b5992a779171 SHA256 f090d27062cef605440c8583231914d14d6ba30b9959e1f110b8c75be88156ab -DIST AdbeRdr9.4-1_i486linux_jpn.tar.bz2 68336537 RMD160 95353188d07898d33fb317281293f2249a0e6b98 SHA1 4898034a5bf1fd14265a45e0fc0d83acae7888e2 SHA256 762266e1049b27010177faabda8028874a2675e3242eeff3a52cccd780d35b02 DIST AdbeRdr9.4.1-1_i486linux_deu.tar.bz2 65881866 RMD160 b8c7f0b8a32d86ac78ef13f6ddd6838e1d4058d3 SHA1 bc684d0fc86ca60bc09f777c28322e22b1ada6c3 SHA256 2bceb6c191cde69980d97d63555243c00e2c04cb6111cccd589c397ec7951840 DIST AdbeRdr9.4.1-1_i486linux_enu.tar.bz2 60172257 RMD160 f41bb87ab1dd33dfa9c18722477639fb80685029 SHA1 1a4ff62b3ca5542550d5479eac840d7613794b2b SHA256 6bf9bf427462a7a9ba7e7115cffe659bccb70758428ab32571e6ed78333b0b95 DIST AdbeRdr9.4.1-1_i486linux_fra.tar.bz2 64517992 RMD160 22588a5204a528463367e6ff560a0b851201af95 SHA1 d9462cc01cf83cd969af3562ac7203fd5da82f19 SHA256 cdb7f12634d567548212294bebaf26d3979f9500f786fa1af31feefc57f30ec3 DIST AdbeRdr9.4.1-1_i486linux_jpn.tar.bz2 68340925 RMD160 e45614649c8a9452a7055e8ea35679468350818b SHA1 fcd62e9aac778b395864a8545e6e3ba562f9bac0 SHA256 65d7364dc90c7e17e5fbce33473266b6a9059cbffe6ce0bb349c930716f2d365 -EBUILD acroread-9.4.0.ebuild 7475 RMD160 8c07e943563dac3a581678264f712ec8686897e8 SHA1 c2cc912c73fdd164d6eec8f7235c14a332d0c410 SHA256 f3d2217c2c4385c2ab5b30de23f3e703542416117c590a03d5ee1fd0dd515da0 -EBUILD acroread-9.4.1.ebuild 7396 RMD160 acdf81aed8c83c5adac9869d74b90dd75499bafc SHA1 78e1f5a55bd0d49d74d57d92d447241e5c2ef0ca SHA256 6a096605c291afa85141512aaba6a5262b7302133d9aec1a7844d14ed43d9c95 -MISC ChangeLog 27761 RMD160 2aa2eec3c8a4ca7fe625415e11304f0340f9b71a SHA1 be3a7dd3c0b45c749807ab56520d1ba7dcb81245 SHA256 bb50be786ec9887069c0b49674025786648f93ca32b74cc3498d7596082ec408 +DIST AdbeRdr9.4.2-1_i486linux_deu.tar.bz2 65981114 RMD160 d21c2079400e0fec175cdb1173068648dda79358 SHA1 110df6c6b884fc5e09df7f8f5854ff5cd354155f SHA256 4e19e8794e0830a16e6dab41a91fc5efc1bbca4528d4107843e81ba354993949 +DIST AdbeRdr9.4.2-1_i486linux_enu.tar.bz2 60286782 RMD160 8b1c442044409cdb78eb3c59c393135b058ad81d SHA1 2ed2032c9d055af9611e8a8e0de355c2e9cdd815 SHA256 10ec272ae12a52a06ae88e1e7737423742160f172f789a22ed906a7af2b3a876 +DIST AdbeRdr9.4.2-1_i486linux_fra.tar.bz2 64485671 RMD160 64a32bbc7516e3322fe86fa86728dd2bc237a66c SHA1 b08bd541cdbaf6c8949b16dc8a85522125bf8783 SHA256 b5d017859057ea1ff2ea6c238a33cb7f5f4ab404c06b0a91d9c9ae41baa1e051 +DIST AdbeRdr9.4.2-1_i486linux_jpn.tar.bz2 68341985 RMD160 537f2ee58936f920b91ec53a8e8fefdfed6ecf47 SHA1 6ba11402ae91964c847fa820d95f329301dfd6cb SHA256 228bc45f59c587b9bea0652aa36b0add10a340ba022347ee9205931214d017ba +EBUILD acroread-9.4.1.ebuild 7393 RMD160 4a817fd22203d23bdfde2563f0ea1b90eb9cac74 SHA1 eaced878110431e73afc15e61f0f545d0bf382a4 SHA256 75938abe8f5c9f6dbb9e015de0b57d8eda2f72c8a6e21c31b0ede01f808fa515 +EBUILD acroread-9.4.2.ebuild 7395 RMD160 38c62a9becf1a5e7ac36b29de7dbf75453486730 SHA1 8452d44f382cd0ab86b74fb4a8918bc7e6d5e359 SHA256 4686828e52bf1bee5de7251697ba002ebf8bf6896e2574a9991fc5d565d78e4e +MISC ChangeLog 27937 RMD160 1c4302602c902451bd9e0f513e9535ab24c20994 SHA1 994d05977a1ccaf2a7b44f1436ef4a87ea8ce8af SHA256 ad7c6bbfe5e28daf2a011bb36a8d2759842dab501c0f41f11653deb301e65763 MISC metadata.xml 161 RMD160 1e5b1e42553c8869b93c4a5448e9a2a2ed9fe525 SHA1 209c6a46e4cdd891980115e42ba419e3799f8088 SHA256 7c85e6739a71f5bb23e8de36c88677d772946e61f7285892f7554e37bd2bca76 ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.16 (GNU/Linux) - -iEYEARECAAYFAk0A0NUACgkQ9/cejkQaxBCfWwCeLmj8k7cbLcSvjXwMFSxd7JJv -aT0Ani3zhdjg4gRQ2zcZL0V2WDOZNoBi -=pBjB ------END PGP SIGNATURE----- diff --git a/app-text/acroread/acroread-9.4.0.ebuild b/app-text/acroread/acroread-9.4.0.ebuild deleted file mode 100644 index 6d459763b960..000000000000 --- a/app-text/acroread/acroread-9.4.0.ebuild +++ /dev/null @@ -1,241 +0,0 @@ -# Copyright 1999-2010 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.0.ebuild,v 1.3 2010/10/11 11:25:11 phajdan.jr Exp $ - -inherit eutils gnome2-utils nsplugins versionator - -DESCRIPTION="Adobe's PDF reader" -HOMEPAGE="http://www.adobe.com/products/reader/" -IUSE="cups ldap minimal nsplugin" - -SRC_HEAD="ftp://ftp.adobe.com/pub/adobe/reader/unix/9.x/${PV}" -SRC_FOOT=".tar.bz2" - -# languages not available yet: it:ita es:esp pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan -LINGUA_LIST="de:deu en:enu fr:fra ja:jpn" -# idiots, seriously... -FIX_PV=$(get_version_component_range 1-2) -DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${FIX_PV}-1_i486linux_enu${SRC_FOOT}" -for ll in ${LINGUA_LIST} ; do - iuse_l="linguas_${ll/:*}" - src_l=${ll/*:} - IUSE="${IUSE} ${iuse_l}" - DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )" - SRC_URI="${SRC_URI} - ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${FIX_PV}-1_i486linux_${src_l}${SRC_FOOT} )" -done -SRC_URI="${SRC_URI} - ${DEFAULT_URI}" - -LICENSE="Adobe" -SLOT="0" -KEYWORDS="-* amd64 x86" -RESTRICT="strip mirror" - -# mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so -RDEPEND="media-libs/fontconfig - x86? ( =dev-libs/openssl-0.9.8* ) - cups? ( net-print/cups ) - x86? ( >=x11-libs/gtk+-2.0 - ldap? ( net-nds/openldap ) - !minimal? ( || ( net-libs/xulrunner - www-client/mozilla-firefox - www-client/seamonkey ) ) ) - amd64? ( app-emulation/emul-linux-x86-gtklibs )" - -QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread - opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 - opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so - opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 - opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api" - -INSTALLDIR=/opt - -S="${WORKDIR}/AdobeReader" - -# Actually, ahv segfaults when run standalone so presumably -# it isn't intended for direct use - so the only launcher is -# acroread after all. -LAUNCHERS="Adobe/Reader9/bin/acroread" -# Adobe/HelpViewer/1.0/intellinux/bin/ahv" - -pkg_setup() { - # x86 binary package, ABI=x86 - has_multilib_profile && ABI="x86" -} - -# Determine lingua from filename -acroread_get_ll() { - local f_src_l ll lingua src_l - f_src_l=${1/${SRC_FOOT}} - f_src_l=${f_src_l/*_} - for ll in ${LINGUA_LIST} ; do - lingua=${ll/:*} - src_l=${ll/*:} - if [[ ${src_l} == ${f_src_l} ]] ; then - echo ${lingua} - return - fi - done - die "Failed to match file $1 to a LINGUA; please report." -} - -src_unpack() { - local ll linguas fl launcher - # Unpack all into the same place; overwrite common files. - fl="" - for pkg in ${A} ; do - cd "${WORKDIR}" - unpack ${pkg} - cd "${S}" - tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR." - tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR." - ll=$(acroread_get_ll ${pkg}) - for launcher in ${LAUNCHERS} ; do - mv ${launcher} ${launcher}.${ll} - done - if [[ -z ${fl} ]] ; then - fl=${ll} - linguas="${ll}" - else - linguas="${linguas} ${ll}" - fi - done - if [[ ${linguas} == ${fl} ]] ; then - # Only one lingua selected - skip building the wrappers - for launcher in ${LAUNCHERS} ; do - mv ${launcher}.${fl} ${launcher} || - die "Failed to put ${launcher}.${fl} back to ${launcher}; please report." - done - else - # Build wrappers. Launch the acroread for the environment variable - # LANG (matched with a trailing * so that for example 'de_DE' matches - # 'de', 'en_GB' matches 'en' etc). - # - # HelpViewer is new - We don't know if Adobe are likely to - # internationalize it or not. - for launcher in ${LAUNCHERS} ; do - cat > ${launcher} <<-EOF - #!/bin/bash - # Copyright 1999-2009 Gentoo Foundation - # Distributed under the terms of the GNU General Public License v2 - # - # Automatically generated by ${CATEGORY}/${PF} - - # Exec the acroread script for the language chosen in - # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc) - L=\${LC_ALL} - L=\${L:-\${LC_MESSAGES}} - L=\${L:-\${LANG}} - case \${L} in - EOF - for ll in ${linguas} ; do - echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher} - done - # default to English (in particular for LANG=C) - cat >> ${launcher} <<-EOF - *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";; - esac - EOF - chmod 755 ${launcher} - done - fi - - # remove cruft - rm "${S}"/Adobe/Reader9/bin/UNINSTALL - rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin - rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop - - # replace some configuration sections - for binfile in "${S}"/Adobe/Reader9/bin/* ; do - sed -i -e '/Font-config/,+9d' \ - -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ - "${binfile}" || die "sed configuration settings failed." - done -} - -src_install() { - # Install desktop files - domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed." - - # Install commonly used icon sizes - for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do - insinto /usr/share/icons/hicolor/${res}/apps - doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed." - done - - dodir /opt || die "Creating directory failed." - chown -R --dereference -L root:0 Adobe - cp -dpR Adobe "${D}"opt/ - - doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed." - - if use nsplugin ; then - exeinto /opt/netscape/plugins - doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed." - inst_plugin /opt/netscape/plugins/nppdf.so - fi - - dodir /opt/bin || die "Creating directory failed." - for launcher in ${LAUNCHERS} ; do - dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed." - done - - # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since - # they don't install a configuration file for libgtkembedmoz.so - # detection in /etc/gre.d/ like xulrunner does. - if ! use minimal ; then - if use x86 ; then - for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do - if [[ -f ${lib}/libgtkembedmoz.so ]] ; then - echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config - elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" - elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." - break # don't search any more libraries - fi - done - fi - fi -} - -pkg_preinst() { - gnome2_icon_savelist -} - -pkg_postinst () { - local ll lc - lc=0 - for ll in ${LINGUA_LIST} ; do - use linguas_${ll/:*} && (( lc = ${lc} + 1 )) - done - if [[ ${lc} > 1 ]] ; then - echo - elog "Multiple languages have been installed, selected via a wrapper script." - elog "The language is selected according to the LANG environment variable" - elog "(defaulting to English if LANG is not set, or no matching language" - elog "version is installed). Users may need to remove their preferences in" - elog "~/.adobe to switch languages." - echo - fi - - if use minimal ; then - echo - ewarn "If you want html support and/or view the Adobe Reader help you have" - ewarn "to re-emerge acroread with USE=\"-minimal\"." - echo - fi - - if use nsplugin ; then - echo - elog "If you're running a 64bit browser you may also want to install" - elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" - elog "browser plugin." - echo - fi - - gnome2_icon_cache_update -} - -pkg_postrm() { - gnome2_icon_cache_update -} diff --git a/app-text/acroread/acroread-9.4.1.ebuild b/app-text/acroread/acroread-9.4.1.ebuild index edf49b023621..3a2c1e433e62 100644 --- a/app-text/acroread/acroread-9.4.1.ebuild +++ b/app-text/acroread/acroread-9.4.1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild,v 1.3 2010/12/09 11:53:46 hwoarang Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.1.ebuild,v 1.4 2011/02/25 21:04:41 tgurr Exp $ inherit eutils gnome2-utils nsplugins diff --git a/app-text/acroread/acroread-9.4.2.ebuild b/app-text/acroread/acroread-9.4.2.ebuild new file mode 100644 index 000000000000..2b0dc61a5019 --- /dev/null +++ b/app-text/acroread/acroread-9.4.2.ebuild @@ -0,0 +1,239 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-9.4.2.ebuild,v 1.1 2011/02/25 21:04:41 tgurr Exp $ + +inherit eutils gnome2-utils nsplugins + +DESCRIPTION="Adobe's PDF reader" +HOMEPAGE="http://www.adobe.com/products/reader/" +IUSE="cups ldap minimal nsplugin" + +SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}" +SRC_FOOT=".tar.bz2" + +# languages not available yet: it:ita es:esp pt:ptb sv:sve zh_CN:chs zh_TW:cht fi:suo nb:nor nl:nld ko:kor da:dan +LINGUA_LIST="de:deu en:enu fr:fra ja:jpn" +DEFAULT_URI="${SRC_HEAD}/enu/AdbeRdr${PV}-1_i486linux_enu${SRC_FOOT}" +for ll in ${LINGUA_LIST} ; do + iuse_l="linguas_${ll/:*}" + src_l=${ll/*:} + IUSE="${IUSE} ${iuse_l}" + DEFAULT_URI="!${iuse_l}? ( ${DEFAULT_URI} )" + SRC_URI="${SRC_URI} + ${iuse_l}? ( ${SRC_HEAD}/${src_l}/AdbeRdr${PV}-1_i486linux_${src_l}${SRC_FOOT} )" +done +SRC_URI="${SRC_URI} + ${DEFAULT_URI}" + +LICENSE="Adobe" +SLOT="0" +KEYWORDS="-* ~amd64 ~x86" +RESTRICT="strip mirror" + +# mozilla-firefox-bin won't work because it doesn't have gtkembedmoz.so +RDEPEND="media-libs/fontconfig + x86? ( =dev-libs/openssl-0.9.8* ) + cups? ( net-print/cups ) + x86? ( >=x11-libs/gtk+-2.0 + ldap? ( net-nds/openldap ) + !minimal? ( || ( net-libs/xulrunner + www-client/mozilla-firefox + www-client/seamonkey ) ) ) + amd64? ( app-emulation/emul-linux-x86-gtklibs )" + +QA_EXECSTACK="opt/Adobe/Reader9/Reader/intellinux/bin/acroread + opt/Adobe/Reader9/Reader/intellinux/lib/libauthplay.so.0.0.0 + opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so + opt/Adobe/Reader9/Reader/intellinux/lib/libcrypto.so.0.9.8 + opt/Adobe/Reader9/Reader/intellinux/plug_ins/PPKLite.api" + +INSTALLDIR=/opt + +S="${WORKDIR}/AdobeReader" + +# Actually, ahv segfaults when run standalone so presumably +# it isn't intended for direct use - so the only launcher is +# acroread after all. +LAUNCHERS="Adobe/Reader9/bin/acroread" +# Adobe/HelpViewer/1.0/intellinux/bin/ahv" + +pkg_setup() { + # x86 binary package, ABI=x86 + has_multilib_profile && ABI="x86" +} + +# Determine lingua from filename +acroread_get_ll() { + local f_src_l ll lingua src_l + f_src_l=${1/${SRC_FOOT}} + f_src_l=${f_src_l/*_} + for ll in ${LINGUA_LIST} ; do + lingua=${ll/:*} + src_l=${ll/*:} + if [[ ${src_l} == ${f_src_l} ]] ; then + echo ${lingua} + return + fi + done + die "Failed to match file $1 to a LINGUA; please report." +} + +src_unpack() { + local ll linguas fl launcher + # Unpack all into the same place; overwrite common files. + fl="" + for pkg in ${A} ; do + cd "${WORKDIR}" + unpack ${pkg} + cd "${S}" + tar xf ILINXR.TAR || die "Failed to unpack ILINXR.TAR." + tar xf COMMON.TAR || die "Failed to unpack COMMON.TAR." + ll=$(acroread_get_ll ${pkg}) + for launcher in ${LAUNCHERS} ; do + mv ${launcher} ${launcher}.${ll} + done + if [[ -z ${fl} ]] ; then + fl=${ll} + linguas="${ll}" + else + linguas="${linguas} ${ll}" + fi + done + if [[ ${linguas} == ${fl} ]] ; then + # Only one lingua selected - skip building the wrappers + for launcher in ${LAUNCHERS} ; do + mv ${launcher}.${fl} ${launcher} || + die "Failed to put ${launcher}.${fl} back to ${launcher}; please report." + done + else + # Build wrappers. Launch the acroread for the environment variable + # LANG (matched with a trailing * so that for example 'de_DE' matches + # 'de', 'en_GB' matches 'en' etc). + # + # HelpViewer is new - We don't know if Adobe are likely to + # internationalize it or not. + for launcher in ${LAUNCHERS} ; do + cat > ${launcher} <<-EOF + #!/bin/bash + # Copyright 1999-2009 Gentoo Foundation + # Distributed under the terms of the GNU General Public License v2 + # + # Automatically generated by ${CATEGORY}/${PF} + + # Exec the acroread script for the language chosen in + # LC_ALL/LC_MESSAGES/LANG (first found takes precedence, as in glibc) + L=\${LC_ALL} + L=\${L:-\${LC_MESSAGES}} + L=\${L:-\${LANG}} + case \${L} in + EOF + for ll in ${linguas} ; do + echo "${ll}*) exec ${INSTALLDIR}/${launcher}.${ll} \"\$@\";;" >> ${launcher} + done + # default to English (in particular for LANG=C) + cat >> ${launcher} <<-EOF + *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";; + esac + EOF + chmod 755 ${launcher} + done + fi + + # remove cruft + rm "${S}"/Adobe/Reader9/bin/UNINSTALL + rm "${S}"/Adobe/Reader9/Browser/install_browser_plugin + rm "${S}"/Adobe/Reader9/Resource/Support/vnd.*.desktop + + # replace some configuration sections + for binfile in "${S}"/Adobe/Reader9/bin/* ; do + sed -i -e '/Font-config/,+9d' \ + -e "/acrogre.conf/r ${FILESDIR}/gentoo_config" -e //N \ + "${binfile}" || die "sed configuration settings failed." + done +} + +src_install() { + # Install desktop files + domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop || die "Installing desktop files failed." + + # Install commonly used icon sizes + for res in 16x16 22x22 32x32 48x48 64x64 128x128 ; do + insinto /usr/share/icons/hicolor/${res}/apps + doins Adobe/Reader9/Resource/Icons/${res}/* || die "Installing icons failed." + done + + dodir /opt || die "Creating directory failed." + chown -R --dereference -L root:0 Adobe + cp -dpR Adobe "${D}"opt/ + + doman Adobe/Reader9/Resource/Shell/acroread.1.gz || die "Installing manpage failed." + + if use nsplugin ; then + exeinto /opt/netscape/plugins + doexe Adobe/Reader9/Browser/intellinux/nppdf.so || die "Installing the browser plugin failed." + inst_plugin /opt/netscape/plugins/nppdf.so + fi + + dodir /opt/bin || die "Creating directory failed." + for launcher in ${LAUNCHERS} ; do + dosym /opt/${launcher} /opt/bin/${launcher/*bin\/} || die "Installing launcher symlinks failed." + done + + # We need to set a MOZILLA_COMP_PATH for seamonkey and firefox since + # they don't install a configuration file for libgtkembedmoz.so + # detection in /etc/gre.d/ like xulrunner does. + if ! use minimal ; then + if use x86 ; then + for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do + if [[ -f ${lib}/libgtkembedmoz.so ]] ; then + echo "MOZILLA_COMP_PATH=${lib}" >> "${D}"${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config + elog "Adobe Reader depends on libgtkembedmoz.so, which I've found on" + elog "your system in ${lib}, and configured in ${INSTALLDIR}/Adobe/Reader9/Reader/GlobalPrefs/mozilla_config." + break # don't search any more libraries + fi + done + fi + fi +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst () { + local ll lc + lc=0 + for ll in ${LINGUA_LIST} ; do + use linguas_${ll/:*} && (( lc = ${lc} + 1 )) + done + if [[ ${lc} > 1 ]] ; then + echo + elog "Multiple languages have been installed, selected via a wrapper script." + elog "The language is selected according to the LANG environment variable" + elog "(defaulting to English if LANG is not set, or no matching language" + elog "version is installed). Users may need to remove their preferences in" + elog "~/.adobe to switch languages." + echo + fi + + if use minimal ; then + echo + ewarn "If you want html support and/or view the Adobe Reader help you have" + ewarn "to re-emerge acroread with USE=\"-minimal\"." + echo + fi + + if use nsplugin ; then + echo + elog "If you're running a 64bit browser you may also want to install" + elog "\"www-plugins/nspluginwrapper\" to be able to use the Adobe Reader" + elog "browser plugin." + echo + fi + + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} -- cgit v1.2.3-65-gdbad