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

Collapse All | Expand All

(-)a/dev-java/openjdk/openjdk-11.0.3_p7.ebuild (-2 / +9 lines)
Lines 73-79 openjdk_check_requirements() { Link Here
73
73
74
pkg_pretend() {
74
pkg_pretend() {
75
	openjdk_check_requirements
75
	openjdk_check_requirements
76
	has ccache ${FEATURES} && die "FEATURES=ccache doesn't work with ${PN}"
77
}
76
}
78
77
79
pkg_setup() {
78
pkg_setup() {
Lines 126-132 src_configure() { Link Here
126
	# currently it still bundles lcms libpng giflib and libjpeg.
125
	# currently it still bundles lcms libpng giflib and libjpeg.
127
126
128
	local myconf=(
127
	local myconf=(
129
		--disable-ccache
130
		--enable-full-docs=no
128
		--enable-full-docs=no
131
		--with-boot-jdk="${JDK_HOME}"
129
		--with-boot-jdk="${JDK_HOME}"
132
		--with-extra-cflags="${CFLAGS}"
130
		--with-extra-cflags="${CFLAGS}"
Lines 153-162 src_configure() { Link Here
153
		myconf+=( --disable-precompiled-headers )
151
		myconf+=( --disable-precompiled-headers )
154
	fi
152
	fi
155
153
154
	if has ccache ${FEATURES}; then
155
		myconf+=( --enable-ccache )
156
		myconf+=( --with-ccache-dir=${CCACHE_DIR} )
157
	else
158
		export CCACHE_DISABLE=1
159
		myconf+=( --disable-ccache )
160
	fi
161
156
	(
162
	(
157
		unset _JAVA_OPTIONS JAVA JAVAC XARGS
163
		unset _JAVA_OPTIONS JAVA JAVAC XARGS
158
		CFLAGS= CXXFLAGS= LDFLAGS= \
164
		CFLAGS= CXXFLAGS= LDFLAGS= \
159
		CONFIG_SITE=/dev/null \
165
		CONFIG_SITE=/dev/null \
166
		PATH="${PATH/\/usr\/lib\/ccache\/bin\:/}" \
160
		econf "${myconf[@]}"
167
		econf "${myconf[@]}"
161
	)
168
	)
162
}
169
}

Return to bug 677876