Gentoo Archives: gentoo-commits

From: "Patrick McLean (chutzpah)" <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-www/nspluginwrapper: ChangeLog nspluginwrapper-1.1.2.ebuild nspluginwrapper-0.9.91.5-r1.ebuild nspluginwrapper-1.1.0-r1.ebuild
Date: Wed, 15 Oct 2008 15:56:53
Message-Id: E1Kq8jw-00062U-Qx@stork.gentoo.org
1 chutzpah 08/10/15 15:56:48
2
3 Modified: ChangeLog
4 Added: nspluginwrapper-1.1.2.ebuild
5 Removed: nspluginwrapper-0.9.91.5-r1.ebuild
6 nspluginwrapper-1.1.0-r1.ebuild
7 Log:
8 Version bump, clean out versions 0.9.91.5 and 1.1.0.
9 (Portage version: 2.2_rc12/cvs/Linux 2.6.27-gentoo x86_64)
10
11 Revision Changes Path
12 1.21 net-www/nspluginwrapper/ChangeLog
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/nspluginwrapper/ChangeLog?rev=1.21&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/nspluginwrapper/ChangeLog?rev=1.21&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/nspluginwrapper/ChangeLog?r1=1.20&r2=1.21
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v
21 retrieving revision 1.20
22 retrieving revision 1.21
23 diff -u -r1.20 -r1.21
24 --- ChangeLog 2 Oct 2008 03:19:56 -0000 1.20
25 +++ ChangeLog 15 Oct 2008 15:56:48 -0000 1.21
26 @@ -1,6 +1,9 @@
27 # ChangeLog for net-www/nspluginwrapper
28 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v 1.20 2008/10/02 03:19:56 chutzpah Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/ChangeLog,v 1.21 2008/10/15 15:56:48 chutzpah Exp $
31 +
32 + 15 Oct 2008; Patrick McLean <chutzpah@g.o> ChangeLog:
33 + Version bump, clean out versions 0.9.91.5 and 1.1.0.
34
35 *nspluginwrapper-1.1.0-r1 (02 Oct 2008)
36
37
38
39
40 1.1 net-www/nspluginwrapper/nspluginwrapper-1.1.2.ebuild
41
42 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.1.2.ebuild?rev=1.1&view=markup
43 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.1.2.ebuild?rev=1.1&content-type=text/plain
44
45 Index: nspluginwrapper-1.1.2.ebuild
46 ===================================================================
47 # Copyright 1999-2008 Gentoo Foundation
48 # Distributed under the terms of the GNU General Public License v2
49 # $Header: /var/cvsroot/gentoo-x86/net-www/nspluginwrapper/nspluginwrapper-1.1.2.ebuild,v 1.1 2008/10/15 15:56:48 chutzpah Exp $
50
51 inherit eutils nsplugins multilib
52
53 DESCRIPTION="Netscape Plugin Wrapper - Load 32bit plugins on 64bit browser"
54 HOMEPAGE="http://www.gibix.net/projects/nspluginwrapper/"
55 SRC_URI="http://www.gibix.net/projects/${PN}/files/${P}.tar.bz2"
56
57 LICENSE="GPL-2"
58 SLOT="0"
59 KEYWORDS="~amd64"
60 IUSE=""
61
62 RDEPEND=">=x11-libs/gtk+-2
63 app-emulation/emul-linux-x86-xlibs
64 app-emulation/emul-linux-x86-gtklibs
65 || ( >=sys-apps/util-linux-2.13 sys-apps/setarch )"
66 DEPEND="${RDEPEND}
67 dev-util/pkgconfig"
68
69 src_unpack() {
70 unpack ${A}
71 cd "${S}"
72
73 # bug #238403
74 epatch "${FILESDIR}/${PN}-1.1.0-quiet-64bit-plugin-warnings.patch"
75 }
76
77 src_compile() {
78 econf --with-biarch \
79 --with-lib32=$(ABI=x86 get_libdir) \
80 --with-lib64=$(get_libdir) \
81 --pkglibdir=/usr/$(get_libdir)/${PN}
82
83 emake || die "emake failed"
84
85 }
86
87 src_install() {
88 emake -j1 DESTDIR="${D}" install || die "emake install failed"
89
90 inst_plugin "/usr/$(get_libdir)/${PN}/x86_64/linux/npwrapper.so"
91 dosym "/usr/$(get_libdir)/${PN}/x86_64/linux/npconfig" "/usr/bin/${PN}"
92
93 dodoc NEWS README TODO ChangeLog
94 }
95
96 pkg_postinst() {
97 einfo "Auto installing 32bit plugins..."
98 ${PN} -a -i
99 elog "Any 32bit plugins you currently have installed have now been"
100 elog "configured to work in a 64bit browser. Any plugins you install in"
101 elog "the future will first need to be setup with:"
102 elog " \"nspluginwrapper -i <path-to-32bit-plugin>\""
103 elog "before they will function in a 64bit browser"
104 elog
105 }
106
107 # this is terribly ugly, but without a way to query portage as to whether
108 # we are upgrading/reinstalling a package versus unmerging, I can't think of
109 # a better way
110
111 pkg_prerm() {
112 einfo "Removing wrapper plugins..."
113 ${PN} --auto --remove
114 }
115
116 pkg_postrm() {
117 if [[ -x /usr/bin/${PN} ]]; then
118 einfo "Auto installing 32bit plugins..."
119 ${PN} --auto --install
120 fi
121 }