mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-07-30 10:38:07 -07:00
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
This commit is contained in:
2
dev-java/leiningen-bin/Manifest
Normal file
2
dev-java/leiningen-bin/Manifest
Normal file
@@ -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
|
||||
1
dev-java/leiningen-bin/files/leinrc
Normal file
1
dev-java/leiningen-bin/files/leinrc
Normal file
@@ -0,0 +1 @@
|
||||
source /usr/share/@@PN@@/package.env
|
||||
63
dev-java/leiningen-bin/leiningen-bin-2.7.0.ebuild
Normal file
63
dev-java/leiningen-bin/leiningen-bin-2.7.0.ebuild
Normal file
@@ -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"
|
||||
}
|
||||
11
dev-java/leiningen-bin/metadata.xml
Normal file
11
dev-java/leiningen-bin/metadata.xml
Normal file
@@ -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>
|
||||
Reference in New Issue
Block a user