1 |
commit: 5f7b51de489ef7a1be9d886ee4ff61ea4c329613 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 17 07:48:46 2017 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 17 07:48:46 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f7b51de |
7 |
|
8 |
www-plugins/nspluginwrapper: Remove from tree |
9 |
|
10 |
profiles/package.mask | 6 -- |
11 |
www-plugins/nspluginwrapper/Manifest | 1 - |
12 |
.../nspluginwrapper-1.3.0-gdk-native-windows.patch | 13 --- |
13 |
...nspluginwrapper-1.4.4-compile-on-hardened.patch | 12 --- |
14 |
...spluginwrapper-1.4.4-dont-include-gthread.patch | 12 --- |
15 |
...pluginwrapper-1.4.4-dont-unload-libraries.patch | 14 --- |
16 |
.../nspluginwrapper-1.4.4-link-to-libdl.patch | 13 --- |
17 |
.../nspluginwrapper-1.4.4-link-to-libgthread.patch | 15 --- |
18 |
.../nspluginwrapper-1.4.4-parallel-make.patch | 91 ----------------- |
19 |
www-plugins/nspluginwrapper/metadata.xml | 12 --- |
20 |
.../nspluginwrapper-1.4.4-r3.ebuild | 110 --------------------- |
21 |
11 files changed, 299 deletions(-) |
22 |
|
23 |
diff --git a/profiles/package.mask b/profiles/package.mask |
24 |
index c18240c8ea2..64c6844c435 100644 |
25 |
--- a/profiles/package.mask |
26 |
+++ b/profiles/package.mask |
27 |
@@ -183,12 +183,6 @@ dev-java/swidgets |
28 |
=dev-util/cmake-3.7.2-r10 |
29 |
|
30 |
# David Seifert <soap@g.o> (12 Mar 2017) |
31 |
-# Bundles half of glibc, unmaintained upstream, |
32 |
-# not really necessary anymore with 64-bit flash |
33 |
-# Masked for removal in 30 days. Bug #609258. |
34 |
-www-plugins/nspluginwrapper |
35 |
- |
36 |
-# David Seifert <soap@g.o> (12 Mar 2017) |
37 |
# Awful codebase, lots of widechars stored in chars, |
38 |
# invokes undefined behaviour, last release in 2004. |
39 |
# Masked for removal in 30 days. Bug #593942, #593976. |
40 |
|
41 |
diff --git a/www-plugins/nspluginwrapper/Manifest b/www-plugins/nspluginwrapper/Manifest |
42 |
deleted file mode 100644 |
43 |
index eecd2b78ffc..00000000000 |
44 |
--- a/www-plugins/nspluginwrapper/Manifest |
45 |
+++ /dev/null |
46 |
@@ -1 +0,0 @@ |
47 |
-DIST nspluginwrapper-1.4.4.tar.gz 412513 SHA256 f2ed94d42dbbb5370b000a3f30d2b601eb2b09d5742b2842cd0d70e862fab2bb SHA512 41126d98284cae6d25d23233b08ccca0dea841d457d4e41210282c6ab4c0fbf020f2ab4173ce39db8a47a1db20840bcc856f9c7309aa2e6ef2a777e3f2ebf503 WHIRLPOOL 537325919cbba8ce456c30a466f6e2c9fe546da829538afc7807f4201a06ebd7d89f9671b46fac09944a76d8064289530790ccf1ff2b6e5d596b2116447c991e |
48 |
|
49 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.3.0-gdk-native-windows.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.3.0-gdk-native-windows.patch |
50 |
deleted file mode 100644 |
51 |
index 977af6c97e8..00000000000 |
52 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.3.0-gdk-native-windows.patch |
53 |
+++ /dev/null |
54 |
@@ -1,13 +0,0 @@ |
55 |
-diff -up nspluginwrapper-1.3.0/src/npw-viewer.sh.old nspluginwrapper-1.3.0/src/npw-viewer.sh |
56 |
---- nspluginwrapper-1.3.0/src/npw-viewer.sh.old 2009-11-16 12:57:53.000000000 +0100 |
57 |
-+++ nspluginwrapper-1.3.0/src/npw-viewer.sh 2009-12-04 16:16:27.000000000 +0100 |
58 |
-@@ -77,6 +77,9 @@ NPW_USE_XSHM=${NPW_USE_XSHM:-yes} |
59 |
- NPW_USE_VALGRIND=${NPW_USE_VALGRIND:-no} |
60 |
- can_use_valgrind="no" |
61 |
- |
62 |
-+# Compiz/Flash workaround (rhbz#542424) |
63 |
-+export GDK_NATIVE_WINDOWS=1 |
64 |
-+ |
65 |
- if test "$ARCH" != "$TARGET_ARCH"; then |
66 |
- case $TARGET_ARCH in |
67 |
- i386) |
68 |
|
69 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-compile-on-hardened.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-compile-on-hardened.patch |
70 |
deleted file mode 100644 |
71 |
index 6d9adc20e9b..00000000000 |
72 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-compile-on-hardened.patch |
73 |
+++ /dev/null |
74 |
@@ -1,12 +0,0 @@ |
75 |
-diff -ur nspluginwrapper-1.4.4.orig2//Makefile nspluginwrapper-1.4.4/Makefile |
76 |
---- nspluginwrapper-1.4.4.orig2//Makefile 2011-07-14 11:56:52.674790086 -0400 |
77 |
-+++ nspluginwrapper-1.4.4/Makefile 2011-07-14 12:01:00.281197722 -0400 |
78 |
-@@ -337,7 +337,7 @@ |
79 |
- @[ -d $(LSB_OBJ_DIR) ] || mkdir $(LSB_OBJ_DIR) > /dev/null 2>&1 |
80 |
- |
81 |
- $(LSB_OBJ_DIR)/%.o: $(LSB_SRC_DIR)/%.c $(LSB_OBJ_DIR) |
82 |
-- $(CC) $(CFLAGS_32) -nostdinc -fno-builtin -I. -I$(LSB_INC_DIR) -c $< -o $@ |
83 |
-+ $(CC) $(CFLAGS_32) -nostdinc -fno-builtin -I. -I$(LSB_INC_DIR) -c -fno-stack-protector $< -o $@ |
84 |
- |
85 |
- $(LSB_OBJ_DIR)/%.a: $(LSB_OBJ_DIR)/%.o |
86 |
- $(AR) rc $@ $< |
87 |
|
88 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-include-gthread.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-include-gthread.patch |
89 |
deleted file mode 100644 |
90 |
index c1d404ab75d..00000000000 |
91 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-include-gthread.patch |
92 |
+++ /dev/null |
93 |
@@ -1,12 +0,0 @@ |
94 |
-diff --git a/src/npw-player.c b/src/npw-player.c |
95 |
-index a99b8f7..217b5ba 100644 |
96 |
---- a/src/npw-player.c |
97 |
-+++ b/src/npw-player.c |
98 |
-@@ -25,7 +25,6 @@ |
99 |
- #include <unistd.h> |
100 |
- #include <glib.h> |
101 |
- #include <glib/gstdio.h> |
102 |
--#include <glib/gthread.h> |
103 |
- #include <gtk/gtk.h> |
104 |
- #include <gdk/gdkx.h> |
105 |
- #include <gdk/gdkkeysyms.h> |
106 |
|
107 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-unload-libraries.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-unload-libraries.patch |
108 |
deleted file mode 100644 |
109 |
index 70793f9e762..00000000000 |
110 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-dont-unload-libraries.patch |
111 |
+++ /dev/null |
112 |
@@ -1,14 +0,0 @@ |
113 |
-diff --git a/src/npw-config.c b/src/npw-config.c |
114 |
-index e9e8007..4ad4bc1 100644 |
115 |
---- a/src/npw-config.c |
116 |
-+++ b/src/npw-config.c |
117 |
-@@ -534,7 +534,8 @@ static bool is_wrapper_plugin(const char *plugin_path, NPW_PluginInfo *out_plugi |
118 |
- return false; |
119 |
- |
120 |
- bool ret = is_wrapper_plugin_handle(handle, out_plugin_info); |
121 |
-- dlclose(handle); |
122 |
-+ /* Intentionally leak the handle; many libraries crash when unloaded. */ |
123 |
-+ /* dlclose(handle); */ |
124 |
- return ret; |
125 |
- } |
126 |
- |
127 |
|
128 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libdl.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libdl.patch |
129 |
deleted file mode 100644 |
130 |
index 28e8f65cf74..00000000000 |
131 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libdl.patch |
132 |
+++ /dev/null |
133 |
@@ -1,13 +0,0 @@ |
134 |
-diff --git a/Makefile b/Makefile |
135 |
-index e36a991..2a40671 100644 |
136 |
---- a/Makefile |
137 |
-+++ b/Makefile |
138 |
-@@ -142,7 +142,7 @@ npplayer_CFLAGS += $(GTK_CFLAGS) $(GLIB_CFLAGS) $(MOZILLA_CFLAGS) $(CURL_CFLAGS |
139 |
- npplayer_LDFLAGS = $(LDFLAGS) |
140 |
- npplayer_LDFLAGS += $(libpthread_LDFLAGS) |
141 |
- npplayer_LIBS = $(GTK_LIBS) $(GLIB_LIBS) $(CURL_LIBS) $(X_LIBS) |
142 |
--npplayer_LIBS += $(libpthread_LIBS) $(libsocket_LIBS) |
143 |
-+npplayer_LIBS += $(libdl_LIBS) $(libpthread_LIBS) $(libsocket_LIBS) |
144 |
- |
145 |
- libnoxshm_LIBRARY = libnoxshm.so |
146 |
- libnoxshm_RAWSRCS = libnoxshm.c |
147 |
|
148 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libgthread.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libgthread.patch |
149 |
deleted file mode 100644 |
150 |
index 56030c473c4..00000000000 |
151 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-link-to-libgthread.patch |
152 |
+++ /dev/null |
153 |
@@ -1,15 +0,0 @@ |
154 |
-diff --git a/configure b/configure |
155 |
-index 5f3dd86..09c400a 100755 |
156 |
---- a/configure |
157 |
-+++ b/configure |
158 |
-@@ -499,8 +499,8 @@ fi |
159 |
- |
160 |
- # check for Glib 2.0 compile CFLAGS |
161 |
- if $pkgconfig --exists glib-2.0; then |
162 |
-- GLIB_CFLAGS=`$pkgconfig --cflags glib-2.0` |
163 |
-- GLIB_LIBS=`$pkgconfig --libs glib-2.0` |
164 |
-+ GLIB_CFLAGS=`$pkgconfig --cflags glib-2.0 gthread-2.0` |
165 |
-+ GLIB_LIBS=`$pkgconfig --libs glib-2.0 gthread-2.0` |
166 |
- GLIB_VERSION=`$pkgconfig --modversion glib-2.0` |
167 |
- else |
168 |
- echo "GLIB 2.0 environment not found" |
169 |
|
170 |
diff --git a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-parallel-make.patch b/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-parallel-make.patch |
171 |
deleted file mode 100644 |
172 |
index 95a7e49d6af..00000000000 |
173 |
--- a/www-plugins/nspluginwrapper/files/nspluginwrapper-1.4.4-parallel-make.patch |
174 |
+++ /dev/null |
175 |
@@ -1,91 +0,0 @@ |
176 |
-diff -ur nspluginwrapper-1.4.2.orig//Makefile nspluginwrapper-1.4.2/Makefile |
177 |
---- nspluginwrapper-1.4.2.orig//Makefile 2011-06-04 14:41:40.000000000 -0400 |
178 |
-+++ nspluginwrapper-1.4.2/Makefile 2011-06-16 22:11:07.059551179 -0400 |
179 |
-@@ -14,7 +14,7 @@ |
180 |
- endif |
181 |
- |
182 |
- ifeq ($(INSTALL),) |
183 |
--INSTALL = install |
184 |
-+INSTALL = install -D |
185 |
- ifneq (,$(findstring $(OS),solaris)) |
186 |
- INSTALL = $(SRC_PATH)/utils/install.sh |
187 |
- endif |
188 |
-@@ -236,44 +236,40 @@ |
189 |
- uninstall.mkruntime: |
190 |
- rm -f $(DESTDIR)$(npcommondir)/mkruntime |
191 |
- |
192 |
--install: install.dirs install.player install.wrapper install.viewer install.libnoxshm install.loader install.config |
193 |
--install.dirs: |
194 |
-- mkdir -p $(DESTDIR)$(npcommondir) || : |
195 |
-- mkdir -p $(DESTDIR)$(nphostdir) || : |
196 |
-- mkdir -p $(DESTDIR)$(nptargetdir) || : |
197 |
-+install: install.player install.wrapper install.viewer install.libnoxshm install.loader install.config |
198 |
- ifeq ($(build_player),yes) |
199 |
--install.player: install.dirs $(npplayer_PROGRAM) |
200 |
-+install.player: $(npplayer_PROGRAM) |
201 |
- $(INSTALL) -m 755 $(STRIP_OPT) $(npplayer_PROGRAM) $(DESTDIR)$(nphostdir)/$(npplayer_PROGRAM) |
202 |
- mkdir -p $(DESTDIR)$(bindir) |
203 |
- $(LN_S) $(nphostdir)/$(npplayer_PROGRAM) $(DESTDIR)$(bindir)/nspluginplayer |
204 |
- else |
205 |
- install.player: |
206 |
- endif |
207 |
--install.wrapper: install.dirs $(npwrapper_LIBRARY) |
208 |
-+install.wrapper: $(npwrapper_LIBRARY) |
209 |
- $(INSTALL) -m 755 $(STRIP_OPT) $(npwrapper_LIBRARY) $(DESTDIR)$(nphostdir)/$(npwrapper_LIBRARY) |
210 |
- ifeq ($(build_viewer),yes) |
211 |
--install.viewer: install.dirs install.viewer.bin install.viewer.glue |
212 |
--install.libnoxshm: install.dirs do.install.libnoxshm |
213 |
-+install.viewer: install.viewer.bin install.viewer.glue |
214 |
-+install.libnoxshm: do.install.libnoxshm |
215 |
- else |
216 |
- install.viewer: |
217 |
- install.libnoxshm: |
218 |
- endif |
219 |
--install.viewer.bin: install.dirs $(npviewer_PROGRAM) |
220 |
-+install.viewer.bin: $(npviewer_PROGRAM) |
221 |
- $(INSTALL) -m 755 $(STRIP_OPT) $(npviewer_PROGRAM) $(DESTDIR)$(nptargetdir)/$(npviewer_PROGRAM) |
222 |
--install.viewer.glue:: install.dirs |
223 |
-+install.viewer.glue:: install.viewer.bin |
224 |
- p=$(DESTDIR)$(nptargetdir)/$(npviewer_PROGRAM:%.bin=%); \ |
225 |
- echo "#!/bin/sh" > $$p; \ |
226 |
- echo "TARGET_OS=$(TARGET_OS)" >> $$p; \ |
227 |
- echo "TARGET_ARCH=$(TARGET_ARCH)" >> $$p; \ |
228 |
- echo ". $(npcommondir)/$(nploader_PROGRAM)" >> $$p; \ |
229 |
- chmod 755 $$p |
230 |
--do.install.libnoxshm: install.dirs $(libnoxshm_LIBRARY) |
231 |
-+do.install.libnoxshm: $(libnoxshm_LIBRARY) |
232 |
- $(INSTALL) -m 755 $(STRIP_OPT) $(libnoxshm_LIBRARY) $(DESTDIR)$(nptargetdir)/$(libnoxshm_LIBRARY) |
233 |
--install.config: install.dirs $(npconfig_PROGRAM) |
234 |
-+install.config: $(npconfig_PROGRAM) |
235 |
- $(INSTALL) -m 755 $(STRIP_OPT) $(npconfig_PROGRAM) $(DESTDIR)$(nphostdir)/$(npconfig_PROGRAM) |
236 |
- mkdir -p $(DESTDIR)$(bindir) |
237 |
- $(LN_S) $(nphostdir)/$(npconfig_PROGRAM) $(DESTDIR)$(bindir)/nspluginwrapper |
238 |
--install.loader: install.dirs $(nploader_PROGRAM) |
239 |
-+install.loader: $(nploader_PROGRAM) |
240 |
- $(INSTALL) -m 755 $(nploader_PROGRAM) $(DESTDIR)$(npcommondir)/$(nploader_PROGRAM) |
241 |
- install.mkruntime: $(SRC_PATH)/utils/mkruntime.sh |
242 |
- $(INSTALL) -m 755 $< $(DESTDIR)$(npcommondir)/mkruntime |
243 |
-Only in nspluginwrapper-1.4.4: .Makefile.swp |
244 |
-diff -ur nspluginwrapper-1.4.4.orig//Makefile nspluginwrapper-1.4.4/Makefile |
245 |
---- nspluginwrapper-1.4.4.orig//Makefile 2011-06-30 23:18:57.000000000 -0400 |
246 |
-+++ nspluginwrapper-1.4.4/Makefile 2011-07-14 11:56:52.674790086 -0400 |
247 |
-@@ -333,16 +333,16 @@ |
248 |
- sed -e 's|%NPW_VIEWER_DIR%|$(nptargetdir_var)|' $< > $@ |
249 |
- chmod 755 $@ |
250 |
- |
251 |
--$(LSB_OBJ_DIR):: |
252 |
-+$(LSB_OBJ_DIR): |
253 |
- @[ -d $(LSB_OBJ_DIR) ] || mkdir $(LSB_OBJ_DIR) > /dev/null 2>&1 |
254 |
- |
255 |
--$(LSB_OBJ_DIR)/%.o: $(LSB_SRC_DIR)/%.c |
256 |
-+$(LSB_OBJ_DIR)/%.o: $(LSB_SRC_DIR)/%.c $(LSB_OBJ_DIR) |
257 |
- $(CC) $(CFLAGS_32) -nostdinc -fno-builtin -I. -I$(LSB_INC_DIR) -c $< -o $@ |
258 |
- |
259 |
- $(LSB_OBJ_DIR)/%.a: $(LSB_OBJ_DIR)/%.o |
260 |
- $(AR) rc $@ $< |
261 |
- |
262 |
--$(LSB_OBJ_DIR)/libc.so: $(LSB_OBJ_DIR)/libc_main.so $(LSB_OBJ_DIR)/libc_nonshared.a |
263 |
-+$(LSB_OBJ_DIR)/libc.so: $(LSB_OBJ_DIR)/libc_main.so $(LSB_OBJ_DIR)/libc_nonshared.a $(LSB_OBJ_DIR) |
264 |
- @echo "OUTPUT_FORMAT($(TARGET_ELF_ARCH))" > $@ |
265 |
- @echo "GROUP ( $(LSB_OBJ_DIR)/libc_main.so $(LSB_OBJ_DIR)/libc_nonshared.a )" >> $@ |
266 |
- |
267 |
|
268 |
diff --git a/www-plugins/nspluginwrapper/metadata.xml b/www-plugins/nspluginwrapper/metadata.xml |
269 |
deleted file mode 100644 |
270 |
index 34945207636..00000000000 |
271 |
--- a/www-plugins/nspluginwrapper/metadata.xml |
272 |
+++ /dev/null |
273 |
@@ -1,12 +0,0 @@ |
274 |
-<?xml version="1.0" encoding="UTF-8"?> |
275 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
276 |
-<pkgmetadata> |
277 |
-<maintainer type="person"> |
278 |
- <email>chutzpah@g.o</email> |
279 |
- <name>Patrick McLean</name> |
280 |
-</maintainer> |
281 |
-<maintainer type="project"> |
282 |
- <email>amd64@g.o</email> |
283 |
- <name>AMD64 Project</name> |
284 |
-</maintainer> |
285 |
-</pkgmetadata> |
286 |
|
287 |
diff --git a/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4-r3.ebuild b/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4-r3.ebuild |
288 |
deleted file mode 100644 |
289 |
index 5cca1131747..00000000000 |
290 |
--- a/www-plugins/nspluginwrapper/nspluginwrapper-1.4.4-r3.ebuild |
291 |
+++ /dev/null |
292 |
@@ -1,110 +0,0 @@ |
293 |
-# Copyright 1999-2015 Gentoo Foundation |
294 |
-# Distributed under the terms of the GNU General Public License v2 |
295 |
- |
296 |
-EAPI=5 |
297 |
- |
298 |
-inherit eutils multilib nsplugins flag-o-matic toolchain-funcs |
299 |
- |
300 |
-DESCRIPTION="Netscape Plugin Wrapper - Load 32bit plugins on 64bit browser" |
301 |
-HOMEPAGE="http://nspluginwrapper.org/" |
302 |
-SRC_URI="http://web.mit.edu/davidben/Public/nspluginwrapper/${P}.tar.gz" |
303 |
- |
304 |
-LICENSE="GPL-2" |
305 |
-SLOT="0" |
306 |
-KEYWORDS="amd64" |
307 |
-IUSE="" |
308 |
- |
309 |
-RDEPEND=">=x11-libs/gtk+-2:2 |
310 |
- net-misc/curl |
311 |
- >=sys-apps/util-linux-2.13 |
312 |
- >=dev-libs/glib-2.34.3[abi_x86_32(-)] |
313 |
- >=x11-libs/gtk+-2.24.23:2[abi_x86_32(-)] |
314 |
- >=x11-libs/libX11-1.6.2[abi_x86_32(-)] |
315 |
- >=x11-libs/libXt-1.1.4[abi_x86_32(-)]" |
316 |
-DEPEND="${RDEPEND} |
317 |
- virtual/pkgconfig" |
318 |
- |
319 |
-autoinstall() { |
320 |
- if [[ -x /usr/bin/${PN} ]]; then |
321 |
- einfo "Auto installing 32bit plugins..." |
322 |
- ${PN} -a -i |
323 |
- ls /usr/$(get_libdir)/nsbrowser/plugins |
324 |
- |
325 |
- # Remove wrappers if equivalent 64-bit plugins exist |
326 |
- # TODO: May be better to patch nspluginwrapper so it doesn't create |
327 |
- # duplicate wrappers in the first place... |
328 |
- local DIR64="${ROOT}/usr/$(get_libdir)/nsbrowser/plugins/" |
329 |
- for f in "${DIR64}"/npwrapper.*.so; do |
330 |
- local PLUGIN=${f##*/npwrapper.} |
331 |
- if [[ -f ${DIR64}/${PLUGIN} ]]; then |
332 |
- einfo " Removing duplicate wrapper for native 64-bit ${PLUGIN}" |
333 |
- ${PN} -r "${f}" |
334 |
- fi |
335 |
- done |
336 |
- fi |
337 |
-} |
338 |
- |
339 |
-src_prepare() { |
340 |
- epatch "${FILESDIR}/${PN}-1.3.0-gdk-native-windows.patch" |
341 |
- |
342 |
- epatch "${FILESDIR}/${P}-parallel-make.patch" |
343 |
- epatch "${FILESDIR}/${P}-compile-on-hardened.patch" |
344 |
- epatch "${FILESDIR}/${P}-dont-unload-libraries.patch" |
345 |
- epatch "${FILESDIR}/${P}-dont-include-gthread.patch" |
346 |
- epatch "${FILESDIR}/${P}-link-to-libdl.patch" |
347 |
- epatch "${FILESDIR}/${P}-link-to-libgthread.patch" |
348 |
- |
349 |
- sed -i -r "s:^libnoxshm_LDFLAGS = :libnoxshm_LDFLAGS = -L/usr/$(ABI=x86 get_libdir)/ :" \ |
350 |
- Makefile || die "sed failed" |
351 |
-} |
352 |
- |
353 |
-src_configure() { |
354 |
- replace-flags -O3 -O2 |
355 |
- |
356 |
- ./configure \ |
357 |
- --with-cc="$(tc-getCC)" \ |
358 |
- --with-cxx="$(tc-getCXX)" \ |
359 |
- --enable-biarch \ |
360 |
- --target-cpu=i386 \ |
361 |
- --with-lib32=$(ABI=x86 get_libdir) \ |
362 |
- --with-lib64=$(get_libdir) \ |
363 |
- --pkglibdir=/usr/$(get_libdir)/${PN} \ |
364 |
- || die "configure failed" |
365 |
-} |
366 |
- |
367 |
-src_compile() { |
368 |
- emake LDFLAGS_32="$(get_abi_CFLAGS x86) ${LDFLAGS}" |
369 |
-} |
370 |
- |
371 |
-src_install() { |
372 |
- emake DESTDIR="${D}" install |
373 |
- |
374 |
- dosym "/usr/$(get_libdir)/${PN}/x86_64/linux/npconfig" "/usr/bin/${PN}" |
375 |
- |
376 |
- keepdir "/usr/$(get_libdir)/${PLUGINS_DIR}" |
377 |
- |
378 |
- dodoc NEWS README TODO |
379 |
-} |
380 |
- |
381 |
-pkg_postinst() { |
382 |
- autoinstall |
383 |
- elog "Any 32bit plugins you currently have installed have now been" |
384 |
- elog "configured to work in a 64bit browser. Any plugins you install in" |
385 |
- elog "the future will first need to be setup with:" |
386 |
- elog " \"nspluginwrapper -i <path-to-32bit-plugin>\"" |
387 |
- elog "before they will function in a 64bit browser" |
388 |
- elog |
389 |
-} |
390 |
- |
391 |
-# this is terribly ugly, but without a way to query portage as to whether |
392 |
-# we are upgrading/reinstalling a package versus unmerging, I can't think of |
393 |
-# a better way |
394 |
- |
395 |
-pkg_prerm() { |
396 |
- einfo "Removing wrapper plugins..." |
397 |
- ${PN} --auto --remove |
398 |
-} |
399 |
- |
400 |
-pkg_postrm() { |
401 |
- autoinstall |
402 |
-} |