commit:     da448646308533f9e2b98c3bc38072d5246d6f28
Author:     Benda Xu <heroxbd <AT> gentoo <DOT> org>
AuthorDate: Fri Sep  9 01:50:12 2016 +0000
Commit:     Benda XU <heroxbd <AT> gentoo <DOT> org>
CommitDate: Fri Sep  9 01:51:33 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da448646

java-ant-2.eclass: Prefix support.

Bug: 591160

 eclass/java-ant-2.eclass | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/eclass/java-ant-2.eclass b/eclass/java-ant-2.eclass
index 1f5734f..4cbce40 100644
--- a/eclass/java-ant-2.eclass
+++ b/eclass/java-ant-2.eclass
@@ -245,12 +245,12 @@ java-ant_bsfix_files() {
                done
 
                # for javadoc target and all in one pass, we need the new 
rewriter.
-               local rewriter3="/usr/share/javatoolkit/xml-rewrite-3.py"
+               local 
rewriter3="${EPREFIX}/usr/share/javatoolkit/xml-rewrite-3.py"
                if [[ ! -f ${rewriter3} ]]; then
-                       
rewriter3="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-3.py"
+                       
rewriter3="${EPREFIX}/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-3.py"
                fi
 
-               local 
rewriter4="/usr/$(get_libdir)/javatoolkit/bin/build-xml-rewrite"
+               local 
rewriter4="${EPREFIX}/usr/$(get_libdir)/javatoolkit/bin/build-xml-rewrite"
 
                if [[ -x ${rewriter4} && ${JAVA_ANT_ENCODING} ]]; then
                        [[ ${JAVA_ANT_REWRITE_CLASSPATH} ]] && local gcp="-g"
@@ -458,8 +458,8 @@ java-ant_ignore-system-classes() {
 # @DESCRIPTION:
 # Run the right xml-rewrite binary with the given arguments
 java-ant_xml-rewrite() {
-       local gen2="/usr/bin/xml-rewrite-2.py"
-       local gen2_1="/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-2.py"
+       local gen2="${EPREFIX}/usr/bin/xml-rewrite-2.py"
+       local 
gen2_1="${EPREFIX}/usr/$(get_libdir)/javatoolkit/bin/xml-rewrite-2.py"
        # gen1 is deprecated
        if [[ -x "${gen2}" ]]; then
                ${gen2} "${@}" || die "${gen2} failed"

Reply via email to