summaryrefslogtreecommitdiff
path: root/dev-scheme/stklos
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-09-27 17:31:34 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-09-27 17:31:34 +0100
commit5b4dc9f80a36fa17a541592b7bd29d31418e6a7b (patch)
tree129113a0935d55af459c24e43050b73c0cc3438c /dev-scheme/stklos
parentddb6fbc11e863756a24e1dc866c63dec00eac6fa (diff)
gentoo auto-resync : 27:09:2023 - 17:31:34
Diffstat (limited to 'dev-scheme/stklos')
-rw-r--r--dev-scheme/stklos/Manifest3
-rw-r--r--dev-scheme/stklos/files/stklos-2.00-gentoo.patch153
-rw-r--r--dev-scheme/stklos/stklos-2.00.ebuild58
3 files changed, 214 insertions, 0 deletions
diff --git a/dev-scheme/stklos/Manifest b/dev-scheme/stklos/Manifest
index 7d3e115908ef..8385d8a74744 100644
--- a/dev-scheme/stklos/Manifest
+++ b/dev-scheme/stklos/Manifest
@@ -1,5 +1,8 @@
AUX stklos-1.70-configure-clang16.patch 760 BLAKE2B c89264cb8eec7ad18a9289bd1f7ffe9c8f522b47de15bd27a832b12fa30a26d4b6a8e0f09a949563d78bd882b6fe986c093eb30112ca6a14a11fcda5f42ad632 SHA512 fe84d85a70995947dd2f6ae2729a5e0e17186be83dbbc34ce14217bcc6d5c7a74d7edd63b67b84f7a04c823234a437b55cd74e9f254b9b07c5ae10606511dcc2
AUX stklos-1.70-gentoo.patch 1937 BLAKE2B 42c534b6d84bc1c3a541bcb8e68ba0abf097f4ad0a1012df1a153ebed918bf2ea37e0c505c33cbdf07ab9dc57372df37a3fdefb3864201497f1cca6bfe888b64 SHA512 05f9c3263e46902c149cd4131c32092b24e4d2499596faa9c6d0d448a1e92a06eac466458e3cca5e688fa4a07e5e870ff81ca4d5a4171c50217b942ebf4850df
+AUX stklos-2.00-gentoo.patch 4196 BLAKE2B d75ea23e414b525497dff5d819e04b76ad724ea80866bc5e9c88543540c794fd85cf49d54a8452ecfc06f662eea338e90fe9ea761b71dc7f3ee8c093494c9667 SHA512 5febf74c446ec5bed0d6380ad8f9d8a9e6cc01ff26bcaa7908e6bfd9d24730cb53a14f30d6f8413e306f2793457938bb76e8218496296f2ccf1e53f00a319592
DIST stklos-1.70.tar.gz 8767615 BLAKE2B 7cae5b5d0c9b2d9dcccc47e78e70a562f2d1751de068668777441d29ee15be7f3c5c285b8297e367311cd8c9695c9a2d083ad7ea1d9c21c838cf1d819f7cb82c SHA512 64da09171b191688f750f10c29f10cd7393f326555d4324344faeac63547a2548407490e44a50f0afa348487bd9cc5106f3c344cab6935f3a3516b3c064a596f
+DIST stklos-2.00.tar.gz 9661074 BLAKE2B c43918f182e8502d5ea4dd0a2d42ea4e788a573ca1184d4e3af792f3932b7a626280110c30bffa9771d73ed7fdc2a29db19bcd7ce8d5a219c1c0b9ef19195c6d SHA512 b98ad62713cb5e85d26378e73e2198d44676a0103c8e8444490cc555defc5b058652c514bdf3a27b0cc34c71b0b72d9f5fc440f260f6aa68064c5adda6571d5f
EBUILD stklos-1.70-r1.ebuild 1058 BLAKE2B 9d5e1c88de4d0024acd0cbb115942cb3c1c898c8b115db913381393a656d3b6dbac1e05b914988223820fd044a7a3390d89f372e8b2bbfdcf1748447778b4b65 SHA512 3e6f45f637082e29789d373e697a497e027c3876c797ed729a9ebf744f5bd1901472a0157b36c147c60853c55882e0282c10d3a9bb6d571ac5ba7dd309c31960
+EBUILD stklos-2.00.ebuild 1111 BLAKE2B acaaa61c065061473f735b0d19a1709a56654c19a1db46b45fb2fd2b1dd6809be1b31573abcb3b670c61a2b35a4e02315cfafea1e4648f4d0bfd181f1052ea49 SHA512 6d08d5cb267c63bf2138f8166cca3f33aaf1f641138c1d20caf248eec9c6f264a6e821e1237d2b4097bd05aa62555b1969622653c166880b84ec88e97901a088
MISC metadata.xml 739 BLAKE2B df32d98cff79f6d4e998c695eae85344c5b8d83c94fd8a6de47b5b11a2f874585ccdb3a05d7e29aa46f31799f3e3fd6ccf6f6674b7791c9710e89112a9075bdb SHA512 c6cd89f69ca1ed11a87164618dad3a5a566b6b930fb28fe37e8e6f16a8b76a53569c18d7569038bb47f7cbc175c42261d863afa1f1fb96286bf08cd70b5b12de
diff --git a/dev-scheme/stklos/files/stklos-2.00-gentoo.patch b/dev-scheme/stklos/files/stklos-2.00-gentoo.patch
new file mode 100644
index 000000000000..83c33b8f0b2a
--- /dev/null
+++ b/dev-scheme/stklos/files/stklos-2.00-gentoo.patch
@@ -0,0 +1,153 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -143,28 +143,10 @@
+ htmldir="${docdir}/html"
+ fi
+
+-# Manage standard options --libdir and --datadir
+-# If the user doesn't specify these option, we fix
+-# libdir to ${prefix}/lib/
+-# datadir to ${prefix}/share
+-# Otherwise, we take the user provided values.
+-#
+-# In any case, we will place our files in the stklos/${VERSION} subdir
+-
+-if test "$LIBDIR" == "" ; then
+- # user has not given a "--libdir" option. Use ${prefix}/lib/stklos/${VERSION}
+- libdir="${prefix}/lib/${PACKAGE_TARNAME}/${VERSION}"
+-fi
+-
+-if test "$DATADIR" == "" ; then
+- # user has not given a "--datadir" option. Use ${prefix}/share/stklos/${VERSION}
+- datadir="${prefix}/share/${PACKAGE_TARNAME}/${VERSION}"
+-fi
+-
+ ### Initialize the extra conf file in src
+ PREFIX=$prefix
+-SCMDIR=$datadir
+-EXECDIR=$libdir
++SCMDIR="${datadir}/${PACKAGE_TARNAME}/${VERSION}"
++EXECDIR="${libdir}/${PACKAGE_TARNAME}/${VERSION}"
+
+
+ ### Determine the kind of the machine which is running this script
+--- a/lib/Lalr.d/Makefile.am
++++ b/lib/Lalr.d/Makefile.am
+@@ -33,8 +33,8 @@
+ all: lalr.ostk calc
+
+ install-sources: install
+- mkdir -p $(schemedir)
+- cp lalr.stk $(DESTDIR)/$(schemedir)
++ mkdir -p $(DESTDIR)$(schemedir)
++ cp lalr.stk $(DESTDIR)$(schemedir)
+
+ uninstall-hook:
+ rm -f $(DESTDIR)/$(schemedir)/lalr.stk
+--- a/lib/Makefile.am
++++ b/lib/Makefile.am
+@@ -174,7 +174,7 @@
+ @for i in $(SUBDIRS) ;do \
+ (cd $$i; $(MAKE) install-sources)\
+ done
+- cp $(SRC_STK) $(scheme_BOOT) $(DESTDIR)/$(schemedir)
++ cp $(SRC_STK) $(scheme_BOOT) $(DESTDIR)$(schemedir)
+
+
+ # Explicit some dependencies here
+--- a/lib/SILex.d/Makefile.am
++++ b/lib/SILex.d/Makefile.am
+@@ -25,8 +25,8 @@
+ SRC= silex.scm multilex.scm
+
+ install-sources:
+- mkdir -p $(DESTDIR)/$(schemedir)
+- cp $(SRC) $(DESTDIR)/$(schemedir)
++ mkdir -p $(DESTDIR)$(schemedir)
++ cp $(SRC) $(DESTDIR)$(schemedir)
+
+
+ uninstall-hook:
+--- a/lib/scheme/Makefile.am
++++ b/lib/scheme/Makefile.am
+@@ -189,7 +189,7 @@
+ @for i in $(SUBDIRS) ;do \
+ (cd $$i; $(MAKE) install-sources)\
+ done
+- cp $(scheme_sources) $(schemedir)
++ cp $(scheme_sources) $(DESTDIR)$(schemedir)
+
+ clean:
+ (cd vector; $(MAKE) clean)
+--- a/lib/scheme/vector/Makefile.am
++++ b/lib/scheme/vector/Makefile.am
+@@ -130,8 +130,8 @@
+ #======================================================================
+
+ install-sources:
+- mkdir -p $(srfidir)
+- cp $(srfi_sources) $(srfi_interm) $(srfidir)
++ mkdir -p $(DESTDIR)$(srfidir)
++ cp $(srfi_sources) $(srfi_interm) $(DESTDIR)$(srfidir)
+
+ # we also clean the TAG.stk files -- $(srfi-interm) --, which are NOT
+ # srfi_OBJS (should not be installed with other objects):
+--- a/lib/srfi/160/Makefile.am
++++ b/lib/srfi/160/Makefile.am
+@@ -140,8 +140,8 @@
+ #======================================================================
+
+ install-sources:
+- mkdir -p $(srfidir)
+- cp $(srfi_sources) $(srfidir)
++ mkdir -p $(DESTDIR)$(srfidir)
++ cp $(srfi_sources) $(DESTDIR)$(srfidir)
+
+ clean:
+ rm -f $(srfi_OBJS) *-incl.c *~
+--- a/lib/srfi/Makefile.am
++++ b/lib/srfi/Makefile.am
+@@ -383,7 +383,7 @@
+ @for i in $(SUBDIRS) ;do \
+ (cd $$i; $(MAKE) install-sources)\
+ done
+- cp $(srfi_sources) $(srfidir)
++ cp $(srfi_sources) $(DESTDIR)$(srfidir)
+
+ clean:
+ rm -f $(srfi_OBJS) *-incl.c *~
+--- a/lib/stklos/Makefile.am
++++ b/lib/stklos/Makefile.am
+@@ -75,7 +75,7 @@
+
+ # ======================================================================
+ install-sources:
+- cp $(scheme_sources) $(schemedir)
++ cp $(scheme_sources) $(DESTDIR)$(schemedir)
+
+ clean:
+ rm -f $(ALL_OBJS) *-incl.c *~
+--- a/lib/streams/Makefile.am
++++ b/lib/streams/Makefile.am
+@@ -75,7 +75,7 @@
+
+ # ======================================================================
+ install-sources:
+- install $(scheme_sources) $(schemedir)
++ install $(scheme_sources) $(DESTDIR)$(schemedir)
+
+ clean:
+ rm -f $(ALL_OBJS) *-incl.c *~
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -110,8 +110,8 @@
+
+
+ install-exec-hook:
+- mv $(bindir)/stklos $(bindir)/stklos-@VERSION@
+- ln -s stklos-@VERSION@ $(bindir)/stklos
++ mv $(DESTDIR)$(bindir)/stklos $(DESTDIR)$(bindir)/stklos-@VERSION@
++ ln -s stklos-@VERSION@ $(DESTDIR)$(bindir)/stklos
+
+
+ doc: $(DOCDB)
diff --git a/dev-scheme/stklos/stklos-2.00.ebuild b/dev-scheme/stklos/stklos-2.00.ebuild
new file mode 100644
index 000000000000..fad97e515254
--- /dev/null
+++ b/dev-scheme/stklos/stklos-2.00.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="Fast and light Scheme implementation"
+HOMEPAGE="https://stklos.net/"
+SRC_URI="https://${PN}.net/download/${P}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="threads"
+
+RDEPEND="dev-libs/boehm-gc[threads?]
+ dev-libs/gmp:=
+ dev-libs/libffi:=
+ dev-libs/libpcre2:="
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-gentoo.patch )
+DOCS=( AUTHORS ChangeLog NEWS.md PACKAGES-USED {PORTING-NOTES,README}.md SUPPORTED-SRFIS )
+
+src_prepare() {
+ default
+
+ if ! use threads; then
+ sed -i '/threads.adoc/d' doc/refman/${PN}.adoc
+ rm -f tests/srfis/2{16,30}.stk
+ fi
+ eautoreconf
+ export LD="$(tc-getCC)"
+ export STKLOS_CONFDIR="${T}"/.config/${PN}
+}
+
+src_configure() {
+ econf \
+ --enable-threads=$(usex threads pthreads none) \
+ --without-provided-bignum \
+ --without-provided-ffi \
+ --without-provided-gc \
+ --without-provided-regexp
+}
+
+src_compile() {
+ emake
+}
+
+src_test() {
+ emake -j1 check
+}
+
+src_install() {
+ default
+ einstalldocs
+}