java-utils-2.eclass: use is not available in the global scope.
authorBenda Xu <heroxbd@gentoo.org>
Thu, 9 Feb 2017 11:20:51 +0000 (20:20 +0900)
committerBenda Xu <heroxbd@gentoo.org>
Thu, 9 Feb 2017 11:20:51 +0000 (20:20 +0900)
  Java ebuilds using EAPI<3 will not be correctly prefixified.
  We will deal with that by bumping EAPI per package.

eclass/java-utils-2.eclass

index c6132199f09827f4d38880e6a5bb848c3e7016d7..d2af9f292a37de32dc16f3462a3bb3b2cdc5cb09 100644 (file)
@@ -23,8 +23,8 @@ IUSE="elibc_FreeBSD"
 # Make sure we use java-config-2
 export WANT_JAVA_CONFIG="2"
 
-# Prefix variables is only available for EAPI>=3
-!use prefix && has "${EAPI:-0}" 0 1 2 && ED="${D}" EPREFIX= EROOT="${ROOT}"
+# Prefix variables are only available for EAPI>=3
+has "${EAPI:-0}" 0 1 2 && ED="${D}" EPREFIX= EROOT="${ROOT}"
 
 # @VARIABLE: JAVA_PKG_PORTAGE_DEP
 # @INTERNAL