summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick McLean <chutzpah@gentoo.org>2006-10-20 01:20:16 +0000
committerPatrick McLean <chutzpah@gentoo.org>2006-10-20 01:20:16 +0000
commit5737bd12a8a328c5d6e15ae2afec46593a514a17 (patch)
tree4c802a3ea2788ea5df3805c1090a3d8cb235298d /net-www/nspluginwrapper
parentRemove gnuconfig_update (diff)
downloadgentoo-2-5737bd12a8a328c5d6e15ae2afec46593a514a17.tar.gz
gentoo-2-5737bd12a8a328c5d6e15ae2afec46593a514a17.tar.bz2
gentoo-2-5737bd12a8a328c5d6e15ae2afec46593a514a17.zip
New package, closes bug #138454
(Portage version: 2.1.2_pre3-r4)
Diffstat (limited to 'net-www/nspluginwrapper')
-rw-r--r--net-www/nspluginwrapper/ChangeLog14
-rw-r--r--net-www/nspluginwrapper/Manifest20
-rw-r--r--net-www/nspluginwrapper/files/digest-nspluginwrapper-0.9.90.33
-rw-r--r--net-www/nspluginwrapper/files/nspluginwrapper-0.9.90.3-gentoo.patch50
-rw-r--r--net-www/nspluginwrapper/metadata.xml10
-rw-r--r--net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild93
6 files changed, 190 insertions, 0 deletions
diff --git a/net-www/nspluginwrapper/ChangeLog b/net-www/nspluginwrapper/ChangeLog
new file mode 100644
index 000000000000..9f1c46fddc82
--- /dev/null
+++ b/net-www/nspluginwrapper/ChangeLog
@@ -0,0 +1,14 @@
+# ChangeLog for net-www/nspluginwrapper
+# Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v 1.1 2006/10/20 01:20:16 chutzpah Exp $
+
+*nspluginwrapper-0.9.90.3 (20 Oct 2006)
+
+ 20 Oct 2006; Patrick McLean <chutzpah@gentoo.org>
+ +files/nspluginwrapper-0.9.90.3-gentoo.patch, +metadata.xml,
+ +nspluginwrapper-0.9.90.3.ebuild:
+ Initial version. Ebuild originally written by Herbie Hopkins
+ <herbs@gentoo.org>, also had contributions from Ahmed Ammar
+ <b33fc0d3@gmail.com> and Matsuu Takuto matsuu@gentoo.org. Closes bug
+ #138454.
+
diff --git a/net-www/nspluginwrapper/Manifest b/net-www/nspluginwrapper/Manifest
new file mode 100644
index 000000000000..310a6a71f205
--- /dev/null
+++ b/net-www/nspluginwrapper/Manifest
@@ -0,0 +1,20 @@
+AUX nspluginwrapper-0.9.90.3-gentoo.patch 2105 RMD160 469406b7935e59ef77835a0af0a7e9aba06832d1 SHA1 cf99704cf7bcb04a74e685a676006aea43fe1574 SHA256 32b2edeb3bc1533bc93217178e952e572b77c28cf380e10327024d718d0abe7c
+MD5 99c0c63392eedc59c8987bba8c436e66 files/nspluginwrapper-0.9.90.3-gentoo.patch 2105
+RMD160 469406b7935e59ef77835a0af0a7e9aba06832d1 files/nspluginwrapper-0.9.90.3-gentoo.patch 2105
+SHA256 32b2edeb3bc1533bc93217178e952e572b77c28cf380e10327024d718d0abe7c files/nspluginwrapper-0.9.90.3-gentoo.patch 2105
+DIST nspluginwrapper-0.9.90.3.tar.bz2 84722 RMD160 a3f466656faafd8b165e7b06373905a7f3bbcb60 SHA1 b3f17377cc682d335b971cfe986e4a408293b81f SHA256 bfac222d5f5c5d7922358d774a23b20d4604886f8a334f94c411a0372e0bf5da
+EBUILD nspluginwrapper-0.9.90.3.ebuild 2389 RMD160 d19150bfb353fc6c9e0bc95672e21d0b4283522c SHA1 c71604f5ffbc8eb9955664d20bffd0e0ce2a574e SHA256 2877357e3447b510c12f7d5cc12e6d7dc5dd3a3ba189b43f2d89881af87b4c6f
+MD5 dcf15517de71ec0cbb2113cc17b3d09a nspluginwrapper-0.9.90.3.ebuild 2389
+RMD160 d19150bfb353fc6c9e0bc95672e21d0b4283522c nspluginwrapper-0.9.90.3.ebuild 2389
+SHA256 2877357e3447b510c12f7d5cc12e6d7dc5dd3a3ba189b43f2d89881af87b4c6f nspluginwrapper-0.9.90.3.ebuild 2389
+MISC ChangeLog 524 RMD160 d52964f3b0da9225cd94c11e889344a07c1d6efe SHA1 ed207c8b4c55a969bb5abf2e8b330004ee640554 SHA256 bccde34e04e2ecae66a06e119937ae654e9b372ecde3f04459e66e66fdc20f56
+MD5 49d565835dd1bbe821306656c5b9d1c9 ChangeLog 524
+RMD160 d52964f3b0da9225cd94c11e889344a07c1d6efe ChangeLog 524
+SHA256 bccde34e04e2ecae66a06e119937ae654e9b372ecde3f04459e66e66fdc20f56 ChangeLog 524
+MISC metadata.xml 253 RMD160 37a89adccd0388cf014f6768a21b1ec09252d21c SHA1 fa43576fb2327afb837b5b2ea57dc6ab8525494b SHA256 0b0d878d1f93316b2966ec90c1f80c46fe67fb3f5647b28f7c30d9647dbb1854
+MD5 4e28c7cb2cc3b16b52de1ff9c15aad48 metadata.xml 253
+RMD160 37a89adccd0388cf014f6768a21b1ec09252d21c metadata.xml 253
+SHA256 0b0d878d1f93316b2966ec90c1f80c46fe67fb3f5647b28f7c30d9647dbb1854 metadata.xml 253
+MD5 397888db9d6eeda3e65a6207fe603d6f files/digest-nspluginwrapper-0.9.90.3 274
+RMD160 8eeb904e4353e813032c6078efc21bfa28e780d8 files/digest-nspluginwrapper-0.9.90.3 274
+SHA256 51a00327c66f935d5fada6fd50a72ceed17653f33e602c32ce313ba18268fc04 files/digest-nspluginwrapper-0.9.90.3 274
diff --git a/net-www/nspluginwrapper/files/digest-nspluginwrapper-0.9.90.3 b/net-www/nspluginwrapper/files/digest-nspluginwrapper-0.9.90.3
new file mode 100644
index 000000000000..c9d633bd0692
--- /dev/null
+++ b/net-www/nspluginwrapper/files/digest-nspluginwrapper-0.9.90.3
@@ -0,0 +1,3 @@
+MD5 71f9f0642fd082e676f9c2dfc1953a73 nspluginwrapper-0.9.90.3.tar.bz2 84722
+RMD160 a3f466656faafd8b165e7b06373905a7f3bbcb60 nspluginwrapper-0.9.90.3.tar.bz2 84722
+SHA256 bfac222d5f5c5d7922358d774a23b20d4604886f8a334f94c411a0372e0bf5da nspluginwrapper-0.9.90.3.tar.bz2 84722
diff --git a/net-www/nspluginwrapper/files/nspluginwrapper-0.9.90.3-gentoo.patch b/net-www/nspluginwrapper/files/nspluginwrapper-0.9.90.3-gentoo.patch
new file mode 100644
index 000000000000..7e6f92367818
--- /dev/null
+++ b/net-www/nspluginwrapper/files/nspluginwrapper-0.9.90.3-gentoo.patch
@@ -0,0 +1,50 @@
+diff -ur nspluginwrapper-0.9.90.1-orig/Makefile nspluginwrapper-0.9.90.1/Makefile
+--- nspluginwrapper-0.9.90.1-orig/Makefile 2006-10-19 09:33:49.000000000 -0400
++++ nspluginwrapper-0.9.90.1/Makefile 2006-10-19 09:34:11.000000000 -0400
+@@ -35,7 +35,7 @@
+ npviewer_LDFLAGS = -L/usr/X11R6/$(lib) -lX11 -lXext -lXt -ldl -lpthread
+ npviewer_LDFLAGS += $(GTK_LDFLAGS)
+ ifeq ($(ARCH),i386)
+-npviewer_LDFLAGS += -Wl,-shared
++npviewer_LDFLAGS += -Wl,-shared -L/emul/linux/x86/usr/lib
+ endif
+
+ npconfig_PROGRAM = npconfig
+diff -ur nspluginwrapper-0.9.90.1-orig/configure nspluginwrapper-0.9.90.1/configure
+--- nspluginwrapper-0.9.90.1-orig/configure 2006-10-19 09:33:49.000000000 -0400
++++ nspluginwrapper-0.9.90.1/configure 2006-10-19 10:15:31.000000000 -0400
+@@ -260,7 +260,7 @@
+ echo "VERSION=$VERSION" >>$config_mak
+ echo "#define NPW_VERSION \"$VERSION\"" >> $config_h
+
+-pkglibdir="$prefix/lib/$PACKAGE"
++pkglibdir="$prefix/$lib/$PACKAGE"
+ echo "pkglibdir=$pkglibdir" >> $config_mak
+ echo "#define NPW_LIBDIR \"$pkglibdir\"" >> $config_h
+
+diff -ur nspluginwrapper-0.9.90.1-orig/src/npw-config.c nspluginwrapper-0.9.90.1/src/npw-config.c
+--- nspluginwrapper-0.9.90.1-orig/src/npw-config.c 2006-10-19 09:33:49.000000000 -0400
++++ nspluginwrapper-0.9.90.1/src/npw-config.c 2006-10-19 09:34:11.000000000 -0400
+@@ -80,11 +80,11 @@
+
+ static const char *get_system_mozilla_plugin_dir(void)
+ {
+- static const char default_dir[] = LIBDIR "/mozilla/plugins";
++ static const char default_dir[] = LIBDIR "/nsbrowser/plugins";
+ const char *dir;
+
+ if (access("/etc/SuSE-release", F_OK) == 0) {
+- dir = LIBDIR "/firefox/plugins"; // new plugins location (10.1?)
++ dir = LIBDIR "/nsbrowser/plugins"; // new plugins location (10.1?)
+ if (access(dir, F_OK) != 0)
+ dir = "/opt/MozillaFirefox/lib/plugins"; // XXX not lib64 aware?
+ }
+@@ -109,6 +109,8 @@
+ static const char **get_mozilla_plugin_dirs(void)
+ {
+ static const char *default_dirs[] = {
++ "/usr/lib32/nsbrowser/plugins",
++ "/usr/lib64/nsbrowser/plugins",
+ "/usr/lib/mozilla/plugins",
+ "/usr/lib64/mozilla/plugins",
+ "/usr/lib/browser-plugins",
diff --git a/net-www/nspluginwrapper/metadata.xml b/net-www/nspluginwrapper/metadata.xml
new file mode 100644
index 000000000000..195e9883808c
--- /dev/null
+++ b/net-www/nspluginwrapper/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>amd64</herd>
+<maintainer>
+ <email>chutzpah@gentoo.org</email>
+ <name>Patrick McLean</name>
+</maintainer>
+</pkgmetadata>
+
diff --git a/net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild b/net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild
new file mode 100644
index 000000000000..9352ab128086
--- /dev/null
+++ b/net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild,v 1.1 2006/10/20 01:20:16 chutzpah Exp $
+
+inherit nsplugins flag-o-matic multilib
+
+DESCRIPTION="Netscape Plugin Wrapper - Load 32bit plugins on 64bit browser"
+HOMEPAGE="http://www.gibix.net/projects/nspluginwrapper/"
+SRC_URI="http://www.gibix.net/projects/nspluginwrapper/files/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+RDEPEND=">=x11-libs/gtk+-2
+ app-emulation/emul-linux-x86-xlibs
+ sys-apps/setarch"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ !app-admin/eselect-compiler"
+
+TARGET_CPU="i386"
+TARGET_ABI="x86"
+
+# I don't know how to get rid of these textrels
+QA_TEXTRELS_amd64="usr/$(get_libdir)/nspluginwrapper/i386/npviewer.bin"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${P}-gentoo.patch
+}
+
+src_compile() {
+ append-flags "-std=c99"
+
+ ./configure \
+ --prefix=/usr \
+ --with-lib=$(get_libdir) \
+ --with-cc=$(tc-getCC) \
+ --target-cpu=${TARGET_CPU} || die
+ emake || die
+
+ mkdir build-${TARGET_CPU}-linux
+ cd build-${TARGET_CPU}-linux
+ ABI="${TARGET_ABI}" linux32 ../configure \
+ --prefix=/usr \
+ --with-lib=$(get_libdir) \
+ --with-cc=$(tc-getCC) \
+ --target-cpu=${TARGET_CPU} || die
+ ABI="${TARGET_ABI}" linux32 emake npviewer.bin || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" DONT_STRIP=yes install || die
+
+ cd build-${TARGET_CPU}-linux
+ ABI="${TARGET_ABI}" emake DESTDIR="${D}" DONT_STRIP=yes install.viewer || die
+ cd "${S}"
+
+ inst_plugin /usr/lib/nspluginwrapper/x86_64/npwrapper.so
+ dosym /usr/lib/nspluginwrapper/x86_64/npconfig /usr/bin/nspluginwrapper
+
+ dodoc NEWS README TODO
+}
+
+pkg_postinst() {
+ einfo "Auto installing 32bit plugins"
+ nspluginwrapper -v -a -i
+ einfo "Any 32bit plugins you currently have installed have now been"
+ einfo "configured to work in a 64bit browser. Any plugins you install in"
+ einfo "the future will first need to be setup with:"
+ einfo " \"nspluginwrapper -i <path-to-32bit-plugin>\""
+ einfo "before they will function in a 64bit browser"
+}
+
+# this is terribly ugly, but without a way to query portage as to whether
+# we are upgrading/reinstalling a package versus unmerging, I can't think of
+# a better way
+
+pkg_prerm() {
+ einfo "Removing wrapper plugins"
+ nspluginwrapper -v -a -r
+}
+
+pkg_postrm() {
+ if has_version "${CATEGORY}/${PN}"; then
+ einfo "Auto installing 32bit plugins"
+ nspluginwrapper -v -a -i
+ fi
+}