blob: e80e21cda0d734d1f1c3b304087b5429cc048a11 (
plain) (
blame)
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
|
# Copyright 2012 Guillermo Ramos
# Distributed under the terms of the GNU General Public License v2
# Based in part upon 'clojure-1.4.0.ebuild' from Gentoo, which is:
# Copyright 1999-2012 Gentoo Foundation
require alternatives ant
SUMMARY="Clojure is a dynamic programming language that targets the Java Virtual Machine"
HOMEPAGE="http://clojure.org/"
DOWNLOADS="https://github.com/clojure/clojure/tarball/${PNV} -> ${PNV}.tar.gz"
LICENCES="EPL-1.0"
MYOPTIONS=""
DEPENDENCIES="
build:
virtual/jdk[>=1.5]
run:
virtual/jre[>=1.5]
"
PNS=${PN}-${SLOT}
WORK=${WORKBASE}/clojure-clojure-${MY_MAGIC}
ANT_SRC_COMPILE_PARAMS=( jar )
ANT_SRC_TEST_PARAMS=( test )
src_prepare() { :; }
src_test() {
esandbox disable_net
ant_src_test
}
src_install() {
insinto /usr/share/${PNS}
doins ${PNV}.jar
cat >${PNS} <<EOF
#!/bin/sh
java -cp /usr/share/${PNS}/${PNV}.jar clojure.main "\$@"
EOF
exeinto /usr/bin/
doexe ${PNS}
alternatives_for ${PN} ${SLOT} 0 "/usr/bin/${PN}" "${PNS}"
emagicdocs
}
BUGS_TO="0xwille@gmail.com"
|