1 |
chutzpah 11/07/04 15:29:08 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: nspluginwrapper-1.4.4.ebuild |
5 |
Removed: nspluginwrapper-1.4.2.ebuild |
6 |
nspluginwrapper-1.4.0-r1.ebuild |
7 |
Log: |
8 |
Version bump, includes fix for bug #373971. Also add patch to compile on hardened (Bug #368777). Clean out some older versions. |
9 |
|
10 |
(Portage version: 2.1.10.3/cvs/Linux x86_64) |
11 |
|
12 |
Revision Changes Path |
13 |
1.17 www-plugins/nspluginwrapper/ChangeLog |
14 |
|
15 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog?rev=1.17&view=markup |
16 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog?rev=1.17&content-type=text/plain |
17 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog?r1=1.16&r2=1.17 |
18 |
|
19 |
Index: ChangeLog |
20 |
=================================================================== |
21 |
RCS file: /var/cvsroot/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog,v |
22 |
retrieving revision 1.16 |
23 |
retrieving revision 1.17 |
24 |
diff -u -r1.16 -r1.17 |
25 |
--- ChangeLog 17 Jun 2011 02:25:58 -0000 1.16 |
26 |
+++ ChangeLog 4 Jul 2011 15:29:08 -0000 1.17 |
27 |
@@ -1,6 +1,15 @@ |
28 |
# ChangeLog for www-plugins/nspluginwrapper |
29 |
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
30 |
-# $Header: /var/cvsroot/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog,v 1.16 2011/06/17 02:25:58 chutzpah Exp $ |
31 |
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/nspluginwrapper/ChangeLog,v 1.17 2011/07/04 15:29:08 chutzpah Exp $ |
32 |
+ |
33 |
+*nspluginwrapper-1.4.4 (04 Jul 2011) |
34 |
+ |
35 |
+ 04 Jul 2011; Patrick McLean <chutzpah@g.o> |
36 |
+ -nspluginwrapper-1.4.0-r1.ebuild, -nspluginwrapper-1.4.2.ebuild, |
37 |
+ +nspluginwrapper-1.4.4.ebuild, |
38 |
+ +files/nspluginwrapper-1.4.4-compile-on-hardened.patch: |
39 |
+ Version bump, includes fix for bug #373971. Also add patch to compile on |
40 |
+ hardened (Bug #368777). Clean out some older versions. |
41 |
|
42 |
*nspluginwrapper-1.4.2 (17 Jun 2011) |
43 |
|
44 |
|
45 |
|
46 |
|
47 |
1.1 www-plugins/nspluginwrapper/nspluginwrapper-1.4.4.ebuild |
48 |
|
49 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4.ebuild?rev=1.1&view=markup |
50 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4.ebuild?rev=1.1&content-type=text/plain |
51 |
|
52 |
Index: nspluginwrapper-1.4.4.ebuild |
53 |
=================================================================== |
54 |
# Copyright 1999-2011 Gentoo Foundation |
55 |
# Distributed under the terms of the GNU General Public License v2 |
56 |
# $Header: /var/cvsroot/gentoo-x86/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4.ebuild,v 1.1 2011/07/04 15:29:08 chutzpah Exp $ |
57 |
|
58 |
EAPI=2 |
59 |
|
60 |
inherit eutils multilib nsplugins flag-o-matic |
61 |
|
62 |
DESCRIPTION="Netscape Plugin Wrapper - Load 32bit plugins on 64bit browser" |
63 |
HOMEPAGE="http://nspluginwrapper.davidben.net/" |
64 |
SRC_URI="http://web.mit.edu/davidben/Public/nspluginwrapper/${P}.tar.gz" |
65 |
|
66 |
LICENSE="GPL-2" |
67 |
SLOT="0" |
68 |
KEYWORDS="~amd64" |
69 |
IUSE="" |
70 |
|
71 |
RDEPEND=">=x11-libs/gtk+-2:2 |
72 |
net-misc/curl |
73 |
app-emulation/emul-linux-x86-xlibs |
74 |
app-emulation/emul-linux-x86-gtklibs |
75 |
>=sys-apps/util-linux-2.13" |
76 |
DEPEND="${RDEPEND} |
77 |
dev-util/pkgconfig" |
78 |
|
79 |
autoinstall() { |
80 |
if [[ -x /usr/bin/${PN} ]]; then |
81 |
einfo "Auto installing 32bit plugins..." |
82 |
${PN} -a -i |
83 |
ls /usr/$(get_libdir)/nsbrowser/plugins |
84 |
|
85 |
# Remove wrappers if equivalent 64-bit plugins exist |
86 |
# TODO: May be better to patch nspluginwrapper so it doesn't create |
87 |
# duplicate wrappers in the first place... |
88 |
local DIR64="${ROOT}/usr/$(get_libdir)/nsbrowser/plugins/" |
89 |
for f in "${DIR64}"/npwrapper.*.so; do |
90 |
local PLUGIN=${f##*/npwrapper.} |
91 |
if [[ -f ${DIR64}/${PLUGIN} ]]; then |
92 |
einfo " Removing duplicate wrapper for native 64-bit ${PLUGIN}" |
93 |
${PN} -r "${f}" |
94 |
fi |
95 |
done |
96 |
fi |
97 |
} |
98 |
|
99 |
src_prepare() { |
100 |
epatch "${FILESDIR}/${PN}-1.3.0-gdk-native-windows.patch" |
101 |
epatch "${FILESDIR}/${PN}-1.4.2-parallel-make.patch" |
102 |
epatch "${FILESDIR}/${P}-compile-on-hardened.patch" |
103 |
} |
104 |
|
105 |
src_configure() { |
106 |
replace-flags -O3 -O2 |
107 |
|
108 |
./configure --enable-biarch \ |
109 |
--target-cpu=i386 \ |
110 |
--with-lib32=$(ABI=x86 get_libdir) \ |
111 |
--with-lib64=$(get_libdir) \ |
112 |
--pkglibdir=/usr/$(get_libdir)/${PN} |
113 |
} |
114 |
|
115 |
src_compile() { |
116 |
emake LDFLAGS_32="-m32 ${LDFLAGS}" || die "emake failed" |
117 |
} |
118 |
|
119 |
src_install() { |
120 |
emake DESTDIR="${D}" install || die "emake install failed" |
121 |
|
122 |
dosym "/usr/$(get_libdir)/${PN}/x86_64/linux/npconfig" "/usr/bin/${PN}" |
123 |
keepdir "/usr/$(get_libdir)/${PLUGINS_DIR}" |
124 |
|
125 |
dodoc NEWS README TODO |
126 |
} |
127 |
|
128 |
pkg_postinst() { |
129 |
autoinstall |
130 |
elog "Any 32bit plugins you currently have installed have now been" |
131 |
elog "configured to work in a 64bit browser. Any plugins you install in" |
132 |
elog "the future will first need to be setup with:" |
133 |
elog " \"nspluginwrapper -i <path-to-32bit-plugin>\"" |
134 |
elog "before they will function in a 64bit browser" |
135 |
elog |
136 |
} |
137 |
|
138 |
# this is terribly ugly, but without a way to query portage as to whether |
139 |
# we are upgrading/reinstalling a package versus unmerging, I can't think of |
140 |
# a better way |
141 |
|
142 |
pkg_prerm() { |
143 |
einfo "Removing wrapper plugins..." |
144 |
${PN} --auto --remove |
145 |
} |
146 |
|
147 |
pkg_postrm() { |
148 |
autoinstall |
149 |
} |