Commit 78c85ce4 authored by José María Fernández's avatar José María Fernández
Browse files

Last remnants of acroread

parent 7ebf568c
......@@ -2,5 +2,6 @@ AUX gentoo_config 356 SHA256 f7742c4df12cf080fbd763a78cb367b1015b57b58a00896b129
DIST AdbeRdr9.5.5-1_i486linux_enu.tar.bz2 57127348 SHA256 ee0ea9c65b38abd40ec7c92654e767dc138757f02aef5ae92f74e2dc75ac6540 SHA512 0d60f9c0248432445fb0e6ccbc6d7841ed3e63dad61765436c53098b15c2ede77f1dd6369b04004cec020c20df395f195c4aaf464a6e2761e57a9e9ea0cb5361 WHIRLPOOL 16ae019b3f1bc5b54a31af53e14788223ceed06483563dd4f5fdd7cd7356496188bbd95b04582dd768c4853998706c41cbb5c2b7a9dda99133e712e04b4dba59
EBUILD acroread-9.5.5-r1.ebuild 6974 SHA256 061f24bdc35a66ec4f3c3343971dd7ba589a38d15c396254160976f89d1f36d9 SHA512 22efac65153f9c47cff4e90c8ac7844eb959a62a1c6b07517fcd31b0a32575b7840447e1cf3b9b6963810978b6371befe8eae1c88fe3332bdcf5fd2551bd1d88 WHIRLPOOL a61aac6d5c3b9d15707e758844dfa12901ad55e72ae041c896ec88b3e3e0151813951829eb027d313c1d8df331b7d9038b93776a3b1807e5ff7c29e13f9a4883
EBUILD acroread-9.5.5-r2.ebuild 7602 SHA256 d12de7d659af98e5beff42086400b1340a3c79f492ec1b978f216d6cbcef14e4 SHA512 e108c9370f851de88f37f44f0f1b33b7d10c770d1e2d6d8c127e3ecff998bbf9c87a8eefec3c6dd1b7ad3924376b15ff4ed4b1b857ad664fdb2ebdefa8fa2823 WHIRLPOOL 839ba74effeb53301c7b78effcd6b2f5aacff0573fe5e4e7162f1daa348c8b4181dd1629b9dc7e5c0d5f628979e3ab29153cd0acee069a3ace58453140385249
EBUILD acroread-9.5.5-r3.ebuild 6500 SHA256 9e5a66a3209676217ca20c4bb5786ae2b47ccf3cac6e4de32862cdcd8f37d0a4 SHA512 576a52eef61b0fe8a4146ae3c7c8a1506d4df17f067fbcbae94f361a2df9f2f2d72ab417cec4529ba5b47038757c83386bb15412a498c200bece655164b4c4de WHIRLPOOL c76392b04766667568d1a35874338a2a95120b249b457dfbbcbf849dd5cbbfb9d5385aabf9480f72fcc99eb67b50f57daa568bbe83702a89f2fb79e23f368003
MISC ChangeLog 33485 SHA256 0536eb1b3815b2eab2a4453b1b3159c31ba0a40347c6bfd4b904b79cdf92272a SHA512 ec8d0809909f9cb1b33585406f34f744d2fdbbb155d9e5ceb08a9ea563002117c96aeb33519cf73a60266b863700751ee4c7a50bda801a6b60be19b8492f0fe2 WHIRLPOOL 034704fcac0fdb4c15b6e3339a40d1678a70ff59ee630d7d761ba6492456c3efd5b245e7cc4c36b4418860bed7588706246dd5b0907c9009e2922be185c2a7da
MISC metadata.xml 257 SHA256 bda1e4362fabecfeafa40683399ef5580cf9f9c79aa097dc8695c9966393198d SHA512 b1571019d9d9a1e6161c01fe6720dc582c2e68eb9eea867734c2950a5068c267ba52b0bcbe62317f623bab3d8f5e2a01d44740236dd4eb132a8ff6aeab59f010 WHIRLPOOL 062e0479dcf0c2c4ec813519d595e256843f6cdc6658d9f6020966842eb4a1757dbe7d083d44762c8a5ad1714bd9823e8e7d3ce54ee4f5e2a778ccccb3d03009
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils gnome2-utils nsplugins
DESCRIPTION="Adobe's PDF reader"
SRC_URI="http://ardownload.adobe.com/pub/adobe/reader/unix/9.x/${PV}/enu/AdbeRdr${PV}-1_i486linux_enu.tar.bz2"
HOMEPAGE="http://www.adobe.com/products/reader/"
LICENSE="Adobe"
KEYWORDS="-* amd64 x86 ~amd64-linux ~x86-linux"
SLOT="0"
IUSE="html ldap nsplugin"
# asian fonts from separate package:
IUSE+=" l10n_ja l10n_ko l10n_zh-CN l10n_zh-TW"
RESTRICT="strip mirror"
DEPEND=""
RDEPEND="
dev-libs/atk[abi_x86_32(-)]
dev-libs/glib:2[abi_x86_32(-)]
dev-libs/libxml2[abi_x86_32(-)]
dev-libs/openssl:0.9.8[abi_x86_32(-)]
media-libs/fontconfig[abi_x86_32(-)]
virtual/glu[abi_x86_32(-)]
>=net-dns/libidn-1.28[abi_x86_32(-)]
sys-libs/zlib[abi_x86_32(-)]
x11-libs/gdk-pixbuf:2[abi_x86_32(-)]
>=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)]
x11-libs/libX11[abi_x86_32(-)]
x11-libs/libXext[abi_x86_32(-)]
x11-libs/pango[abi_x86_32(-)]
>=x11-libs/pangox-compat-0.0.2[abi_x86_32(-)]
nsplugin? ( x11-libs/libXt[abi_x86_32(-)] )
ldap? ( >=net-nds/openldap-2.4.38-r1[abi_x86_32(-)] )
x86? ( html? (
|| (
www-client/firefox-bin
www-client/firefox
www-client/seamonkey-bin
www-client/seamonkey
)
) )
l10n_ja? ( media-fonts/acroread-asianfonts[l10n_ja] )
l10n_ko? ( media-fonts/acroread-asianfonts[l10n_ko] )
l10n_zh-CN? ( media-fonts/acroread-asianfonts[l10n_zh-CN] )
l10n_zh-TW? ( media-fonts/acroread-asianfonts[l10n_zh-TW] )"
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
"
QA_FLAGS_IGNORED="
opt/Adobe/Reader9/Reader/intellinux/plug_ins3d/.*.x3d
opt/Adobe/Reader9/Reader/intellinux/lib/lib.*
opt/Adobe/Reader9/Reader/intellinux/bin/SynchronizerApp-binary
opt/Adobe/Reader9/Reader/intellinux/bin/acroread
opt/Adobe/Reader9/Reader/intellinux/bin/xdg-user-dirs-update
opt/Adobe/Reader9/Reader/intellinux/SPPlugins/ADMPlugin.apl
opt/Adobe/Reader9/Reader/intellinux/plug_ins/AcroForm/PMP/.*.pmp
opt/Adobe/Reader9/Reader/intellinux/plug_ins/Multimedia/MPP/.*.mpp
opt/Adobe/Reader9/Reader/intellinux/plug_ins/.*.api
opt/Adobe/Reader9/Reader/intellinux/sidecars/.*.DEU
opt/Adobe/Reader9/Browser/intellinux/nppdf.so
opt/netscape/plugins/nppdf.so
"
QA_TEXTRELS="
opt/Adobe/Reader9/Reader/intellinux/lib/libextendscript.so
opt/Adobe/Reader9/Reader/intellinux/lib/libsccore.so
"
INSTALLDIR=/opt
S="${WORKDIR}/AdobeReader"
# remove bundled libs to force use of system version, bug 340527
REMOVELIBS="libcrypto libssl"
pkg_setup() {
# x86 binary package, ABI=x86
has_multilib_profile && ABI="x86"
}
src_unpack() {
unpack ${A}
cd "${S}"
# lowercase tar extension required for unpack, bug 476734
mv ./ILINXR.TAR ./ILINXR.tar || die
mv ./COMMON.TAR ./COMMON.tar || die
unpack ./ILINXR.tar ./COMMON.tar
}
src_prepare() {
# 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
# fix erroneous Exec entry in .desktop
sed -i \
-e 's/^Exec=acroread[[:space:]]*$/Exec=acroread %F/' \
-e 's/^Categories=Application;Office;Viewer;X-Red-Hat-Base;/Categories=Office;Viewer;/' \
-e 's/^Caption=/X-Caption=/' \
"${S}"/Adobe/Reader9/Resource/Support/AdobeReader.desktop \
||die "sed .desktop fix failed"
# fix braindead error in nppdf.so (bug 412051)
sed -i 's#C:\\nppdf32Log\\debuglog\.txt#/dev/null\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00#g' \
Adobe/Reader9/Browser/intellinux/nppdf.so || die
}
src_install() {
local LAUNCHER="Adobe/Reader9/bin/acroread"
# Install desktop files
domenu Adobe/Reader9/Resource/Support/AdobeReader.desktop
# 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}/*
done
dodir /opt
chown -R --dereference -L root:0 Adobe
cp -dpR Adobe "${ED}"opt/ || die
# remove some bundled libs
for mylib in ${REMOVELIBS}; do
einfo Removing bundled ${mylib}
rm -v "${ED}"/opt/Adobe/Reader9/Reader/intellinux/lib/${mylib}*
done
doman Adobe/Reader9/Resource/Shell/acroread.1.gz
if use nsplugin; then
inst_plugin /opt/Adobe/Reader9/Browser/intellinux/nppdf.so
else
rm -v "${ED}"/opt/Adobe/Reader9/Browser/intellinux/nppdf.so
fi
dodir /opt/bin
dosym /opt/${LAUNCHER} /opt/bin/${LAUNCHER/*bin\/}
# NOTE -- this is likely old and broken and should be removed...
# 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 did.
if use x86 && use html; then
for lib in /opt/{seamonkey,firefox} /usr/lib/{seamonkey,firefox,mozilla-firefox}; do
if [[ -f ${lib}/libgtkembedmoz.so ]] ; then
echo "MOZILLA_COMP_PATH=${lib}" >> "${ED}"${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
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst () {
if use x86 && ! use html; then
echo
ewarn "If you want html support and/or view the Adobe Reader help you have"
ewarn "to re-emerge acroread with USE=\"html\"."
echo
fi
if use amd64; then
if use nsplugin && ! has_version www-plugins/nspluginwrapper; 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."
fi
elog ""
elog "If you find that Adobe Reader doesn't match your desktop's theme, you"
elog "may want to re-emerge the relevant gtk theme package with"
elog "USE=\"abi_x86_32\" enabled."
fi
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment