commit:     30df8e9215303e8bd6213e2005c6c9e15d7856d0
Author:     Yegor Timoshenko <yegortimoshenko <AT> gmail <DOT> com>
AuthorDate: Tue May  9 03:57:05 2017 +0000
Commit:     Kent Fredric <kentnl <AT> gentoo <DOT> org>
CommitDate: Wed May 10 11:45:40 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=30df8e92

dev-java/leiningen-bin: Fix prefix support and add ~x64-macos

~x64-macos tested by Yegor Timoshenko

Package-Manager: Portage-2.3.5, Repoman-2.3.2

 dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild 
b/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild
index 807741b3194..a6a5f01087f 100644
--- a/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild
+++ b/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="6"
@@ -17,7 +17,7 @@ SRC_URI="
 
 LICENSE="EPL-1.0"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~x86 ~x64-macos"
 
 RDEPEND=">=virtual/jdk-1.6:*"
 DEPEND=">=virtual/jdk-1.6:*"
@@ -45,7 +45,7 @@ src_prepare() {
 
        einfo "Patching lein"
        java-pkg_init_paths_
-       sed -i "s|^LEIN_JAR=.*$|LEIN_JAR=${JAVA_PKG_JARDEST}/${PN}.jar|" 
"${S}/lein" \
+       sed -i 
"s|^LEIN_JAR=.*$|LEIN_JAR=${EPREFIX}/${JAVA_PKG_JARDEST#/}/${PN}.jar|" 
"${S}/lein" \
                || die "Can't patch LEIN_JAR in lein"
 
        default

Reply via email to