dev-scheme/gauche: new upstream release

Signed-off-by: Akinori Hattori <hattya@gentoo.org>
This commit is contained in:
Akinori Hattori
2024-02-11 15:39:07 +09:00
parent 9280976d12
commit 13b69dfed1
4 changed files with 156 additions and 4 deletions

View File

@@ -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

View File

@@ -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)

View File

@@ -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)]

View File

@@ -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
}