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

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

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

Revision 1.121 Revision 1.122
4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org> 4# Copyright (c) 2004, Karl Trygve Kalleberg <karltk@gentoo.org>
5# Copyright (c) 2004-2005, Gentoo Foundation 5# Copyright (c) 2004-2005, Gentoo Foundation
6# 6#
7# Licensed under the GNU General Public License, v2 7# Licensed under the GNU General Public License, v2
8# 8#
9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.121 2009/02/11 16:13:38 betelgeuse Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.122 2009/02/19 05:10:37 serkan Exp $
10 10
11# ----------------------------------------------------------------------------- 11# -----------------------------------------------------------------------------
12# @eclass-begin 12# @eclass-begin
13# @eclass-shortdesc Java Utility eclass 13# @eclass-shortdesc Java Utility eclass
14# @eclass-maintainer java@gentoo.org 14# @eclass-maintainer java@gentoo.org
1820 fi 1820 fi
1821 touch "${T}/java-utils-2_src_prepare-run" 1821 touch "${T}/java-utils-2_src_prepare-run"
1822} 1822}
1823 1823
1824# ------------------------------------------------------------------------------ 1824# ------------------------------------------------------------------------------
1825# @eclass-pkg_preinst
1826#
1827# pkg_preinst Searches for missing and unneeded dependencies
1828# Don't call directly, but via java-pkg-2_pkg_preinst!
1829# ------------------------------------------------------------------------------
1830
1831java-utils-2_pkg_preinst() {
1832 if is-java-strict; then
1833 if has_version dev-java/java-dep-check; then
1834 [[ -e "${JAVA_PKG_ENV}" ]] || return
1835 local output=$(GENTOO_VM= java-dep-check --image "${D}" "${JAVA_PKG_ENV}")
1836 if [[ ${output} && has_version <=dev-java/java-dep-check-0.2 ]]; then
1837 ewarn "Possibly unneeded dependencies found in package.env:"
1838 for dep in ${output}; do
1839 ewarn "\t${dep}"
1840 done
1841 fi
1842 if [[ ${output} && has_version >dev-java/java-dep-check-0.2 ]]; then
1843 ewarn "${output}"
1844 fi
1845 else
1846 eerror "Install dev-java/java-dep-check for dependency checking"
1847 fi
1848 fi
1849}
1850
1851# ------------------------------------------------------------------------------
1825# @section-begin build 1852# @section-begin build
1826# @section-summary Build functions 1853# @section-summary Build functions
1827# 1854#
1828# These are some functions for building a package. In particular, it consists of 1855# These are some functions for building a package. In particular, it consists of
1829# wrappers for javac and ant. 1856# wrappers for javac and ant.

Legend:
Removed from v.1.121  
changed lines
  Added in v.1.122

  ViewVC Help
Powered by ViewVC 1.1.20