summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgolanv <aaron@adelie.io>2022-04-28 09:57:42 -0500
committerFlorian Schmaus <flow@gentoo.org>2022-04-30 11:24:17 +0200
commitfb7b6a3eb8fc16963336515d2ddc69ed71fe3985 (patch)
tree800211a3f92251ddbe48329ae52808ae308f58d6 /dev-java
parentwww-client/vivaldi: Drop old 5.2.2623.33 (diff)
downloadgentoo-fb7b6a3eb8fc16963336515d2ddc69ed71fe3985.tar.gz
gentoo-fb7b6a3eb8fc16963336515d2ddc69ed71fe3985.tar.bz2
gentoo-fb7b6a3eb8fc16963336515d2ddc69ed71fe3985.zip
dev-java/leiningen: bump version to 2.9.8
Signed-off-by: Aaron Burnett <aaron@adelie.io> Closes: https://github.com/gentoo/gentoo/pull/25231 [flow: bump to EAPI 8, drop stable keywords] Signed-off-by: Florian Schmaus <flow@gentoo.org>
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/leiningen-bin/Manifest2
-rw-r--r--dev-java/leiningen-bin/leiningen-bin-2.9.8.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/dev-java/leiningen-bin/Manifest b/dev-java/leiningen-bin/Manifest
index cd1269617f4f..772ac28d46c4 100644
--- a/dev-java/leiningen-bin/Manifest
+++ b/dev-java/leiningen-bin/Manifest
@@ -1,2 +1,4 @@
DIST leiningen-2.9.1-standalone.jar 14621704 BLAKE2B 51d3aca27c56dcdf1560271509e6c4868e387255af5f4e75f42755243b14949ef994cbee81f796a5a533089433fff59e9aff65d7e4e93df02e86fccfd47cf7f9 SHA512 4364aa2a071117049f97f95e020f75bfd0875c88475591d4e04100ac1b228137360a8b24c09877cd3400b7854bf9392b4e5d07ed7f7972e10e4ef5396d0db574
DIST leiningen-2.9.1.sh 4511 BLAKE2B 66fd656c20ed9b109982840315951b062b1a3fbf0b2b76fc1b6ca612d4daa5d07480838f3f58ec1f1193ff29318323123b6f58bde390d4fb628566687ed39eab SHA512 044621254d31bee3bcdd3f6bd52e9c233a736e2e780edaa3af1d5a7a90424294efd25590c9d3a0606560b223b9e73c87c258fbbb626d2af1b39a400ba1aea86d
+DIST leiningen-2.9.8-standalone.jar 12834369 BLAKE2B 6c9bc9a2f990bb4959aa06f8f8b31c1084f0d2bad2e19c8343fb7e8a02acb6f6173737cbf36b028e113577ef26e380d7ace035316dee840c6da92512afa7ac0b SHA512 de4989bf31fe86bfb943d90b683dd17a7417c267e67ac8036967ed352e47a4361b8b6ec8378a1e6cf24fd8df51bcabb9578bc8f487d812c9fb5c2f5f476016cd
+DIST leiningen-2.9.8.sh 4555 BLAKE2B c876d19a4ba9a53d84c31874af442e57e6184ce1f7145512355a88b833d2d236bd73eef93f260d22b51e6200c5579c3721a8b6bcb16d516e503a98a2eaf26126 SHA512 58cba7d457c98546e530ad821273cb3f51445ed3191022d0963dd51683cb6b24d0f7d557da34313083b0df11a2c9885bf6d5bb073dea736731de95e8fbbca492
diff --git a/dev-java/leiningen-bin/leiningen-bin-2.9.8.ebuild b/dev-java/leiningen-bin/leiningen-bin-2.9.8.ebuild
new file mode 100644
index 000000000000..f0bd5ee2ac4a
--- /dev/null
+++ b/dev-java/leiningen-bin/leiningen-bin-2.9.8.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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.jar
+ https://raw.githubusercontent.com/technomancy/${MY_PN}/${PV}/bin/lein-pkg -> ${MY_PNV}.sh
+"
+
+LICENSE="EPL-1.0"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos"
+
+RDEPEND=">=virtual/jre-1.8"
+DEPEND=">=virtual/jdk-1.8"
+
+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=${EPREFIX}/${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"
+}