blob: 15ca39c55373a89a6be30dc13b950a466b43aa07 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit java-pkg-2
MY_PN="${PN%-bin}"
MY_PNV="${MY_PN}-${PV}"
DESCRIPTION="Build tooling for Clojure"
HOMEPAGE="http://boot-clj.com/"
SRC_URI="https://github.com/boot-clj/${MY_PN}/releases/download/${PV}/${MY_PN}.jar -> ${MY_PNV}.jar"
LICENSE="EPL-1.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
RDEPEND=">=virtual/jdk-1.7:*"
DEPEND=">=virtual/jdk-1.7:*"
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 boot shell-script"
cp "${FILESDIR}/boot" "${S}/" || die "Can't copy boot"
java-pkg_init_paths_
sed -i "s|@@JAVA_PKG_SHAREPATH@@|${JAVA_PKG_SHAREPATH}|g" "${S}/boot" || die "Can't patch JAVA_PKG_SHAREPATH path in boot"
sed -i "s|@@JAVA_PKG_JARDEST@@|${JAVA_PKG_JARDEST}|g" "${S}/boot" || die "Can't patch JAVA_PKG_JARDEST path in boot"
sed -i "s|@@PN@@|${PN}|g" "${S}/boot" || die "Can't patch PN in boot"
default
}
src_compile() { :; }
src_install() {
dobin "${S}/boot"
java-pkg_newjar "${S}/${MY_PNV}.jar"
}
pkg_postinst() {
einfo "This package will still download a whole lot of its own runtime"
einfo "dependencies the first time you run it."
einfo ""
einfo "This currently can't be helped and is expected behaviour for a"
einfo "java based development toolkit"
}
|