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

Collapse All | Expand All

(-)/usr/portage/eclass/java-pkg-2.eclass (-21 / +5 lines)
Lines 24-31 Link Here
24
# the eclass can automatically add the needed dependencies for the java-pkg_do*
24
# the eclass can automatically add the needed dependencies for the java-pkg_do*
25
# functions.
25
# functions.
26
#
26
#
27
# Build Java packages to native libraries
27
# ------------------------------------------------------------------------------
28
# ------------------------------------------------------------------------------
28
IUSE="${JAVA_PKG_IUSE}"
29
IUSE="${JAVA_PKG_IUSE} gcj"
29
30
30
# ------------------------------------------------------------------------------
31
# ------------------------------------------------------------------------------
31
# @depend
32
# @depend
Lines 103-129 Link Here
103
	fi
104
	fi
104
}
105
}
105
106
106
107
# ------------------------------------------------------------------------------
107
java-pkg-2_pkg_preinst() {
108
pre_pkg_postinst() {
108
	if is-java-strict; then
109
	java-pkg_reg-cachejar_
109
		if has_version dev-java/java-dep-check; then
110
			[[ -e "${JAVA_PKG_ENV}" ]] || return
111
			local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}")
112
			if [[ ${output} && has_version <=dev-java/java-dep-check-0.2 ]]; then
113
				ewarn "Possibly unneeded dependencies found in package.env:"
114
				for dep in ${output}; do
115
					ewarn "\t${dep}"
116
				done
117
			fi
118
			if [[ ${output} && has_version >dev-java/java-dep-check-0.2 ]]; then
119
				ewarn "${output}"
120
			fi
121
		else
122
			eerror "Install dev-java/java-dep-check for dependency checking"
123
		fi
124
	fi
125
}
110
}
126
111
127
# ------------------------------------------------------------------------------
128
# @eclass-end
112
# @eclass-end
129
# ------------------------------------------------------------------------------
113
# ------------------------------------------------------------------------------

Return to bug 21477