dev-lisp/abcl: do away with jad USE flag.
authorPatrice Clement <monsieurp@gentoo.org>
Fri, 9 Jun 2017 22:49:42 +0000 (00:49 +0200)
committerPatrice Clement <monsieurp@gentoo.org>
Fri, 9 Jun 2017 22:50:37 +0000 (00:50 +0200)
This commit also improves abcl ebuild and bumps it to EAPI version 6.

Gentoo-Bug: https://bugs.gentoo.org/621260

Package-Manager: Portage-2.3.5, Repoman-2.3.1

dev-lisp/abcl/abcl-0.20.0-r1.ebuild [new file with mode: 0644]

diff --git a/dev-lisp/abcl/abcl-0.20.0-r1.ebuild b/dev-lisp/abcl/abcl-0.20.0-r1.ebuild
new file mode 100644 (file)
index 0000000..b8b725f
--- /dev/null
@@ -0,0 +1,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
+}