summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimo Gurr <tgurr@gentoo.org>2008-01-30 20:31:14 +0000
committerTimo Gurr <tgurr@gentoo.org>2008-01-30 20:31:14 +0000
commit9c8b9b7e1c363e48d62300d63b0465cf2d03f6d9 (patch)
treef62559be40c255f5b68b4497a6b9624ce82fdcfb /app-text
parentalpha/ia64/sparc stable wrt #207682 (diff)
downloadgentoo-2-9c8b9b7e1c363e48d62300d63b0465cf2d03f6d9.tar.gz
gentoo-2-9c8b9b7e1c363e48d62300d63b0465cf2d03f6d9.tar.bz2
gentoo-2-9c8b9b7e1c363e48d62300d63b0465cf2d03f6d9.zip
Add acroread-8.1.1-r2.ebuild, providing working amd64 dependencies. Also fixing bug #206554.
(Portage version: 2.1.4)
Diffstat (limited to 'app-text')
-rw-r--r--app-text/acroread/ChangeLog9
-rw-r--r--app-text/acroread/acroread-8.1.1-r2.ebuild261
-rw-r--r--app-text/acroread/files/digest-acroread-8.1.1-r248
-rw-r--r--app-text/acroread/metadata.xml5
4 files changed, 317 insertions, 6 deletions
diff --git a/app-text/acroread/ChangeLog b/app-text/acroread/ChangeLog
index 2426a19e6861..eb42b02dfa6f 100644
--- a/app-text/acroread/ChangeLog
+++ b/app-text/acroread/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for app-text/acroread
# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.104 2008/01/18 03:03:19 tgurr Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/ChangeLog,v 1.105 2008/01/30 20:31:13 tgurr Exp $
+
+*acroread-8.1.1-r2 (30 Jan 2008)
+
+ 30 Jan 2008; Timo Gurr <tgurr@gentoo.org> metadata.xml,
+ +acroread-8.1.1-r2.ebuild:
+ Add acroread-8.1.1-r2.ebuild, providing working amd64 dependencies. Also
+ fixing bug #206554.
*acroread-8.1.1-r1 (18 Jan 2008)
diff --git a/app-text/acroread/acroread-8.1.1-r2.ebuild b/app-text/acroread/acroread-8.1.1-r2.ebuild
new file mode 100644
index 000000000000..5bcd4699ba35
--- /dev/null
+++ b/app-text/acroread/acroread-8.1.1-r2.ebuild
@@ -0,0 +1,261 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-8.1.1-r2.ebuild,v 1.1 2008/01/30 20:31:13 tgurr Exp $
+
+inherit eutils nsplugins
+
+DESCRIPTION="Adobe's PDF reader"
+HOMEPAGE="http://www.adobe.com/products/acrobat/"
+IUSE="cups ldap nsplugin"
+
+SRC_HEAD="http://ardownload.adobe.com/pub/adobe/reader/unix/8.x/${PV}"
+SRC_FOOT="-${PV}-1.i486.tar.bz2"
+
+LINGUA_LIST="da:dan de:deu en:enu es:esp fi:suo fr:fra it:ita ja:jpn ko:kor nb:nor nl:nld pt:ptb sv:sve zh_CN:chs zh_TW:cht"
+DEFAULT_URI="${SRC_HEAD}/enu/AdobeReader_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}/AdobeReader_${src_l}${SRC_FOOT} )"
+done
+SRC_URI="${SRC_URI}
+ ${DEFAULT_URI}
+ x86? ( !cups? ( mirror://gentoo/libcups.so-i386.bz2 ) )"
+
+LICENSE="Adobe"
+SLOT="0"
+KEYWORDS="-* ~amd64 ~x86"
+RESTRICT="strip mirror"
+
+# Needs libgtkembedmoz.so, which can come from xulrunner, mozilla-firefox or
+# seamonkey. In the case of mozilla-firefox and seamonkey, we need to create
+# /etc/gre.d/gre.conf with GRE_PATH set. On amd64 currently only seamonkey-bin
+# provides a 32bit libgtkembedmoz.so.
+RDEPEND="x86? ( >=x11-libs/gtk+-2.0
+ cups? ( net-print/cups )
+ ldap? ( net-nds/openldap )
+ || ( net-libs/xulrunner
+ www-client/mozilla-firefox
+ www-client/seamonkey
+ www-client/seamonkey-bin ) )
+ amd64? ( >=app-emulation/emul-linux-x86-baselibs-2.4.2
+ >=app-emulation/emul-linux-x86-gtklibs-2.0
+ >=www-client/seamonkey-bin-1.1.7 )"
+QA_TEXTRELS="opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
+ opt/Adobe/Reader8/Browser/intellinux/nppdf.so
+ opt/netscape/plugins/nppdf.so"
+QA_EXECSTACK="opt/Adobe/Reader8/Reader/intellinux/plug_ins/Annots.api
+ opt/Adobe/Reader8/Reader/intellinux/plug_ins/PPKLite.api
+ opt/Adobe/Reader8/Reader/intellinux/bin/acroread
+ opt/Adobe/Reader8/Reader/intellinux/bin/SynchronizerApp-binary
+ opt/Adobe/Reader8/Reader/intellinux/lib/libsccore.so
+ opt/Adobe/Reader8/Reader/intellinux/lib/libcrypto.so.0.9.7"
+
+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/Reader8/bin/acroread"
+# Adobe/HelpViewer/1.0/intellinux/bin/ahv"
+
+pkg_setup() {
+ # x86 binary package, ABI=x86
+ # Danny van Dyk <kugelfang@gentoo.org> 2005/03/25
+ 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}"
+ if [[ ${pkg} =~ ^AdobeReader_ ]] ; then
+ tar xf ILINXR.TAR ||
+ die "Failed to unpack ILINXR.TAR; is distfile corrupt?"
+ tar xf COMMON.TAR ||
+ die "Failed to unpack COMMON.TAR; is distfile corrupt?"
+ 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
+ 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).
+ #
+ # This is a bit premature at the moment on 8.1.1, for two reasons:
+ # 1) The only language issued so far by Adobe is English, and the
+ # provided launcher doesn't bring out its strings separately
+ # (indicating internationalisation hasn't yet begin for 8.1.1)
+ # 2) HelpViewer is new - I don't know if Adobe are likely to
+ # internationalise it or not.
+ for launcher in ${LAUNCHERS} ; do
+ cat > ${launcher} <<-EOF
+ #!/bin/bash
+ # Copyright 1999-2007 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 particualr for LANG=C)
+ cat >> ${launcher} <<-EOF
+ *) exec ${INSTALLDIR}/${launcher}.${fl} "\$@";;
+ esac
+ EOF
+ chmod 755 ${launcher}
+ done
+ fi
+}
+
+src_install() {
+ local dir
+
+ # Install desktop files
+ domenu Adobe/Reader8/Resource/Support
+ # Install Icons - choose 48x48 since that's what the previous versions
+ # supplied.
+ doicon Adobe/Reader8/Resource/Icons/48x48
+
+ dodir /opt
+ chown -R --dereference -L root:0 Adobe
+ cp -dpR Adobe "${D}"opt/
+
+ # 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 Adobe/Reader8/Browser/HowTo/*/Browser_Plugin_HowTo.txt
+
+ if use nsplugin ; then
+ exeinto /opt/netscape/plugins
+ doexe Adobe/Reader8/Browser/intellinux/nppdf.so
+ inst_plugin /opt/netscape/plugins/nppdf.so
+ fi
+
+ if ! use ldap ; then
+ rm "${D}"${INSTALLDIR}/Adobe/Reader8/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}/Adobe/Reader8/Reader/intellinux/lib
+ doexe "${WORKDIR}"/libcups.so.2
+ dosym libcups.so.2 ${INSTALLDIR}/Adobe/Reader8/Reader/intellinux/lib/libcups.so
+ fi
+
+ dodir /opt/bin
+ for launcher in ${LAUNCHERS} ; do
+ dosym /opt/${launcher} /opt/bin/${launcher/*bin\/}
+ done
+}
+
+pkg_postinst () {
+ local ll lc
+ grep -q GRE_PATH= /etc/gre.d/* 2> /dev/null
+ if [[ $? != "0" ]] ; then
+ if use x86 ; then
+ for lib in /opt/seamonkey /usr/lib/seamonkey /usr/lib/mozilla-firefox ; do
+ if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
+ mkdir -p /etc/gre.d
+ cat > /etc/gre.d/gre.conf <<-EOF
+ GRE_PATH=${lib}
+ EOF
+ elog "Acrobat Reader depends on libgtkembedmoz.so, which I've found"
+ elog "on your system in ${lib}, and configured in /etc/gre.d/gre.conf"
+ break # don't search any more libraries
+ fi
+ done
+ fi
+ if use amd64 ; then
+ for lib in /opt/seamonkey ; do
+ if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
+ mkdir -p /etc/gre.d
+ cat > /etc/gre.d/gre.conf <<-EOF
+ GRE_PATH=${lib}
+ EOF
+ elog "Acrobat Reader depends on libgtkembedmoz.so, which I've found"
+ elog "on your system in ${lib}, and configured in /etc/gre.d/gre.conf"
+ break # don't search any more libraries
+ fi
+ done
+ fi
+ fi
+
+ use ldap ||
+ elog "The Acrobat(TM) Security Plugin can be enabled with USE=ldap"
+
+ use nsplugin ||
+ elog "The Acrobat(TM) Browser Plugin can be enabled with USE=nsplugin"
+
+ lc=0
+ for ll in ${LINGUA_LIST} ; do
+ use linguas_${ll/:*} && (( lc = ${lc} + 1 ))
+ done
+ if [[ ${lc} > 1 ]] ; then
+ 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."
+ fi
+
+ grep -q GRE_PATH= /etc/gre.d/* 2> /dev/null
+ if [[ $? != "0" ]] ; then
+ ewarn "Acrobat Reader depends dynamically on libgtkembedmoz.so, which should"
+ ewarn "come with Mozilla Firefox, XULRunner or Seamonkey, however it couldn't"
+ ewarn "be found. The first time you start acroread, it will complain about this,"
+ ewarn "telling you to add the path to it to your preferences. Clear the error"
+ ewarn "dialog, close the Beyond Acrobat Reader dialog, go to"
+ ewarn "Edit -> Preferences -> Internet and set the libgtkembedmoz directory to"
+ ewarn "the place where it exists, then close and restart acroread."
+ fi
+}
diff --git a/app-text/acroread/files/digest-acroread-8.1.1-r2 b/app-text/acroread/files/digest-acroread-8.1.1-r2
new file mode 100644
index 000000000000..dc217e07e76d
--- /dev/null
+++ b/app-text/acroread/files/digest-acroread-8.1.1-r2
@@ -0,0 +1,48 @@
+MD5 40c3568f638219730683d427b582024d AdobeReader_chs-8.1.1-1.i486.tar.bz2 58495315
+RMD160 9d06c3fb1881bbb53550200a72c2a260344b040a AdobeReader_chs-8.1.1-1.i486.tar.bz2 58495315
+SHA256 65557de5a5946f50f8dcbb858304653f7d05523d28641ef574863632a9b9b85d AdobeReader_chs-8.1.1-1.i486.tar.bz2 58495315
+MD5 d7228b1ad6eeb7c3529835d24c4e8556 AdobeReader_cht-8.1.1-1.i486.tar.bz2 54353308
+RMD160 b119af8cf91998a97d9572b4f0053b72dfc36c6f AdobeReader_cht-8.1.1-1.i486.tar.bz2 54353308
+SHA256 80829e2a1882db9e4129e68083ce9f3091a40e1441faadf3bcbf4df66db63069 AdobeReader_cht-8.1.1-1.i486.tar.bz2 54353308
+MD5 bcbd4edc5831ccfbff87b2d309c6d577 AdobeReader_dan-8.1.1-1.i486.tar.bz2 49916168
+RMD160 47c33b3d8ca769e28b8adeab0db77dff9be8fe2f AdobeReader_dan-8.1.1-1.i486.tar.bz2 49916168
+SHA256 fb886a41bf158ff8eccac9e4aa0f979e6f3e2de72f10be6107404dc314cc5ce4 AdobeReader_dan-8.1.1-1.i486.tar.bz2 49916168
+MD5 70f2810bbafc4ff84ec2483e05f04812 AdobeReader_deu-8.1.1-1.i486.tar.bz2 50732359
+RMD160 ccf680c20ad1990e0200de2029b006b471d743f1 AdobeReader_deu-8.1.1-1.i486.tar.bz2 50732359
+SHA256 520b85a31dc5ee9bfcd3fece151f2cf0f55202fcefe35b2ddf1dbda24ecbb1ad AdobeReader_deu-8.1.1-1.i486.tar.bz2 50732359
+MD5 ee38902315e968d6e65bd7414fe406dd AdobeReader_enu-8.1.1-1.i486.tar.bz2 47378597
+RMD160 5dcc576556fa11b0e122080216b9ccd8718201e4 AdobeReader_enu-8.1.1-1.i486.tar.bz2 47378597
+SHA256 472a15b731c02d9a18c3a4391249b4a1543be6788967efb4b8262821b4286a06 AdobeReader_enu-8.1.1-1.i486.tar.bz2 47378597
+MD5 9eb25133f9249fc478ce4dbac93c70e5 AdobeReader_esp-8.1.1-1.i486.tar.bz2 49986587
+RMD160 88bc5fe53cfff4e4c98d240adf1d45df28b05d67 AdobeReader_esp-8.1.1-1.i486.tar.bz2 49986587
+SHA256 8920f2fae0d0b7b84700315ecbdd45e48ddae273c107673badce4a55a364816f AdobeReader_esp-8.1.1-1.i486.tar.bz2 49986587
+MD5 35a89537e3ad44d68d7bff037426d1a6 AdobeReader_fra-8.1.1-1.i486.tar.bz2 50140033
+RMD160 22a5e41dcf5353926a37ecea7c527b567d3b9408 AdobeReader_fra-8.1.1-1.i486.tar.bz2 50140033
+SHA256 5265e371855cab4305468de69570a0f9007160116a782bae4883520caee4a043 AdobeReader_fra-8.1.1-1.i486.tar.bz2 50140033
+MD5 7c9c963d2c7c64fda097906c9ee53c46 AdobeReader_ita-8.1.1-1.i486.tar.bz2 49908208
+RMD160 fc3d28fd966e7655fe451be204a123836c47b3ef AdobeReader_ita-8.1.1-1.i486.tar.bz2 49908208
+SHA256 f8e15cb053964dd0d135c4b17c8b3852a6e24ebc078fcf304b338ddefffa3d31 AdobeReader_ita-8.1.1-1.i486.tar.bz2 49908208
+MD5 36e786a8783e9b28cb5a16c52de14480 AdobeReader_jpn-8.1.1-1.i486.tar.bz2 53596371
+RMD160 ee4dc6c53be87d78029bad55332f601d94e5b777 AdobeReader_jpn-8.1.1-1.i486.tar.bz2 53596371
+SHA256 eb59c7ae54b5f186329a0907e6a45d87f572e561f891d783a0aeeed746410d86 AdobeReader_jpn-8.1.1-1.i486.tar.bz2 53596371
+MD5 8f8ebccc7e4ef6a55d0d89ed0837a48d AdobeReader_kor-8.1.1-1.i486.tar.bz2 51312285
+RMD160 5190d359c89cbb1d3d0a2f75594005543a260404 AdobeReader_kor-8.1.1-1.i486.tar.bz2 51312285
+SHA256 9f19d98dc0dfc327c272ac762612c0105c84a88908a15651daafb1f06c0519cb AdobeReader_kor-8.1.1-1.i486.tar.bz2 51312285
+MD5 11fb39d5e6413fb4d6f8803feacf1f70 AdobeReader_nld-8.1.1-1.i486.tar.bz2 50132817
+RMD160 9aebd0f9a36d335ed8fb079d2770d6861ebdb3f4 AdobeReader_nld-8.1.1-1.i486.tar.bz2 50132817
+SHA256 ddf7b26d5b081721ee43914baacef2486d055fc89c3fc070808b9d864e44dd01 AdobeReader_nld-8.1.1-1.i486.tar.bz2 50132817
+MD5 922fbd27ede5cef92d5c3e233ce8108c AdobeReader_nor-8.1.1-1.i486.tar.bz2 50156539
+RMD160 82dd89d0d9d9e793194056e6fbf25a6e8a7e615f AdobeReader_nor-8.1.1-1.i486.tar.bz2 50156539
+SHA256 2d92095290d3c5218474f84b6bc9c2da48a62380fa7a868c8a4290431eb95451 AdobeReader_nor-8.1.1-1.i486.tar.bz2 50156539
+MD5 a6e206ab1e94fabf565b9ea3a7085209 AdobeReader_ptb-8.1.1-1.i486.tar.bz2 49939757
+RMD160 278d9c973ad772f0f00149bdd4d2ccdd96cbba58 AdobeReader_ptb-8.1.1-1.i486.tar.bz2 49939757
+SHA256 4a1225378ec778b393b433f61eaefe044a366ae16796a818a4ef94a090a24f80 AdobeReader_ptb-8.1.1-1.i486.tar.bz2 49939757
+MD5 302eb55467fac3bcbbe236551ab1484a AdobeReader_suo-8.1.1-1.i486.tar.bz2 50040185
+RMD160 1802d5d61e621e8aba5ba223ed87051e2aab8142 AdobeReader_suo-8.1.1-1.i486.tar.bz2 50040185
+SHA256 2e2c6ffd7ca18215727979c8f9c45a3426e6fe915752c5fe519bd2afa70ba6f9 AdobeReader_suo-8.1.1-1.i486.tar.bz2 50040185
+MD5 cb05938992a5a7c2e4704f9a00e82a44 AdobeReader_sve-8.1.1-1.i486.tar.bz2 50905675
+RMD160 76c0b620154fabe4e791c50a515e975ffb335c39 AdobeReader_sve-8.1.1-1.i486.tar.bz2 50905675
+SHA256 9b40945f04c4422752df53bb284969c775984755dfc78a415be4d9c47fbad31e AdobeReader_sve-8.1.1-1.i486.tar.bz2 50905675
+MD5 262fe0ef8f6de053c410e175aafa25b9 libcups.so-i386.bz2 50564
+RMD160 a8bedc7151eb1d547616124bfdd4844699a33c15 libcups.so-i386.bz2 50564
+SHA256 77eb5cd6aeab630812f7e911db04b6042cd6dee6aa7b9d8cf7756dca14e24b38 libcups.so-i386.bz2 50564
diff --git a/app-text/acroread/metadata.xml b/app-text/acroread/metadata.xml
index 5a01fa7ce20e..1fa0ca569505 100644
--- a/app-text/acroread/metadata.xml
+++ b/app-text/acroread/metadata.xml
@@ -2,9 +2,4 @@
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>printing</herd>
-<maintainer>
- <email>kevquinn@gentoo.org</email>
- <name>Kevin F. Quinn</name>
- <description>Backup maintainer :)</description>
-</maintainer>
</pkgmetadata>