dev-scheme/mit-scheme: new package; add version 11.2

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2022-07-02 04:31:11 +02:00
parent e22b760e84
commit bdf408e814
4 changed files with 112 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST mit-scheme-11.2-svm1-64le.tar.gz 73077951 BLAKE2B 0e6741103c7a96f665e643fe6cab1a52bebcc8549845bf592029f73bbc9518937f45ccbac39e14d29b05b26f602ce810ae3f01030b0afb88560970ad3bb1f6dd SHA512 0bf2e8b1710a87da775b8fca53df808e23e45f6e6310a78b507fa87cd340c051cdf2ffe74268e9f6fc7bf3eaaa9321c2fc016e675fb41e59f648d1e69a1e8458

View File

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

View File

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

View File

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