Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 256259 | Differences between
and this patch

Collapse All | Expand All

(-)/home/pclouds/t/gentoo-x86/www-plugins/nspluginwrapper/nspluginwrapper-1.2.2-r1.ebuild (-13 / +16 lines)
Lines 12-24 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=""
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
	amd64? ( 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 63-82 Link Here
63
src_install() {
63
src_install() {
64
	emake -j1 DESTDIR="${D}" install || die "emake install failed"
64
	emake -j1 DESTDIR="${D}" install || die "emake install failed"
65
65
66
	inst_plugin "/usr/$(get_libdir)/${PN}/x86_64/linux/npwrapper.so"
66
	local ARCH=i386
67
	dosym "/usr/$(get_libdir)/${PN}/x86_64/linux/npconfig" "/usr/bin/${PN}"
67
	use amd64 && ARCH=x86_64
68
	inst_plugin "/usr/$(get_libdir)/${PN}/${ARCH}/linux/npwrapper.so"
69
	dosym "/usr/$(get_libdir)/${PN}/${ARCH}/linux/npconfig" "/usr/bin/${PN}"
68
70
69
	dodoc NEWS README TODO ChangeLog
71
	dodoc NEWS README TODO ChangeLog
70
}
72
}
71
73
72
pkg_postinst() {
74
pkg_postinst() {
73
	autoinstall
75
	if use amd64; then
74
	elog "Any 32bit plugins you currently have installed have now been"
76
		autoinstall
75
	elog "configured to work in a 64bit browser. Any plugins you install in"
77
		elog "Any 32bit plugins you currently have installed have now been"
76
	elog "the future will first need to be setup with:"
78
		elog "configured to work in a 64bit browser. Any plugins you install in"
77
	elog "  \"nspluginwrapper -i <path-to-32bit-plugin>\""
79
		elog "the future will first need to be setup with:"
78
	elog "before they will function in a 64bit browser"
80
		elog "  \"nspluginwrapper -i <path-to-32bit-plugin>\""
79
	elog
81
		elog "before they will function in a 64bit browser"
82
	fi
80
}
83
}
81
84
82
# this is terribly ugly, but without a way to query portage as to whether
85
# this is terribly ugly, but without a way to query portage as to whether
Lines 89-93 Link Here
89
}
92
}
90
93
91
pkg_postrm() {
94
pkg_postrm() {
92
	autoinstall
95
	use amd64 && autoinstall
93
}
96
}

Return to bug 256259