diff options
author | Kent Fredric <kentnl@gentoo.org> | 2016-09-02 19:26:54 +1200 |
---|---|---|
committer | Kent Fredric <kentnl@gentoo.org> | 2016-09-02 19:28:02 +1200 |
commit | 61b0c7943bd3b02273480964dc8b856df3dd1023 (patch) | |
tree | 1a0c33619191652f03ac4cb5c7ebca50c3fe396c /dev-java/leiningen-bin | |
parent | dev-python/python-rethinkdb: new package (diff) | |
download | gentoo-61b0c7943bd3b02273480964dc8b856df3dd1023.tar.gz gentoo-61b0c7943bd3b02273480964dc8b856df3dd1023.tar.bz2 gentoo-61b0c7943bd3b02273480964dc8b856df3dd1023.zip |
dev-java/leiningen-bin: Added to tree at v=2.7.0
Initial binary-only version, because this packages workflow
requires itself for building, and does a lot of auto-magic
Bug: https://bugs.gentoo.org/485270
Package-Manager: portage-2.3.0
Diffstat (limited to 'dev-java/leiningen-bin')
-rw-r--r-- | dev-java/leiningen-bin/Manifest | 2 | ||||
-rw-r--r-- | dev-java/leiningen-bin/files/leinrc | 1 | ||||
-rw-r--r-- | dev-java/leiningen-bin/leiningen-bin-2.7.0.ebuild | 63 | ||||
-rw-r--r-- | dev-java/leiningen-bin/metadata.xml | 11 |
4 files changed, 77 insertions, 0 deletions
diff --git a/dev-java/leiningen-bin/Manifest b/dev-java/leiningen-bin/Manifest new file mode 100644 index 000000000000..088cb5cfdb32 --- /dev/null +++ b/dev-java/leiningen-bin/Manifest @@ -0,0 +1,2 @@ +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 diff --git a/dev-java/leiningen-bin/files/leinrc b/dev-java/leiningen-bin/files/leinrc new file mode 100644 index 000000000000..db1efad3c043 --- /dev/null +++ b/dev-java/leiningen-bin/files/leinrc @@ -0,0 +1 @@ +source /usr/share/@@PN@@/package.env diff --git a/dev-java/leiningen-bin/leiningen-bin-2.7.0.ebuild b/dev-java/leiningen-bin/leiningen-bin-2.7.0.ebuild new file mode 100644 index 000000000000..dfaafd54bde1 --- /dev/null +++ b/dev-java/leiningen-bin/leiningen-bin-2.7.0.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" +} diff --git a/dev-java/leiningen-bin/metadata.xml b/dev-java/leiningen-bin/metadata.xml new file mode 100644 index 000000000000..c22b260f2893 --- /dev/null +++ b/dev-java/leiningen-bin/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>kentnl@gentoo.org</email> + <name>Kent Fredric</name> + </maintainer> + <maintainer type="project"> + <email>java@gentoo.org</email> + </maintainer> +</pkgmetadata> |