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

Collapse All | Expand All

(-)a/dev-java/oracle-jre-bin/oracle-jre-bin-1.8.0.152.ebuild (-25 / +9 lines)
Lines 7-13 inherit eutils java-vm-2 prefix versionator Link Here
7
7
8
# This URIs need updating when bumping!
8
# This URIs need updating when bumping!
9
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
9
JRE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jre8-downloads-2133155.html"
10
JCE_URI="http://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html"
11
10
12
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
11
if [[ "$(get_version_component_range 4)" == 0 ]] ; then
13
	S_PV="$(get_version_component_range 1-3)"
12
	S_PV="$(get_version_component_range 1-3)"
Lines 21-35 MY_PV="$(get_version_component_range 2)${MY_PV_EXT}" Link Here
21
AT_amd64="jre-${MY_PV}-linux-x64.tar.gz"
20
AT_amd64="jre-${MY_PV}-linux-x64.tar.gz"
22
AT_x86="jre-${MY_PV}-linux-i586.tar.gz"
21
AT_x86="jre-${MY_PV}-linux-i586.tar.gz"
23
22
24
JCE_DIR="UnlimitedJCEPolicyJDK8"
25
JCE_FILE="jce_policy-8.zip"
26
27
DESCRIPTION="Oracle's Java SE Runtime Environment"
23
DESCRIPTION="Oracle's Java SE Runtime Environment"
28
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
24
HOMEPAGE="http://www.oracle.com/technetwork/java/javase/"
29
SRC_URI="
25
SRC_URI="
30
	amd64? ( ${AT_amd64} )
26
	amd64? ( ${AT_amd64} )
31
	x86? ( ${AT_x86} )
27
	x86? ( ${AT_x86} )"
32
	jce? ( ${JCE_FILE} )"
33
28
34
LICENSE="Oracle-BCLA-JavaSE"
29
LICENSE="Oracle-BCLA-JavaSE"
35
SLOT="1.8"
30
SLOT="1.8"
Lines 78-85 RDEPEND="!x64-macos? ( Link Here
78
	!prefix? ( sys-libs/glibc:* )
73
	!prefix? ( sys-libs/glibc:* )
79
	selinux? ( sec-policy/selinux-java )"
74
	selinux? ( sec-policy/selinux-java )"
80
75
81
DEPEND="app-arch/zip
76
DEPEND="app-arch/zip"
82
	jce? ( app-arch/unzip )"
83
77
84
S="${WORKDIR}/jre"
78
S="${WORKDIR}/jre"
85
79
Lines 91-102 pkg_nofetch() { Link Here
91
	einfo "'${JRE_URI}'"
85
	einfo "'${JRE_URI}'"
92
	einfo "and move it to '${DISTDIR}'"
86
	einfo "and move it to '${DISTDIR}'"
93
87
94
	if use jce; then
95
		einfo "Also download '${JCE_FILE}' from:"
96
		einfo "'${JCE_URI}'"
97
		einfo "and move it to '${DISTDIR}'"
98
	fi
99
100
	einfo
88
	einfo
101
	einfo "If the above mentioned urls do not point to the correct version anymore,"
89
	einfo "If the above mentioned urls do not point to the correct version anymore,"
102
	einfo "please download the files from Oracle's java download archive:"
90
	einfo "please download the files from Oracle's java download archive:"
Lines 116-125 src_unpack() { Link Here
116
}
104
}
117
105
118
src_prepare() {
106
src_prepare() {
119
	if use jce ; then
120
		mv "${WORKDIR}"/${JCE_DIR} lib/security/ || die
121
	fi
122
123
	default
107
	default
124
108
125
	# Remove the hook that calls Oracle's evil usage tracker. Not just
109
	# Remove the hook that calls Oracle's evil usage tracker. Not just
Lines 171-184 src_install() { Link Here
171
	cp -pPR	bin lib man "${ddest}" || die
155
	cp -pPR	bin lib man "${ddest}" || die
172
156
173
	if use jce ; then
157
	if use jce ; then
174
		dodir ${dest}/lib/security/strong-jce
158
		dosym "${dest}"/lib/security/unlimited/US_export_policy.jar \
175
		mv "${ddest}"/lib/security/US_export_policy.jar \
159
			"${dest}"/lib/security/US_export_policy.jar
176
			"${ddest}"/lib/security/strong-jce || die
160
		dosym "${dest}"/lib/security/unlimited/local_policy.jar \
177
		mv "${ddest}"/lib/security/local_policy.jar \
161
			"${dest}"/lib/security/local_policy.jar
178
			"${ddest}"/lib/security/strong-jce || die
162
	else
179
		dosym "${dest}"/lib/security/${JCE_DIR}/US_export_policy.jar \
163
		dosym "${dest}"/lib/security/limited/US_export_policy.jar \
180
			"${dest}"/lib/security/US_export_policy.jar
164
			"${dest}"/lib/security/US_export_policy.jar
181
		dosym "${dest}"/lib/security/${JCE_DIR}/local_policy.jar \
165
		dosym "${dest}"/lib/security/limited/local_policy.jar \
182
			"${dest}"/lib/security/local_policy.jar
166
			"${dest}"/lib/security/local_policy.jar
183
	fi
167
	fi
184
168

Return to bug 635070