summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAkinori Hattori <hattya@gentoo.org>2024-05-12 15:27:14 +0900
committerAkinori Hattori <hattya@gentoo.org>2024-05-12 15:27:14 +0900
commita83783270542dc02fec73e86c204471f76ebe0e4 (patch)
tree2bf280df07068a60a8115cb92da988d62e980eb0 /dev-scheme
parentdev-scheme/gauche: rename patch (diff)
downloadgentoo-a83783270542dc02fec73e86c204471f76ebe0e4.tar.gz
gentoo-a83783270542dc02fec73e86c204471f76ebe0e4.tar.bz2
gentoo-a83783270542dc02fec73e86c204471f76ebe0e4.zip
dev-scheme/gauche: new upstream release
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/gauche/Manifest1
-rw-r--r--dev-scheme/gauche/files/gauche-info.patch95
-rw-r--r--dev-scheme/gauche/gauche-0.9.15.ebuild56
3 files changed, 152 insertions, 0 deletions
diff --git a/dev-scheme/gauche/Manifest b/dev-scheme/gauche/Manifest
index f72e95e1fd56..7996744b0f2d 100644
--- a/dev-scheme/gauche/Manifest
+++ b/dev-scheme/gauche/Manifest
@@ -1 +1,2 @@
DIST Gauche-0.9.14.tgz 9352431 BLAKE2B cb747a16037167a95a543e324b53a48e3cb4dd372e9f6cc00603b7072b902c839248fbf3e9926360a2732fcf4bc0caa16a4ea1ad757e84d5d597ef4bdfa2592f SHA512 3dd9dc8627fe1c5e518731a17dd984120485b36d6c2bb2d0d54a8b5f6778f45efd02640abe4699466eec2eb18dd4474d9525848029468128974c13c615087662
+DIST Gauche-0.9.15.tgz 9444756 BLAKE2B 1b4cbc764ea3af78bc736ce9a8ff083318366fbf3197ebc5060222b8df93ed426ca4b3b90402cd604e110bcfa8fb46c0d4c5f35be39899cc89dc82a671372bf9 SHA512 fc246a9ba937eba642621a5707f0e7a02d62191749360b9b15e2563c9ceb13e18f236c736172d05c177df8b7220ff0e973f568aaf9eb92e92643af0823f0f865
diff --git a/dev-scheme/gauche/files/gauche-info.patch b/dev-scheme/gauche/files/gauche-info.patch
new file mode 100644
index 000000000000..f02113893ba6
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-info.patch
@@ -0,0 +1,95 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -345,7 +345,6 @@
+ AC_CHECK_PROGS(INSTALL_INFO, install-info)
+ AC_CHECK_TOOLS(AR, ar gar)
+ AC_CHECK_PROGS(MAKEINFO, makeinfo)
+-AC_CHECK_PROGS(GZIP_PROGRAM, gzip)
+
+ if test -z "$MAKEINFO" -o -z "$GZIP_PROGRAM"; then
+ build_doc="No (requires makeinfo and gzip to build documents)"
+--- a/doc/Makefile.in
++++ b/doc/Makefile.in
+@@ -19,7 +19,6 @@
+ INSTALL_INFO = @INSTALL_INFO@
+ MKINSTDIR = $(top_srcdir)/mkinstalldirs
+ MAKEINFO = @MAKEINFO@
+-GZIP_PROGRAM = @GZIP_PROGRAM@
+ VERSION_INFO = @PACKAGE_STRING@
+ PREPROCESSOR = $(top_srcdir)/lib/tools/docprep
+
+@@ -61,7 +60,7 @@
+ texi html htmls dvi pdf info epub \
+ clean distclean maintainer-clean
+
+-.SUFFIXES: .texi .html .info.gz .pdf .dvi .epub
++.SUFFIXES: .texi .html .info .pdf .dvi .epub
+
+ all: info
+
+@@ -77,7 +76,7 @@
+ $(INSTALL_INFO) gauche-refj.info.gz "$(infodir)/dir" ; \
+ fi; \
+ fi; \
+- if test -f gauche-refe.info.gz -o -f gauche-refj.info.gz; then \
++ if test -f gauche-refe.info -o -f gauche-refj.info; then \
+ $(INSTALL_DATA) *.info* "$(DESTDIR)$(infodir)/"; \
+ fi
+
+@@ -114,8 +113,8 @@
+ %-draft/index.html : %.texi
+ $(MAKEDOC) htmls $< "$(MAKEINFO)" "Development HEAD DRAFT"
+
+-%.info.gz : %.texi
+- $(MAKEDOC) info $< "$(MAKEINFO)" "$(GZIP_PROGRAM)"
++%.info : %.texi
++ $(MAKEDOC) info $< "$(MAKEINFO)"
+
+ %.pdf : %.texi
+ $(MAKEDOC) pdf $< "$(MAKEINFO)"
+@@ -137,7 +136,7 @@
+ htmls-draft : gauche-refe-draft/index.html gauche-refj-draft/index.html
+ dvi : gauche-refe.dvi gauche-refj.dvi
+ pdf : gauche-refe.pdf gauche-refj.pdf
+-info : gauche-refe.info.gz gauche-refj.info.gz
++info : gauche-refe.info gauche-refj.info
+ epub : gauche-refe.epub gauche-refj.epub
+
+ gauche-refe.texi : $(TEXIS) $(PREPROCESSOR)
+--- a/doc/makedoc.scm
++++ b/doc/makedoc.scm
+@@ -16,7 +16,7 @@
+ [gauche.sys.setenv (sys-putenv "LANG=C")]
+ [else])
+ (if (match (cdr args)
+- [("info" input makeinfo gzip) (do-info input makeinfo gzip)]
++ [("info" input makeinfo) (do-info input makeinfo)]
+ [("html" input makeinfo) (do-html input makeinfo)]
+ [("htmls" input makeinfo version) (do-htmls input makeinfo version)]
+ [("pdf" input makeinfo) (do-pdf input makeinfo)]
+@@ -28,7 +28,7 @@
+ (define (usage)
+ (print "Usage: gosh makedoc.scm command args ...")
+ (print "Valid commands (and args):")
+- (print " info input MAKEINFO GZIP - generate info doc")
++ (print " info input MAKEINFO - generate info doc")
+ (print " html input MAKEINFO - generate single html")
+ (print " htmls input MAKEINFO VERSION-STRING - generate html files in subdir")
+ (print " pdf input MAKEINFO - generate pdf")
+@@ -57,14 +57,11 @@
+ (warn "makeinfo version ~a or greater is required, but ~a's \
+ version is ~a. Skipping.\n" min-version makeinfo vers)))))
+
+-(define (do-info input makeinfo gzip)
++(define (do-info input makeinfo)
+ (define info (path-swap-extension input "info"))
+ (or (string-null? makeinfo)
+- (string-null? gzip)
+ (not (check-makeinfo-version makeinfo "5.0"))
+- (and (do-process (make-cmd `(,makeinfo ,input)))
+- (begin (remove-files (glob #"~|info|*.gz"))
+- (do-process (make-cmd `(,gzip "-n" ,info ,@(glob #"~|info|-[0-9]*"))))))))
++ (and (do-process (make-cmd `(,makeinfo ,input))))))
+
+ (define (do-html input makeinfo)
+ (or (string-null? makeinfo)
diff --git a/dev-scheme/gauche/gauche-0.9.15.ebuild b/dev-scheme/gauche/gauche-0.9.15.ebuild
new file mode 100644
index 000000000000..c037bef1bc58
--- /dev/null
+++ b/dev-scheme/gauche/gauche-0.9.15.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2024 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 test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="net-libs/mbedtls:=
+ sys-libs/gdbm
+ virtual/libcrypt:="
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-ext-ldflags.patch
+ "${FILESDIR}"/${PN}-gauche.m4.patch
+ "${FILESDIR}"/${PN}-info.patch
+ "${FILESDIR}"/${PN}-xz-info.patch
+)
+DOCS=( AUTHORS ChangeLog HACKING.adoc README.adoc )
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ --with-ca-bundle="${EPREFIX}"/etc/ssl/certs/ca-certificates.crt \
+ --with-slib="${EPREFIX}"/usr/share/slib \
+ --with-tls=mbedtls
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-pkg install-doc
+ einstalldocs
+}