summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/gauche/Manifest1
-rw-r--r--dev-scheme/gauche/gauche-0.9.12.ebuild59
2 files changed, 60 insertions, 0 deletions
diff --git a/dev-scheme/gauche/Manifest b/dev-scheme/gauche/Manifest
index ef01fb5415e9..d1088106edee 100644
--- a/dev-scheme/gauche/Manifest
+++ b/dev-scheme/gauche/Manifest
@@ -1 +1,2 @@
DIST Gauche-0.9.11-p1.tgz 8104827 BLAKE2B 5c35ced6f64296e294804add967045b8e5aca817b65648f7c6708c774b1c1e218676517f86c3d8c8eb11d983e0a6b396ed00de1f95ecdc5a4dd5eee157f58bea SHA512 51be78d7f9bb62987e76c9867006c367ecb27eaf444f022d93bb92010e51ffb6b922cfc39aaab51cc9edbc94d7f7bb21e021705abb1a8fabd0bdbc52d4c92ee8
+DIST Gauche-0.9.12.tgz 7972379 BLAKE2B c7ed885f00d8b91ae166b92d7f3a2c0bcdcaa2e4f07d623d4c5b9a7edd5b14ea4846983e474be495533e1d083d787fa8844b9147032bab094e28a940c3eddb70 SHA512 cbce8e3312aa75c3b908f0755cf07fbf0ac29278afa0afdae2f7c2df3b30b94a069aada8f6acc0550a18c8c42b95f2dbc7e8b38a5426f6260ac61de8eb1d145e
diff --git a/dev-scheme/gauche/gauche-0.9.12.ebuild b/dev-scheme/gauche/gauche-0.9.12.ebuild
new file mode 100644
index 000000000000..aeb0d9e8f34b
--- /dev/null
+++ b/dev-scheme/gauche/gauche-0.9.12.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit autotools
+
+MY_P="${P^g}"
+MY_P="${MY_P/_p/-p}"
+
+DESCRIPTION="A Unix system friendly Scheme Interpreter"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="https://github.com/shirok/${PN^g}/releases/download/release${PV//./_}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0/$(ver_cut 1-2)8"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="ipv6 +mbedtls test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="sys-libs/gdbm
+ virtual/libcrypt:=
+ mbedtls? ( net-libs/mbedtls:= )"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/openssl:0 )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-ext-ldflags.patch
+ "${FILESDIR}"/${PN}-gauche.m4.patch
+ "${FILESDIR}"/${PN}-info.patch
+ "${FILESDIR}"/${PN}-rfc.tls.patch
+ "${FILESDIR}"/${PN}-xz-info.patch
+)
+DOCS=( AUTHORS ChangeLog HACKING.adoc README.adoc )
+
+src_prepare() {
+ default
+ use ipv6 && sed -i "s/ -4//" ext/tls/ssltest-mod.scm
+
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
+ --with-slib="${EPREFIX}"/usr/share/slib \
+ --with-tls=$(usex mbedtls mbedtls axtls)
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-pkg install-doc
+ einstalldocs
+}