/[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.28 Revision 1.29
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.28 2008/07/07 16:54:56 betelgeuse Exp $ 8# $Header: /var/cvsroot/gentoo-x86/eclass/java-pkg-2.eclass,v 1.29 2008/07/18 22:53:20 betelgeuse Exp $
9 9
10inherit java-utils-2 10inherit java-utils-2
11 11
12# ----------------------------------------------------------------------------- 12# -----------------------------------------------------------------------------
13# @eclass-begin 13# @eclass-begin
47if [[ ${CATEGORY} = dev-java && ${PN} = commons-* ]]; then 47if [[ ${CATEGORY} = dev-java && ${PN} = commons-* ]]; then
48 HOMEPAGE="http://commons.apache.org/${PN#commons-}/" 48 HOMEPAGE="http://commons.apache.org/${PN#commons-}/"
49 SRC_URI="mirror://apache/${PN/-///}/source/${P}-src.tar.gz" 49 SRC_URI="mirror://apache/${PN/-///}/source/${P}-src.tar.gz"
50fi 50fi
51 51
52EXPORT_FUNCTIONS pkg_setup src_compile 52EXPORT_FUNCTIONS pkg_setup src_compile pkg_preinst
53 53
54# ------------------------------------------------------------------------------ 54# ------------------------------------------------------------------------------
55# @eclass-pkg_setup 55# @eclass-pkg_setup
56# 56#
57# pkg_setup initializes the Java environment 57# pkg_setup initializes the Java environment
91 else 91 else
92 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do." 92 echo "${FUNCNAME}: ${EANT_BUILD_XML} not found so nothing to do."
93 fi 93 fi
94} 94}
95 95
96
97java-pkg-2_pkg_preinst() {
98 if is-java-strict; then
99 if has_version dev-java/java-dep-check; then
100 local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}")
101 if [[ ${output} ]]; then
102 ewarn "Possibly unneeded dependencies found in package.env:"
103 for dep in ${output}; do
104 ewarn "\t${dep}"
105 done
106 fi
107 else
108 eerror "Install dev-java/java-dep-check for dependency checking"
109 fi
110 fi
111}
112
96# ------------------------------------------------------------------------------ 113# ------------------------------------------------------------------------------
97# @eclass-end 114# @eclass-end
98# ------------------------------------------------------------------------------ 115# ------------------------------------------------------------------------------

Legend:
Removed from v.1.28  
changed lines
  Added in v.1.29

  ViewVC Help
Powered by ViewVC 1.1.20