/[gentoo-x86]/eclass/java-pkg-2.eclass
Gentoo

Diff of /eclass/java-pkg-2.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.31 Revision 1.32
3# Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org> 3# Copyright (c) 2004-2005, Thomas Matthijs <axxo@gentoo.org>
4# Copyright (c) 2004-2005, Gentoo Foundation 4# Copyright (c) 2004-2005, Gentoo Foundation
5# 5#
6# Licensed under the GNU General Public License, v2 6# Licensed under the GNU General Public License, v2
7# 7#
8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.31 2008/12/22 22:09:38 serkan Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.32 2009/01/28 19:59:53 serkan Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
107java-pkg-2_pkg_preinst() { 107java-pkg-2_pkg_preinst() {
108 if is-java-strict; then 108 if is-java-strict; then
109 if has_version dev-java/java-dep-check; then 109 if has_version dev-java/java-dep-check; then
110 [[ -e "${JAVA_PKG_ENV}" ]] || return 110 [[ -e "${JAVA_PKG_ENV}" ]] || return
111 local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}") 111 local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}")
112 if [[ ${output} ]]; then 112 if [[ ${output} && has_version <=dev-java/java-dep-check-0.2 ]]; then
113 ewarn "Possibly unneeded dependencies found in package.env:" 113 ewarn "Possibly unneeded dependencies found in package.env:"
114 for dep in ${output}; do 114 for dep in ${output}; do
115 ewarn "\t${dep}" 115 ewarn "\t${dep}"
116 done 116 done
117 fi
118 if [[ ${output} && has_version >dev-java/java-dep-check-0.2 ]]; then
119 ewarn "${output}"
117 fi 120 fi
118 else 121 else
119 eerror "Install dev-java/java-dep-check for dependency checking" 122 eerror "Install dev-java/java-dep-check for dependency checking"
120 fi 123 fi
121 fi 124 fi

Legend:
Removed from v.1.31  
changed lines
  Added in v.1.32

  ViewVC Help
Powered by ViewVC 1.1.20