Contents of /trunk/extras/nspluginwrapper/nspluginwrapper-1.2.2-r1.smage2
Parent Directory | Revision Log
Revision 2777 -
(show annotations)
(download)
Fri Jul 10 18:10:17 2009 UTC (15 years, 2 months ago) by niro
File size: 2362 byte(s)
Fri Jul 10 18:10:17 2009 UTC (15 years, 2 months ago) by niro
File size: 2362 byte(s)
auto added: ver bump to 1.2.2-r1
1 | # $Header: /magellan-cvs/smage/nspluginwrapper/nspluginwrapper-1.0.0-r1.smage2,v 1.1 2008/08/10 09:19:21 niro Exp $ |
2 | |
3 | PNAME="nspluginwrapper" |
4 | PVER="1.2.2" |
5 | PBUILD="r1" |
6 | |
7 | PCATEGORIE="net-www" |
8 | STATE="unstable" |
9 | |
10 | DESCRIPTION="nspluginwrapper is an Open Source compatibility plugin for Netscape 4 (NPAPI) plugins. " |
11 | HOMEPAGE="http://gwenole.beauchesne.info/projects/nspluginwrapper/" |
12 | |
13 | DEPEND=">= x11-libs/libXt-1 |
14 | >= x11-libs/gtk2+-2.16 |
15 | >= dev-util/linux32-1" |
16 | |
17 | SDEPEND=">= dev-util/pkgconfig-0.23" |
18 | |
19 | SRCFILE="${PNAME}-${PVER}.tar.bz2" |
20 | SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" |
21 | |
22 | sminclude mtools |
23 | |
24 | SRC_URI=( |
25 | http://gwenole.beauchesne.info/projects/${PNAME}/files/${SRCFILE} |
26 | mirror://${PNAME}/${SRCFILE} |
27 | mirror://${PNAME}/${PNAME}-0.9.91.5-magellan.patch |
28 | ) |
29 | |
30 | UP2DATE="updatecmd ${HOMEPAGE} | lasttarball" |
31 | |
32 | src_prepare() |
33 | { |
34 | munpack ${SRCFILE} || die |
35 | cd ${SRCDIR} |
36 | |
37 | # add support for magellan linux |
38 | mpatch ${PNAME}-0.9.91.5-magellan.patch || die |
39 | } |
40 | |
41 | src_compile() |
42 | { |
43 | cd ${SRCDIR} |
44 | |
45 | mconfigure \ |
46 | --with-biarch \ |
47 | --with-lib32=lib \ |
48 | --with-lib64=$(mlibdir) \ |
49 | --pkglibdir=/usr/$(mlibdir)/${PNAME} \ |
50 | || die |
51 | |
52 | mmake || die |
53 | } |
54 | |
55 | src_install() |
56 | { |
57 | local myarch |
58 | [[ ${ARCH} = i?86 ]] && myarch="i386" |
59 | [[ ${ARCH} = x86_64 ]] && myarch="${ARCH}" |
60 | |
61 | cd ${SRCDIR} |
62 | make DESTDIR=${BINDIR} DONT_STRIP=yes install || die |
63 | |
64 | minstalldir /usr/bin |
65 | mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npconfig /usr/bin/nspluginwrapper || die |
66 | |
67 | # setup the plugin |
68 | minstalldir /usr/$(mlibdir)/nsbrowser/plugins || die |
69 | minstalldir /opt/netscape/plugins || die |
70 | mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npwrapper.so /usr/$(mlibdir)/nsbrowser/plugins || die |
71 | mlink /usr/$(mlibdir)/nspluginwrapper/${myarch}/linux/npwrapper.so /opt/netscape/plugins || die |
72 | } |
73 | |
74 | postinstall() |
75 | { |
76 | echo "Auto installing 32bit plugins ..." |
77 | nspluginwrapper -v -a -i |
78 | echo |
79 | echo "Any 32bit plugins you currently have installed have now been" |
80 | echo "configured to work in a 64bit browser. Any plugins you install in" |
81 | echo "the future will first need to be setup with:" |
82 | echo " \"nspluginwrapper -i <path-to-32bit-plugin>\"" |
83 | echo "before they will function in a 64bit browser" |
84 | echo |
85 | } |
86 | |
87 | preremove() |
88 | { |
89 | echo "Removing wrapper plugins ..." |
90 | nspluginwrapper -v -a -r |
91 | } |
92 | |
93 | postremove() |
94 | { |
95 | if [[ -x /usr/bin/nspluginwrapper ]] |
96 | then |
97 | echo "Auto installing 32bit plugins ..." |
98 | nspluginwrapper -v -a -i |
99 | fi |
100 | } |
Properties
Name | Value |
---|---|
svn:keywords | Id |