/[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.96 Revision 1.97
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.96 2007/11/25 07:51:41 caster Exp $ 9# $Header: /var/cvsroot/gentoo-x86/eclass/java-utils-2.eclass,v 1.97 2007/11/26 20:38:26 betelgeuse 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
2047# This shouldn't be used directly. Instead, java-pkg and java-pkg-opt will 2047# This shouldn't be used directly. Instead, java-pkg and java-pkg-opt will
2048# call it during each of the phases of the merge process. 2048# call it during each of the phases of the merge process.
2049# 2049#
2050# ----------------------------------------------------------------------------- 2050# -----------------------------------------------------------------------------
2051java-pkg_init() { 2051java-pkg_init() {
2052 debug-print-function ${FUNCNAME} $*
2052 unset JAVAC 2053 unset JAVAC
2053 unset JAVA_HOME 2054 unset JAVA_HOME
2054 2055
2055 # People do all kinds of weird things. 2056 # People do all kinds of weird things.
2056 # http://forums.gentoo.org/viewtopic-p-3943166.html 2057 # http://forums.gentoo.org/viewtopic-p-3943166.html
2064 ewarn "make.conf for example) to silence this warning or" 2065 ewarn "make.conf for example) to silence this warning or"
2065 ewarn "I_WANT_GLOBAL_JAVA_OPTIONS to not filter it." 2066 ewarn "I_WANT_GLOBAL_JAVA_OPTIONS to not filter it."
2066 fi 2067 fi
2067 2068
2068 if [[ -z ${accept} ]]; then 2069 if [[ -z ${accept} ]]; then
2069 unset _JAVA_OPTIONS 2070 export _JAVA_OPTIONS=
2070 # phase hooks make this run many times without this 2071 # phase hooks make this run many times without this
2071 I_WANT_GLOBAL_JAVA_OPTIONS="true" 2072 I_WANT_GLOBAL_JAVA_OPTIONS="true"
2072 fi 2073 fi
2073 2074
2074 if java-pkg_func-exists ant_src_unpack; then 2075 if java-pkg_func-exists ant_src_unpack; then
2081 2082
2082 # TODO we will probably want to set JAVAC and JAVACFLAGS 2083 # TODO we will probably want to set JAVAC and JAVACFLAGS
2083 2084
2084 # Do some QA checks 2085 # Do some QA checks
2085 java-pkg_check-jikes 2086 java-pkg_check-jikes
2087
2088 # Can't use unset here because Portage does not save the unset
2089 # see https://bugs.gentoo.org/show_bug.cgi?id=189417#c11
2086 2090
2087 # When users have crazy classpaths some packages can fail to compile. 2091 # When users have crazy classpaths some packages can fail to compile.
2088 # and everything should work with empty CLASSPATH. 2092 # and everything should work with empty CLASSPATH.
2089 # This also helps prevent unexpected dependencies on random things 2093 # This also helps prevent unexpected dependencies on random things
2090 # from the CLASSPATH. 2094 # from the CLASSPATH.
2091 unset CLASSPATH 2095 export CLASSPATH=
2092 2096
2093 # Unset external ANT_ stuff 2097 # Unset external ANT_ stuff
2094 unset ANT_TASKS 2098 export ANT_TASKS=
2095 unset ANT_OPTS 2099 export ANT_OPTS=
2096} 2100}
2097 2101
2098# ------------------------------------------------------------------------------ 2102# ------------------------------------------------------------------------------
2099# @function-internal java-pkg-init-compiler_ 2103# @function-internal java-pkg-init-compiler_
2100# 2104#

Legend:
Removed from v.1.96  
changed lines
  Added in v.1.97

  ViewVC Help
Powered by ViewVC 1.1.20