forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
abcl-0.20.0-r1.ebuild
48 lines (37 loc) · 1.03 KB
/
abcl-0.20.0-r1.ebuild
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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
JAVA_PKG_IUSE="doc"
MY_P="${PN}-src-${PV}"
inherit java-pkg-2 java-ant-2
DESCRIPTION="Common Lisp implementation for the JVM"
HOMEPAGE="http://common-lisp.net/project/armedbear/"
SRC_URI="http://common-lisp.net/project/armedbear/releases/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND=">=virtual/jdk-1.6"
RDEPEND=">=virtual/jre-1.6"
S="${WORKDIR}/${MY_P}"
JAVADOC_FILES="java-${PN}"
JAVADOC_DIR="javadoc-${PN}"
src_compile() {
eant abcl.compile
eant abcl.jar
if use doc; then
find "${S}/src" -type f -name \*.java > "${JAVADOC_FILES}" || die
mkdir -p "${JAVADOC_DIR}" || die
ejavadoc \
-d "${JAVADOC_DIR}" \
-docencoding UTF-8 \
-charset UTF-8 \
-quiet \
$(<"${JAVADOC_FILES}") || die
fi
}
src_install() {
java-pkg_dojar dist/abcl.jar
java-pkg_dolauncher ${PN} --java_args "-server -Xrs" --main org.armedbear.lisp.Main
use doc && java-pkg_dojavadoc "${JAVADOC_DIR}"
einstalldocs
}