diff options
author | Serkan Kaba <serkan@gentoo.org> | 2009-02-19 05:10:37 +0000 |
---|---|---|
committer | Serkan Kaba <serkan@gentoo.org> | 2009-02-19 05:10:37 +0000 |
commit | 03278f8734be17cc901c9ef46664dda1e290b0cd (patch) | |
tree | f2cb4d0ee48210d2b040a6ef92df805964796963 /eclass/java-pkg-2.eclass | |
parent | version bump - ebuild submitted by Victor Ostorga via bug #259549 (diff) | |
download | historical-03278f8734be17cc901c9ef46664dda1e290b0cd.tar.gz historical-03278f8734be17cc901c9ef46664dda1e290b0cd.tar.bz2 historical-03278f8734be17cc901c9ef46664dda1e290b0cd.zip |
Move pkg_preinst to java-utils-2 and add it to java-pkg-opt-2.
Diffstat (limited to 'eclass/java-pkg-2.eclass')
-rw-r--r-- | eclass/java-pkg-2.eclass | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/eclass/java-pkg-2.eclass b/eclass/java-pkg-2.eclass index 8a49519a3ef5..45bbeedf21f0 100644 --- a/eclass/java-pkg-2.eclass +++ b/eclass/java-pkg-2.eclass @@ -5,7 +5,7 @@ # # Licensed under the GNU General Public License, v2 # -# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.32 2009/01/28 19:59:53 serkan Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.33 2009/02/19 05:10:37 serkan Exp $ inherit java-utils-2 @@ -103,25 +103,13 @@ java-pkg-2_src_compile() { fi } - +# ------------------------------------------------------------------------------ +# @eclass-pkg_preinst +# +# wrapper for java-utils-2_pkg_preinst +# ------------------------------------------------------------------------------ java-pkg-2_pkg_preinst() { - if is-java-strict; then - if has_version dev-java/java-dep-check; then - [[ -e "${JAVA_PKG_ENV}" ]] || return - local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}") - if [[ ${output} && has_version <=dev-java/java-dep-check-0.2 ]]; then - ewarn "Possibly unneeded dependencies found in package.env:" - for dep in ${output}; do - ewarn "\t${dep}" - done - fi - if [[ ${output} && has_version >dev-java/java-dep-check-0.2 ]]; then - ewarn "${output}" - fi - else - eerror "Install dev-java/java-dep-check for dependency checking" - fi - fi + java-utils-2_pkg_preinst } # ------------------------------------------------------------------------------ |