summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Fredric <kentnl@gentoo.org>2016-10-08 04:41:42 +1300
committerKent Fredric <kentnl@gentoo.org>2016-10-08 04:42:11 +1300
commita65d270e47710b295e98d2f31a88a6816bf0c482 (patch)
treee76ed1b1ebf8c91e5291f5e02d24141d61df0701 /dev-java/leiningen-bin
parentnet-misc/sshrc: Added maintainer (diff)
downloadgentoo-a65d270e47710b295e98d2f31a88a6816bf0c482.tar.gz
gentoo-a65d270e47710b295e98d2f31a88a6816bf0c482.tar.bz2
gentoo-a65d270e47710b295e98d2f31a88a6816bf0c482.zip
dev-java/leiningen-bin: Bump to 2.7.1
Upstream: - Improved explanation in some errors. - Don't require nil for version in managed deps. - Fix a bug with snapshot dependencies for managed deps Package-Manager: portage-2.3.1
Diffstat (limited to 'dev-java/leiningen-bin')
-rw-r--r--dev-java/leiningen-bin/Manifest2
-rw-r--r--dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild63
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-java/leiningen-bin/Manifest b/dev-java/leiningen-bin/Manifest
index 088cb5cfdb32..7cee22413daf 100644
--- a/dev-java/leiningen-bin/Manifest
+++ b/dev-java/leiningen-bin/Manifest
@@ -1,2 +1,4 @@
DIST leiningen-2.7.0-standalone.jar 15366772 SHA256 b0a53fd9fa73e9d87c04ef25ba1ca174b0c062b803108648d7157176ccde7435 SHA512 d42288c696d5b4d86c41a0ca9b8e748cdb9200c3adc23161b9b97b8c2f3da9c5bd811e2ddae265bf11d323b1449291e9914bf1e222aaf403e73ceef4084ed082 WHIRLPOOL d37e5a17680f08f7fae63051b6be7f8d12ee89d42bab1a6cafde6a4579b6d0ea4a772393031e286a57fc5b5d534674b0a270a32b39e9767a4dece70986bc94a4
DIST leiningen-2.7.0.sh 4301 SHA256 3865ce138f0a5f175819d6929203bfbd84377d8d5b7720af59c8cfde2289a2b2 SHA512 241357de3f19dfe1c729c14d1540140fccdd6a6c7bae76d6ccfe7a28cdff95b01f52a671ccd2d6712e11ff33115c720906e34a5118ff6bb6d232520d77125f5d WHIRLPOOL 52fe0420a7f8da17a8e01504a515627b85383f6c28e31c9317d4cb51c80fb1236149d30f5b8b0dd73c10157a73e8877f3d7e235da1e95b3b78709c96016d2a8d
+DIST leiningen-2.7.1-standalone.jar 15370238 SHA256 2ddc7e89bbb45cf1ca3d666a10dce0d3f154b77ad201aa58f430e84e71587c47 SHA512 6f0ac01917b273c063dd16d8a5e98cba0265ba19766ce6a2c1e160367e3514e637c969f831384845e752cde015e1357eecac7141259e279584577f4f527bc08a WHIRLPOOL cdea21c8fef2ba1d7e4397d32ca1c4d5c7ffcf52ca088b8b1148c970c463ba219adbc11b208379659f3c255afbffe1edc7d82d38d67945fa85cdeb1713c3e3b0
+DIST leiningen-2.7.1.sh 4581 SHA256 c04efcae827ee0883bdf44abef87b5bfa7da6f4b9864b5395dc341d60985ba66 SHA512 88e52f843a9b3cc4ebe2d8ffef1bec5e52a9e1e492d69b75c1482f7a97f6bcb766360502a5f1270ced1f4c1419af8b0cccd79219dc333a7305d3e4b58082d1e6 WHIRLPOOL 577044d1cdc931a695677fdc748ecafba656fbc66d8137a32ccf8cbadfd7dc137e45c91efd953e4efe9d55fbdabfafabbbc5f14be09d5415971814f5257c7a73
diff --git a/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild b/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild
new file mode 100644
index 000000000000..dfaafd54bde1
--- /dev/null
+++ b/dev-java/leiningen-bin/leiningen-bin-2.7.1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="6"
+
+inherit java-pkg-2
+
+MY_PN="${PN%-bin}"
+MY_PNV="${MY_PN}-${PV}"
+
+DESCRIPTION="Automate Clojure projects without setting your hair on fire"
+HOMEPAGE="https://leiningen.org/"
+SRC_URI="
+ https://github.com/technomancy/${MY_PN}/releases/download/${PV}/${MY_PNV}-standalone.zip -> ${MY_PNV}-standalone.jar
+ https://raw.githubusercontent.com/technomancy/${MY_PN}/${PV}/bin/lein-pkg -> ${MY_PNV}.sh
+"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND=">=virtual/jdk-1.6:*"
+DEPEND=">=virtual/jdk-1.6:*"
+
+RESTRICT="test"
+
+src_unpack() {
+ mkdir -p "${S}" || die "Can't mkdir ${S}"
+ cd "${S}" || die "Can't enter ${S}"
+ for file in ${A}; do
+ einfo "Copying ${file}"
+ cp "${DISTDIR}/${file}" "${S}/" || die "Can't copy ${file}"
+ done
+}
+
+src_prepare() {
+ einfo "Copying leinrc"
+ cp "${FILESDIR}/leinrc" "${S}/" || die "Can't copy leinrc"
+ einfo "Patching leinrc"
+ sed -i "s^@@PN@@^${PN}^" "${S}/leinrc" || die "Can't patch leinrc"
+
+ einfo "Renaming lein-pkg"
+ # Rename generically to help user patching
+ mv "${S}/${MY_PNV}.sh" "${S}/lein" || die "Can't rename to lein"
+
+ einfo "Patching lein"
+ java-pkg_init_paths_
+ sed -i "s|^LEIN_JAR=.*$|LEIN_JAR=${JAVA_PKG_JARDEST}/${PN}.jar|" "${S}/lein" \
+ || die "Can't patch LEIN_JAR in lein"
+
+ default
+}
+
+src_compile() { :; }
+
+src_install() {
+ dobin "${S}/lein"
+ java-pkg_newjar "${MY_PNV}-standalone.jar"
+ insinto /etc
+ doins "${S}/leinrc"
+ fperms 0644 "/etc/leinrc"
+}