/[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.32 Revision 1.33
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.32 2009/01/28 19:59:53 serkan Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.33 2009/02/19 05:10:37 serkan Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
101 else 101 else
102 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do." 102 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."
103 fi 103 fi
104} 104}
105 105
106 106# ------------------------------------------------------------------------------
107# @eclass-pkg_preinst
108#
109# wrapper for java-utils-2_pkg_preinst
110# ------------------------------------------------------------------------------
107java-pkg-2_pkg_preinst() { 111java-pkg-2_pkg_preinst() {
108 if is-java-strict; then 112 java-utils-2_pkg_preinst
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} 113}
126 114
127# ------------------------------------------------------------------------------ 115# ------------------------------------------------------------------------------
128# @eclass-end 116# @eclass-end
129# ------------------------------------------------------------------------------ 117# ------------------------------------------------------------------------------

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

  ViewVC Help
Powered by ViewVC 1.1.20