Lines 12-24
SRC_URI="http://www.gibix.net/projects/${PN}/files/${P}.tar.bz2"
Link Here
|
12 |
|
12 |
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
IUSE="" |
16 |
IUSE="native" |
17 |
|
17 |
|
18 |
RDEPEND=">=x11-libs/gtk+-2 |
18 |
RDEPEND=">=x11-libs/gtk+-2 |
19 |
net-misc/curl |
19 |
net-misc/curl |
20 |
app-emulation/emul-linux-x86-xlibs |
20 |
!native? ( app-emulation/emul-linux-x86-xlibs |
21 |
app-emulation/emul-linux-x86-gtklibs |
21 |
app-emulation/emul-linux-x86-gtklibs ) |
22 |
|| ( >=sys-apps/util-linux-2.13 sys-apps/setarch )" |
22 |
|| ( >=sys-apps/util-linux-2.13 sys-apps/setarch )" |
23 |
DEPEND="${RDEPEND} |
23 |
DEPEND="${RDEPEND} |
24 |
dev-util/pkgconfig" |
24 |
dev-util/pkgconfig" |
Lines 64-79
src_compile() {
Link Here
|
64 |
} |
64 |
} |
65 |
|
65 |
|
66 |
src_install() { |
66 |
src_install() { |
|
|
67 |
local ARCH=x86_64 |
67 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
68 |
emake -j1 DESTDIR="${D}" install || die "emake install failed" |
68 |
|
69 |
|
69 |
inst_plugin "/usr/$(get_libdir)/${PN}/x86_64/linux/npwrapper.so" |
70 |
use native && ARCH=i386 |
70 |
dosym "/usr/$(get_libdir)/${PN}/x86_64/linux/npconfig" "/usr/bin/${PN}" |
71 |
inst_plugin "/usr/$(get_libdir)/${PN}/${ARCH}/linux/npwrapper.so" |
|
|
72 |
dosym "/usr/$(get_libdir)/${PN}/${ARCH}/linux/npconfig" "/usr/bin/${PN}" |
71 |
|
73 |
|
72 |
dodoc NEWS README TODO ChangeLog |
74 |
dodoc NEWS README TODO ChangeLog |
73 |
} |
75 |
} |
74 |
|
76 |
|
75 |
pkg_postinst() { |
77 |
pkg_postinst() { |
76 |
autoinstall |
78 |
use native || autoinstall |
77 |
elog "Any 32bit plugins you currently have installed have now been" |
79 |
elog "Any 32bit plugins you currently have installed have now been" |
78 |
elog "configured to work in a 64bit browser. Any plugins you install in" |
80 |
elog "configured to work in a 64bit browser. Any plugins you install in" |
79 |
elog "the future will first need to be setup with:" |
81 |
elog "the future will first need to be setup with:" |
Lines 92-96
pkg_prerm() {
Link Here
|
92 |
} |
94 |
} |
93 |
|
95 |
|
94 |
pkg_postrm() { |
96 |
pkg_postrm() { |
95 |
autoinstall |
97 |
use native || autoinstall |
96 |
} |
98 |
} |