Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 149500
Collapse All | Expand All

(-)/usr/portage/dev-java/sun-jre-bin/sun-jre-bin-1.5.0.08-r1.ebuild (-13 / +15 lines)
Lines 81-99 Link Here
81
	dohtml Welcome.html
81
	dohtml Welcome.html
82
	dodir /opt/${P}/share/
82
	dodir /opt/${P}/share/
83
83
84
	if use nsplugin; then
85
		local plugin_dir="ns7-gcc29"
86
		if has_version '>=sys-devel/gcc-3' ; then
87
			plugin_dir="ns7"
88
		fi
89
90
		if use x86 ; then
91
			install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
92
		else
93
			eerror "No plugin available for amd64 arch"
94
		fi
95
	fi
96
97
	# TODO Don't think we still needs these -nichoj
84
	# TODO Don't think we still needs these -nichoj
98
	# create dir for system preferences
85
	# create dir for system preferences
99
	#dodir /opt/${P}/jre/.systemPrefs
86
	#dodir /opt/${P}/jre/.systemPrefs
Lines 117-122 Link Here
117
	set_java_env
104
	set_java_env
118
}
105
}
119
106
107
pkg_preinst() {
108
	if use nsplugin; then
109
		local plugin_dir="ns7-gcc29"
110
		if has_version '>=sys-devel/gcc-3' ; then
111
			plugin_dir="ns7"
112
		fi
113
114
		if use x86 ; then
115
			install_mozilla_plugin /opt/${P}/plugin/i386/$plugin_dir/libjavaplugin_oji.so
116
		else
117
			eerror "No plugin available for amd64 arch"
118
		fi
119
	fi
120
}
121
120
pkg_postinst() {
122
pkg_postinst() {
121
	# Set as default VM if none exists
123
	# Set as default VM if none exists
122
	java-vm-2_pkg_postinst
124
	java-vm-2_pkg_postinst

Return to bug 149500