/[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.10 Revision 1.13
1051 return 1 1051 return 1
1052 fi 1052 fi
1053 fi 1053 fi
1054} 1054}
1055 1055
1056java-pkg_set-current-vm() {
1057 export GENTOO_VM=${1}
1058}
1059
1060java-pkg_get-current-vm() {
1061 echo ${GENTOO_VM}
1062}
1063
1064java-pkg_current-vm-matches() {
1065 hasq java-pkg_get-currenv-vm ${@}
1066 return $?
1067}
1068
1056# ------------------------------------------------------------------------------ 1069# ------------------------------------------------------------------------------
1057# @ebuild-function java-pkg_get-source 1070# @ebuild-function java-pkg_get-source
1058# 1071#
1059# Determines what source version should be used, for passing to -source. 1072# Determines what source version should be used, for passing to -source.
1060# Unless you want to break things you probably shouldn't set _WANT_SOURCE 1073# Unless you want to break things you probably shouldn't set _WANT_SOURCE
1180 ebeep 5 1193 ebeep 5
1181 die "No GCJ support found!" 1194 die "No GCJ support found!"
1182 fi 1195 fi
1183} 1196}
1184 1197
1198java-pkg_ensure-test() {
1199 if hasq test ${FEATURES} && ! hasq -test ${FEATURES} && ! use test; then
1200 eerror "You specified FEATURES=test, but USE=test is needed"
1201 eerror "to pull in the additional dependencies for testing"
1202 die "Need USE=test enabled"
1203 fi
1204}
1205
1185# ------------------------------------------------------------------------------ 1206# ------------------------------------------------------------------------------
1186# @section-end helper 1207# @section-end helper
1187# ------------------------------------------------------------------------------ 1208# ------------------------------------------------------------------------------
1188 1209
1189# ------------------------------------------------------------------------------ 1210# ------------------------------------------------------------------------------
1201# compiler. 1222# compiler.
1202# 1223#
1203# ------------------------------------------------------------------------------ 1224# ------------------------------------------------------------------------------
1204eant() { 1225eant() {
1205 debug-print-function ${FUNCNAME} $* 1226 debug-print-function ${FUNCNAME} $*
1227
1228 # FIXME get this working
1229# if is-java-strict && [[ ! ${DEPEND} =~ "dev-java/ant" ]]; then
1230# java-pkg_announce-qa-violation \
1231# "Using eant, but not depending on dev-java/ant or dev-java/ant-core"
1232# fi
1206 1233
1207 local antflags 1234 local antflags
1208 java-pkg_init-compiler_ 1235 java-pkg_init-compiler_
1209 local compiler="${GENTOO_COMPILER}" 1236 local compiler="${GENTOO_COMPILER}"
1210 1237
1832 let "JAVA_PKG_QA_VIOLATIONS+=1" 1859 let "JAVA_PKG_QA_VIOLATIONS+=1"
1833 export JAVA_PKG_QA_VIOLATIONS 1860 export JAVA_PKG_QA_VIOLATIONS
1834} 1861}
1835 1862
1836is-java-strict() { 1863is-java-strict() {
1837 hasq java-strict ${FEATURES}; 1864 hasq java-strict ${FEATURES} && ! hasq -java-strict ${FEATURES}
1838 return $? 1865 return $?
1839} 1866}
1840 1867
1841# ------------------------------------------------------------------------------ 1868# ------------------------------------------------------------------------------
1842# @eclass-end 1869# @eclass-end

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20