Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 87679 | Differences between
and this patch

Collapse All | Expand All

(-)acroread-7.0.ebuild (-1 / +23 lines)
Lines 2-8 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-7.0.ebuild,v 1.7 2005/03/28 15:54:53 usata Exp $
3
# $Header: /var/cvsroot/gentoo-x86/app-text/acroread/acroread-7.0.ebuild,v 1.7 2005/03/28 15:54:53 usata Exp $
4
4
5
inherit nsplugins eutils
5
inherit nsplugins eutils versionator
6
6
7
DESCRIPTION="Adobe's PDF reader"
7
DESCRIPTION="Adobe's PDF reader"
8
HOMEPAGE="http://www.adobe.com/products/acrobat/"
8
HOMEPAGE="http://www.adobe.com/products/acrobat/"
Lines 33-38 Link Here
33
	cd ${S}
33
	cd ${S}
34
	tar xf COMMON.TAR --no-same-owner
34
	tar xf COMMON.TAR --no-same-owner
35
	tar xf ILINXR.TAR --no-same-owner
35
	tar xf ILINXR.TAR --no-same-owner
36
37
	cp ${FILESDIR}/fix_firefox_plugin.sh .
36
}
38
}
37
39
38
src_install() {
40
src_install() {
Lines 73-78 Link Here
73
75
74
	dodir /usr/bin
76
	dodir /usr/bin
75
	dosym ${INSTALLDIR}/acroread /usr/bin/acroread
77
	dosym ${INSTALLDIR}/acroread /usr/bin/acroread
78
79
	local installed_gtk=`etcat -v gtk+ | grep 'I[]].*(2)' | awk {'print $3'}`
80
	gtkminor=`get_version_components ${installed_gtk} | awk '{print $2}'`
81
	gtkrelease=`get_version_components ${installed_gtk} | awk '{print $3}'`
82
83
	if portageq has_version ${ROOT} www-client/mozilla-firefox &&
84
	   test ${gtkminor} -gt 4 -o ${gtkminor} -eq 4 -a ${gtkrelease} -gt 9 && ! use noplugin ; then
85
		exeinto ${INSTALLDIR}
86
		exeopts -m0744
87
		doexe fix_firefox_plugin.sh
88
	fi
76
}
89
}
77
90
78
pkg_postinst () {
91
pkg_postinst () {
Lines 82-85 Link Here
82
	einfo "The Acrobat(TM) Security Plugin will be enabled with USE=ldap, it"
95
	einfo "The Acrobat(TM) Security Plugin will be enabled with USE=ldap, it"
83
	einfo "does not work with amd64 because there is no x86 ldap-emulation"
96
	einfo "does not work with amd64 because there is no x86 ldap-emulation"
84
	einfo "package available in portage."
97
	einfo "package available in portage."
98
99
	if portageq has_version ${ROOT} www-client/mozilla-firefox &&
100
	   test ${gtkminor} -gt 4 -o ${gtkminor} -eq 4 -a ${gtkrelease} -gt 9 && ! use noplugin ; then
101
		echo
102
		einfo "Detected >=x11-libs/gtk+-2.4.10 and www-client/mozilla-firefox."
103
		einfo "To use the acroread plugin with firefox it's necessary to install"
104
		einfo "locally a version of the gtk+-2.4.9: execute, as root, the script"
105
		einfo "${INSTALLDIR}/fix_firefox_plugin.sh to solve this problem"
106
	fi
85
}
107
}

Return to bug 87679