diff options
author | Patrick McLean <chutzpah@gentoo.org> | 2006-10-20 01:20:16 +0000 |
---|---|---|
committer | Patrick McLean <chutzpah@gentoo.org> | 2006-10-20 01:20:16 +0000 |
commit | 49919d565f68153cf7d353d0e8f5f451679a20a0 (patch) | |
tree | 90f6e9d04d866e1c74cce673d13210718fc65341 /net-www/nspluginwrapper | |
parent | Remove gnuconfig_update (diff) | |
download | historical-49919d565f68153cf7d353d0e8f5f451679a20a0.tar.gz historical-49919d565f68153cf7d353d0e8f5f451679a20a0.tar.bz2 historical-49919d565f68153cf7d353d0e8f5f451679a20a0.zip |
New package, closes bug #138454
Package-Manager: portage-2.1.2_pre3-r4
Diffstat (limited to 'net-www/nspluginwrapper')
-rw-r--r-- | net-www/nspluginwrapper/ChangeLog | 14 | ||||
-rw-r--r-- | net-www/nspluginwrapper/Manifest | 20 | ||||
-rw-r--r-- | net-www/nspluginwrapper/files/digest-nspluginwrapper-0.9.90.3 | 3 | ||||
-rw-r--r-- | net-www/nspluginwrapper/files/nspluginwrapper-0.9.90.3-gentoo.patch | 50 | ||||
-rw-r--r-- | net-www/nspluginwrapper/metadata.xml | 10 | ||||
-rw-r--r-- | net-www/nspluginwrapper/nspluginwrapper-0.9.90.3.ebuild | 93 |
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..6217f97c6993 --- /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 2508 RMD160 445cd82fef85313f801f54ae70e0e0c732207f65 SHA1 6974c787c17789c851a5ef86382eb007059125db SHA256 c1142e08b733dd9496b07831349f694e859dc8a4f8193efb683a0afcf41d04bb +MD5 f026b1090756c42342c6cf1936c2f1ca nspluginwrapper-0.9.90.3.ebuild 2508 +RMD160 445cd82fef85313f801f54ae70e0e0c732207f65 nspluginwrapper-0.9.90.3.ebuild 2508 +SHA256 c1142e08b733dd9496b07831349f694e859dc8a4f8193efb683a0afcf41d04bb nspluginwrapper-0.9.90.3.ebuild 2508 +MISC ChangeLog 621 RMD160 190eccd10c19414e72e6fe465bd840b9000773a9 SHA1 85f0ded4de90d9c89b643c635e94267f6aebabe5 SHA256 93cdc1f3ffd8f5b564da2cfc21ee58ccfe48c6a264fdd4133c30c4a9fb434cbe +MD5 60287bb461a0046c42c82b6597cbeb85 ChangeLog 621 +RMD160 190eccd10c19414e72e6fe465bd840b9000773a9 ChangeLog 621 +SHA256 93cdc1f3ffd8f5b564da2cfc21ee58ccfe48c6a264fdd4133c30c4a9fb434cbe ChangeLog 621 +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 +} |