summaryrefslogtreecommitdiff
path: root/dev-scheme/mit-scheme
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
committerV3n3RiX <venerix@koprulu.sector>2022-07-09 15:43:36 +0100
commit2719f73b6813d11d13a9650cdd2ab8ec6e69385d (patch)
tree8c816148bcbd22757d892089c989ae614eae4f5a /dev-scheme/mit-scheme
parent0f558761aa2dee1017b4751e4017205e015a9560 (diff)
gentoo resync : 09.07.2022
Diffstat (limited to 'dev-scheme/mit-scheme')
-rw-r--r--dev-scheme/mit-scheme/Manifest4
-rw-r--r--dev-scheme/mit-scheme/files/mit-scheme-11.2-no-Werror.patch21
-rw-r--r--dev-scheme/mit-scheme/metadata.xml21
-rw-r--r--dev-scheme/mit-scheme/mit-scheme-11.2.ebuild69
4 files changed, 115 insertions, 0 deletions
diff --git a/dev-scheme/mit-scheme/Manifest b/dev-scheme/mit-scheme/Manifest
new file mode 100644
index 000000000000..5b3003e0840b
--- /dev/null
+++ b/dev-scheme/mit-scheme/Manifest
@@ -0,0 +1,4 @@
+AUX mit-scheme-11.2-no-Werror.patch 671 BLAKE2B 7bc3a9524f275a1e0435484b9570e26b7ca6a30d0913a691f654f1fd6e51c0a0114daf7393c04f7850bc3a7c3c9c3f953df91ce0d609537069b7bb1c5760ab35 SHA512 7e1c692ed20d78d2747eb8186bc733766d5fa94eac2c45b50541d26a1b44c7393e267ba8da0f6866838af79f8805fcaeea8079bcd4d735db08eec7706ae8093e
+DIST mit-scheme-11.2-svm1-64le.tar.gz 73077951 BLAKE2B 0e6741103c7a96f665e643fe6cab1a52bebcc8549845bf592029f73bbc9518937f45ccbac39e14d29b05b26f602ce810ae3f01030b0afb88560970ad3bb1f6dd SHA512 0bf2e8b1710a87da775b8fca53df808e23e45f6e6310a78b507fa87cd340c051cdf2ffe74268e9f6fc7bf3eaaa9321c2fc016e675fb41e59f648d1e69a1e8458
+EBUILD mit-scheme-11.2.ebuild 1561 BLAKE2B f1ec0c18c5f42fcc801f16de017cf487c3faa5bdc4b26fffd9ef1eb1bd24af60a2eac9698af43f3be2b569f73b8bfe138e2f941775aa08fcd71aee780573776f SHA512 816396cc0f4801f7e6322e8c637ba837a1ca70fe50f0a0dbee6004034a8e6948f23881b9ff77d8c53c82a4d8d1ad0606cc691a243b8081fb6bf74974187326fc
+MISC metadata.xml 794 BLAKE2B dad36199d6afe4ecadcd5876684c9d9fb6e05495e680accf6a2017195b9a4a77968ce35197c4dd01e4c373fe26e8e4b79632140d3414fcda1b5f7a95653b73e9 SHA512 d7940fe1a834a57072f83f3d090d68dc20ffd6736064e054fb3a2298276168fcfecd6e25b3dfa9009730f1748a9215cf691bf86d8687b171b594b73786e7ba1c
diff --git a/dev-scheme/mit-scheme/files/mit-scheme-11.2-no-Werror.patch b/dev-scheme/mit-scheme/files/mit-scheme-11.2-no-Werror.patch
new file mode 100644
index 000000000000..5b156ddc7a15
--- /dev/null
+++ b/dev-scheme/mit-scheme/files/mit-scheme-11.2-no-Werror.patch
@@ -0,0 +1,21 @@
+index a9c3e6f..04f90b5 100755
+--- a/microcode/configure
++++ b/microcode/configure
+@@ -5482,7 +5482,7 @@ if test x"${GCC}" = xyes; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compiler $flag" >&5
+ $as_echo_n "checking for compiler $flag... " >&6; }
+ SAVED_CFLAGS=${CFLAGS}
+- CFLAGS="${SAVED_CFLAGS} ${flag} -Werror"
++ CFLAGS="${SAVED_CFLAGS} ${flag}"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -10751,7 +10751,7 @@ for base in ${OPTIONAL_BASES}; do
+ OPTIONAL_OBJECTS="${OPTIONAL_OBJECTS} ${base}.o"
+ done
+
+-CFLAGS="${CFLAGS} ${CFLAGS_WERROR}"
++CFLAGS="${CFLAGS}"
+ LIARC_CFLAGS="${LIARC_CFLAGS} ${CFLAGS_WNOERROR}"
+
+
diff --git a/dev-scheme/mit-scheme/metadata.xml b/dev-scheme/mit-scheme/metadata.xml
new file mode 100644
index 000000000000..c9a9415a00c7
--- /dev/null
+++ b/dev-scheme/mit-scheme/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription>
+ MIT/GNU Scheme is an implementation of the Scheme programming language,
+ providing an interpreter, compiler, source-code debugger, integrated
+ Emacs-like editor, and a large runtime library. MIT/GNU Scheme is best
+ suited to programming large applications with a rapid development cycle.
+ </longdescription>
+ <use>
+ <flag name="blowfish">Compile with blowfish encryption support</flag>
+ </use>
+ <upstream>
+ <bugs-to>https://savannah.gnu.org/bugs/?group=mit-scheme</bugs-to>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/mit-scheme/mit-scheme-11.2.ebuild b/dev-scheme/mit-scheme/mit-scheme-11.2.ebuild
new file mode 100644
index 000000000000..5b4c8feeb470
--- /dev/null
+++ b/dev-scheme/mit-scheme/mit-scheme-11.2.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit wrapper
+
+DESCRIPTION="Scheme interpreter, compiler, debugger and runtime library"
+HOMEPAGE="https://www.gnu.org/software/mit-scheme/
+ https://savannah.gnu.org/projects/mit-scheme/"
+SRC_URI="https://ftp.gnu.org/gnu/${PN}/stable.pkg/${PV}/${P}-svm1-64le.tar.gz"
+S="${S}"/src
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64" # Additionally arm64 is officially supported.
+IUSE="blowfish gdbm gui postgres"
+
+RDEPEND="
+ blowfish? ( dev-libs/openssl:= )
+ gdbm? ( sys-libs/gdbm:= )
+ gui? ( x11-libs/libX11 )
+"
+DEPEND="${RDEPEND}"
+
+PATCHES=( "${FILESDIR}"/${P}-no-Werror.patch )
+
+src_configure() {
+ local myconf=(
+ --disable-mcrypt
+ $(use_enable blowfish)
+ $(use_enable gdbm)
+ $(use_enable gui edwin)
+ $(use_enable gui imail)
+ $(use_enable gui x11)
+ $(use_enable postgres pgsql)
+ $(use_with gui x)
+ )
+ econf ${myconf[@]}
+}
+
+src_compile() {
+ # Fails with multiple make-jobs, at least it compiles relatively fast.
+ emake -j1
+}
+
+# Tests that theoretically fail (still passes):
+# microcode/test-flonum-except
+# runtime/test-arith
+# runtime/test-flonum
+# runtime/test-flonum.bin
+# runtime/test-flonum.com
+
+src_test() {
+ FAST=y emake check
+}
+
+src_install() {
+ default
+
+ # Create the edwin launcher.
+ use gui && make_wrapper mit-scheme-edwin 'mit-scheme --edit'
+
+ # Remove "scheme" symlink to not "discriminate" any other implementations.
+ rm "${ED}"/usr/bin/scheme || die
+
+ # Remove libtool files.
+ find "${ED}" -type f -name '*.la' -delete || die
+}