diff options
author | Akinori Hattori <hattya@gentoo.org> | 2024-02-11 15:39:07 +0900 |
---|---|---|
committer | Akinori Hattori <hattya@gentoo.org> | 2024-02-11 15:39:07 +0900 |
commit | 13b69dfed1d8a00c619860bbdd6ab216884ff2a6 (patch) | |
tree | b99f5dcb69e9124744655330f1fddb0389f555da /dev-scheme/gauche | |
parent | dev-scheme/gauche: rename patch (diff) | |
download | gentoo-13b69dfed1d8a00c619860bbdd6ab216884ff2a6.tar.gz gentoo-13b69dfed1d8a00c619860bbdd6ab216884ff2a6.tar.bz2 gentoo-13b69dfed1d8a00c619860bbdd6ab216884ff2a6.zip |
dev-scheme/gauche: new upstream release
Signed-off-by: Akinori Hattori <hattya@gentoo.org>
Diffstat (limited to 'dev-scheme/gauche')
-rw-r--r-- | dev-scheme/gauche/Manifest | 1 | ||||
-rw-r--r-- | dev-scheme/gauche/files/gauche-info.patch | 95 | ||||
-rw-r--r-- | dev-scheme/gauche/files/gauche-xz-info.patch | 8 | ||||
-rw-r--r-- | dev-scheme/gauche/gauche-0.9.14.ebuild | 56 |
4 files changed, 156 insertions, 4 deletions
diff --git a/dev-scheme/gauche/Manifest b/dev-scheme/gauche/Manifest index 56531ce733bc..f1d68e536976 100644 --- a/dev-scheme/gauche/Manifest +++ b/dev-scheme/gauche/Manifest @@ -1 +1,2 @@ DIST Gauche-0.9.13.tgz 9389117 BLAKE2B dd2039971d4460d5841272927872cea5cb29992c51468882b26374234bd246cb7a202e7e5f71c0733abad0d18da527e51b3ee46c3836b3862f36d8eec42f7a9f SHA512 f593775d41055599e7b3e281df0b1efcb284a1ce3e2a36a53a609c98f57ca1f2d99246d8b0585c4606839e611cfb4e42ed4d23506617976af375ae39489678d3 +DIST Gauche-0.9.14.tgz 9352431 BLAKE2B cb747a16037167a95a543e324b53a48e3cb4dd372e9f6cc00603b7072b902c839248fbf3e9926360a2732fcf4bc0caa16a4ea1ad757e84d5d597ef4bdfa2592f SHA512 3dd9dc8627fe1c5e518731a17dd984120485b36d6c2bb2d0d54a8b5f6778f45efd02640abe4699466eec2eb18dd4474d9525848029468128974c13c615087662 diff --git a/dev-scheme/gauche/files/gauche-info.patch b/dev-scheme/gauche/files/gauche-info.patch new file mode 100644 index 000000000000..fa730944ee96 --- /dev/null +++ b/dev-scheme/gauche/files/gauche-info.patch @@ -0,0 +1,95 @@ +--- a/configure.ac ++++ b/configure.ac +@@ -330,7 +330,6 @@ + AC_PROG_LN_S + 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 +@@ -18,7 +18,6 @@ + INSTALL_DATA = @INSTALL_DATA@ + MKINSTDIR = $(top_srcdir)/mkinstalldirs + MAKEINFO = @MAKEINFO@ +-GZIP_PROGRAM = @GZIP_PROGRAM@ + VERSION_INFO = @PACKAGE_STRING@ + PREPROCESSOR = $(top_srcdir)/lib/tools/docprep + +@@ -60,7 +59,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 + +@@ -68,7 +67,7 @@ + if test ! -d "$(DESTDIR)$(mandir)/man1"; then $(MKINSTDIR) "$(DESTDIR)$(mandir)/man1"; fi + $(INSTALL_DATA) $(MANPAGES) "$(DESTDIR)$(mandir)/man1" + if test ! -d "$(DESTDIR)$(infodir)"; then $(MKINSTDIR) "$(DESTDIR)$(infodir)"; 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 \ + for info in *.info*; do \ + $(INSTALL_DATA) $$info "$(DESTDIR)$(infodir)/"; \ + done; \ +@@ -99,8 +98,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)" +@@ -122,7 +121,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/files/gauche-xz-info.patch b/dev-scheme/gauche/files/gauche-xz-info.patch index 5ca77a8d583d..698b34e9b0e9 100644 --- a/dev-scheme/gauche/files/gauche-xz-info.patch +++ b/dev-scheme/gauche/files/gauche-xz-info.patch @@ -1,6 +1,6 @@ --- a/lib/gauche/interactive/info.scm +++ b/lib/gauche/interactive/info.scm -@@ -113,7 +113,8 @@ +@@ -83,7 +83,8 @@ :paths (get-info-paths) :pred (^p (or (file-is-readable? p) (file-is-readable? #"~|p|.gz") @@ -9,10 +9,10 @@ + (file-is-readable? #"~|p|.xz"))))) (define (handle-ambiguous-name entry-name) - (let* ([keys (map x->string (hash-table-keys (~ (get-info)'index)))] + (let* ([keys (info-index-keys (get-info))] --- a/lib/text/info.scm +++ b/lib/text/info.scm -@@ -67,6 +67,7 @@ +@@ -74,6 +74,7 @@ ;; Find bzip2 location (define bzip2 (find-file-in-paths "bzip2")) @@ -20,7 +20,7 @@ (cond-expand [gauche.sys.zlib] -@@ -90,6 +91,8 @@ +@@ -97,6 +98,8 @@ (with-input-from-process #"~gzip -c -d ~|file|.gz" thunk)])] [(and bzip2 (file-exists? #"~|file|.bz2")) (with-input-from-process #"~bzip2 -c -d ~|file|.bz2" thunk)] diff --git a/dev-scheme/gauche/gauche-0.9.14.ebuild b/dev-scheme/gauche/gauche-0.9.14.ebuild new file mode 100644 index 000000000000..bd990924944f --- /dev/null +++ b/dev-scheme/gauche/gauche-0.9.14.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 +mbedtls test" +RESTRICT="!test? ( test )" + +RDEPEND="sys-libs/gdbm + virtual/libcrypt:= + mbedtls? ( net-libs/mbedtls:= )" +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=$(usex mbedtls mbedtls axtls) +} + +src_test() { + emake -j1 -s check +} + +src_install() { + emake DESTDIR="${D}" install-pkg install-doc + einstalldocs +} |