summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaciej Barć <xgqt@gentoo.org>2021-12-01 22:24:33 +0100
committerMaciej Barć <xgqt@gentoo.org>2021-12-01 22:32:12 +0100
commitd89d6591bd3d9f3ec0c43c8c0b31caf72e69f2f2 (patch)
tree6f37d9230e37f527663ce9794fb236d45c3dc804 /dev-scheme
parentdev-python/nest_asyncio: Bump to 1.5.4 (diff)
downloadgentoo-d89d6591bd3d9f3ec0c43c8c0b31caf72e69f2f2.tar.gz
gentoo-d89d6591bd3d9f3ec0c43c8c0b31caf72e69f2f2.tar.bz2
gentoo-d89d6591bd3d9f3ec0c43c8c0b31caf72e69f2f2.zip
dev-scheme/kawa: bump to 3.1.1
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/kawa/Manifest1
-rw-r--r--dev-scheme/kawa/kawa-3.1.1.ebuild89
2 files changed, 90 insertions, 0 deletions
diff --git a/dev-scheme/kawa/Manifest b/dev-scheme/kawa/Manifest
index 8f0df6afda39..0122d542e8e5 100644
--- a/dev-scheme/kawa/Manifest
+++ b/dev-scheme/kawa/Manifest
@@ -1,2 +1,3 @@
+DIST Kawa-3.1.1.tar.gz 3216501 BLAKE2B abaea589c33ec01c49df9b376b43330a1246832428d64da2eded9899b06fb32ac5875112749f94e55b1d75ad628535b71dc41b8d7e0edf62ea7baabd20b8b182 SHA512 557fe8cc2eb7bea1e18dcbb0e4df6d82ed17e02724d55889591141b8db02245378bb0cd27acfc73e452cfbc0d6d1cbc50dd27b325fa437778eca5ce8db4211be
DIST XQTS_1_0_3.zip 30956043 BLAKE2B 30d8980e8076eec3291487e582139f1e6a47e6c819ba0e06d9d34ca8867c81db266817e25e50d4823234ae73529c97c939d1aa168056ce0a5379f150425cf62d SHA512 e00efd3dbf0b1cf530795073f7548cf4ab4f3c55921f76af7c000e61e1d7293cd11f41d617b3ce5343df5e9c5b6de4ee3819a6db2b15df9441a19489ae46e1dd
DIST kawa-1.14.tar.gz 2691484 BLAKE2B bd4e2e725cfd51d65ba55d6511f09ab99ea6d9435d95febc16f9486b47b1bf1cdcde601b58266ae20059f6e776d2119bcb017d7061ff571bbaddd5bcbb297b8c SHA512 e0a0eafd4ed0ce7d254f295db8e920b82cfef6f4f71c440db655d73761a2f99ab743def1daa54241998497db8f29269c7d98f7e3bf819a36d7f7151d3ba2913e
diff --git a/dev-scheme/kawa/kawa-3.1.1.ebuild b/dev-scheme/kawa/kawa-3.1.1.ebuild
new file mode 100644
index 000000000000..1328d51f6836
--- /dev/null
+++ b/dev-scheme/kawa/kawa-3.1.1.ebuild
@@ -0,0 +1,89 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+JAVA_PKG_IUSE="source"
+
+inherit autotools java-pkg-2
+
+DESCRIPTION=" Java-based Scheme system & Language Framework"
+HOMEPAGE="https://www.gnu.org/software/kawa/"
+SRC_URI="https://gitlab.com/kashell/${PN^}/-/archive/${PV}/${PN^}-${PV}.tar.gz"
+S="${WORKDIR}/${PN^}-${PV}"
+
+LICENSE="MIT public-domain jemacs? ( GPL-2 ) krl? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+awt +frontend jemacs krl +sax servlets +swing +xml"
+RESTRICT="test" # fails
+
+COMMON_DEPEND="
+ frontend? ( sys-libs/readline:0 )
+ sax? ( dev-java/sax:0 )
+ servlets? ( java-virtuals/servlet-api:3.0 )
+"
+DEPEND="
+ ${COMMON_DEPEND}
+ >=virtual/jdk-1.8
+"
+RDEPEND="
+ ${COMMON_DEPEND}
+ >=virtual/jre-1.8
+"
+
+src_prepare() {
+ default
+
+ java-pkg-2_src_prepare
+ eautoreconf
+}
+
+src_configure() {
+ local myconf=(
+ $(use_enable frontend kawa-frontend)
+ $(use_enable jemacs)
+ $(use_enable krl brl)
+ $(use_enable xml)
+ $(use_with awt)
+ $(use_with sax sax2)
+ --with-java-source="$(java-pkg_get-source)"
+ )
+
+ if use jemacs && ! use swing; then
+ einfo "Although the swing USE flag is disabled you chose to enable jemacs,"
+ einfo "so swing is enabled anyway."
+ myconf+=( "--with-swing" )
+ else
+ myconf+=( "$(use_with swing)" )
+ fi
+ if use servlets; then
+ myconf+=(
+ "--with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)"
+ )
+ fi
+
+ econf "${myconf[@]}"
+}
+
+src_compile() {
+ emake -j1
+}
+
+src_install() {
+ use source && java-pkg_dosrc ./kawa/* ./gnu/*
+ java-pkg_newjar ./lib/kawa.jar
+
+ java-pkg_dolauncher "kawa" --main kawa.repl
+ java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \ "--xquery"
+ use servlets &&
+ java-pkg_dolauncher "kawa-cgi-servlet" --main gnu.kawa.servlet.CGIServletWrapper
+ use jemacs &&
+ java-pkg_dolauncher "jemacs" --main gnu.jemacs.lang.ELisp
+
+ einstalldocs
+ doinfo doc/kawa.info*
+ cp doc/kawa.man doc/kawa.1 || die
+ cp doc/qexo.man doc/qexo.1 || die
+ doman doc/*.1
+}