summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrice Clement <monsieurp@gentoo.org>2019-03-18 00:14:01 +0100
committerPatrice Clement <monsieurp@gentoo.org>2019-03-18 00:15:43 +0100
commit4b0b9f860809ac3a13b7c0bc3b52d63618d9671a (patch)
tree5c1cb98fe55ad02863a5a068f8664e7093604802 /dev-scheme
parentdefault/linux/ia64: re-enable -Wl,--as-needed bu default, bug #541828 (diff)
downloadgentoo-4b0b9f860809ac3a13b7c0bc3b52d63618d9671a.tar.gz
gentoo-4b0b9f860809ac3a13b7c0bc3b52d63618d9671a.tar.bz2
gentoo-4b0b9f860809ac3a13b7c0bc3b52d63618d9671a.zip
dev-scheme/kawa: remove echo2 dependency.
EAPI 6 bump whilst at it. Signed-off-by: Patrice Clement <monsieurp@gentoo.org> Package-Manager: Portage-2.3.51, Repoman-2.3.11 RepoMan-Options: --force
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/kawa/kawa-1.14-r2.ebuild108
1 files changed, 108 insertions, 0 deletions
diff --git a/dev-scheme/kawa/kawa-1.14-r2.ebuild b/dev-scheme/kawa/kawa-1.14-r2.ebuild
new file mode 100644
index 000000000000..961466bc34de
--- /dev/null
+++ b/dev-scheme/kawa/kawa-1.14-r2.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Kawa, the Java-based Scheme system & Language Framework"
+HOMEPAGE="https://www.gnu.org/software/kawa/"
+XQTS_Ver="1_0_3"
+SRC_URI="mirror://gnu/kawa/${P}.tar.gz
+ xqtests? ( http://www.w3.org/XML/Query/test-suite/XQTS_${XQTS_Ver}.zip )"
+
+LICENSE="MIT public-domain
+ jemacs? ( GPL-2 )
+ krl? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="+awt +frontend jemacs krl +sax servlets +swing +xml xqtests"
+
+CDEPEND="
+ >=virtual/jdk-1.6
+ frontend? ( sys-libs/readline:0 )
+ sax? ( dev-java/sax:0 )
+ servlets? ( java-virtuals/servlet-api:3.0 )"
+
+DEPEND="
+ ${CDEPEND}
+ xqtests? ( app-arch/unzip:0 )"
+
+RDEPEND="
+ ${CDEPEND}"
+
+xtestsuite="XQTS_${XQTS_Ver}"
+
+src_unpack () {
+ unpack kawa-${PV}.tar.gz || die
+ if use xqtests; then
+ mkdir "${WORKDIR}/${xtestsuite}" || die
+ cd "${WORKDIR}/${xtestsuite}" || die
+ unpack ${xtestsuite}.Zip || die
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_configure() {
+ # speeds up one-shot ebuilds.
+ myconf="--disable-dependency-tracking"
+ if use jemacs && ! use swing; then
+ echo
+ einfo "Although the swing USE flag is disabled you chose to enable jemacs,"
+ einfo "so swing is enabled anyway."
+ echo
+ myconf="${myconf} --with-swing"
+ else
+ myconf="${myconf} $(use_with swing)"
+ fi
+ if use xqtests; then
+ myconf="${myconf} $(use_with xqtests XQTS=${WORKDIR}/${xtestsuite})"
+ fi
+ if use servlets; then
+ myconf="${myconf} --with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)"
+ fi
+
+ econf ${myconf} $(use_enable frontend kawa-frontend) \
+ $(use_enable xml) \
+ $(use_enable krl brl) \
+ $(use_enable jemacs) \
+ $(use_with awt) \
+ $(use_with sax sax2) \
+ --with-java-source=$(java-pkg_get-source)
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" install
+ rm -rv "${D}"/usr/share/java/ || die "rm -rv failed"
+
+ java-pkg_newjar kawa-${PV}.jar
+
+ java-pkg_dolauncher "kawa" --main kawa.repl
+ java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \ "--xquery"
+ if use servlets; then
+ java-pkg_dolauncher "kawa-cgi-servlet" --main \
+ gnu.kawa.servlet.CGIServletWrapper
+ fi
+ if use jemacs; then
+ java-pkg_dolauncher "jemacs" --main \
+ gnu.jemacs.lang.ELisp
+ fi
+
+ use source && java-pkg_dosrc kawa/* gnu/*
+
+ dodoc ChangeLog TODO README NEWS
+ doinfo doc/kawa.info*
+ doman doc/*.2
+
+ cp doc/kawa.man doc/kawa.2 || die
+ cp doc/qexo.man doc/qexo.2 || die
+}