summaryrefslogtreecommitdiff
path: root/dev-scheme
diff options
context:
space:
mode:
Diffstat (limited to 'dev-scheme')
-rw-r--r--dev-scheme/c-wrapper/Manifest6
-rw-r--r--dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild38
-rw-r--r--dev-scheme/c-wrapper/files/c-wrapper-system-libffi.diff33
-rw-r--r--dev-scheme/c-wrapper/metadata.xml7
-rw-r--r--dev-scheme/chicken/Manifest5
-rw-r--r--dev-scheme/chicken/chicken-4.10.0-r1.ebuild67
-rw-r--r--dev-scheme/chicken/metadata.xml27
-rw-r--r--dev-scheme/elk/Manifest5
-rw-r--r--dev-scheme/elk/elk-3.99.8.ebuild30
-rw-r--r--dev-scheme/elk/metadata.xml11
-rw-r--r--dev-scheme/escm/Manifest5
-rw-r--r--dev-scheme/escm/escm-1.1.ebuild33
-rw-r--r--dev-scheme/escm/metadata.xml7
-rw-r--r--dev-scheme/gambit/Manifest7
-rw-r--r--dev-scheme/gambit/files/50gambit-gentoo.el10
-rw-r--r--dev-scheme/gambit/gambit-4.8.8-r1.ebuild61
-rw-r--r--dev-scheme/gambit/gambit-4.8.8.ebuild57
-rw-r--r--dev-scheme/gambit/metadata.xml8
-rw-r--r--dev-scheme/gauche-cdb/Manifest7
-rw-r--r--dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-gauche-package.diff133
-rw-r--r--dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-undefined-reference.diff22
-rw-r--r--dev-scheme/gauche-cdb/gauche-cdb-0.3.1-r1.ebuild28
-rw-r--r--dev-scheme/gauche-cdb/metadata.xml10
-rw-r--r--dev-scheme/gauche-gl/Manifest8
-rw-r--r--dev-scheme/gauche-gl/files/gauche-gl-0.6-simple.viewer.patch25
-rw-r--r--dev-scheme/gauche-gl/gauche-gl-0.5.1.ebuild46
-rw-r--r--dev-scheme/gauche-gl/gauche-gl-0.6.ebuild50
-rw-r--r--dev-scheme/gauche-gl/metadata.xml16
-rw-r--r--dev-scheme/gauche-gtk/Manifest8
-rw-r--r--dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff71
-rw-r--r--dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff11
-rw-r--r--dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff23
-rw-r--r--dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild80
-rw-r--r--dev-scheme/gauche-gtk/metadata.xml16
-rw-r--r--dev-scheme/gauche-kakasi/Manifest5
-rw-r--r--dev-scheme/gauche-kakasi/gauche-kakasi-0.1.ebuild33
-rw-r--r--dev-scheme/gauche-kakasi/metadata.xml10
-rw-r--r--dev-scheme/gauche-qdbm/Manifest7
-rw-r--r--dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-gauche-package.diff136
-rw-r--r--dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-undefined-reference.diff11
-rw-r--r--dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild28
-rw-r--r--dev-scheme/gauche-qdbm/metadata.xml10
-rw-r--r--dev-scheme/gauche/Manifest24
-rw-r--r--dev-scheme/gauche/files/gauche-0.9-ext-ldflags.patch11
-rw-r--r--dev-scheme/gauche/files/gauche-0.9-gauche.m4.patch19
-rw-r--r--dev-scheme/gauche/files/gauche-0.9-rfc.tls.patch12
-rw-r--r--dev-scheme/gauche/files/gauche-0.9-rpath.patch10
-rw-r--r--dev-scheme/gauche/files/gauche-0.9-xz-info.patch31
-rw-r--r--dev-scheme/gauche/files/gauche-0.9.3.3-file.util.patch21
-rw-r--r--dev-scheme/gauche/files/gauche-0.9.3.3-gauche.threads.patch120
-rw-r--r--dev-scheme/gauche/files/gauche-0.9.5-bsd.patch25
-rw-r--r--dev-scheme/gauche/files/gauche-0.9.5-libressl.patch19
-rw-r--r--dev-scheme/gauche/files/gauche-0.9.5-unicode.patch19
-rw-r--r--dev-scheme/gauche/files/gauche-ext-ldflags.patch11
-rw-r--r--dev-scheme/gauche/files/gauche-gauche.m4.patch18
-rw-r--r--dev-scheme/gauche/files/gauche-rfc.tls.patch12
-rw-r--r--dev-scheme/gauche/files/gauche-rpath.patch10
-rw-r--r--dev-scheme/gauche/files/gauche-xz-info.patch31
-rw-r--r--dev-scheme/gauche/gauche-0.9.3.3.ebuild52
-rw-r--r--dev-scheme/gauche/gauche-0.9.4-r1.ebuild56
-rw-r--r--dev-scheme/gauche/gauche-0.9.5.ebuild60
-rw-r--r--dev-scheme/gauche/metadata.xml22
-rw-r--r--dev-scheme/goosh/Manifest5
-rw-r--r--dev-scheme/goosh/goosh-1.3.ebuild16
-rw-r--r--dev-scheme/goosh/metadata.xml8
-rw-r--r--dev-scheme/greg/Manifest9
-rw-r--r--dev-scheme/greg/files/2.0.0-notest.patch12
-rw-r--r--dev-scheme/greg/files/greg-2.0.0-guile2.patch14
-rw-r--r--dev-scheme/greg/files/greg-2.0.0-test.patch12
-rw-r--r--dev-scheme/greg/greg-2.0.0-r1.ebuild32
-rw-r--r--dev-scheme/greg/greg-2.0.0.ebuild28
-rw-r--r--dev-scheme/greg/metadata.xml7
-rw-r--r--dev-scheme/guile-cairo/Manifest7
-rw-r--r--dev-scheme/guile-cairo/guile-cairo-1.4.0.ebuild28
-rw-r--r--dev-scheme/guile-cairo/guile-cairo-1.9.91.ebuild27
-rw-r--r--dev-scheme/guile-cairo/metadata.xml11
-rw-r--r--dev-scheme/guile-gnome-platform/Manifest12
-rw-r--r--dev-scheme/guile-gnome-platform/files/2.16.1-conflicting-types.patch34
-rw-r--r--dev-scheme/guile-gnome-platform/files/2.16.1-gcc45.patch11
-rw-r--r--dev-scheme/guile-gnome-platform/files/2.16.1-gdk-color.patch55
-rw-r--r--dev-scheme/guile-gnome-platform/files/2.16.1-glib-single-include.patch26
-rw-r--r--dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1-r1.ebuild70
-rw-r--r--dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1.ebuild59
-rw-r--r--dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.2.ebuild60
-rw-r--r--dev-scheme/guile-gnome-platform/metadata.xml8
-rw-r--r--dev-scheme/guile-gui/Manifest5
-rw-r--r--dev-scheme/guile-gui/guile-gui-0.2.ebuild18
-rw-r--r--dev-scheme/guile-gui/metadata.xml8
-rw-r--r--dev-scheme/guile-json/Manifest3
-rw-r--r--dev-scheme/guile-json/guile-json-0.6.0.ebuild16
-rw-r--r--dev-scheme/guile-json/metadata.xml8
-rw-r--r--dev-scheme/guile-lib/Manifest7
-rw-r--r--dev-scheme/guile-lib/guile-lib-0.1.9.ebuild20
-rw-r--r--dev-scheme/guile-lib/guile-lib-0.2.4.ebuild20
-rw-r--r--dev-scheme/guile-lib/metadata.xml8
-rw-r--r--dev-scheme/guile-www/Manifest7
-rw-r--r--dev-scheme/guile-www/guile-www-2.34.ebuild22
-rw-r--r--dev-scheme/guile-www/guile-www-2.35.ebuild22
-rw-r--r--dev-scheme/guile-www/metadata.xml8
-rw-r--r--dev-scheme/guile/Manifest21
-rw-r--r--dev-scheme/guile/files/50guile-gentoo.el1
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-fix_guile-config.patch14
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-gcc46.patch39
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-gcc5.patch15
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-gtexinfo-5.patch15
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-makeinfo-5.patch71
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-mkdir-mask.patch35
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-readline.patch34
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-sandbox.patch15
-rw-r--r--dev-scheme/guile/files/guile-1.8.8-tinfo.patch15
-rw-r--r--dev-scheme/guile/files/guile-2-snarf.patch47
-rw-r--r--dev-scheme/guile/files/guile-2.0.14-darwin.patch38
-rw-r--r--dev-scheme/guile/guile-1.8.8-r3.ebuild118
-rw-r--r--dev-scheme/guile/guile-2.0.13-r2.ebuild80
-rw-r--r--dev-scheme/guile/guile-2.0.14-r2.ebuild85
-rw-r--r--dev-scheme/guile/metadata.xml21
-rw-r--r--dev-scheme/ikarus/Manifest7
-rw-r--r--dev-scheme/ikarus/files/ikarus-0.0.3_p1870-cpu_has_sse2.patch12
-rw-r--r--dev-scheme/ikarus/files/ikarus-0.0.3_p1870-ikarus-enter.patch13
-rw-r--r--dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild63
-rw-r--r--dev-scheme/ikarus/metadata.xml17
-rw-r--r--dev-scheme/jscheme/Manifest5
-rw-r--r--dev-scheme/jscheme/jscheme-7.2.ebuild34
-rw-r--r--dev-scheme/jscheme/metadata.xml16
-rw-r--r--dev-scheme/kawa/Manifest11
-rw-r--r--dev-scheme/kawa/files/kawa-1.10.patch24
-rw-r--r--dev-scheme/kawa/files/kawa-1.14.patch24
-rw-r--r--dev-scheme/kawa/kawa-1.10.ebuild109
-rw-r--r--dev-scheme/kawa/kawa-1.14.ebuild108
-rw-r--r--dev-scheme/kawa/metadata.xml30
-rw-r--r--dev-scheme/metadata.xml41
-rw-r--r--dev-scheme/net-http/Manifest6
-rw-r--r--dev-scheme/net-http/metadata.xml8
-rw-r--r--dev-scheme/net-http/net-http-0.3.1-r1.ebuild35
-rw-r--r--dev-scheme/net-http/net-http-0.3.1.ebuild25
-rw-r--r--dev-scheme/racket/Manifest11
-rw-r--r--dev-scheme/racket/metadata.xml35
-rw-r--r--dev-scheme/racket/racket-5.3.6.ebuild71
-rw-r--r--dev-scheme/racket/racket-6.7.ebuild70
-rw-r--r--dev-scheme/racket/racket-6.9.ebuild132
-rw-r--r--dev-scheme/scheme48/Manifest7
-rw-r--r--dev-scheme/scheme48/files/50scheme48-gentoo.el10
-rw-r--r--dev-scheme/scheme48/files/CVE-2014-4150.patch11
-rw-r--r--dev-scheme/scheme48/metadata.xml13
-rw-r--r--dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild71
-rw-r--r--dev-scheme/scm/Manifest6
-rw-r--r--dev-scheme/scm/files/scm-5.5.6-multiplefixes.patch81
-rw-r--r--dev-scheme/scm/metadata.xml34
-rw-r--r--dev-scheme/scm/scm-5.5.6-r3.ebuild167
-rw-r--r--dev-scheme/scmxlate/Manifest5
-rw-r--r--dev-scheme/scmxlate/metadata.xml12
-rw-r--r--dev-scheme/scmxlate/scmxlate-20090410-r1.ebuild23
-rw-r--r--dev-scheme/sigscheme/Manifest5
-rw-r--r--dev-scheme/sigscheme/metadata.xml17
-rw-r--r--dev-scheme/sigscheme/sigscheme-0.8.5-r1.ebuild17
-rw-r--r--dev-scheme/slib/Manifest13
-rw-r--r--dev-scheme/slib/files/50slib1
-rw-r--r--dev-scheme/slib/files/slib-3.2.2-fix-texinfo.awk123
-rw-r--r--dev-scheme/slib/files/slib-3.2.5-fix-makefile-guile.patch23
-rw-r--r--dev-scheme/slib/files/slib-3.2.5-fix-paths.patch42
-rw-r--r--dev-scheme/slib/metadata.xml16
-rw-r--r--dev-scheme/slib/slib-3.2.1.ebuild129
-rw-r--r--dev-scheme/slib/slib-3.2.2.ebuild130
-rw-r--r--dev-scheme/slib/slib-3.2.5-r1.ebuild122
-rw-r--r--dev-scheme/stklos/Manifest5
-rw-r--r--dev-scheme/stklos/metadata.xml15
-rw-r--r--dev-scheme/stklos/stklos-1.10-r1.ebuild35
-rw-r--r--dev-scheme/termite/Manifest5
-rw-r--r--dev-scheme/termite/metadata.xml15
-rw-r--r--dev-scheme/termite/termite-0.15-r1.ebuild30
-rw-r--r--dev-scheme/tinyscheme/Manifest6
-rw-r--r--dev-scheme/tinyscheme/files/tinyscheme-1.41-makefile.patch50
-rw-r--r--dev-scheme/tinyscheme/metadata.xml14
-rw-r--r--dev-scheme/tinyscheme/tinyscheme-1.41.ebuild62
-rw-r--r--dev-scheme/ypsilon/Manifest6
-rw-r--r--dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch11
-rw-r--r--dev-scheme/ypsilon/metadata.xml13
-rw-r--r--dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild39
178 files changed, 5472 insertions, 0 deletions
diff --git a/dev-scheme/c-wrapper/Manifest b/dev-scheme/c-wrapper/Manifest
new file mode 100644
index 000000000000..6469a5945f5f
--- /dev/null
+++ b/dev-scheme/c-wrapper/Manifest
@@ -0,0 +1,6 @@
+AUX c-wrapper-system-libffi.diff 977 SHA256 ad85f1516907ae4f4360753a9329e924e31180aebd551dc816be06b637779300 SHA512 55eeebb61a23a0399acc90b8278ea8ae4738a35698590ae276376ee7d0ef02bb5913a4583a8f29a42bcbb91546238493310d0ae84b46260a96da33eacfd701d1 WHIRLPOOL 5003c24ddd5b1e84c7847ff06839698d256d2b891df53b6304d03f5768d33b5e2e6080fa1ac7bb7c64b8962e69784ea598cffdaf8042523e7912660fb73e5539
+DIST c-wrapper-0.6.1.tgz 843981 SHA256 d0f4037c29c149f385c12d7aa07deb5db7549029657fb60ee286f5942329d92b SHA512 a03a4d57d112d2c23dac3716bae081e3e6f02dcef261bd8dd518ed8519b43e28f9e61a36f7584b2bcb1762112c128d0b698cda422cc0c9d1190cbf7502ea04b0 WHIRLPOOL 3bdc72f1889aa2f37d3ebf3c6aaa2ed8d2f9b25d51b67c3a7ed1dc74076c7d82ba46c8e3cc3e235d992661fa6bacd019dff380961f0ac51a6a16babf4c515453
+EBUILD c-wrapper-0.6.1.ebuild 689 SHA256 088896895b9007a94ba018a3512578a17355f794bff37847a054b4c5aa054466 SHA512 e2eaeb13265e7fff4376ad0e25e6805f5ee7ca4b94ac13c450043877ca56cecde4dca1e4113f08ff27e2aede54d8a1e29be9c63953b040f482d2520589d43e59 WHIRLPOOL 4cf736bf95130ada14c44587ca4bf68c1675af836f467cec278336b4961877996601b8311dcde92e5028afcd626775653b29c46345b944589e70e7e1217db2c5
+MISC ChangeLog 2221 SHA256 4c6b36ad3b75de676c204e226472337b5714acb6788c75f04832300cda4a667a SHA512 bfac2b9e45c8647eb343063762f7ff8d9f987141dfd595bb58fc8995ad73531863cf08a233aee4f6896dff7b85d48173d434288b787e5c9af76e2022d33b129d WHIRLPOOL 0abc5b3b1765013d0b7398d5a82ee36449a9bef1caf4711ddda96078a0647a94373a51b1611b852cee02f288463277a7287b1f1c76ca1fa5e6f177edf398fa99
+MISC ChangeLog-2015 1186 SHA256 c9076cd6dbd89da12a0268312b90764f923c12809200edcf69ea3a2079981044 SHA512 ee41cc048cef2e56a0bccb7eb5801172fb531d8af8d1fe8b3f0379d79efe4d678f064566cdcb65cba42ae6f84ee7795a6b009a16b51e100cbb9419b16406325f WHIRLPOOL e8ca9c05e8145b45dbb1025b553962a0815085fc5e2529c581a8b240a8c2f0e5664380b59dbaceaaada56fc65720b50f4abd4336341d82e75548d6847001d982
+MISC metadata.xml 221 SHA256 27a3fa259bbce0eb90b1fe397126b9d5ef4e906e824ae72f9ea923fff8da6d02 SHA512 a11e9bbbabc9ac96985c5dc247e601b065fa762f12bce74224896c27aee34eb908187622bfc849c39c6c722a8ef8ee72b248afc84da1b0eb72f1ff5eeb13bbf0 WHIRLPOOL e8ddaad694d5f22a229ccc3dc7597a11dce9ffd502ed3fa64b9cc760d3404c4dac31c9b9948b38b2eee0efc446a8aee52a73f87ec28d229670ba3bfc3cb9a95c
diff --git a/dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild b/dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild
new file mode 100644
index 000000000000..e20f77d0d1fa
--- /dev/null
+++ b/dev-scheme/c-wrapper/c-wrapper-0.6.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools eutils
+
+DESCRIPTION="Foreign function interface for C and Objective-C libraries"
+HOMEPAGE="http://www.koguro.net/prog/c-wrapper/"
+SRC_URI="http://www.koguro.net/prog/${PN}/${P}.tgz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="examples"
+
+RDEPEND="dev-scheme/gauche
+ virtual/libffi"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-system-libffi.diff
+ eautoreconf
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ default
+ dohtml doc/*
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ dodoc -r examples
+ fi
+}
diff --git a/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.diff b/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.diff
new file mode 100644
index 000000000000..7ee9a4011ef3
--- /dev/null
+++ b/dev-scheme/c-wrapper/files/c-wrapper-system-libffi.diff
@@ -0,0 +1,33 @@
+--- c-wrapper-0.6.1.orig/configure.ac
++++ c-wrapper-0.6.1/configure.ac
+@@ -53,6 +53,7 @@
+
+ dnl Check for libraries
+ dnl Add your macro calls to check required libraries, if you have any.
++PKG_CHECK_MODULES([FFI], [libffi])
+
+ dnl Platform-dependent configuration.
+ AC_ARG_ENABLE(objc, [ --enable-objc turn on Objective-C support])
+--- c-wrapper-0.6.1.orig/src/Makefile.in
++++ c-wrapper-0.6.1/src/Makefile.in
+@@ -20,9 +20,9 @@
+ GAUCHE_PACKAGE = @GAUCHE_PACKAGE@
+ INSTALL = @GAUCHE_INSTALL@
+
+-CPPFLAGS = -I./libffi/include -DGAUCHE_API_0_8_8 @CPPFLAGS@
++CPPFLAGS = -DGAUCHE_API_0_8_8 @FFI_CFLAGS@ @CPPFLAGS@
+ LDFLAGS = @LDFLAGS@
+-LIBS = libffi/.libs/libffi.a @LIBS@
++LIBS = @FFI_LIBS@ @LIBS@
+
+ YACC = @YACC@
+
+@@ -38,7 +38,7 @@
+ SCMFILES =
+ HEADERS =
+
+-TARGET = libffi/.libs/libffi.a $(ARCHFILES)
++TARGET = $(ARCHFILES)
+ GENERATED = libffi
+ CONFIG_GENERATED = libffi/Makefile Makefile cwcompile
+
diff --git a/dev-scheme/c-wrapper/metadata.xml b/dev-scheme/c-wrapper/metadata.xml
new file mode 100644
index 000000000000..21dc8fdf43ff
--- /dev/null
+++ b/dev-scheme/c-wrapper/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/chicken/Manifest b/dev-scheme/chicken/Manifest
new file mode 100644
index 000000000000..89c68cddacc7
--- /dev/null
+++ b/dev-scheme/chicken/Manifest
@@ -0,0 +1,5 @@
+DIST chicken-4.10.0.tar.gz 4020442 SHA256 0e07f5abcd11961986950dbeaa5a40db415f8a1b65daff9c300e9b05b334899b SHA512 ff3405652e232ba7b06a8d4fc092772259f0917b1cdd119c0cf38f27ba95fca99d2c053c0f08317014fd7085e8cf89f68b56f22cb82c2988914b972ce59e3e29 WHIRLPOOL a413fe53c1e630d88b37bc59e8035219811f71a2a7a89c3ca6fc034f645e0029bb3162a3ae152ce11895c941322de86dd15447da7946f8e53967a58e5e031c47
+EBUILD chicken-4.10.0-r1.ebuild 1677 SHA256 9c2ba5e95fc109adceee9f07ecfba4139ad6e07d1333163b366ead9ced50debb SHA512 bbed26b9304314a5b9b1cf5c8c6dad23ef453b53f833b73894a4ea79bbe9e58b69b02a9f915575ef36ff61fc9b2f3eb659c2018e5eaf124d91e3e7fa5dae386f WHIRLPOOL fed5232c58e5c5369414b32a410009ee705dc3ca378139ad877202022637f995f6db6c2194c5cfb46bc0af64b785bbc78f1d79f184cb6b371db4ec9d815c4417
+MISC ChangeLog 5461 SHA256 2010666c5acb71c161bf9e8d2abdd017e2c488449f3863f0d4bda9103121f636 SHA512 35d2bdf646206f9425ce99e5639c19c82abdbd9d4139324ce1a360dd5b8eda927c56ecd7aa8f4cb427bbbee832c3e599c538ad39c89e1c0827c780c62c2b8a0b WHIRLPOOL 7cd56198daf49b1f27963c30e25464ebc72dfccfb0df08a2e84ad4b75cf7744a27e86dc2f444e08e04da1b5111a376b2cb84593106614e73db3ea0abe4c3bbad
+MISC ChangeLog-2015 9510 SHA256 9b6ab33ead78605222453f07a3d2820e2471c23690240f0acb911ace40153632 SHA512 b24034ade3bb894146b593aec5e6d0d50887615c88f340073bf1afc531310821e771fd26e11ab8aaa0198e923ae0a82f17b1e803b45eb7fbb2e550daa9a4d110 WHIRLPOOL 5f6eedd0ab42a29ace24a21892895d4ff197b73da8757a3d458b6745413009bc09757d8a04d8276ed28884f3a6016b5094674b33e97c6d0dbccd43ec6a696b2d
+MISC metadata.xml 936 SHA256 cb449fcdcdacb1ba2e7dd13368276f0f2f057f713bad9f7f1602bdff3f7c55e5 SHA512 089503adb17c643f2f28b90102eae6c706e3f187c1cc060bfc86626fc6e5bea03b6ec53c7f799586b61e107ed295a6b416358df12f8434f2e3caf3b0ace061ea WHIRLPOOL c6241d78e8ec100333a7cd0ecb6c39908bd2ebbf1c24f7de6f69d722ceffedfeb1ed363e7a54aa46ec83304b113fd33b7673db2ead9b4f2bb7b9b85ae7d5fac1
diff --git a/dev-scheme/chicken/chicken-4.10.0-r1.ebuild b/dev-scheme/chicken/chicken-4.10.0-r1.ebuild
new file mode 100644
index 000000000000..dc2acfa8f51f
--- /dev/null
+++ b/dev-scheme/chicken/chicken-4.10.0-r1.ebuild
@@ -0,0 +1,67 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib versionator
+
+MY_PV=$(get_version_component_range 1-3)
+DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler"
+HOMEPAGE="http://www.call-cc.org/"
+SRC_URI="http://code.call-cc.org/releases/${MY_PV}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="alpha amd64 ppc ppc64 x86"
+IUSE="emacs doc"
+DOCS=( NEWS README LICENSE )
+
+DEPEND="
+ sys-apps/texinfo
+ emacs? ( virtual/emacs )"
+RDEPEND="
+ emacs? (
+ virtual/emacs
+ app-emacs/scheme-complete
+ )"
+
+src_prepare() {
+ #Because chicken's Upstream is in the habit of using variables that
+ #portage also uses :( eg. $ARCH and $A
+ sed "s,A\(\s?=\|)\),chicken&," \
+ -i Makefile.cross-linux-mingw defaults.make rules.make || die
+ sed "s,ARCH,zARCH," \
+ -i Makefile.* defaults.make rules.make || die
+ sed -e "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," \
+ -e "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${PF}," \
+ -i defaults.make || die
+
+ # remove HTML documentation if the user doesn't USE=doc
+ if ! use "doc"; then
+ rm -rf manual-html || die
+ fi
+}
+
+src_compile() {
+ OPTIONS="-j1 PLATFORM=linux PREFIX=/usr"
+
+ emake ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \
+ LINKER_OPTIONS="${LDFLAGS}" \
+ HOSTSYSTEM="${CBUILD}"
+}
+
+# chicken's testsuite is not runnable before install
+# upstream has been notified of the issue
+RESTRICT=test
+
+src_install() {
+ # still can't run make in parallel for the install target
+ emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" \
+ LINKER_OPTIONS="${LDFLAGS}" install
+
+ dodoc ${DOCS}
+
+ if use "doc"; then
+ dodoc -r manual-html
+ fi
+}
diff --git a/dev-scheme/chicken/metadata.xml b/dev-scheme/chicken/metadata.xml
new file mode 100644
index 000000000000..0d1a5690eef1
--- /dev/null
+++ b/dev-scheme/chicken/metadata.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>ewfalor@gmail.com</email>
+ <name>Erik Falor</name>
+</maintainer>
+<maintainer type="person">
+ <email>maksbotan@gentoo.org</email>
+ <name>Maxim Koltsov</name>
+</maintainer>
+<maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+<longdescription>
+CHICKEN is a compiler for the Scheme programming language. CHICKEN produces
+portable, efficient C, supports almost all of the current Scheme language
+standard, the Revised5 Report on the Algorithmic Language Scheme (R5RS ), and
+includes many enhancements and extensions. CHICKEN runs on MacOS X, Windows, and
+many Unix flavours.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/elk/Manifest b/dev-scheme/elk/Manifest
new file mode 100644
index 000000000000..032f7a285f89
--- /dev/null
+++ b/dev-scheme/elk/Manifest
@@ -0,0 +1,5 @@
+DIST elk-3.99.8.tar.bz2 701206 SHA256 a148320c8d2c2b1277ad3572a9d8a9eb4db0473643caa35f098e28c9da14dc66 SHA512 dd966bf6063b4e04c0947e56381cc9456ea81cf4ec66d04e80cb79485d39414f0b713520278a62fa4630068f245f33b28b08b5fd4a7defd0bcb20bf2eba4ed49 WHIRLPOOL 3b8f6a26277ebe5c2e4ad2420b7e842b125bde1406120e89db5a25c770e70dd015a300289432e15e541d588fef451233c72ce7236a93cdf653430933c09a18bc
+EBUILD elk-3.99.8.ebuild 672 SHA256 c157c00d19dfe48a7b1d15cfc65bc7bd7ce73d1c86fa3a5c2f20f2b0298883bb SHA512 d10c9e5cb66947d1768a467841803140fefb03196025ea5dea7b86e90087deda61620d10d593556a96ef495c8492f10bb875eedfec95803dfefb38e07f28e40a WHIRLPOOL cc00336523968291e935ea8a064f843eb6f922c143edb5bfc07b698cf8ae38c113f66394859047efb30e51c8f292ba292c76d1612f63a472b18c19405defc742
+MISC ChangeLog 2540 SHA256 91db63739f39e5adec18161484919d8fb30c2250b978123388bbb2b1d425a167 SHA512 8fca3952c78903f3e00bf43629263b34ae18084c1cffc5bfb2dd62e9c48a1168d442680abc586bdec8835f9b7424a9959f8c40e314ae4119551d9ae95cbfac3b WHIRLPOOL 730552695bdc87f3171d3a09630a32a04988366c491a3cc1220b3dbaf3ef4bb71d121fee3dd7a47ba304989386a2552e98515ea9fba017f5d35a63f69372943c
+MISC ChangeLog-2015 735 SHA256 dd7e4f6abcead5f23144f1aa0ff3cb0f47e8c94fd915971a06b5db4694a2bf44 SHA512 c47320e64aa7c847ac7ad0e65f2adae8a69e24688b8eccd7c28f101a7bb7e9dcd81e58f81fc48f316c586e53345d7c124c928193bd8d5d81c26c909149b3ef48 WHIRLPOOL f1b6b2324b9937d2c4a4139dd45eb968eb9507acc4c08fabdc75249e013f26bae06c1a569135d51e053b96e6837d719bb02511ade6c7bc0abd72b600ad79194b
+MISC metadata.xml 547 SHA256 da38878e9cdc39be297716bcda63946df3e26066f96bd7d96195dd28a799a2ad SHA512 e1b074c8d4c1757696aeebf4baaf6f81dea9ea5d7c26aeabf08165be1db955556e77ff96d384557b22f6d508bc3393931b66e7690f3541bd702880827342a9d4 WHIRLPOOL 8e84f5893b57626b0784405d18a75d2a917e339525af6145fc8a8ad0eddcb3e4d05cae97e92e2715ff58193db7a8bd599cdc01cabadd38cf70d37f2f814677e4
diff --git a/dev-scheme/elk/elk-3.99.8.ebuild b/dev-scheme/elk/elk-3.99.8.ebuild
new file mode 100644
index 000000000000..cf741d71b8c2
--- /dev/null
+++ b/dev-scheme/elk/elk-3.99.8.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+DESCRIPTION="Scheme implementation designed to be embeddable extension to C/C++ applications"
+HOMEPAGE="http://sam.zoy.org/elk"
+SRC_URI="http://sam.zoy.org/elk/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+
+DEPEND=""
+
+src_compile() {
+ # parallel build is broken
+ emake -j1 || die "Make failed!"
+}
+
+# tests are run automatically during make and fail with default src_test
+src_test() {
+ echo "Tests already run during compile"
+}
+
+src_install() {
+ # parallel install is broken
+ emake -j1 DESTDIR="${D}" install || die "Install failed"
+}
diff --git a/dev-scheme/elk/metadata.xml b/dev-scheme/elk/metadata.xml
new file mode 100644
index 000000000000..77f00b6bf41b
--- /dev/null
+++ b/dev-scheme/elk/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Elk is an implementation of the Scheme programming language. In contrast to existing, stand-alone Scheme systems Elk has been designed specifically as an embeddable, reusable extension language subsystem for applications written in C or C++.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/escm/Manifest b/dev-scheme/escm/Manifest
new file mode 100644
index 000000000000..f16e8c9aa86f
--- /dev/null
+++ b/dev-scheme/escm/Manifest
@@ -0,0 +1,5 @@
+DIST escm-1.1.tar.gz 22344 SHA256 8e125d5b0a0ea9b170d135c54035993da85025070ac1249d5ebe17064eb66e91 SHA512 7df97d8b9e7c4b46b412e3dd24a2b0b3f4028d45b1940d12b09f0801c93ab1868ef5c239d8f1bfb18d5c86f473aa543d9b735eb1f05b4bb3e4b17177d2ed9102 WHIRLPOOL 50f43a5f2122c7c61ff84fa333ae1d5f68d7560a8559f8cfd1d9b53feedeb917f6127d15ebfec201a57ca596b5cda87f8089c55cb8b342b1fe09f434c3d573ee
+EBUILD escm-1.1.ebuild 615 SHA256 8e892254b184d5104c89a1528ec70ae6bed6b03ecd0b3756436cecb60495c9b5 SHA512 b70a5ac5abd4bd8e626a73146bc9a556a0c0585585ffaa958cffe494022c89c3c9c8f85a638ae012394ca0b6d140c068ddba5aa4f56f49a63a93e64bfbf75ae6 WHIRLPOOL ba8a2ef0f705d2ef6ae9f2acdad657444c790927977b67346507e3b5f9fd29dc410597f0d12fc1bfd2c128efa182961b7ca695dd7d57d6ea954f2257b3bfd0a7
+MISC ChangeLog 2165 SHA256 b45dda823a91478af830cb8c5552996e4159c2d8b57a146b163f2502341706ac SHA512 c4fb534294e5f9e882241681f5ec7e6f071b160c5f747e0f246cd4b07c7a474b5bb6a19062fdb217886eec9465b71c7a34e877a764cd5ad3f62f93e14639c1a6 WHIRLPOOL 29ec79168d013a238886f5384ba0f11e431a853d5b95f7f5abed24ccf5137f934657c2b7eabbe9dc57ae5c9c413fabda5c1ea15482b30a0df603a3faf2aec171
+MISC ChangeLog-2015 1134 SHA256 bcbb1fba64edb9e933ad81474bcff99fd30958da6ffb75739d63e1f0533f54f8 SHA512 5821f6664612de1951bad1e1d819d696100b157c5850e07e32ed4c3c342dda4bb7cd7d29a340a3c3a57f650d0f51f5a921966fa488b6174ce8b9cb21c09e328a WHIRLPOOL 66fb0602c9975bee20d2db257d12415e3f06c0d74328d4f1a0d56d26136415113e28f760326819261119f8a1748ed39cd126f3ac6c5c19b70794299f3fc3e819
+MISC metadata.xml 221 SHA256 27a3fa259bbce0eb90b1fe397126b9d5ef4e906e824ae72f9ea923fff8da6d02 SHA512 a11e9bbbabc9ac96985c5dc247e601b065fa762f12bce74224896c27aee34eb908187622bfc849c39c6c722a8ef8ee72b248afc84da1b0eb72f1ff5eeb13bbf0 WHIRLPOOL e8ddaad694d5f22a229ccc3dc7597a11dce9ffd502ed3fa64b9cc760d3404c4dac31c9b9948b38b2eee0efc446a8aee52a73f87ec28d229670ba3bfc3cb9a95c
diff --git a/dev-scheme/escm/escm-1.1.ebuild b/dev-scheme/escm/escm-1.1.ebuild
new file mode 100644
index 000000000000..3aac05017dca
--- /dev/null
+++ b/dev-scheme/escm/escm-1.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit autotools toolchain-funcs
+
+DESCRIPTION="escm - Embedded Scheme Processor"
+HOMEPAGE="http://practical-scheme.net/vault/escm.html"
+SRC_URI="http://practical-scheme.net/vault/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 x86"
+IUSE=""
+
+RDEPEND="|| (
+ dev-scheme/gauche
+ dev-scheme/guile
+ )"
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ sed -i -e "6s/scm, snow/scm gosh, gosh/" configure.in
+ eautoconf
+ tc-export CC
+}
+
+src_install() {
+ dobin escm
+ doman escm.1
+ dodoc ChangeLog escm.html
+}
diff --git a/dev-scheme/escm/metadata.xml b/dev-scheme/escm/metadata.xml
new file mode 100644
index 000000000000..21dc8fdf43ff
--- /dev/null
+++ b/dev-scheme/escm/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/gambit/Manifest b/dev-scheme/gambit/Manifest
new file mode 100644
index 000000000000..a234293aa626
--- /dev/null
+++ b/dev-scheme/gambit/Manifest
@@ -0,0 +1,7 @@
+AUX 50gambit-gentoo.el 386 SHA256 70feee41315a0c588b13eda7e85b6c3546f933ac500e4e25dbe4b9cd186ca88b SHA512 acf956bd70c176b4cccbdab2dd1611ef5a30b7899d51b32341509168fdac52312f0f543c5c519ed005049a2e40d9dcfc67284adaebedd9a781fe12a3ea974e97 WHIRLPOOL 755face5f94ae1970ad518bc4f8f79d5423614ac6dfc9a25d1676ec7454ab077032c9980032620de954a068ad814b932f93f60f33e29d971bb2968353c1029d0
+DIST gambit-v4_8_8.tgz 13272335 SHA256 73beaa5526e998a7bf46208e6b5d5f307cd66c1a3f61e30913ef56925a0c9cde SHA512 99367cf5726d0d3aa59e39f1ef8b69347d92b7f3055e0656d66cbadb69ed4d8e499825395eddd41a4409b9cc57c2d2242ac5b8c29c37b84950b57468b5d92909 WHIRLPOOL 5b430caf1199099481b7cbf5404057233d82dc34639d989301e5efe88c6796bb91b35cf50930ed608d9e0df1ab472ff9b3c7cd5c6fd1b7eb07f48e8a4cd24d55
+EBUILD gambit-4.8.8-r1.ebuild 1264 SHA256 1ae793200a85042b6173042c4474a726c6a161304b61575ed7211f8626bee18b SHA512 12506833dda8f2163e89e75a6d228333183b80ce8ab134d3303ad10393d62c7450dae22637f4d347492c9b393535ababe39ad1a89f4b320a801242c835696fc6 WHIRLPOOL 9a0f65fb4f429fefe0f128096451d08cbc2266a433dfcf7256af1bbaef957c3e191051cff8161cdd6ff0e92d01ae21e4af5824ea1ad7b649d683f6cdc3b2edce
+EBUILD gambit-4.8.8.ebuild 1188 SHA256 df97f545097b476645d187bffcc6effd43cca2cfc090badda2f8cc05360fb566 SHA512 b0f01ac4dc050fbfbe0943369039efbc483e570123c58ce3ebcdddd250dd73889f6283edc7cfaee74c294ec634ac8fa736356e41bf7cebb8aaf4af9035255115 WHIRLPOOL d58f5f5f9af2291ed21d020007d48c8e2ff2811e48caec84be12c0ee80ef1bd31687c450542e9f764dee09595bbca8c2f58d43f7d501188990340f5f71a30221
+MISC ChangeLog 2969 SHA256 7901ef3ce7fcb1d56e160ade8664724ee47c38c55251b2b81a05c4f139a8468d SHA512 e0ee76df3f682279a0bb44d0eb95d6c8d510a699c95653ec439fa9bb800db7ab752fcf9ef2880e541bd20dfff4fe5f5c6439bbcea8015af83098b158eec32583 WHIRLPOOL f6b042200b320f3926ed00c2f9f74323e385a9f8ed8e0e5f1ff0db890ec7f6eaa26557f93b9240999d07e96269ccda36713fd427f23826531f9108c33a1e1c01
+MISC ChangeLog-2015 7023 SHA256 7c0ae463e19d88985389a3e337e1a921c33cf6898779ccc67067c67ec66d9061 SHA512 30fe1652866f3e04aa6630c81f3c7d1be986a9002abb8c94594347298c89f5c3ae9592352b99c3b3a7466adc1a7b677634a25bc70e3742cb2b4d4337bf676f24 WHIRLPOOL 709a915f4f3037faaed1410864a790b9e2bad2d0d2944a9e34fe47c27afcc550333cb0b22111df523f005eb0d3611a29f3a5c5a794e26fb6dfef05e5cba56b2b
+MISC metadata.xml 251 SHA256 52d3b594d034e106a0c8cae1b07de3f3681c18d21824174b4e6345d7b57b1a73 SHA512 4fda90c4191ba8ea396da2c4a434893d4b9df976a918e4fb5651acaf92c6efc9103b738681a3d29abe801a4ad09eecf5a4b0bd799dab5b5f1e42a34c3b27d918 WHIRLPOOL 099a971fbe7cb62be17ec8078ebcbc635b1d155c914fc271b6c7ac4f15c3367c876934c0df91028d948e76ba76257ef41e86b467abc2387006e5cebd186de376
diff --git a/dev-scheme/gambit/files/50gambit-gentoo.el b/dev-scheme/gambit/files/50gambit-gentoo.el
new file mode 100644
index 000000000000..2e8e196ba04d
--- /dev/null
+++ b/dev-scheme/gambit/files/50gambit-gentoo.el
@@ -0,0 +1,10 @@
+
+;;; gambit site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+(autoload 'gambit-inferior-mode "gambit" "Hook Gambit mode into cmuscheme.")
+(autoload 'gambit-mode "gambit" "Hook Gambit mode into scheme.")
+
+;; (add-hook 'inferior-scheme-mode-hook (function gambit-inferior-mode))
+;; (add-hook 'scheme-mode-hook (function gambit-mode))
+;; (setq scheme-program-name "gsi -:t")
diff --git a/dev-scheme/gambit/gambit-4.8.8-r1.ebuild b/dev-scheme/gambit/gambit-4.8.8-r1.ebuild
new file mode 100644
index 000000000000..f2e841b8b94d
--- /dev/null
+++ b/dev-scheme/gambit/gambit-4.8.8-r1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils elisp-common
+
+MY_PV="${PV//./_}"
+MY_P="${PN}-v${MY_PV}"
+
+DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter"
+HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
+SRC_URI="http://www-labs.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz"
+
+LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+
+RDEPEND="ssl? ( dev-libs/openssl:0 )"
+DEPEND="
+ ${RDEPEND}
+ emacs? ( virtual/emacs )
+"
+
+SITEFILE="50gambit-gentoo.el"
+
+S="${WORKDIR}/${MY_P}" #-devel
+
+IUSE="emacs ssl static"
+
+src_configure() {
+ econf $(use_enable !static shared) \
+ $(use_enable ssl openssl) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --enable-gnu-gcc-specific-options \
+ --enable-gnu-gcc-no-strict-aliasing \
+ --enable-single-host \
+ --disable-absolute-shared-libs \
+ --enable-type-checking
+}
+
+src_compile() {
+ emake bootstrap
+
+ if use emacs; then
+ elisp-compile misc/*.el || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir /usr/share/"${MY_PN}"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-scheme/gambit/gambit-4.8.8.ebuild b/dev-scheme/gambit/gambit-4.8.8.ebuild
new file mode 100644
index 000000000000..999cda7fb2eb
--- /dev/null
+++ b/dev-scheme/gambit/gambit-4.8.8.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils elisp-common
+
+MY_PV="${PV//./_}"
+MY_P="${PN}-v${MY_PV}"
+
+DESCRIPTION="Gambit-C is a native Scheme to C compiler and interpreter"
+HOMEPAGE="http://www.iro.umontreal.ca/~gambit/"
+SRC_URI="http://www-labs.iro.umontreal.ca/~gambit/download/gambit/v${PV%.*}/source/${MY_P}.tgz"
+
+LICENSE="|| ( Apache-2.0 LGPL-2.1 )"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+
+DEPEND="emacs? ( virtual/emacs )"
+RDEPEND=""
+
+SITEFILE="50gambit-gentoo.el"
+
+S="${WORKDIR}/${MY_P}" #-devel
+
+IUSE="emacs static"
+
+src_configure() {
+ econf $(use_enable !static shared) \
+ --docdir="${EPREFIX}"/usr/share/doc/${PF} \
+ --enable-gnu-gcc-specific-options \
+ --enable-gnu-gcc-no-strict-aliasing \
+ --enable-single-host \
+ --disable-absolute-shared-libs \
+ --enable-type-checking
+}
+
+src_compile() {
+ emake bootstrap
+
+ if use emacs; then
+ elisp-compile misc/*.el || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ keepdir /usr/share/"${MY_PN}"
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-scheme/gambit/metadata.xml b/dev-scheme/gambit/metadata.xml
new file mode 100644
index 000000000000..8703fdc61595
--- /dev/null
+++ b/dev-scheme/gambit/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/gauche-cdb/Manifest b/dev-scheme/gauche-cdb/Manifest
new file mode 100644
index 000000000000..b92dc9924a06
--- /dev/null
+++ b/dev-scheme/gauche-cdb/Manifest
@@ -0,0 +1,7 @@
+AUX gauche-cdb-0.3.1-gauche-package.diff 3751 SHA256 13cec5070740287f813d31f3b943030c2fd437595160325409e781403e5247b6 SHA512 8c7e95615e1a54125d972d0ad88ae58964cc72d1d7a993e5e04ef8cac6c12e146f01248d0de3879e1633c6335e2077e1a4b4071684b6e20490bcd163ff9accf4 WHIRLPOOL 6d5c3e22e7de46f74827d204e43ae846abc808efce6998156adb5ab9c44c8f5280955657fcb4b10d612e1b2fae7d3a02e12dc37cf3a43692b5438a58f6a4ed9e
+AUX gauche-cdb-0.3.1-undefined-reference.diff 709 SHA256 3a75d12e86c1c167707188329179953c3d1ac7cb4030b59bbf7ee922a29f72e1 SHA512 9f4aa26b4ca3196e683eba79dfd719f291a45fd0a5783718bfe6ffb1cd70d2067d4181df17dc100a128552cadd721b8c82a777a481b7c008d92cafc764441587 WHIRLPOOL 66a42924eef179e94375ffcac840c3ac807c4eb964eeb9fa69da4811c22e6cea779c8c1945f91f39654a4ddd58ec9d85fb0f7f538ed9bd0b8eb43ec50f8fb831
+DIST Gauche-cdb-0.3.1.tar.gz 72048 SHA256 2c050a10e0ab6ee67a6fcb8538bbe7ad7ab11b567b4bc15f921c3f13bbf8f842 SHA512 c02629de9e96c561da0a928e2817056da27951a5ad988b7d105cc24aedd6d103001bf9dd4ae28c1729d701850d937a3134361c2ad83a4e1e51d565a95e8f1a68 WHIRLPOOL f408df4e876c602cb105eb3befcb1073ea4c12b002c47c03b7f6ee8d3b5a01e28e529159ace2dd1e32cd5508d9ac70c785bc22b3ff23656c46d9ea5310263c0c
+EBUILD gauche-cdb-0.3.1-r1.ebuild 580 SHA256 19a8caff72eb628429547f69322e611fb4d4e641c7c1f2953ff893af4652362b SHA512 107348b757fa9fa4b5d01a1a9610f9a832311ab43124c9fe8920fe9415cd2952ec18f8cbef881110741f3153713ae7f920bbf344073f74118218f4f607e4a9d5 WHIRLPOOL 7c1d0b4a373883d04fcb57f461c17522b6fbf2448ff98726a869aac5fa4b2224cdf10a774da5173fe10094dc17fd724bc4c710dfb5761aa2609959ba421b4314
+MISC ChangeLog 2292 SHA256 858f43a7c65fbe13a4473ea96d8c25733d40a04ab65a54ac80da7ae6bf8cbb37 SHA512 ec2cdf55730d5237f8280ce512dd122ba41f3a5f6f95e61c880856cf77758971d5e46a35b357fe411768a56330c89b709b5ec561c7332f5bb792cb2ba1819d23 WHIRLPOOL 117cb625326cf6b2e6fdf180aeb06eacbb52ec2c7195c6e5b46ccad2722ddddca764a388c1d6a4851e92bffbb4b8f7f9a91f412c8e1e7dcb0bbac8cc3e4bc263
+MISC ChangeLog-2015 2311 SHA256 5311552a9139a104857fe0ece97bafb2ea525145cc74b38386394f6a01646d0e SHA512 d0349c5a3bbc9a98c9cdd5be45c346cfcffd71eac0b9b14ff6ac3dddc989a02aaf49a74b6b3d948223c68a5c91722aee889a346a9e7949dc6c50f1c36046a28c WHIRLPOOL 209b46d6fce998ebe5d5ec8e76544530f79b61f1c6e8bfe859333d8c9c515de1831d98ec8db8816efc4cfe42f5710fdce58eb3c74791b4b93e7acad59c418dec
+MISC metadata.xml 296 SHA256 086bd6e2bb655fce05b7d4ac25f67c0ae41bf15170ffeb6b99c351c0fc58189f SHA512 337649e4855f527c3f342c81034140381e5bdbf070f3ee3ca777196bbbbf90c5900e393519881ea5f8775c0d221a3b4564bddb35b5a2dd607216ab3dde64d652 WHIRLPOOL 49732525035b7844b56062ab14afbfc491c616a59c4cb351be4657195b9b194f16580cb92cebc2bb6734e9cd2675ede4bc9e29b3560aaa83ab967d8d17728074
diff --git a/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-gauche-package.diff b/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-gauche-package.diff
new file mode 100644
index 000000000000..ae093062243d
--- /dev/null
+++ b/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-gauche-package.diff
@@ -0,0 +1,133 @@
+--- Gauche-cdb-0.3.1.orig/Makefile.in
++++ Gauche-cdb-0.3.1/Makefile.in
+@@ -10,76 +10,57 @@
+ VPATH = $(srcdir)
+
+ # These may be overridden by make invocators
+-DESTDIR =
+-OPTFLAGS = @OPTFLAGS@
+-CC = @CC@
+-LIBS = @LIBS@
+-CFLAGS = @CFLAGS@
+-CPPFLAGS = @CPPFLAGS@ # AC_LIB_LINKFLAGS adds to this..
+-LDFLAGS = @LDFLAGS@
+-INSTALL = @INSTALL@
+-INSTALL_TYPE = @INSTALL_TYPE@
+-
+-# Set by configure
+-GOSH = @GOSH@
+-GAUCHE_CONFIG = @GAUCHE_CONFIG@
++DESTDIR =
++CPPFLAGS = @CPPFLAGS@ # AC_LIB_LINKFLAGS adds to this..
++GOSH = "@GOSH@"
++GAUCHE_CONFIG = "@GAUCHE_CONFIG@"
++GAUCHE_PACKAGE = "@GAUCHE_PACKAGE@"
++INSTALL = "@GAUCHE_INSTALL@"
++
++# Other parameters
++SOEXT = @SOEXT@
+ OBJEXT = @OBJEXT@
+-DSOEXT = @SOEXT@
++EXEEXT = @EXEEXT@
+
+-MODULE = cdb
++# Module-specific stuff
++PACKAGE = cdb
+
+-ARCHFILES = $(MODULE).$(DSOEXT)
+-SCMFILES = $(MODULE).scm
++ARCHFILES = $(PACKAGE).$(SOEXT)
++SCMFILES = $(PACKAGE).scm
+ HEADERS =
+
+ TARGET = $(ARCHFILES)
+-OBJS = $(MODULE)_head.$(OBJEXT) \
+- cdb.$(OBJEXT) \
+- $(MODULE)_tail.$(OBJEXT)
+-GENERATED = cdb.c $(MODULE)_head.c $(MODULE)_tail.c
++GENERATED =
+ CONFIG_GENERATED = Makefile config.cache config.log config.status \
+- configure.lineno autom4te*.cache
+-
+-HEADER_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)incdir`
+-SCM_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)libdir`/dbm
+-ARCH_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)archdir`
+-
+-all : $(TARGET)
+-
+-.SUFFIXES: .o .stub
++ configure.lineno autom4te*.cache @PACKAGE_NAME@.gpd
+
+-.c.o:
+- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
++HEADER_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --siteincdir`"
++SCM_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --sitelibdir`"
++ARCH_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --sitearchdir`"
+
+-.stub.c:
+- $(GOSH) genstub $<
++cdb_SRCS = cdb.stub
++cdb_LIBS = @LIBCDB@
+
+-$(MODULE).$(DSOEXT): $(OBJS)
+- $(CC) -Wl,-rpath -Wl,`gauche-config --sysarchdir` $(LDFLAGS) $(MODULE).$(DSOEXT) $(OBJS) $(LIBS) @LIBCDB@
++all : $(TARGET)
+
+-$(MODULE)_head.c $(MODULE)_tail.c :
+- $(GAUCHE_CONFIG) --fixup-extension $(MODULE)
++$(PACKAGE).$(SOEXT): $(cdb_SRCS)
++ $(GAUCHE_PACKAGE) compile --verbose \
++ --libs="$(cdb_LIBS)" --cppflags="$(CPPFLAGS)" \
++ $(PACKAGE) $(cdb_SRCS)
+
+ check : all
+ @rm -f test.log
+ $(GOSH) -I. test.scm > test.log
+
+ install : all
+- if test ! -z "$(HEADERS)"; then \
+- $(INSTALL) -d $(HEADER_INSTALL_DIR); \
+- $(INSTALL) -m 444 $(HEADERS) $(HEADER_INSTALL_DIR); \
+- fi
+- if test ! -z "$(SCMFILES)"; then \
+- $(INSTALL) -d $(SCM_INSTALL_DIR); \
+- $(INSTALL) -m 444 $(SCMFILES) $(SCM_INSTALL_DIR); \
+- fi
+- if test ! -z "$(ARCHFILES)"; then \
+- $(INSTALL) -d $(ARCH_INSTALL_DIR); \
+- $(INSTALL) -m 555 $(ARCHFILES) $(ARCH_INSTALL_DIR); \
+- fi
++ $(INSTALL) -m 444 -T $(HEADER_INSTALL_DIR) $(HEADERS)
++ $(INSTALL) -m 444 -T $(SCM_INSTALL_DIR)/dbm $(SCMFILES)
++ $(INSTALL) -m 555 -T $(ARCH_INSTALL_DIR) $(ARCHFILES)
++ $(INSTALL) -m 444 -T $(SCM_INSTALL_DIR)/.packages @PACKAGE_NAME@.gpd
+
+ clean :
+- rm -rf core $(TARGET) $(OBJS) $(GENERATED) *~ test.log so_locations
++ $(GAUCHE_PACKAGE) compile --clean $(PACKAGE) $(cdb_SRCS)
++ rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations
+
+ distclean : clean
+ rm -rf $(CONFIG_GENERATED)
+--- Gauche-cdb-0.3.1.orig/configure.ac
++++ Gauche-cdb-0.3.1/configure.ac
+@@ -4,18 +4,11 @@
+ AC_INIT(Gauche-cdb, 0.3.1)
+ AC_CONFIG_SRCDIR(cdb.stub)
+
+-AC_CANONICAL_SYSTEM
+-
+ AC_GAUCHE_INIT_EXT
+-AC_GAUCHE_INSTALL_TYPE(site)
+ AC_GAUCHE_CC
+-AC_GAUCHE_FLAGS
+-
+-AC_PROG_INSTALL
+
+ AC_LIB_LINKFLAGS(cdb)
+
+-AC_GAUCHE_FIX_LIBS
+-
++AC_GAUCHE_MAKE_GPD
+ echo $PACKAGE_VERSION > VERSION
+ AC_OUTPUT(Makefile)
diff --git a/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-undefined-reference.diff b/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-undefined-reference.diff
new file mode 100644
index 000000000000..b63a68ddbda2
--- /dev/null
+++ b/dev-scheme/gauche-cdb/files/gauche-cdb-0.3.1-undefined-reference.diff
@@ -0,0 +1,22 @@
+--- Gauche-cdb-0.3.1.orig/cdb.scm
++++ Gauche-cdb-0.3.1/cdb.scm
+@@ -60,7 +60,7 @@
+ (unless (slot-bound? self 'path)
+ (error "path must be set to open cdb database"))
+ (when (cdb-file-of self)
+- (errorf "cdb ~S already opened" cdb))
++ (errorf "cdb ~s already opened" (cdb-file-of self)))
+ (let ((path (slot-ref self 'path))
+ (rwmode (slot-ref self 'rw-mode)))
+ (case rwmode
+--- Gauche-cdb-0.3.1.orig/cdb.stub
++++ Gauche-cdb-0.3.1/cdb.stub
+@@ -69,7 +69,7 @@
+
+ static void cdb_finalize(ScmObj obj, void *data)
+ {
+- ScmCdb *cdb = SCM_CDB(cdb);
++ ScmCdb *cdb = SCM_CDB(obj);
+ switch (cdb->status) {
+ case OPEN_QUERY:
+ cdb_free(&cdb->cdb); close(cdb_fileno(&cdb->cdb));
diff --git a/dev-scheme/gauche-cdb/gauche-cdb-0.3.1-r1.ebuild b/dev-scheme/gauche-cdb/gauche-cdb-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..04f12d3afa76
--- /dev/null
+++ b/dev-scheme/gauche-cdb/gauche-cdb-0.3.1-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils
+
+MY_P="${P/g/G}"
+
+DESCRIPTION="CDB binding for Gauche"
+HOMEPAGE="http://sourceforge.jp/projects/gauche/"
+SRC_URI="mirror://sourceforge.jp/gauche/8407/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="ia64 x86"
+IUSE=""
+
+RDEPEND="dev-scheme/gauche
+ dev-db/tinycdb"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gauche-package.diff
+ epatch "${FILESDIR}"/${P}-undefined-reference.diff
+ eautoreconf
+}
diff --git a/dev-scheme/gauche-cdb/metadata.xml b/dev-scheme/gauche-cdb/metadata.xml
new file mode 100644
index 000000000000..c30645235ea2
--- /dev/null
+++ b/dev-scheme/gauche-cdb/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge-jp">gauche</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/gauche-gl/Manifest b/dev-scheme/gauche-gl/Manifest
new file mode 100644
index 000000000000..f7854e70f0dd
--- /dev/null
+++ b/dev-scheme/gauche-gl/Manifest
@@ -0,0 +1,8 @@
+AUX gauche-gl-0.6-simple.viewer.patch 806 SHA256 904b7ac485c0ec47beb29e44607d00dce372030376dddc0bd6dc2de2a555d0e2 SHA512 ed9d08b02e7035b5415cefb501b323a86e434389149f49ec3612e00a282c5b709da2f900768749577387537189f68e2ac32320ecae118dd32ec4fed5ea40407f WHIRLPOOL 5ff182c094dcf032f72806f0108fa18c5c02580d5dd6867bb6455a8a9cefd65dca3910032e75399be39d51e06d205f98c434515ef8487cd1a62f10ea9cd955d5
+DIST Gauche-gl-0.5.1.tgz 1161233 SHA256 7f17f1d31afba83d374f31e49f025149dcec271b4d56279cd0f871b814176c68 SHA512 7b3834e46e4789f6dcd6a2e01b2d5cfc8fa29aa69c5969e8bb9d9e2af9fe4f82af23a5f13677f27e8ae7ba63855f833dfcdac6f285a0c56041d0eaef48c8a94b WHIRLPOOL ca0751304f2ec30793ca91c2f5e4c08e730621177ca852f263f3f92b4efa1d237fd8df2ce10a03184699dfab78b0274964e5fb2bc08bd8bf8ad8a6d77d8142e6
+DIST Gauche-gl-0.6.tgz 1369790 SHA256 cea07a8ff82056a980f6f626f43ab36dbf05ed8057f570bb3a4c6abf5ba6d297 SHA512 60f763ba832048f9932cabd2e8ce8595ba2a1f0b86f1212b1f6919d6b9b8ba33ed1076f119e53059ceac7f6e46a6ead3ba0e23cce81af3097355cd97b3b4b673 WHIRLPOOL d33dca7fc3641b1e50f13f14393fe4f5cf56364514b93a192c888ef68e49a34cd1fd7c98f40840aa2b51eca1c5cfeb6e1ccb177ff59369b2cab46f586cea8006
+EBUILD gauche-gl-0.5.1.ebuild 924 SHA256 b7b202be74e2bfcc68d1f29a57a8dd00d5f1f9889392d8bb6f04fdd7b8f482ce SHA512 93ceb81e8e0700f49ce69da7b4158fbe09a8a54d230f15346ade7ef4209285941d857930f4660cdad98db296403d4337840909c6f3806a2898749b1d57a45a5a WHIRLPOOL a84cc7f7bb0fc3e9964f9a539bdc7b7b1842cc1b0e986321dd254d9ed64cd86139bc2d06020665292afdbfe71fcf620bb724f3294493f885183f5f741b892de6
+EBUILD gauche-gl-0.6.ebuild 985 SHA256 2bd8e996ab5d5a693d9f98ce71ba185aed18d8975f2243f60e5e65db75b067c0 SHA512 815ea7f80fdb604b6d950be91f076bef24f2778741c748ad7a07e0f966b6ea528fbd6da0d86a0a3c35c87b84c87d5e584dd1c188635c45e4682f9d1f880ce70c WHIRLPOOL e7dd05c962578c5af7f84880b58cf5d925ec9aeb5d400271976f2940779656645b8049611d33b4d754143f1f3160fa62c51ab0c492e768d7e9965d9491b2a11c
+MISC ChangeLog 2561 SHA256 77f423a4f78fdd2a0df39c7fafa5c5e2d77fb00a06755b276514acfb563a5cf5 SHA512 7647e02511b040a55a2c6c759eedaaac83666ae09d693b02cba1c6717a7a7e08d1c3c409cc8d1a048b81da2bb6c8315670c8c5353422b93b7e60b37f65c65c60 WHIRLPOOL cf0abe349c5104d41055fc9922cbd42a9972c0fa7ac012f80539db8cef6fa366141c63fad6fcf7d18c702d8b268d23d6a3177e16ba2b7ca46d70f69dd0eb10d1
+MISC ChangeLog-2015 4565 SHA256 d33b513c6390ea4621b817c8a606197877a3125bb04a4ac892745121fb861fae SHA512 8ac88a5a6873647ccb6587c38817711baf080814b34a9f813c792a1adff71eb5d5120c0cf70adf4f8298606c6436850deb665f6d9803c183856b8713c27d1766 WHIRLPOOL 4ea1d6df4a98a7e2266bc95457b89578b49815021972b2dc3ed14071dd2c816c6d1cab59e822fc0a991dc24ad98091c8248438405baf59820f6076406fc1f964
+MISC metadata.xml 427 SHA256 932c834be005db9cb6bb7b66c548a9a4bf03cbdf98e7d97a66762e4b4b5959df SHA512 7a7bad85fc14f56fbc5c85586029dbbd42f845e0fc941e8d01280b884038a73a247dbd95143c4f77feedc207eb565434f06171c2c2eb24f699e78635f40ecd9d WHIRLPOOL 0416bdcbc106446e726c3454a85502e21eb3ede310d687f8da47105bc2a907438319d3919cd464e701049114ca0e8ae7c10f3f9accff805aec71036f4bd46e12
diff --git a/dev-scheme/gauche-gl/files/gauche-gl-0.6-simple.viewer.patch b/dev-scheme/gauche-gl/files/gauche-gl-0.6-simple.viewer.patch
new file mode 100644
index 000000000000..1f5cf8ecacf2
--- /dev/null
+++ b/dev-scheme/gauche-gl/files/gauche-gl-0.6-simple.viewer.patch
@@ -0,0 +1,25 @@
+From 723309ac3e7aa031e2ebd6c9b059d94e42006de3 Mon Sep 17 00:00:00 2001
+From: Shiro Kawai <shiro@acm.org>
+Date: Sat, 9 Aug 2014 22:19:04 -1000
+Subject: [PATCH] Fix incorrect macro definition
+
+---
+ lib/gl/simple/viewer.scm | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/lib/gl/simple/viewer.scm b/lib/gl/simple/viewer.scm
+index 857b8d7..9a464ce 100644
+--- a/lib/gl/simple/viewer.scm
++++ b/lib/gl/simple/viewer.scm
+@@ -381,7 +381,7 @@
+ (match opts
+ [() (set! default3-var proc)]
+ [(':perspective) (set! default3-var proc)]
+- [(':orthographic) (set! default3-var proc)]
++ [(':orthographic) (set! default2-var proc)]
+ [(name)
+ (cond [(name->window name) => (^[win] (ref win'closure) 'key proc)]
+ [else
+--
+2.0.3
+
diff --git a/dev-scheme/gauche-gl/gauche-gl-0.5.1.ebuild b/dev-scheme/gauche-gl/gauche-gl-0.5.1.ebuild
new file mode 100644
index 000000000000..1e5a2c734c05
--- /dev/null
+++ b/dev-scheme/gauche-gl/gauche-gl-0.5.1.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P^g}"
+
+DESCRIPTION="OpenGL binding for Gauche"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="mirror://sourceforge/gauche/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc x86"
+IUSE="cg examples"
+
+RDEPEND=">=dev-scheme/gauche-0.9.2
+ media-libs/freeglut
+ virtual/opengl
+ x11-libs/libXmu
+ cg? ( media-gfx/nvidia-cg-toolkit )"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+src_configure() {
+ econf $(usex cg --enable-cg "")
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ docinto examples
+ dodoc examples/*.scm
+ # install simple
+ dodoc -r examples/simple
+ # install glbook
+ dodoc -r examples/glbook
+ dodoc -r examples/images
+ # install slbook
+ dodoc -r examples/slbook
+ # install cg examples
+ use cg && dodoc -r examples/cg
+ fi
+}
diff --git a/dev-scheme/gauche-gl/gauche-gl-0.6.ebuild b/dev-scheme/gauche-gl/gauche-gl-0.6.ebuild
new file mode 100644
index 000000000000..337001f237d6
--- /dev/null
+++ b/dev-scheme/gauche-gl/gauche-gl-0.6.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+MY_P="${P^g}"
+
+DESCRIPTION="OpenGL binding for Gauche"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="mirror://sourceforge/gauche/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cg examples"
+
+RDEPEND=">=dev-scheme/gauche-0.9.4
+ media-libs/freeglut
+ virtual/opengl
+ x11-libs/libXmu
+ cg? ( media-gfx/nvidia-cg-toolkit )"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-simple.viewer.patch
+)
+
+src_configure() {
+ econf $(usex cg --enable-cg "")
+}
+
+src_install() {
+ default
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ docinto examples
+ dodoc examples/*.scm
+ # install simple
+ dodoc -r examples/simple
+ # install glbook
+ dodoc -r examples/glbook
+ dodoc -r examples/images
+ # install slbook
+ dodoc -r examples/slbook
+ # install cg examples
+ use cg && dodoc -r examples/cg
+ fi
+}
diff --git a/dev-scheme/gauche-gl/metadata.xml b/dev-scheme/gauche-gl/metadata.xml
new file mode 100644
index 000000000000..27760741035e
--- /dev/null
+++ b/dev-scheme/gauche-gl/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ OpenGL binding of Gauche
+ </longdescription>
+ <use>
+ <flag name="cg">Enable NVidia Cg binding</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">gauche</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/gauche-gtk/Manifest b/dev-scheme/gauche-gtk/Manifest
new file mode 100644
index 000000000000..b32a85de0dc6
--- /dev/null
+++ b/dev-scheme/gauche-gtk/Manifest
@@ -0,0 +1,8 @@
+AUX gauche-gtk-gtk-lib.hints.diff 3208 SHA256 676485bb19b4e5fb5e2b0f2b9e61ec3179f158287e334d3d853fd97c668c2666 SHA512 4315e517d52f39cd8d19e6abadc244c4c23c059e7adc137e247b5b1926d09d6d924b8fc1bc376add58a42ec365da0024a19d1a4d9ac709bf8b1dca86663da747 WHIRLPOOL e539071de31deaf01361def5b4b35d5585e70730b5f952ed2a86cd9c1fc2f0f0494344b5c496670a7a8e12774d00e82f53912e4187d2124884ece0326225a977
+AUX gauche-gtk-h2s-cpp.diff 472 SHA256 c38734dc72a138bf4ebe0b1d2b2a03b49a5da2d265711d7eacd50d2358a99520 SHA512 9615dc4586873424379da75874d50c14459afbfbe37c186a8ad592fad7153ca2e2bc48f8320ffc91e8c86f9c7a34ae0ed96544cab43d6ca80a29a176501e8862 WHIRLPOOL 69084c8c38c93df82d8fece1cb92ca935b040a1184d385ed08ae51d8a8dda0ca16e60614fb4f148389eabf7758f484c444a6701937046a04d24117bc0cb6afa6
+AUX gauche-gtk-h2s-gdk-pixbuf.diff 778 SHA256 78140ec1836e0d8d473eecd96e1de38f905e63483c19860fc835a2ea95f1523a SHA512 a2ab9c550fcde6ae46b086210062dfb8504aafff398258da01dea9f0c8488e58ce1644a74f8b5414e4aa05e475be0ef5a69131482caf04626511d4c9e4a0df98 WHIRLPOOL 105af89f91919e58a35a21df99998e0392edb3f767695a09a8fa8b029be286f5ce7a562476b8be94beb675665c6a50266929c9e9675a39d5dc9bd1e313bb5fcb
+DIST Gauche-gtk-0.6_pre1.tar.gz 203261 SHA256 cfe38221217519d3e6fe9bca6168938abe4801ec1a79a73f2f1b441cdc47dc0b SHA512 150d9169f893ab4ca80956aab93523cf8d9a5e831f7ba4f577314fa6fac72910238cbb5f375fa6b265b3b6a013bba2674c37c8219c391dd212d52267e2360bb3 WHIRLPOOL ae8c9b9673a1e774a30a1dac8437a9bb961472e913bab8a894d8465554319a2ce229e164c10ad4d9b2bca38cbff8550b8d53ab48c5353aee7a9145d4aa3f73df
+EBUILD gauche-gtk-0.6_pre1.ebuild 1537 SHA256 a8685833b8149be8db55735cd41fd7d0dced1031a9718155b0e0d677b8512e3c SHA512 b1796a2ca03301c9245a6c82d87c0413db43831d1e48ca6e304e384bf307821030f7a1129536fb6aba74e6254a3f1708ff55cef458d6ea69953c278c12b16925 WHIRLPOOL 78c58fa917c864cbfae01b3bded77cec527df940f32faf6181d1b41c2660b0182b2ffe474f1cce98c508248877f323cdc1f4a64163d1e8e4e7479b50f5c12702
+MISC ChangeLog 2575 SHA256 08268585ca4ba282485dd3826f8ebf915855ff9f4bea79354eb195b016b82408 SHA512 7e3f6a98fae283fbb8b6447032518ac92987d738e45551b9ca19b9bc04c6956634d016b52f4d9c0fab60acbd78ac983397ca318b8ac175b2aab6e7a02a5224e2 WHIRLPOOL a1720aaef7479e4eea040955cddeeeea0074f45cf11b7ac0eeeb9d5b1cb2a2c66079918a351655b1b1909f30654f98edbfbb0998bdc68dcd4d835495325b9502
+MISC ChangeLog-2015 3907 SHA256 646606d69e83f00898056d4382cc878aa539d0ce59d72a8dcd9d3eba2978aaa5 SHA512 98cf4d9e15ccd83034103eea42bacc326fde08e42984d2114084b750a4532e20a8718b907b77a630b188758a2b2c09f7b761931bc2aaf039fa5ce4aef3661d04 WHIRLPOOL 289910f0d0e9132956c87ba684cbfa525fa19df6b2fc6cc91baa4215ef49273cad2e847f2794e1fe676603f7580dfb6cf02b22dfbdff175e5ad6875a8855463c
+MISC metadata.xml 443 SHA256 64134b442243a6aeb198246243e618e0ad8b0b5599d45de9750b8e46425d842f SHA512 35ef6cf09aa65271ebfc5edadde2f784724f8b6ca8ba3f24dc738bf58e33641474fedd8239f988bb853b9889a16066d443679f0cef6a6d701c19c8c9666f17ed WHIRLPOOL b6674f8b5aece29dbcc7fe1c5e09047bf6655ec602c285e8a6964a8b688d336c86f27b503b282bb3c68719c1d320179981b1cbf74ac2e1763bd530e763002614
diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff
new file mode 100644
index 000000000000..be54ee550ba7
--- /dev/null
+++ b/dev-scheme/gauche-gtk/files/gauche-gtk-gtk-lib.hints.diff
@@ -0,0 +1,71 @@
+--- a/src/gtk-lib.hints
++++ b/src/gtk-lib.hints
+@@ -527,8 +527,10 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));"
+ (add-mixin! "Scm_GtkEditableClass" "Scm_GtkCellEditableClass"))
+
+ ;; we can't free the return value of gtk_entry_get_text.
+-(define-cproc gtk-entry-get-text (entry::<gtk-entry>)
+- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_entry_get_text(entry)));")
++(define-cproc-fix gtk-entry-get-text
++ (fix-arguments! '(entry::<gtk-entry>))
++ (fix-body!
++ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_entry_get_text(entry)));"))
+
+ ;;==================================================================
+ ;; gtkfilesel.h
+@@ -539,8 +541,10 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));"
+ ;; gtk_file_selection_get_filename returns mbstr encoded by the current
+ ;; locale. We canonicalize it to utf8. The Scheme glue code converts
+ ;; it to Gauche's internal encoding.
+-(define-cproc gtk-file-selection-get-filename (sel::<gtk-file-selection>)
+- "const gchar *fn_mb = gtk_file_selection_get_filename(sel);
++(define-cproc-fix gtk-file-selection-get-filename
++ (fix-arguments! '(sel::<gtk-file-selection>))
++ (fix-body!
++ "const gchar *fn_mb = gtk_file_selection_get_filename(sel);
+ gchar *fn_utf8 = g_filename_to_utf8(fn_mb, -1, NULL, NULL, NULL);
+ if (fn_utf8 == NULL) {
+ Scm_Error(\"got a filename including multibyte chars which can't be converted to UTF8: %s\", fn_mb);
+@@ -549,7 +553,7 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));"
+ SCM_RETURN(SCM_MAKE_STR_COPYING(fn_utf8));
+ #else
+ SCM_RETURN(Scm_MakeString(fn_utf8, -1, -1, SCM_MAKSTR_COPYING|SCM_MAKSTR_INCOMPLETE));
+-#endif")
++#endif"))
+
+ (define-cproc gtk-file-selection-get-selections (sel::<gtk-file-selection>)
+ "gchar **fns_mb = gtk_file_selection_get_selections(sel);
+@@ -609,10 +613,14 @@ SCM_RETURN(Scm_Values2(Scm_MakeInteger(n_properties), h));"
+ (input-file "gtklabel.h")
+
+ ;; Memory is owned by the widget so we don't need to free them.
+-(define-cproc gtk-label-get-text (label::<gtk-label>)
+- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_text(label)));")
+-(define-cproc gtk-label-get-label (label::<gtk-label>)
+- "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_label(label)));")
++(define-cproc-fix gtk-label-get-text
++ (fix-arguments! '(label::<gtk-label>))
++ (fix-body!
++ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_text(label)));"))
++(define-cproc-fix gtk-label-get-label
++ (fix-arguments! '(label::<gtk-label>))
++ (fix-body!
++ "SCM_RETURN(SCM_MAKE_STR_COPYING(gtk_label_get_label(label)));"))
+
+ (define-cproc-fix gtk-label-get-seleciton-bounds
+ (fix-arguments! '(label::<gtk-label>))
+@@ -1121,9 +1129,11 @@ return SCM_MAKE_STR_COPYING((char*)string);"))
+
+ (input-file "gtkprogressbar.h")
+
+-(define-cproc gtk-progress-bar-get-text (pbar::<gtk-progress-bar>)
+- "gchar *g = gtk_progress_bar_get_text(pbar);
+- SCM_RETURN(SCM_MAKE_STR_COPYING_SAFELY(g));")
++(define-cproc-fix gtk-progress-bar-get-text
++ (fix-arguments! '(pbar::<gtk-progress-bar>))
++ (fix-body!
++ "gchar *g = gtk_progress_bar_get_text(pbar);
++ SCM_RETURN(SCM_MAKE_STR_COPYING_SAFELY(g));"))
+
+ ;;==================================================================
+ ;; gtkradiobutton
diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff
new file mode 100644
index 000000000000..081c83df1fe5
--- /dev/null
+++ b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-cpp.diff
@@ -0,0 +1,11 @@
+--- a/lib/h2s/parse.scm
++++ b/lib/h2s/parse.scm
+@@ -329,6 +329,8 @@
+ (#/^\}\s*([\w_]+)/ (#f name) (make-enum name (reverse enums))) ; ----->
+ ;; empty line:
+ (#/^\s*$/ () (loop (read-line) enums))
++ ;; preprocessor directive:
++ (#/^\s*#\s*\w+/ () (loop (read-line) enums))
+ ;;
+ (test has-comment? (skip-comment line (cut loop <> enums) err-eof)) ; what if?: new_value, /* boring comment*/
+ (#/\s+([\w_]+),?/ (#f enum)
diff --git a/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff
new file mode 100644
index 000000000000..9e8bbcf6e72d
--- /dev/null
+++ b/dev-scheme/gauche-gtk/files/gauche-gtk-h2s-gdk-pixbuf.diff
@@ -0,0 +1,23 @@
+--- a/src/h2s-gtk.scm
++++ b/src/h2s-gtk.scm
+@@ -50,6 +50,11 @@
+ (define pango-directory
+ (find-header-dir #`"pango-,|pango-version|/pango/pango.h"
+ *header-search-paths*))
++(define gdk-pixbuf-directory
++ (guard (e [(<error> e)
++ gtk-directory])
++ (find-header-dir #`"gdk-pixbuf-,|gtk-version|/gdk-pixbuf/gdk-pixbuf.h"
++ *header-search-paths* )))
+
+
+ (define (parse-gdk)
+@@ -64,7 +69,7 @@
+ (call-with-input-file "PANGOFILES" port->string-list)))
+
+ (define (parse-gdk-pixbuf)
+- (parse-headers #`",|gtk-directory|/gdk-pixbuf"
++ (parse-headers #`",|gdk-pixbuf-directory|/gdk-pixbuf"
+ (call-with-input-file "GDKPIXBUFFILES" port->string-list)))
+
+ ;; defaults for the gauche-gtk package:
diff --git a/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild
new file mode 100644
index 000000000000..83b465480233
--- /dev/null
+++ b/dev-scheme/gauche-gtk/gauche-gtk-0.6_pre1.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils
+
+MY_P="${P/g/G}"
+MY_PN="${PN/g/G}2"
+PV_COMMIT="598828842a339a44c32ab8c16f5f9a77f3c1c799"
+
+DESCRIPTION="GTK2 binding for Gauche"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="https://github.com/shirok/${MY_PN}/tarball/${PV_COMMIT} -> ${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~ppc x86"
+IUSE="examples glgd nls opengl"
+RESTRICT="test"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+RDEPEND="x11-libs/gtk+:2
+ dev-scheme/gauche
+ opengl? (
+ x11-libs/gtkglext
+ dev-scheme/gauche-gl
+ )"
+S="${WORKDIR}/shirok-${MY_PN}-${PV_COMMIT:0:7}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-h2s-gdk-pixbuf.diff
+ epatch "${FILESDIR}"/${PN}-gtk-lib.hints.diff
+ epatch "${FILESDIR}"/${PN}-h2s-cpp.diff
+ eautoconf
+}
+
+src_configure() {
+ local myconf
+ if use opengl; then
+ if use glgd; then
+ myconf="--enable-glgd"
+ if use nls; then
+ myconf="${myconf}-pango"
+ fi
+ else
+ myconf="--enable-gtkgl"
+ fi
+ fi
+
+ econf ${myconf}
+}
+
+src_compile() {
+ emake stubs
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc ChangeLog README
+
+ if use examples; then
+ docompress -x /usr/share/doc/${PF}/examples
+ docinto examples
+ dodoc examples/*.scm
+ # install gtk-tutorial
+ docinto examples/gtk-tutorial
+ dodoc examples/gtk-tutorial/*
+ if use opengl; then
+ # install gtkglext
+ dodoc -r examples/gtkglext
+ if use glgd; then
+ # install glgd
+ dodoc -r examples/glgd
+ fi
+ fi
+ fi
+}
diff --git a/dev-scheme/gauche-gtk/metadata.xml b/dev-scheme/gauche-gtk/metadata.xml
new file mode 100644
index 000000000000..f91580dbecff
--- /dev/null
+++ b/dev-scheme/gauche-gtk/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+ Gauche extension module to use GTK.
+ </longdescription>
+ <use>
+ <flag name="glgd">Enable GL graph draw</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">shirok/Gauche-gtk2</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/gauche-kakasi/Manifest b/dev-scheme/gauche-kakasi/Manifest
new file mode 100644
index 000000000000..4d846dba9180
--- /dev/null
+++ b/dev-scheme/gauche-kakasi/Manifest
@@ -0,0 +1,5 @@
+DIST Gauche-kakasi-0.1.tgz 56568 SHA256 4d73dbfb5fe52de2580e4833edab439e6a2c0f98b75cf81d9acb450e1b3ac9e3 SHA512 761fb704482f4e6705ca80b894b245391efee92d409e9438e59afae56d0b7d9907ed40ab3a5bcc3ec9f2a8115bdbc622c48eaec3b0ed38c99677bf1f9f0f7bed WHIRLPOOL bb2bc4ac82f5d22421a7b38424a34f8ea7099b90bc59345e936136a4ddfc8942b3ecc8599629597b13b985117dc653066358a408d46cffa8eb263eddc5499ea8
+EBUILD gauche-kakasi-0.1.ebuild 518 SHA256 a025fd3268d6a8906a8f58c045942e46031858629fb594bfe545eccb42f62bac SHA512 348fc7d44d76e0ebf589108b1eb9751ea9feee08055406b28a28e95feff37f99d07657bec2909ae4801fecb6a014b2eea9e412c086d94b13d04bef478981c2c2 WHIRLPOOL a9e82e1c8853b668da53ca0b9f839721be9feae9cbb0a86eadd082b143c23be9fe9eae9d4c18e998cf0353099b430739c8667ea35de5cc5cc82bc1b7b9f137c0
+MISC ChangeLog 2192 SHA256 be9da0926beb5a6fa326d365f407164e4dce6670973aa695706e251ac56689a1 SHA512 37f32f4365f26e3df612824af66d9d9b5b7929badea53ef1546ef94599db74a8c4b401de9c5768ae1d4098eede1e7e754e008d58b681d4f9b97e2227daf63137 WHIRLPOOL f6d6f33131302c2152783b5174ab7cc176242bd8fabd88628b2b8a3e1faca48bad240a7f2fc46af1d4589ee1c3b3a1dffcf2fe72f044f3f7ed08c063cb4e92e2
+MISC ChangeLog-2015 760 SHA256 b8990708a6e198dbc3daddb70e8d86319750c79aaca0e04bd1560e3315cc84c2 SHA512 586b36c76364aec926accbbfbd3a267158b5a3cb0b5784e40b602a2177c63ea74d73c1260091700fe00a1c11330827f03c3ba70451f7eae91a25a2cae8a2eac0 WHIRLPOOL 302b13921564380c2510af1c14934b4480604048127a3a0e59f1841f94bd0d5c0d9fe33684af146cd3fba393d12cdcdea53c2ab6f4c85041dcb25f0b6dd28bee
+MISC metadata.xml 293 SHA256 5988c9edf42f48c791d54beb9ac5a87c0a7e46d711b8f7bdf3b436628f07bfb2 SHA512 68d1c85bbeadabc482cf7953834f7fe7f8b78b063fbb9418a0359b3d877a68e59d548fb546efce013f525e60c288fa9a0a0b58b899af3a1cc4934581957fbae9 WHIRLPOOL 9a05a6826f91813dc91d6e61475cff08b0b96296063de7ca28536e68f16e2db73a75b0e2ee115216e16165f26d3316114246d4e0285c467aaf61484f4a5aed1d
diff --git a/dev-scheme/gauche-kakasi/gauche-kakasi-0.1.ebuild b/dev-scheme/gauche-kakasi/gauche-kakasi-0.1.ebuild
new file mode 100644
index 000000000000..666bf9297640
--- /dev/null
+++ b/dev-scheme/gauche-kakasi/gauche-kakasi-0.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+IUSE=""
+
+MY_P="${P/g/G}"
+
+DESCRIPTION="Kakasi binding for Gauche"
+HOMEPAGE="http://gauche.sf.net/"
+SRC_URI="mirror://sourceforge/gauche/${MY_P}.tgz"
+
+LICENSE="GPL-2"
+KEYWORDS="x86"
+SLOT="0"
+S="${WORKDIR}/${MY_P}"
+
+DEPEND=">=dev-scheme/gauche-0.8
+ >=app-i18n/kakasi-2.3.4"
+
+src_compile() {
+
+ econf || die
+ emake || die
+
+}
+
+src_install() {
+
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS ChangeLog README*
+
+}
diff --git a/dev-scheme/gauche-kakasi/metadata.xml b/dev-scheme/gauche-kakasi/metadata.xml
new file mode 100644
index 000000000000..5a36f36510cd
--- /dev/null
+++ b/dev-scheme/gauche-kakasi/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">gauche</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/gauche-qdbm/Manifest b/dev-scheme/gauche-qdbm/Manifest
new file mode 100644
index 000000000000..7557c00a55d2
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/Manifest
@@ -0,0 +1,7 @@
+AUX gauche-qdbm-0.2-gauche-package.diff 3815 SHA256 6e57b37ce2dcd0017a68e4f4b53eba7cf2e67a0abe7bbb5726802746b0502061 SHA512 353ac7479a64f3fc1dcf4ced2ca686e81abfb886d17a8b936df84147dea529a419225741a33beb7f098d4b3bd1083d91eb8adbdbde78969a2aa547088ae2607a WHIRLPOOL 892a5d1993893d4e5cefc789fd98788414777ebb0da45f82dc89c08248fb9eb6d0b2d4e6740a7a80c6890381a12a71fdf6d74e18d7af5f34972c46bfc8487d4c
+AUX gauche-qdbm-0.2-undefined-reference.diff 422 SHA256 851f8303274baf2b26428a8840bd0cd4abe092ea7e0d18c97ee1a40c12cdd4a4 SHA512 856346d2c45bea79bb606c751fd48afb8677412a7f17910de4c9f948f6bdeca6b06100bb5e346dcd2a12ae0038043d55ac9d1f930705a1d9b7acf4e7649f78d1 WHIRLPOOL 25fa292a940770a1e9216d2c24ac33afa2179e962298c047b382d49704bb0a02e41cee6553b4596f5ec75f73bd77a2f53cb212f7e234e16217e22d90ed23d935
+DIST Gauche-qdbm-0.2.tar.gz 73311 SHA256 457957e079c562151c4b82484e716b4749b77e64a5212ecc74db10e928426359 SHA512 9286d22f1ad32f213c34670ca0a3fef4d43da8d7e0bed019cd5891400eb7337cd3adfb7cc788350e1f1ab535b87af0fa0a6096d33fa73da6049888ce0006e821 WHIRLPOOL 0f201b3a624200cc37bd741c5f9f522428cf8793c87f6cdda6f874f99f3624554c4deaa0eb078da827ed39dee69f62613984d104da644abd611962d7a4e48fce
+EBUILD gauche-qdbm-0.2-r1.ebuild 580 SHA256 0a8be1d0d5d471b91311415869ccb233c3063c82fe0bbadda4cee5c9bc762678 SHA512 2eb7e9ce9df8d696284d5f03bd76d12cfbf62ff0f9a9d54ef1db5dcc791b293014ea5d0737eb8f18967997c0f2542770cde17763883a7302d058791a748bbb61 WHIRLPOOL 9918456f60f24ff7befc93c43f1700b62832491a1e5159d1a404c584c1185497ead1a161e8411eea950f6174f857e27de4b637e5cbae7c8c6446a76a19f0b3f9
+MISC ChangeLog 2289 SHA256 a3f8f30f2f2306c0fca90b51c091001beb0433ce358b3f460febe4c60c021202 SHA512 09700629fe15dea90dc23a1a475d528a9c1eea4454cbaf6bf5c56ff1141da56e92a0791a565fbb8bb3664552cf46d93675d09251609780116d2dd9021a621533 WHIRLPOOL 7b362977a05f3e4cd2b3c56341fff6346e40fffaf8a922123bbcd60ecd76493d20a3bfb337f36ee6e904f13ea4e69d83f56b463ac1cdaca31e649ff8a936f838
+MISC ChangeLog-2015 1863 SHA256 85770fe093e2de9dbd378dd88d416c08c5c043567fa177d9b97caa4118520bd0 SHA512 d3fe65601248392bfa93acbe94851014c1b8f940df6736f3374df3fc24f014b6b83bdc22c19054ea6ac8a8ad52f3888ac059bf9516ef1469d957ce9e82b29307 WHIRLPOOL 01de4c3d18c306abbdaf00849f839ed00da5043c01fca20ae03dbfa2bc5808091d3d65da8dc6d73e57ed47e7418c5f5abee105ba54085f8aeee5814f85cdf28d
+MISC metadata.xml 296 SHA256 086bd6e2bb655fce05b7d4ac25f67c0ae41bf15170ffeb6b99c351c0fc58189f SHA512 337649e4855f527c3f342c81034140381e5bdbf070f3ee3ca777196bbbbf90c5900e393519881ea5f8775c0d221a3b4564bddb35b5a2dd607216ab3dde64d652 WHIRLPOOL 49732525035b7844b56062ab14afbfc491c616a59c4cb351be4657195b9b194f16580cb92cebc2bb6734e9cd2675ede4bc9e29b3560aaa83ab967d8d17728074
diff --git a/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-gauche-package.diff b/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-gauche-package.diff
new file mode 100644
index 000000000000..a4e305600423
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-gauche-package.diff
@@ -0,0 +1,136 @@
+--- Gauche-qdbm-0.2.orig/Makefile.in
++++ Gauche-qdbm-0.2/Makefile.in
+@@ -10,79 +10,57 @@
+ VPATH = $(srcdir)
+
+ # These may be overridden by make invocators
+-DESTDIR =
+-OPTFLAGS = @OPTFLAGS@
+-CC = @CC@
+-LIBS = @LIBS@
+-CFLAGS = @CFLAGS@
+-CPPFLAGS = @CPPFLAGS@ # AC_LIB_LINKFLAGS adds to this..
+-LDFLAGS = @LDFLAGS@
+-INSTALL = @INSTALL@
+-INSTALL_TYPE = @INSTALL_TYPE@
+-
+-# Set by configure
+-GOSH = @GOSH@
+-GAUCHE_CONFIG = @GAUCHE_CONFIG@
++DESTDIR =
++CPPFLAGS = @CPPFLAGS@ # AC_LIB_LINKFLAGS adds to this..
++GOSH = "@GOSH@"
++GAUCHE_CONFIG = "@GAUCHE_CONFIG@"
++GAUCHE_PACKAGE = "@GAUCHE_PACKAGE@"
++INSTALL = "@GAUCHE_INSTALL@"
++
++# Other parameters
++SOEXT = @SOEXT@
+ OBJEXT = @OBJEXT@
+-DSOEXT = @SOEXT@
++EXEEXT = @EXEEXT@
+
+-MODULE = qdbm
++# Module-specific stuff
++PACKAGE = qdbm
+
+-ARCHFILES = $(MODULE).$(DSOEXT)
+-SCMFILES = $(MODULE).scm
++ARCHFILES = $(PACKAGE).$(SOEXT)
++SCMFILES = $(PACKAGE).scm
+ HEADERS =
+
+ TARGET = $(ARCHFILES)
+-OBJS = $(MODULE)_head.$(OBJEXT) \
+- qdbm.$(OBJEXT) \
+- depot.$(OBJEXT) \
+- $(MODULE)_tail.$(OBJEXT)
+-GENERATED = depot.c $(MODULE)_head.c $(MODULE)_tail.c
++GENERATED =
+ CONFIG_GENERATED = Makefile config.cache config.log config.status \
+- configure.lineno autom4te*.cache
+-
+-HEADER_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)incdir`
+-SCM_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)libdir`/dbm
+-ARCH_INSTALL_DIR = $(DESTDIR)/`$(GAUCHE_CONFIG) --$(INSTALL_TYPE)archdir`
+-
+-all : $(TARGET)
++ configure.lineno autom4te*.cache @PACKAGE_NAME@.gpd
+
+-.SUFFIXES: .o .stub
++HEADER_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --siteincdir`"
++SCM_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --sitelibdir`"
++ARCH_INSTALL_DIR = "$(DESTDIR)`$(GAUCHE_CONFIG) --sitearchdir`"
+
+-.c.o:
+- $(CC) $(CPPFLAGS) $(CFLAGS) -c $< -o $@
++qdbm_SRCS = qdbm.c depot.stub
++qdbm_LIBS = @LIBQDBM@
+
+-.stub.c:
+- $(GOSH) genstub $<
+-
+-depot.c : depot.stub
+-
+-$(MODULE).$(DSOEXT): $(OBJS)
+- $(CC) -Wl,-rpath -Wl,`gauche-config --sysarchdir` $(LDFLAGS) $(MODULE).$(DSOEXT) $(OBJS) $(LIBS) @LIBQDBM@
++all : $(TARGET)
+
+-$(MODULE)_head.c $(MODULE)_tail.c :
+- $(GAUCHE_CONFIG) --fixup-extension $(MODULE)
++$(PACKAGE).$(SOEXT): $(qdbm_SRCS)
++ $(GAUCHE_PACKAGE) compile --verbose \
++ --libs="$(qdbm_LIBS)" --cppflags="$(CPPFLAGS)" \
++ $(PACKAGE) $(qdbm_SRCS)
+
+ check : all
+ @rm -f test.log
+ $(GOSH) -I. test.scm > test.log
+
+ install : all
+- if test ! -z "$(HEADERS)"; then \
+- $(INSTALL) -d $(HEADER_INSTALL_DIR); \
+- $(INSTALL) -m 444 $(HEADERS) $(HEADER_INSTALL_DIR); \
+- fi
+- if test ! -z "$(SCMFILES)"; then \
+- $(INSTALL) -d $(SCM_INSTALL_DIR); \
+- $(INSTALL) -m 444 $(SCMFILES) $(SCM_INSTALL_DIR); \
+- fi
+- if test ! -z "$(ARCHFILES)"; then \
+- $(INSTALL) -d $(ARCH_INSTALL_DIR); \
+- $(INSTALL) -m 555 $(ARCHFILES) $(ARCH_INSTALL_DIR); \
+- fi
++ $(INSTALL) -m 444 -T $(HEADER_INSTALL_DIR) $(HEADERS)
++ $(INSTALL) -m 444 -T $(SCM_INSTALL_DIR)/dbm $(SCMFILES)
++ $(INSTALL) -m 555 -T $(ARCH_INSTALL_DIR) $(ARCHFILES)
++ $(INSTALL) -m 444 -T $(SCM_INSTALL_DIR)/.packages @PACKAGE_NAME@.gpd
+
+ clean :
+- rm -rf core $(TARGET) $(OBJS) $(GENERATED) *~ test.log so_locations
++ $(GAUCHE_PACKAGE) compile --clean $(PACKAGE) $(qdbm_SRCS)
++ rm -rf core $(TARGET) $(GENERATED) *~ test.log so_locations
+
+ distclean : clean
+ rm -rf $(CONFIG_GENERATED)
+--- Gauche-qdbm-0.2.orig/configure.ac
++++ Gauche-qdbm-0.2/configure.ac
+@@ -4,18 +4,11 @@
+ AC_INIT(Gauche-qdbm, 0.2)
+ AC_CONFIG_SRCDIR(qdbm.c)
+
+-AC_CANONICAL_SYSTEM
+-
+ AC_GAUCHE_INIT_EXT
+-AC_GAUCHE_INSTALL_TYPE(site)
+ AC_GAUCHE_CC
+-AC_GAUCHE_FLAGS
+-
+-AC_PROG_INSTALL
+
+ AC_LIB_LINKFLAGS(qdbm)
+
+-AC_GAUCHE_FIX_LIBS
+-
++AC_GAUCHE_MAKE_GPD
+ echo $PACKAGE_VERSION > VERSION
+ AC_OUTPUT(Makefile)
diff --git a/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-undefined-reference.diff b/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-undefined-reference.diff
new file mode 100644
index 000000000000..d6a6efb99b4f
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/files/gauche-qdbm-0.2-undefined-reference.diff
@@ -0,0 +1,11 @@
+--- Gauche-qdbm-0.2.orig/qdbm.scm
++++ Gauche-qdbm-0.2/qdbm.scm
+@@ -72,7 +72,7 @@
+ (unless (slot-bound? self 'path)
+ (error "path must be set to open qdbm database"))
+ (when (qdbm-file-of self)
+- (errorf "qdbm ~S already opened" qdbm))
++ (errorf "qdbm ~s already opened" (qdbm-file-of self)))
+ (let* ((path (slot-ref self 'path))
+ (rwmode (slot-ref self 'rw-mode))
+ (omode (case rwmode
diff --git a/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild b/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild
new file mode 100644
index 000000000000..9a99480a7c48
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/gauche-qdbm-0.2-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+inherit autotools eutils
+
+MY_P="${P/g/G}"
+
+DESCRIPTION="QDBM binding for Gauche"
+HOMEPAGE="http://sourceforge.jp/projects/gauche/"
+SRC_URI="mirror://sourceforge.jp/gauche/6988/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~sparc x86"
+IUSE=""
+
+RDEPEND="dev-scheme/gauche
+ dev-db/qdbm"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-gauche-package.diff
+ epatch "${FILESDIR}"/${P}-undefined-reference.diff
+ eautoreconf
+}
diff --git a/dev-scheme/gauche-qdbm/metadata.xml b/dev-scheme/gauche-qdbm/metadata.xml
new file mode 100644
index 000000000000..c30645235ea2
--- /dev/null
+++ b/dev-scheme/gauche-qdbm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge-jp">gauche</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/gauche/Manifest b/dev-scheme/gauche/Manifest
new file mode 100644
index 000000000000..7a606b7464ae
--- /dev/null
+++ b/dev-scheme/gauche/Manifest
@@ -0,0 +1,24 @@
+AUX gauche-0.9-ext-ldflags.patch 411 SHA256 5bdf2f32f12a6f06580a7d476121f7cbafcf87f162f8304db93b981278833255 SHA512 237733fac1f8120927f0e1d4170f9545d124eaef3877dd796f95e099191a954b923a7648fd26d99d47a9a489a659aad154cc109842045d90a19d79c18f442da0 WHIRLPOOL a5bd6e51b6c6246538eeb097ca396488130ae97ed6112b3be8a930affc5e57d1244640575da4f8e619c446947cb5bb2f8bc4c65c816282e1491d90f4014ae7b3
+AUX gauche-0.9-gauche.m4.patch 528 SHA256 0778d4cc8cf9ca55544e127106fad7c5d76392bd6514f2662f6a3e2afa1d0419 SHA512 c8bd47b2769d27200272adc0475c890adaa09e66a187a54e8c16462ffca69a156976264642a6db5bd4ee53f3278c488f526ffb7cd26f56041c7e646d5d9ed2d7 WHIRLPOOL f8f871501a7ca70121ed74c81e41f08815c5c4a5cee9abcffe50a9df34045c04dc19e24cc7d001258357c8fae354b8dbfa03fbab158e107224588140e4830f45
+AUX gauche-0.9-rfc.tls.patch 537 SHA256 baaa00cf3c21894812c498822863a48b61347ae19b0cb8934810c2ab8145ea56 SHA512 9a3d4954ce582afcf544baef751311c8a9216f2122c87b7e2bb8aa2afa8f4c398d8d59ca86687d05c17e368f08fb8264e1441fb3ba474e04ebf78ea20acf81e7 WHIRLPOOL 0b65d128692391d82a26fb9a77f14f03953d9e97ee8309e5995e3e5b7756b230fbde95e32b760aa9448285f18b930c124de2f217fc1c30407e0676bdcef0b0a6
+AUX gauche-0.9-rpath.patch 242 SHA256 ee0e3d895322c90fff79a2d0016163c3db35e8912ad177daa5191762bbf6b5bd SHA512 46cc19db79ce7652b200ba6aec46c42d58ca7bb8ad0a0f884fa0999c14cfd9c8d42aae83c05f442091bc435f6ecf5010521e022af90be4e180c51da81145f08d WHIRLPOOL 89c2dbbc87de9ec49307a7a4acae87934d7b044660399035daa8d67162679c07770437a34370e11025f30abbdc22d466e1612d153575650968ad02572d64ae02
+AUX gauche-0.9-xz-info.patch 1438 SHA256 88c5cdd2428aed394702bf7a18543a8e4b63df33ffa305216870ff8fc6fca536 SHA512 c425a2e70376920fcc4bf8e7ce904db6f625eeeacc58a199b2f9513c98281ef84186887a28c2f8bd7c7e60461fb9fce3a10066a24914420d2a08029736c6c199 WHIRLPOOL 11680ea240db6bff7eff7840532f49621b986ac73601f8d6ad96c2a3042bb91828ba879a9b87705b904a9d0f6af32159b1fa4adc25b40eb3d50cd3ed3f531995
+AUX gauche-0.9.3.3-file.util.patch 701 SHA256 9646ecd262412dab6773f38b5c3393499bfbdac175d0b3f07ff131b0e4159481 SHA512 0b64093cc949394dc5e3d77c8c4cadda068ebb2010bd1f67d04ec65be2f13ac6f3a334abf93afdd41ccdda7e5f1d303dd44b368531985d9732f289df38979f49 WHIRLPOOL e5e920b35bd5de6b4f5591f851028bed1355de3d4d557362cda3411bf265ae35319b854a9d4a8a39e0dd26140bc399d93bef2cfd93ec4316cbb582badbef7895
+AUX gauche-0.9.3.3-gauche.threads.patch 4111 SHA256 4c80da4f3b3142df77542c681ea38a682f724d71ab944c15a58a1344014e60d1 SHA512 a3f4a72686759328a6cc958505806dd2aa782ba05859fd4d02933d17129952fa7a19440c84e2be454275643709282fa202d943b85431bac03d0953682e0aa24f WHIRLPOOL 853e94cdc91047f147b7b4a04b1ac82b2f71a785905f622d473fddd948d4f611a3e10fed6299d50058d95be1f5f0bc86ae714344f329c6914424b6f6aae65e54
+AUX gauche-0.9.5-bsd.patch 714 SHA256 72deaeed7db445c7dc01693c24fdadd2b66d5e19c0125a829f718efc23da8fa9 SHA512 416aa04f7f3aee310fd0e2c8073caa247e0fa84bb32f32ccadd125a17d26d4410554e2a6643493a3dbaa034fe07b54ae44f0f053238ea909b317551541431bac WHIRLPOOL 32ff072b1d3c5da6b98cc43ece2c2229ee45be61c5e967537f545d044c059266aa4fc11ff915648bd14cb04463c6dd9ed0e425e89b78ba4ca2308e6f57031434
+AUX gauche-0.9.5-libressl.patch 707 SHA256 cb4abb7bf9ff7574f4045b95d6e36710f6f74ecd7fc8ec19bf02d9866825781a SHA512 98941e03fa4f96e26d6c0ff85f3e16bcd69aa5c77140e42de86556bfba87b83f340dd6be7e2f23e2d92433e46198cd500ed488546493cdb91c9e8ff13b457fa7 WHIRLPOOL f01783e3fa9391b06f49f6ea46cfbc8714725b38626e5b19d728893cd976230b82b0f2e3bd6f7edf1a3624842921f2308f05c71c2b2b151df301ad9113351b46
+AUX gauche-0.9.5-unicode.patch 700 SHA256 838e7e04a6cb6e4520ca6816f9e16b40a74bc18fb05fbbf4047d99799201485d SHA512 4c58e2c6fcb5b58f8c130fec7af4c0af187f54c186d6e54ee1787cb8dd4baab51f9dfd776d1d8adbd86da0be0e813f6a82322e7ec22eafda2c626637f14097f8 WHIRLPOOL 6908c80e6588e44d5c901f9f0f58d6da7376e5a9a82d2e3e1619b7679d0313f044f69d20de8f28db73efb615e52a3b8d7f17d7b6b01c88a83e2d2218330ef03a
+AUX gauche-ext-ldflags.patch 384 SHA256 c1eadeeb4d8a5275028e1617286d33bb1052bf682dc3ae36c8c8add1a29e0dc5 SHA512 e38f1c7bc2fa6a1f5f56e20f9818d7f52e98ba8c3e101b642441421f5194bc4223c862e20d3d731da632642dc44545974483459727bb184d9da9b9742504f34d WHIRLPOOL e97498eea96f43a3e16042301ec57c0455f88a4078cc11f55fc3d0de38b7855dbb8ea5c86a72edc702c1cfd2bbdef393fe9dd49993b9a22c3d23d85c955e807b
+AUX gauche-gauche.m4.patch 592 SHA256 4214c72840831e4c42117ec8b6e8c31954e47b60e77d5e64c00c1dcedaf77407 SHA512 5082265340c6011d653f20de3a89f1eed1a48b896d521bb42aff1f748cafd3c60953c3b723ab9b053dcd941ed6b61f00f9f69a25f16db74d987228db2318ac68 WHIRLPOOL 870c826c956f64b399395e098b6ee145d1dc8dba40762b8e649068a1d431e4e2481f64ecf3363da37f37979ec793c4626778cb6e46920aeee250faf2fb0ac4f0
+AUX gauche-rfc.tls.patch 401 SHA256 23a73e4b6b791efc872716ab9f6ea3f60b1df671160347c39b9242b4b2879b49 SHA512 5b2baafa052208c1843e7d05789bf8a10c63fbb48de66ca7e8b7450a5cb23c1c5641c34a8ff8ee525aa073de21b1f970ba4c310b2678dc1f81293e51c22de321 WHIRLPOOL af32a9d3f8f5b725eea3368ad0e4dc6406b53ab4efc69af22573f5df000b5e359277e6be0724476f1c94a054407a64f5e81f1d0066f93ff22c8281d159c8d305
+AUX gauche-rpath.patch 215 SHA256 548f6847a8ac544cf89b920c23324b66e3a7e459262b176da98dc101d756338c SHA512 1bda4c2e0bb3928d040eb07d56a9eb0aebd68e52bd0756160ef3eec46ba8c1869b8a37dbb798a712a59918d6bf77e7ca74ec38a4e2e30bb6417f967b5cdc8da6 WHIRLPOOL 1fd7d2a5835c7886d657723e306b6b754079eb91f7eac8849816c8ed9b62a99daa495808617e0a9e30b382ba622eb52949f4c4817af59c589cd7b907d822319e
+AUX gauche-xz-info.patch 1322 SHA256 b784cc3fe460e5f27b10cdf0ca25ed8e104966be4034d7b8de3f89a273c9e55e SHA512 22b6a37ea23bcba7e4ea4d09f26b069225cc36ef32dc0fbc865cfa4052765d0363811f693d6cc5cc8f3fdf355b93eec7c58934d18b2cb8079cadfd3b0cd4ffa4 WHIRLPOOL ccec99bb98c7fb4a6d621546a0150ee3c071e28c2e44fe47dcd05fcfacc5a8713ee89f5bb288749bc20b11aa9c72c2ae832e42c0faf5a3304bf7277ea363235d
+DIST Gauche-0.9.3.3.tgz 5042189 SHA256 3d8b70075faa0f7a24f8d112cc102ee3e1066680cdd19d324d59f33fab79caac SHA512 5743781d88454d579d853a50c5c7651c52bdcea8b7b2130408e1c7761cee73edfdebaf258342e837ef7d5a3886e08bbb33b2862d1e19585f519ada5cb7475d1c WHIRLPOOL 7b11d62dc3917c3559897833da1248a3f54644159465df0d628fc5b761773ff59740231f57a7add62f2d0b03952f4f18daaf1be7598940d3b0a4719db2c767ab
+DIST Gauche-0.9.4.tgz 5601987 SHA256 7b18bcd70beaced1e004594be46c8cff95795318f6f5830dd2a8a700410fc149 SHA512 815e719d78950a31c238fd7879e09f40d6b3a83a3ebf9d5f7cd3cc7ada081e5f20fbc6b432900e3455bc59e5e60014bf77605b8c9c5f27def53f89284b9cfca3 WHIRLPOOL 354ef81913c6f617589590299f616a50dc1e1313e00d61f0918c9b6c20c0358878cd505f3fb02efa4615730380a6db6bd790e241871fde6cd6e11a662efb113c
+DIST Gauche-0.9.5.tgz 6458675 SHA256 4c8a53213de112708bbda5fa9648c21497d43ebf809ed5b32b15f21266b4e73c SHA512 6d853d734c7a56a86f0015b1bfef378803d6acc1e0405ed841eab5afc08d1edef736d85df10c86d75fd5fb6b2def684bb1f2095a019133b9f497192f5511197a WHIRLPOOL b29a81a920fac514866dd4a4e2911f2336d37b84ef3b9b3f50a5386f01dacea05580799ff7941e58ba4e29a9eac9289ca5037cd1b49d28a1b05e5bb2a892a907
+EBUILD gauche-0.9.3.3.ebuild 1104 SHA256 a1d06c31f2414e01196caab87dba9cf36f7dba806a614362991df208450f0c3e SHA512 21599f83cabb6e31a819c59b04dc615347049418a516fefb1ae0ac6a8db95df92afb2ad227f58ad069675743880cac6a661a283f518a432da6c7e171eb711202 WHIRLPOOL dcb109c7715c8c4a537e69f7556f131637eced6f31f79851ce32dcd791d6086725af53019d835378129c55fdb12c53a8df5d8b69eab2ede6ae1a7206cc42534c
+EBUILD gauche-0.9.4-r1.ebuild 1181 SHA256 417225d3a548616a1e6c41dfceddad224c747f85df41c492399a16fbf503b94d SHA512 0d7014d7c7ad24a313af3a6f27e8123019d115852477c1fa56612323eabc4c17be70fb021261ea7013e911d78fa76a4258b9e96101e485ba52bf83d50f097b19 WHIRLPOOL c6f59cc9d2ccc0521cc330f8e4aeb9e75dbdee5a323f90f56e5423d607ca254675955f128e0c5530362da71145c78591b793192cc4b6cb51760844c51f7e9138
+EBUILD gauche-0.9.5.ebuild 1251 SHA256 a1f27043157c8fd2f8c930247ac01694f4fb761be50fe05975c63bdecee25f17 SHA512 b4cc7e1bc78a8e6fc4790cc47b687afeecd96e932fa290dceffa1b8312197615de3d3971f18ddef3f1e0ebf4ae8b1ec7baa9d729a630b4419ec67b58f1e73395 WHIRLPOOL 3583bf07922dae9f6d2aca605a6a8b4fb486290707a60a07b941708568cc73b4afe5a8735141261a838b9ad935298bee5bbc26050f131ae35bf7518c39d98844
+MISC ChangeLog 5054 SHA256 a4d55d25cfe208f20288082b29be2069455ccb5a9df215351bc2bee6e891938f SHA512 640e3ee1ff68935e4db001a1df3e957e73328efcf1f249843670d851cb56b1bf9b0fce5db410c2b29e8b52a1652a57d5d6df91408853d6e57689fd2ba1fdcb6f WHIRLPOOL 81126a0353d3a980d71d72d475e0d57aabdc7c4b91296a87e83c565242e3817df05ada6744e8685fa6f340826621539e2807b6bf4c88f490a6f09a7a8a390501
+MISC ChangeLog-2015 13904 SHA256 110623b81c71cfc8fd18d06981cb3a40a95fa6b4fe2a81d5b592b14e21e23b69 SHA512 4066caec514d2a73bf89835cb3335b29a042ef1800525fe839216def3a1a49cdb575ac096ad7e310e325da95a3009a5af20299c5371c16922c78191d475f407f WHIRLPOOL ccb74790ba763feb1b841b3d2cb5244f91c94434dc7809baf3ff31cd26e310077a2b1eaa39a79f407efe020d28ee337360f18766cf2baca99672eb0113467829
+MISC metadata.xml 798 SHA256 29d61185c544361784f7f841d3ba565965d7b10973d854c8ba66ed03935b838e SHA512 763371a0b45718700fe237089d53d75260767ccd40974dc9da78df1562c47ec7a6967174fa23969916e4eb5d192a3a1d39bc4f3724fa436ccb39afb17c5192db WHIRLPOOL f07cfc57a4054d46b2c308492271d795c90739d511c6f4b5d87117fe91e6bb23a21935d4e7e665dc4259d069e8f2be09f69a3c3163ba925e429ab2707ad4a653
diff --git a/dev-scheme/gauche/files/gauche-0.9-ext-ldflags.patch b/dev-scheme/gauche/files/gauche-0.9-ext-ldflags.patch
new file mode 100644
index 000000000000..a9de4114d2bf
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9-ext-ldflags.patch
@@ -0,0 +1,11 @@
+--- Gauche-0.9.1.orig/ext/Makefile.ext.in
++++ Gauche-0.9.1/ext/Makefile.ext.in
+@@ -22,7 +22,7 @@
+ LIBS = $(XLIBS) @LIBS@
+ CFLAGS = @CFLAGS@ @SHLIB_SO_CFLAGS@ $(XCFLAGS)
+ CPPFLAGS = @CPPFLAGS@ $(XCPPFLAGS)
+-LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @SHLIB_SO_LDFLAGS@
++LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @LDFLAGS@ @SHLIB_SO_LDFLAGS@
+
+ # These are set by configure
+ DEFS = @DEFS@
diff --git a/dev-scheme/gauche/files/gauche-0.9-gauche.m4.patch b/dev-scheme/gauche/files/gauche-0.9-gauche.m4.patch
new file mode 100644
index 000000000000..8c4d3180836a
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9-gauche.m4.patch
@@ -0,0 +1,19 @@
+--- Gauche-0.9.4.orig/m4/gauche.m4
++++ Gauche-0.9.4/m4/gauche.m4
+@@ -103,15 +103,11 @@
+ i686-*) I686OPT="-DUSE_I686_PREFETCH";;
+ esac
+ case "$CC" in
+- gcc*) # some systems may have gcc-2.95, gcc-3, etc.
++ *gcc*) # some systems may have gcc-2.95, gcc-3, etc.
+ case "$target" in
+ *mingw*) ;;
+ *) GCCOPT="-fomit-frame-pointer";;
+ esac
+- case "$target" in
+- i586-*) GCCOPT="$GCCOPT -march=i586";;
+- i686-*) GCCOPT="$GCCOPT -march=i686";;
+- esac
+ ;;
+ esac
+ OPTFLAGS="$GCCOPT $I686OPT"
diff --git a/dev-scheme/gauche/files/gauche-0.9-rfc.tls.patch b/dev-scheme/gauche/files/gauche-0.9-rfc.tls.patch
new file mode 100644
index 000000000000..0bce39ad9929
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9-rfc.tls.patch
@@ -0,0 +1,12 @@
+--- Gauche-0.9.3.2.orig/ext/tls/Makefile.in
++++ Gauche-0.9.3.2/ext/tls/Makefile.in
+@@ -77,6 +77,9 @@
+ @sed -e "s@\.\./ssl/@../../$(srcdir)/axTLS/ssl/@g" \
+ -e "s/system/safe_system/g" \
+ -e "s@openssl @sh ../../$(srcdir)/kick_openssl @g" \
++ -e "/do_reneg = 1;/i#if 0" \
++ -e "/do_reneg = 0;/a#endif" \
++ -e "/SSL_server_test(/,/)/s/ -tls1//" \
+ $(srcdir)/axTLS/ssl/test/ssltest.c >> $(SSLTEST_GENERATED)
+ @cat $(srcdir)/system-fix.c >> $(SSLTEST_GENERATED)
+
diff --git a/dev-scheme/gauche/files/gauche-0.9-rpath.patch b/dev-scheme/gauche/files/gauche-0.9-rpath.patch
new file mode 100644
index 000000000000..ca76cb831234
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9-rpath.patch
@@ -0,0 +1,10 @@
+--- Gauche-0.9.1.orig/configure.ac
++++ Gauche-0.9.1/configure.ac
+@@ -709,7 +709,6 @@
+ fi
+ if test "$RPATH_FLAG" != ""; then
+ RPATH_TMP=$RPATH_FLAG'`pwd`'
+- RPATH_REAL=$RPATH_FLAG'$(LIB_INSTALL_DIR)'
+ fi
+ fi
+ AC_SUBST(RPATH_FLAG)
diff --git a/dev-scheme/gauche/files/gauche-0.9-xz-info.patch b/dev-scheme/gauche/files/gauche-0.9-xz-info.patch
new file mode 100644
index 000000000000..809879c4cbd8
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9-xz-info.patch
@@ -0,0 +1,31 @@
+--- Gauche-0.9.1.orig/lib/gauche/interactive/info.scm
++++ Gauche-0.9.1/lib/gauche/interactive/info.scm
+@@ -84,7 +84,8 @@
+ :pred (lambda (p)
+ (or (file-is-readable? p)
+ (file-is-readable? #`",|p|.gz")
+- (file-is-readable? #`",|p|.bz2"))))
++ (file-is-readable? #`",|p|.bz2")
++ (file-is-readable? #`",|p|.xz"))))
+ (errorf "couldn't find info file ~s in paths: ~s" *info-file* paths))
+ ))
+
+--- Gauche-0.9.1.orig/lib/text/info.scm
++++ Gauche-0.9.1/lib/text/info.scm
+@@ -63,6 +63,7 @@
+ ;; Find gunzip location
+ (define gunzip (find-file-in-paths "gunzip"))
+ (define bzip2 (find-file-in-paths "bzip2"))
++(define xz (find-file-in-paths "xz"))
+
+ ;; Read an info file FILE, and returns a list of strings splitted by ^_ (#\x1f)
+ ;; If FILE is not found, look for compressed one.
+@@ -74,6 +75,8 @@
+ (with-input-from-process #`",gunzip -c ,file" thunk)]
+ [(and bzip2 (file-exists? #`",|file|.bz2"))
+ (with-input-from-process #`",bzip2 -c -d ,|file|.bz2" thunk)]
++ [(and xz (file-exists? #`",|file|.xz"))
++ (with-input-from-process #`",xz -c -d ,|file|.xz" thunk)]
+ [else (error "can't find info file" file)]))
+ (with-input-from-info
+ (lambda ()
diff --git a/dev-scheme/gauche/files/gauche-0.9.3.3-file.util.patch b/dev-scheme/gauche/files/gauche-0.9.3.3-file.util.patch
new file mode 100644
index 000000000000..1e4cd5d19521
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9.3.3-file.util.patch
@@ -0,0 +1,21 @@
+commit 15fb279dccb83d66d7e866a0e6f4e3f9ff64fd8d
+Author: Shiro Kawai <shiro@acm.org>
+Date: Thu Nov 29 23:17:55 2012 -1000
+
+ Fix file.util test
+
+ The current test may fail when a size of a directory happens to
+ 100. Patch from NIIBE Yutaka.
+
+--- a/ext/file/test.scm
++++ b/ext/file/test.scm
+@@ -290,7 +290,8 @@
+ (reverse
+ (directory-fold "test.out"
+ (^[path result]
+- (if (= (file-size path) 100)
++ (if (and (file-is-regular? path)
++ (= (file-size path) 100))
+ (cons path result)
+ result))
+ '()
diff --git a/dev-scheme/gauche/files/gauche-0.9.3.3-gauche.threads.patch b/dev-scheme/gauche/files/gauche-0.9.3.3-gauche.threads.patch
new file mode 100644
index 000000000000..a44ee75b8d1a
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9.3.3-gauche.threads.patch
@@ -0,0 +1,120 @@
+commit 60d82dd56c15a533562cf28111af5d3365d5d354
+Author: Shiro Kawai <shiro@acm.org>
+Date: Thu May 31 15:23:22 2012 -1000
+
+ Fixed thread-terminate! bug that SEGVs when applied on non-running threads
+
+--- a/ext/threads/test.scm
++++ b/ext/threads/test.scm
+@@ -100,6 +100,18 @@
+ (thread-terminate! t1)
+ (thread-join! t1))))
+
++;; this SEGVs on 0.9.3.3. test code from @cryks.
++(test* "thread termination before running" 'terminated
++ (let1 t1 (make-thread (^[] #f))
++ (thread-terminate! t1)
++ (thread-state t1)))
++
++(test* "thread termination while being stopped" 'terminated
++ (let1 t1 (thread-start! (make-thread (^[] (let loop () (loop)))))
++ (thread-stop! t1)
++ (thread-terminate! t1)
++ (thread-state t1)))
++
+ ;;---------------------------------------------------------------------
+ (test-section "thread and error")
+
+--- a/ext/threads/threads.c
++++ b/ext/threads/threads.c
+@@ -432,36 +432,41 @@ ScmObj Scm_ThreadTerminate(ScmVM *target)
+ }
+
+ (void)SCM_INTERNAL_MUTEX_LOCK(target->vmlock);
+- do {
+- /* This ensures only the first call of thread-terminate! on a thread
+- is in effect. */
+- if (target->canceller == NULL) {
+- target->canceller = vm;
+-
+- /* First try */
+- target->stopRequest = SCM_VM_REQUEST_TERMINATE;
+- target->attentionRequest = TRUE;
+- if (wait_for_termination(target)) break;
+-
+- /* Second try */
++ if (target->state == SCM_VM_RUNNABLE || target->state == SCM_VM_STOPPED) {
++ do {
++ /* This ensures only the first call of thread-terminate! on a
++ thread is in effect. */
++ if (target->canceller == NULL) {
++ target->canceller = vm;
++
++ /* First try */
++ target->stopRequest = SCM_VM_REQUEST_TERMINATE;
++ target->attentionRequest = TRUE;
++ if (wait_for_termination(target)) break;
++
++ /* Second try */
++ SCM_ASSERT(target->thread);
+ #if defined(GAUCHE_USE_PTHREADS)
+ # if defined(GAUCHE_PTHREAD_SIGNAL)
+- pthread_kill(target->thread, GAUCHE_PTHREAD_SIGNAL);
++ pthread_kill(target->thread, GAUCHE_PTHREAD_SIGNAL);
+ # endif /*defined(GAUCHE_PTHREAD_SIGNAL)*/
+ #elif defined(GAUCHE_USE_WTHREADS)
+- /* TODO: implement signal mechanism using an event */
++ /* TODO: implement signal mechanism using an event */
+ #endif /* defined(GAUCHE_USE_WTHREADS) */
+- if (wait_for_termination(target)) break;
++ if (wait_for_termination(target)) break;
+
+- /* Last resort */
+- thread_cleanup_inner(target);
++ /* Last resort */
++ thread_cleanup_inner(target);
+ #if defined(GAUCHE_USE_PTHREADS)
+- pthread_cancel(target->thread);
++ pthread_cancel(target->thread);
+ #elif defined(GAUCHE_USE_WTHREADS)
+- TerminateThread(target->thread, 0);
++ TerminateThread(target->thread, 0);
+ #endif
+- }
+- } while (0);
++ }
++ } while (0);
++ }
++ /* target either is terminated or hasn't been run */
++ target->state = SCM_VM_TERMINATED;
+ (void)SCM_INTERNAL_MUTEX_UNLOCK(target->vmlock);
+ return SCM_UNDEFINED;
+ }
+--- a/test/control.scm
++++ b/test/control.scm
+@@ -72,7 +72,7 @@
+ ;;
+
+ (cond-expand
+- [gauche.sys.pthreads
++ [gauche.sys.threads
+ (test-section "control.thread-pool")
+ (use control.thread-pool)
+ (test-module 'control.thread-pool)
+@@ -173,7 +173,15 @@
+ (let1 xjob (add-job! pool work)
+ (terminate-all! pool :force-timeout 0.05)
+ (job-status xjob))))
+- ]
++
++ ;; This SEGVs on 0.9.3.3 (test code by @cryks)
++ (test* "thread pool termination" 'terminated
++ (let ([t (thread-start! (make-thread (cut undefined)))]
++ [pool (make-thread-pool 10)])
++ (terminate-all! pool)
++ (thread-terminate! t)
++ (thread-state t)))
++ ] ; gauche.sys.pthreads
+ [else])
+
+ (test-end)
diff --git a/dev-scheme/gauche/files/gauche-0.9.5-bsd.patch b/dev-scheme/gauche/files/gauche-0.9.5-bsd.patch
new file mode 100644
index 000000000000..615020df8dfe
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9.5-bsd.patch
@@ -0,0 +1,25 @@
+commit da2ea76503e8f1784d0f0be26435d4c8e0d1b12f
+Author: Shiro Kawai <shiro@acm.org>
+Date: Sat Oct 15 11:44:28 2016 -1000
+
+ Avoid preprocessor symbols redefinition on OpenBSD
+
+ https://sourceforge.net/p/gauche/mailman/message/35429549/
+
+diff --git a/ext/net/gauche-net.h b/ext/net/gauche-net.h
+index d4f1dcd..decba64 100644
+--- a/ext/net/gauche-net.h
++++ b/ext/net/gauche-net.h
+@@ -362,8 +362,12 @@ extern ScmObj Scm_GetAddrinfo(const char *nodename,
+ struct addrinfo *hints);
+ extern ScmObj Scm_GetNameinfo(ScmSockAddr *addr, int flags);
+
++#ifndef NI_MAXHOST
+ #define NI_MAXHOST 1025
++#endif
++#ifndef NI_MAXSERV
+ #define NI_MAXSERV 32
++#endif
+
+ #endif /* HAVE_IPV6 */
+
diff --git a/dev-scheme/gauche/files/gauche-0.9.5-libressl.patch b/dev-scheme/gauche/files/gauche-0.9.5-libressl.patch
new file mode 100644
index 000000000000..7b4c839dccb8
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9.5-libressl.patch
@@ -0,0 +1,19 @@
+commit c26a4836e767807dd8c98d280c4d9e742b759edd
+Author: Shiro Kawai <shiro@acm.org>
+Date: Sun Oct 9 02:04:19 2016 -1000
+
+ rfc.tls - Detect LibreSSL as well
+
+diff --git a/ext/tls/test.scm b/ext/tls/test.scm
+index 63a1d04..efbfbca 100644
+--- a/ext/tls/test.scm
++++ b/ext/tls/test.scm
+@@ -37,7 +37,7 @@
+ [(not gauche.os.windows)
+ (guard (e [(<process-abnormal-exit> e)
+ (no-openssl "couldn't run openssl command")])
+- (if-let1 m ($ #/OpenSSL\s+([\d\.]+\w*)/
++ (if-let1 m ($ #/(?:OpenSSL|LibreSSL)\s+([\d\.]+\w*)/
+ $ process-output->string `(,openssl-cmd "version"))
+ (let1 vers (m 1)
+ (unless (version>=? vers "1.0.1")
diff --git a/dev-scheme/gauche/files/gauche-0.9.5-unicode.patch b/dev-scheme/gauche/files/gauche-0.9.5-unicode.patch
new file mode 100644
index 000000000000..a87ca5d7c39c
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-0.9.5-unicode.patch
@@ -0,0 +1,19 @@
+commit d31eb5c02b65514e695b45c0c01cbd45a36bac4a
+Author: OOHASHI Daichi <dico.leque.comicron@gmail.com>
+Date: Thu Oct 20 10:48:17 2016 +0900
+
+ (char-general-category #\x20000) should be Lo
+
+diff --git a/src/gauche/char_utf_8.h b/src/gauche/char_utf_8.h
+index 082e764..5f92d13 100644
+--- a/src/gauche/char_utf_8.h
++++ b/src/gauche/char_utf_8.h
+@@ -294,7 +294,7 @@ static inline unsigned char Scm__LookupCharCategory(ScmChar ch)
+ {
+ if (ch == SCM_CHAR_INVALID || ch >= 0x10ffff) {
+ return SCM_CHAR_CATEGORY_Cn;
+- } else if (ch <= 0x20000) {
++ } else if (ch < 0x20000) {
+ return ucs_general_category_00000[ch];
+ } else {
+ return ucs_general_category_20000(ch);
diff --git a/dev-scheme/gauche/files/gauche-ext-ldflags.patch b/dev-scheme/gauche/files/gauche-ext-ldflags.patch
new file mode 100644
index 000000000000..b4aedef2a316
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-ext-ldflags.patch
@@ -0,0 +1,11 @@
+--- a/ext/Makefile.ext.in
++++ b/ext/Makefile.ext.in
+@@ -22,7 +22,7 @@
+ LIBS = $(XLIBS) @LIBS@
+ CFLAGS = @CFLAGS@ @SHLIB_SO_CFLAGS@ $(XCFLAGS)
+ CPPFLAGS = @CPPFLAGS@ $(XCPPFLAGS)
+-LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @SHLIB_SO_LDFLAGS@
++LDFLAGS = $(LOCAL_LFLAGS) $(XLDFLAGS) @LDFLAGS@ @SHLIB_SO_LDFLAGS@
+
+ # These are set by configure
+ DEFS = @DEFS@
diff --git a/dev-scheme/gauche/files/gauche-gauche.m4.patch b/dev-scheme/gauche/files/gauche-gauche.m4.patch
new file mode 100644
index 000000000000..1b9947cf5798
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-gauche.m4.patch
@@ -0,0 +1,18 @@
+--- a/m4/gauche.m4
++++ b/m4/gauche.m4
+@@ -103,13 +103,10 @@
+ AS_CASE(["$target"],
+ [i686-*], [I686OPT="-DUSE_I686_PREFETCH"])
+ AS_CASE(["$CC"],
+- [gcc*], [ dnl some systems may have gcc-2.95, gcc-3, etc.
++ [*gcc*], [ dnl some systems may have gcc-2.95, gcc-3, etc.
+ AS_CASE(["$target"],
+ [*mingw*], [],
+- [GCCOPT="-fomit-frame-pointer"])
+- AS_CASE(["$target"],
+- [i586-*], [GCCOPT="$GCCOPT -march=i586"],
+- [i686-*], [GCCOPT="$GCCOPT -march=i686"])])])
++ [GCCOPT="-fomit-frame-pointer"])])])
+ OPTFLAGS="$GCCOPT $I686OPT"
+ AC_SUBST(OPTFLAGS)
+ ])
diff --git a/dev-scheme/gauche/files/gauche-rfc.tls.patch b/dev-scheme/gauche/files/gauche-rfc.tls.patch
new file mode 100644
index 000000000000..1e5ef71b6c91
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-rfc.tls.patch
@@ -0,0 +1,12 @@
+--- a/ext/tls/ssltest-mod.scm
++++ b/ext/tls/ssltest-mod.scm
+@@ -53,7 +53,8 @@
+ ($ format #t "~a\n" $ regexp-replace-all* line
+ #/\.\.\/ssl\// srcpath-replace
+ #/openssl / kicker-replace
+- #/system/ "safe_system")))
++ #/system/ "safe_system"
++ #/(s_server) / "\\1 -4 ")))
+
+ (p "#include <errno.h>"
+ "int safe_system(const char *commands)"
diff --git a/dev-scheme/gauche/files/gauche-rpath.patch b/dev-scheme/gauche/files/gauche-rpath.patch
new file mode 100644
index 000000000000..8774bac7be13
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-rpath.patch
@@ -0,0 +1,10 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -709,7 +709,6 @@
+ fi
+ if test "$RPATH_FLAG" != ""; then
+ RPATH_TMP=$RPATH_FLAG'`pwd`'
+- RPATH_REAL=$RPATH_FLAG'$(LIB_INSTALL_DIR)'
+ fi
+ fi
+ AC_SUBST(RPATH_FLAG)
diff --git a/dev-scheme/gauche/files/gauche-xz-info.patch b/dev-scheme/gauche/files/gauche-xz-info.patch
new file mode 100644
index 000000000000..e55f53606005
--- /dev/null
+++ b/dev-scheme/gauche/files/gauche-xz-info.patch
@@ -0,0 +1,31 @@
+--- a/lib/gauche/interactive/info.scm
++++ b/lib/gauche/interactive/info.scm
+@@ -137,7 +137,8 @@
+ :paths paths
+ :pred (^p (or (file-is-readable? p)
+ (file-is-readable? #"~|p|.gz")
+- (file-is-readable? #"~|p|.bz2"))))
++ (file-is-readable? #"~|p|.bz2")
++ (file-is-readable? #"~|p|.xz"))))
+ (errorf "couldn't find info file ~s in paths: ~s" *info-file* paths))
+ ))
+
+--- a/lib/text/info.scm
++++ b/lib/text/info.scm
+@@ -64,6 +64,7 @@
+
+ ;; Find bzip2 location
+ (define bzip2 (find-file-in-paths "bzip2"))
++(define xz (find-file-in-paths "xz"))
+
+ ;; Read an info file FILE, and returns a list of strings splitted by ^_ (#\u001f)
+ ;; If FILE is not found, look for compressed one.
+@@ -78,6 +79,8 @@
+ (close-input-port zp)))))]
+ [(and bzip2 (file-exists? #"~|file|.bz2"))
+ (with-input-from-process #"~bzip2 -c -d ~|file|.bz2" thunk)]
++ [(and xz (file-exists? #"~|file|.xz"))
++ (with-input-from-process #"~xz -c -d ~|file|.xz" thunk)]
+ [else (error "can't find info file" file)]))
+ (with-input-from-info
+ (lambda ()
diff --git a/dev-scheme/gauche/gauche-0.9.3.3.ebuild b/dev-scheme/gauche/gauche-0.9.3.3.ebuild
new file mode 100644
index 000000000000..011ca66086e3
--- /dev/null
+++ b/dev-scheme/gauche/gauche-0.9.3.3.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools eutils
+
+MY_P="${P^g}"
+
+DESCRIPTION="A Unix system friendly Scheme Interpreter"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ia64 ~ppc ~ppc64 ~sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ipv6 test"
+
+RDEPEND="sys-libs/gdbm"
+DEPEND="${RDEPEND}
+ test? ( dev-libs/openssl )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9-rpath.patch
+ "${FILESDIR}"/${PN}-0.9-gauche.m4.patch
+ "${FILESDIR}"/${PN}-0.9-ext-ldflags.patch
+ "${FILESDIR}"/${PN}-0.9-xz-info.patch
+ "${FILESDIR}"/${PN}-0.9-rfc.tls.patch
+ "${FILESDIR}"/${P}-gauche.threads.patch
+ "${FILESDIR}"/${P}-file.util.patch
+)
+
+src_prepare() {
+ default
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ --with-slib="${EPREFIX}"/usr/share/slib
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install-pkg install-doc
+ dodoc AUTHORS ChangeLog HACKING README
+}
diff --git a/dev-scheme/gauche/gauche-0.9.4-r1.ebuild b/dev-scheme/gauche/gauche-0.9.4-r1.ebuild
new file mode 100644
index 000000000000..4cdcd5cc5d74
--- /dev/null
+++ b/dev-scheme/gauche/gauche-0.9.4-r1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools eutils
+
+MY_P="${P^g}"
+
+DESCRIPTION="A Unix system friendly Scheme Interpreter"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ipv6 libressl test"
+
+RDEPEND="sys-libs/gdbm"
+DEPEND="${RDEPEND}
+ test? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.9-rpath.patch
+ "${FILESDIR}"/${PN}-0.9-gauche.m4.patch
+ "${FILESDIR}"/${PN}-0.9-ext-ldflags.patch
+ "${FILESDIR}"/${PN}-0.9-xz-info.patch
+ "${FILESDIR}"/${PN}-0.9-rfc.tls.patch
+)
+
+src_prepare() {
+ mv gc/src/*.[Ss] gc || die
+ sed -i "/^EXTRA_libgc_la_SOURCES/s|src/||g" gc/Makefile.am
+
+ default
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ --with-slib="${EPREFIX}"/usr/share/slib
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install-pkg install-doc
+ dodoc AUTHORS ChangeLog HACKING README
+}
diff --git a/dev-scheme/gauche/gauche-0.9.5.ebuild b/dev-scheme/gauche/gauche-0.9.5.ebuild
new file mode 100644
index 000000000000..e30ab60aee5c
--- /dev/null
+++ b/dev-scheme/gauche/gauche-0.9.5.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit autotools eutils
+
+MY_P="${P^g}"
+
+DESCRIPTION="A Unix system friendly Scheme Interpreter"
+HOMEPAGE="http://practical-scheme.net/gauche/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ipv6 libressl test"
+
+RDEPEND="sys-libs/gdbm"
+DEPEND="${RDEPEND}
+ test? (
+ !libressl? ( dev-libs/openssl:0 )
+ libressl? ( dev-libs/libressl )
+ )"
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-rpath.patch
+ "${FILESDIR}"/${PN}-gauche.m4.patch
+ "${FILESDIR}"/${PN}-ext-ldflags.patch
+ "${FILESDIR}"/${PN}-xz-info.patch
+ "${FILESDIR}"/${PN}-rfc.tls.patch
+ "${FILESDIR}"/${P}-libressl.patch
+ "${FILESDIR}"/${P}-bsd.patch
+ "${FILESDIR}"/${P}-unicode.patch
+)
+
+src_prepare() {
+ default
+
+ use ipv6 && sed -i "s/ -4//" ext/tls/ssltest-mod.scm
+
+ eautoconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable ipv6) \
+ --with-libatomic-ops=no \
+ --with-slib="${EPREFIX}"/usr/share/slib
+}
+
+src_test() {
+ emake -j1 -s check
+}
+
+src_install() {
+ emake DESTDIR="${D}" install-pkg install-doc
+ dodoc AUTHORS ChangeLog HACKING README
+}
diff --git a/dev-scheme/gauche/metadata.xml b/dev-scheme/gauche/metadata.xml
new file mode 100644
index 000000000000..f4a4c8740c58
--- /dev/null
+++ b/dev-scheme/gauche/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>hattya@gentoo.org</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription>
+ Gauche is an R5RS Scheme implementation developed to be a handy script
+ interpreter, which allows programmers and system administrators to write
+ small to large scripts for their daily chores. Quick startup, built-in
+ system interface, native multilingual support are some of my goals.
+
+ Gauche runs on several Unix-like platforms.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">gauche</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/goosh/Manifest b/dev-scheme/goosh/Manifest
new file mode 100644
index 000000000000..97b94b5e4e91
--- /dev/null
+++ b/dev-scheme/goosh/Manifest
@@ -0,0 +1,5 @@
+DIST goosh-1.3.tar.gz 43503 SHA256 5a3c2ecae59b4f77831b6dd904016269f1b533fab5e1a52eebd2e723323fc920 SHA512 55fc3b83b5e711453886d6fd47e7e16df329ac7f294c704e3676f7266383fda6ad5e53c3f8a707a7746dd0ccd33647cc5137a73f516396079702df47919ede81 WHIRLPOOL f7e9ba70b78a9821365aa0fa9a98a3442371ef2f8f647899672a8ef2cfb497a61dc8362ce2e6044a71587c07dd0a323d7b25771bb2aa87f8c7eedf02ef4550c2
+EBUILD goosh-1.3.ebuild 435 SHA256 9a4bc3e4a122e84a039c9d88c89838e2d286c19ef6ba2a4b186c0868011f0bcb SHA512 154a67da350d64512cd37188b40ef883e601c9bf082e40d42331013ef79722b5ba91628a5e2c3c6fbb78687a6646fbd18efd0a64537f008511852cdd157824cb WHIRLPOOL 473eddc9432eeea504a6a88f6b9474e2bcd8971c255177bd7cec3995ed36ccdd8f08e0afdcb29d552ba3e383e54b0e90d70101880ee2f8054b975d72f737d1f8
+MISC ChangeLog 2419 SHA256 dd4724a60beea4ab8dcef5344b195df6f7331669cd30d0e06770299812b43462 SHA512 783088a86e7da8a9c730a40a7ca5d8cf89e1f8924ff8b6506a89b20e8a7aaf925a4a62e7025b9ce777d4a2fd7453ae7d56fd97d84ac27079af43cc1b4312b65f WHIRLPOOL 3501310b9b189dc7218a8569b4db94fa2d8074e2983e281a93ba5087b907b006498147250a74051a61c3101b3e5053fea5710f44e5627496a8e6b3e2ba63ab22
+MISC ChangeLog-2015 1102 SHA256 9e7489a8834853183a03af1a2b2672a82bfd58cb6c3842848e095593b497e618 SHA512 3b0378f4e58b1a397fa30eec467b7be740dab88d435ad56537d874d6e688112e386f8388625ba636dd441f6b616ccd2e4867d6392ca811e058651191cd170fb8 WHIRLPOOL e660622c669ccdaab5fff1c25f9ac88dd0067304e3eefdef7411444b9c64f88a8335201f6693d4d6a910321a831338d0c78d517ac9ba8331837133c5876bb22f
+MISC metadata.xml 261 SHA256 f53f2259ad8695c56f1457bcbd63ad8f51108ec471d728cd2fe6f523b36b09d8 SHA512 72682d17ec2b918131b551bd1ff41004965d3cf0c00d24222b34741d2eabf601cf36d4266be70ba7fb7bd0ab55d9dcb5b8e4ca41125bc31f176516797459c8c7 WHIRLPOOL 8ae9531cec25662e7d2a9df3c46039a66da22cb0becfc5cb2eacbb0ea5cfedf0491bd7110465ae37c4e8263b5a962f4973eed3dc569db0d524506943014444a2
diff --git a/dev-scheme/goosh/goosh-1.3.ebuild b/dev-scheme/goosh/goosh-1.3.ebuild
new file mode 100644
index 000000000000..edc4f3d31070
--- /dev/null
+++ b/dev-scheme/goosh/goosh-1.3.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Small process-control library for Guile"
+HOMEPAGE="http://arglist.com/guile/"
+SRC_URI="http://arglist.com/guile/${P}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+RDEPEND=">=dev-scheme/guile-1.6"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+}
diff --git a/dev-scheme/goosh/metadata.xml b/dev-scheme/goosh/metadata.xml
new file mode 100644
index 000000000000..4ac68c154bb0
--- /dev/null
+++ b/dev-scheme/goosh/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/greg/Manifest b/dev-scheme/greg/Manifest
new file mode 100644
index 000000000000..f3f55e4f9ef4
--- /dev/null
+++ b/dev-scheme/greg/Manifest
@@ -0,0 +1,9 @@
+AUX 2.0.0-notest.patch 187 SHA256 66fa0dfb54861d9a48115088971add78afc636308d2ed18c0f7ae942cc980fad SHA512 c4de1e03d627964ef907e88b8a361a00298ba967b065aff4351958cd216fa113d89b4152b74eb179e09ab15aee4669186934b62865b67462884eb72a08267a82 WHIRLPOOL d919a9833031bf2b46fedc9e1e1ed93b012915cf28235680adb5925d1966ed2a2c5e4268f20f7d26a14c8b9a63fc181d3798e822405f0e397867f8374e3298e6
+AUX greg-2.0.0-guile2.patch 656 SHA256 cd353243858f075ffb374d00deb5ea28ac2b24685eefb36ad3ba4d3e0ce68385 SHA512 93c7316960df570a3611dbe1b4ccff9b25ccbaf173c947b1259f158ddfbe52faa47b334ac83af78829ad3ebb10efef40f6e5f8abc4ea1a26c904c4a895823a33 WHIRLPOOL d930437cfddc452868492d1f61a5373ea836292c5b9c2a709ab3c47a7ca5eb635bb82fe8cc9b9c3d49a4505ba08ac1cc418916fdca6f94bd031cfe1b89eeb73e
+AUX greg-2.0.0-test.patch 187 SHA256 66fa0dfb54861d9a48115088971add78afc636308d2ed18c0f7ae942cc980fad SHA512 c4de1e03d627964ef907e88b8a361a00298ba967b065aff4351958cd216fa113d89b4152b74eb179e09ab15aee4669186934b62865b67462884eb72a08267a82 WHIRLPOOL d919a9833031bf2b46fedc9e1e1ed93b012915cf28235680adb5925d1966ed2a2c5e4268f20f7d26a14c8b9a63fc181d3798e822405f0e397867f8374e3298e6
+DIST greg-2.0.0.tar.gz 453598 SHA256 da917cc45747f1369771860d635661e8fdc6e604eb20aa2c25fae0d113e4d769 SHA512 d20523b4f6fcfcb183615866a3b322dad39579707f6979ad1edf11dac4c93f5c8dda109a4d832aae597b44397befe81afb6ae9be282556228ade1ad48e8a17eb WHIRLPOOL dfd59766a428ee2757bfebf871637e1bccd5e9ab691c10ae51e8149914aba1eaf2bf28f5999b8f934ad825a2144e31d9495954175726a4b169978b23d199f4f4
+EBUILD greg-2.0.0-r1.ebuild 684 SHA256 746b4de4ba6f815672a4ae95353a49a4d551cba3220bacfb760020bace7b3986 SHA512 03e4b158c9c64d3e97a6eda0e520edeb710962628d50f23982b55eca653de9e5f1c0c6b221ab3cd7bbf40e6e78d27dff917e3cc2c8aca84d8a714e7f66285cdd WHIRLPOOL 38e972fcc8cf2c743481fe8eb61d938a34fa6e0c24247f47f237844115448e5468e47f5e76aaef0e482a3d9f4cfc1e8605655fedbbc7306a70b4620a2669b548
+EBUILD greg-2.0.0.ebuild 551 SHA256 b3db0e98ceb37cb65d5a29a34f8f380ff918f3ffa1b4b46582d8034eb3ecb100 SHA512 9632bbfb85adbe43288f2c8055c0c94e010d37314742e2e6cabb1b1296835964fe1be3191d29089202c8ca483570114837cada0cc4508577ca7b22292eb08b93 WHIRLPOOL ade2efdb5c0882de2d4fc800434786a0e3eb9ba804829d8dfde618d3ab6b75a1e7e7a1d73b2eb9948a00288ddae8f8d728a4b5ef8296871b5f8557ec8b295b26
+MISC ChangeLog 2702 SHA256 2beff68447947ee48d4317d87acef8a65745da9da64d1cf9ac9629f74666c8f3 SHA512 ae0f82689b8cda0aeca91d77930f36fea8d482452c3150a24da852f6c6198590b7f50fac35004fd90734ef1748bf78d9b4fbb6509d9b644c3b1c2b5f043f742d WHIRLPOOL ddc57dd6a7a896cd027abaee582ee5efb24c20b5a898cb64eea7876f9c91d3d0f6e3586b1206e7686721a6f7c32e5a6bed47ff8c886748e04c0e277d0a8fa9a3
+MISC ChangeLog-2015 1026 SHA256 521c95e71ea9a4fea94d3a31657a474853a542ec2fda725e3754473b629ab360 SHA512 b27b7678bc0016e27714e64aab3d7103529b5e442ce6f788eb04b5866c996419c5996c1bcfc8797365caef71892d3fe327edf49c2732d86257737dc0b783d8d2 WHIRLPOOL db05ece8eef2c25ed8e54d4a592ac2b46571aef2a8174be5cedb96886dc19250facfd476bf328e7816bbb968abe73958be2e3daf1f81434982343b676e174de1
+MISC metadata.xml 219 SHA256 ad5a9ed2bfbad72c5b28b1444a4b6df2f47f8c0b0da9fc52222a381d345514ed SHA512 2d421746cac7e5e6a59e81fdc273cda856245e88c88a489118c94a58c9db3ddde6497be6a8c076309f895c1c0280fe77514332ddcfd5cb884fc255016f66b5b7 WHIRLPOOL e0a1fd67e3d5a96c654d339dc9329c908c8ff0356cdcbf6f6f65b90d14f7fb9a76efa492ce23486b5e4a2c9fa77ae78776316b39619c64957f8bb3266b91389b
diff --git a/dev-scheme/greg/files/2.0.0-notest.patch b/dev-scheme/greg/files/2.0.0-notest.patch
new file mode 100644
index 000000000000..26a6cdf1c0ad
--- /dev/null
+++ b/dev-scheme/greg/files/2.0.0-notest.patch
@@ -0,0 +1,12 @@
+diff --git a/test/Makefile.am b/test/Makefile.am
+index 3cda45d..c61b34e 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -23,7 +23,6 @@
+
+
+ all:
+- ./test.sh
+
+ check:
+ ./test.sh
diff --git a/dev-scheme/greg/files/greg-2.0.0-guile2.patch b/dev-scheme/greg/files/greg-2.0.0-guile2.patch
new file mode 100644
index 000000000000..7b78fc9dbd79
--- /dev/null
+++ b/dev-scheme/greg/files/greg-2.0.0-guile2.patch
@@ -0,0 +1,14 @@
+--- greg-2.0.0/configure.ac.old 2012-09-23 13:25:24.000000000 +0200
++++ greg-2.0.0/configure.ac 2012-09-23 13:25:31.000000000 +0200
+@@ -48,7 +48,10 @@
+ AC_HEADER_STDC
+ AC_HEADER_TIME
+ AC_HEADER_SYS_WAIT
+-AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h signal.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h libguile.h errno.h)
++AC_CHECK_HEADERS(libc.h limits.h malloc.h memory.h string.h signal.h sys/file.h sys/fcntl.h sys/ioctl.h sys/stropts.h unistd.h utime.h errno.h)
++
++CFLAGS=`GUILE_AUTOCOMPILE=0 $GUILECONFIG compile`
++AC_CHECK_HEADER(libguile.h)
+
+
+ # Checks for typedefs, structures, and compiler characteristics.
diff --git a/dev-scheme/greg/files/greg-2.0.0-test.patch b/dev-scheme/greg/files/greg-2.0.0-test.patch
new file mode 100644
index 000000000000..26a6cdf1c0ad
--- /dev/null
+++ b/dev-scheme/greg/files/greg-2.0.0-test.patch
@@ -0,0 +1,12 @@
+diff --git a/test/Makefile.am b/test/Makefile.am
+index 3cda45d..c61b34e 100644
+--- a/test/Makefile.am
++++ b/test/Makefile.am
+@@ -23,7 +23,6 @@
+
+
+ all:
+- ./test.sh
+
+ check:
+ ./test.sh
diff --git a/dev-scheme/greg/greg-2.0.0-r1.ebuild b/dev-scheme/greg/greg-2.0.0-r1.ebuild
new file mode 100644
index 000000000000..e27ea2725c0f
--- /dev/null
+++ b/dev-scheme/greg/greg-2.0.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils
+
+DESCRIPTION="Testing-Framework for guile"
+HOMEPAGE="http://gna.org/projects/greg/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="amd64 ~x86"
+LICENSE="GPL-2"
+IUSE="static-libs"
+
+RDEPEND=">=dev-scheme/guile-1.8"
+DEPEND=""
+
+PATCHES=(
+ "${FILESDIR}"/${P}-test.patch
+ "${FILESDIR}"/${P}-guile2.patch
+ )
+
+src_test() {
+ cd test || die
+ export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:${BUILD_DIR}/src/.libs"
+ export GUILE_LOAD_PATH="$GUILE_LOAD_PATH:${BUILD_DIR}/src/"
+ guile -s "${S}"/src/greg || die
+}
diff --git a/dev-scheme/greg/greg-2.0.0.ebuild b/dev-scheme/greg/greg-2.0.0.ebuild
new file mode 100644
index 000000000000..f51e7016d988
--- /dev/null
+++ b/dev-scheme/greg/greg-2.0.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit autotools eutils
+
+DESCRIPTION="Testing-Framework for guile"
+HOMEPAGE="http://gna.org/projects/greg/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+SLOT="0"
+KEYWORDS="amd64 x86"
+LICENSE="GPL-2"
+IUSE=""
+
+RDEPEND=">=dev-scheme/guile-1.8"
+DEPEND=""
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-notest.patch
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc NEWS README AUTHORS ChangeLog || die
+}
diff --git a/dev-scheme/greg/metadata.xml b/dev-scheme/greg/metadata.xml
new file mode 100644
index 000000000000..4028bdb661a0
--- /dev/null
+++ b/dev-scheme/greg/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile-cairo/Manifest b/dev-scheme/guile-cairo/Manifest
new file mode 100644
index 000000000000..b53417095967
--- /dev/null
+++ b/dev-scheme/guile-cairo/Manifest
@@ -0,0 +1,7 @@
+DIST guile-cairo-1.4.0.tar.gz 512208 SHA256 bad5d4b6c09b77930d811e333a4920337d222c0ea4ee5e561a0276efa8bb9507 SHA512 59e70c9a78b50bc8f580984cf67d9708b9a201920736be16d3ee2b8e73abaeac1c2b9d934b1713529043474881cd7258cb8df99ac317f6a10417b08a677c0759 WHIRLPOOL 8fe8fa8054cb220e8c5c9929b36b9210de737090f8e595f923886f0bb6cd20cfcf50e0430a7f2d1bb05fde464904476614f4d1e6a91da748587622a4ff526b78
+DIST guile-cairo-1.9.91.tar.gz 578928 SHA256 1a3836083394dfc53b967366b18c197d8fc83f84116c0cadcbae789799dce00d SHA512 bdade3463bdac2f29519ef3001286e07ca3c57615183f2e5ac121d273f49c4dafaf3125ef7f8630e0695c0d73368c98241c59acdb9c5682be42bddbc4b5a28ac WHIRLPOOL 8ea1a79d707d7dbf1dbb909a3cc18ce19b8a3a016f5a11c6e2801d755afe360ccd2019ebf725b4c7443237fe1891b1ecfa8554183b4261d97403585cb78655d9
+EBUILD guile-cairo-1.4.0.ebuild 637 SHA256 637190e63bd136b5006dd1a4e06fdb4a8c5906c694b86710c9b9ac53b794daf7 SHA512 85635c75f52f3bb2b055bb085c1136a754777d58016f4a8716f3763c8d7e5486c03bed4a6e8fffa72d44bceef7c85a24be91b528dda2178310bd38302d8dbd3f WHIRLPOOL 0ab41a8b38512360c04b12647801ab3ec7598dbc43d4551db19646c81f5c9b9e25196644c87fdbba512f1186506e9a5a46f8d2a2e9345237d8642f4fc8a93fba
+EBUILD guile-cairo-1.9.91.ebuild 634 SHA256 5407aaf677b71c9d093cc54781959e3252650608def28110535ea04eed06f897 SHA512 03d6fdd3e2075d431f7a35abbfbae05019d2d7d3b9c684c23642dbe6968c728095cb60611e39bba053ff7305d4a6f0f313ad13eb1ba4f88dff372fc571130033 WHIRLPOOL 9a9158c4a076b0f7c2095715b6878b3d1f9b78b1040b0a677f7ec39d7e2bc2a54d54af6c47f8fa20e9b1af1a93404adbdc736238da043019d3d7fb9e637ed478
+MISC ChangeLog 2665 SHA256 d40af377f2acd2f2e00509842ca31cd140f1e6c5357c6e0ad80d08d6a6bba0f0 SHA512 0db8acc98df3876a612140984dd924dedf8960b9a076ac24ab04ba3fe31afa89f22bd98a4d375c92865d72f1a8f3c32f5d6b3f827d21f4b4e94f7380e76fc86e WHIRLPOOL 6df82065f0008739b1b5e7f6083c9c7994be7b0c769b6a4802888721e9810133dfba5189319510b51d77dabc050a1e020dead81e31e2112d97510f5c7c32e521
+MISC ChangeLog-2015 1925 SHA256 4de763bb5c2e5879cee993afb50fe1bdfaff03981b7b251a0b4a8aee556d2c68 SHA512 903ca3dd07efae0fbe0e645e61c9e2d718b104fee40cf4b7e469fd99b9cf5ccdc4155c269228ea43450f46a046b918ccca1d5a65fa3f7d5dace3ff9e678329ae WHIRLPOOL 0214c146e25e7f9cb647b5875e091ada5cbd2cfcc6d466de2afae5e0818f5ae706803d04d8326bec2e224602f421695ddf243b183c440cd77630e009b738b013
+MISC metadata.xml 656 SHA256 741e410878e9ee69d691c939398bde93d020d19bbb3b123a88380dc15916cacb SHA512 25b8b5f5b1ba90a7438c1dafbfe3a9a8ec9e2cea847f7722e33416a96bbc3dd5531d5e2607a803496aa3b71505b8a728e2d30e841e399ed30361853a54917267 WHIRLPOOL 86e6535b94cc9bd64cb40d31350a5daf5fa1ec1af1e4bfb4cc36fcbfa8e897b77fd2c4fe240d3fdcc21a9f7614acde38e6499aa66d88f706834b3a7ac5d358c3
diff --git a/dev-scheme/guile-cairo/guile-cairo-1.4.0.ebuild b/dev-scheme/guile-cairo/guile-cairo-1.4.0.ebuild
new file mode 100644
index 000000000000..11b566443a90
--- /dev/null
+++ b/dev-scheme/guile-cairo/guile-cairo-1.4.0.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=2
+
+DESCRIPTION="Wraps the Cairo graphics library for Guile Scheme"
+HOMEPAGE="http://home.gna.org/guile-cairo/"
+SRC_URI="http://download.gna.org/${PN}/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86"
+IUSE="test"
+
+RDEPEND=">=dev-scheme/guile-1.8
+ >=x11-libs/cairo-1.4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-scheme/guile-lib )"
+
+src_configure() {
+ econf --disable-Werror
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "install failed"
+ dodoc ChangeLog || die "dodoc failed"
+}
diff --git a/dev-scheme/guile-cairo/guile-cairo-1.9.91.ebuild b/dev-scheme/guile-cairo/guile-cairo-1.9.91.ebuild
new file mode 100644
index 000000000000..623f2211d134
--- /dev/null
+++ b/dev-scheme/guile-cairo/guile-cairo-1.9.91.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit autotools-utils
+
+DESCRIPTION="Wraps the Cairo graphics library for Guile Scheme"
+HOMEPAGE="http://www.nongnu.org/guile-cairo/"
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3 LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="static-libs test"
+
+RDEPEND="
+ >=dev-scheme/guile-1.8
+ >=x11-libs/cairo-1.4"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ test? ( dev-scheme/guile-lib )"
+
+src_configure() {
+ local myeconfargs=( --disable-Werror )
+ autotools-utils_src_configure
+}
diff --git a/dev-scheme/guile-cairo/metadata.xml b/dev-scheme/guile-cairo/metadata.xml
new file mode 100644
index 000000000000..3c835e318c41
--- /dev/null
+++ b/dev-scheme/guile-cairo/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Guile-Cairo is complete, wrapping almost all of the Cairo API. It is API stable, providing a firm base on which to do graphics work. Finally, and importantly, it is pleasant to use. You get a powerful and well-maintained graphics library with all of the benefits of Scheme: memory management, exceptions, macros, and a dynamic programming environment.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/guile-gnome-platform/Manifest b/dev-scheme/guile-gnome-platform/Manifest
new file mode 100644
index 000000000000..9a5df138c35d
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/Manifest
@@ -0,0 +1,12 @@
+AUX 2.16.1-conflicting-types.patch 1584 SHA256 8e7738a9f26622f046861b171aef4c01c4670ee89bc7d7aad3128956a7d33d11 SHA512 21ff8196a718d273e0901e70df62b7caf291e1c28988e1f972482302893a1193faa9ccff68378ae75e0aafcfbd9bef57106a30b02433ce3cdb07d14d59d29f86 WHIRLPOOL e7de1c3d857c514930b3ab6c77e2f10a304deddf7f3c8a650854aa7c07714c1c9da63f0320722a0015f697d6dc3d3805a4094c644d1acfe8642834a0547c67e9
+AUX 2.16.1-gcc45.patch 343 SHA256 3e85118a03856fa21f8a28a0c3f51bf36ec199f14e0cbc092006ec4b3a176c2f SHA512 a0412c07376b6e5e701428ca6a0f85b8762506c3fd86a76ca6a5641c4db1cd9be9cc97747f851d95fd6dbad8a02f7f1d5b11b7c649e927888c1e9a0909a8cba2 WHIRLPOOL 9f25c9f22112df4c7956cd3cd423f0cc58e49a44418311be75fa18d021979ba781528a89d50346aaec5bea528903593be215f084b6508e2cb6ca0c263610409f
+AUX 2.16.1-gdk-color.patch 2328 SHA256 d67c2e1adecb32231013ead20e26dd54e1b688394e54d43aa2dc1e1b20add4a1 SHA512 40e2b2838c18102c71d3a3132331332aa68bf9e7d202ced159c91444c30648a0c1c8afee106ec0b8b8012dc840eaf3466181887835ea62bff41dc1a7282faf71 WHIRLPOOL e66cfc6aa2f73542485750688750709b11188c1b39250a15dd29dfbcd5a13aa661a94e8937dde18b4a14a0651bc72ca2630dadcb205d8fa42970257e83de3da9
+AUX 2.16.1-glib-single-include.patch 944 SHA256 8029c7ebeeed3dc33fd8ae7ea0ce92c5cbe24aea9ac53d12ca7e5a3da9761701 SHA512 f50eb52f0150a365f79314f1756c6ae78018a18ecbb488e830c27d4e76c3da6ad2bf46c7d44a35d3172c57bf709f5d4614ffba7652a5b459b542a0994ca47dea WHIRLPOOL dd1a0ed4194e35cfa922db75c71ac2c86bbb36408ddd38c9b590c49e1f3bc38a454e1759a08b712c8d0c7c5a02bfe4a739622b9838fdc3571505e39cab6f7b23
+DIST guile-gnome-platform-2.16.1.tar.gz 3494333 SHA256 4c0856d3a8310af5959fb123f3a011fc6bc1ec1cf0f125629f8a4a741871c57b SHA512 c630e2d67b312fb41c8492f8956902f385faa834094860cac580d1df0329b41790d973f73fd7dd59dc365f5d6cfb6463cde8af90641fbc377680b51616ad8f7a WHIRLPOOL 53fee8b3b32552b927d032ea5e8e339a13615dd428b53f4abedf13ded0fdbb08cab97d848f23e6bbf49326c36a1c8d37a478f64f5574f48606efdd6bf2aea8d2
+DIST guile-gnome-platform-2.16.2.tar.gz 2538191 SHA256 50e6cd95c4a32f44498816c607c071b7d7368c49a34daebf598d9129df344fb0 SHA512 5acaa96d8caf82864ada8bfcbc4954a19cd5d7e210245f2e8b31082c6a9e4ab9ba7af5f8e1f762a891e1aad640913a7a205f56dfaed6915a9f782c53e042d042 WHIRLPOOL 2533d17e64bb4a66cb57d1c4178e2793d694bbfb38b94a92bb4eea91c8b635f42188c57e1617274c4abaa7fe3e92f8ae30a57b443707c593107fdb4a79d15d05
+EBUILD guile-gnome-platform-2.16.1-r1.ebuild 1453 SHA256 8447c64d986c78a686fb8b69fd3f32ebe298f3a9d4fdb32f066b7fc02eebffb8 SHA512 d4162867eaf638391a65e0bae4d3fe6745d05d49d7b6cb416360d3ad21cac79765b8db4d8fd81a5f91931363802d79277cd80521740b6d40b248194bd0c74081 WHIRLPOOL 2d9e667d1f0b66740e628ccf65db1c3c6892b823c9bf06aba66388b61893e06e94b65185dfd2386b1e783a8ee30fdba10d15467d144d9871a910d3a616b9cf8f
+EBUILD guile-gnome-platform-2.16.1.ebuild 1395 SHA256 c7f20a8e02de344facc9a1530033e769ee6264ecdb5101dd6ff361d981bac051 SHA512 0273a709921b5f811660437abc92135b4f22fe65a85bcb795fd018ab4415ea244258329004c73d76f64724ec6121e5266bf2a83c44b16d08319261d04d07fec3 WHIRLPOOL e38e92b392d7f19f330172200f03948aa8123734f2fdc4c4fefaed993addc1bfafcfd9bd8cbab33823d981a6db5be3dcffa05b148184793147975ca474909898
+EBUILD guile-gnome-platform-2.16.2.ebuild 1242 SHA256 abb4d7a8872a59d4db3220140cfa97e31227f1accd832447bfc719388da8cf53 SHA512 7ddd66af37f1b99c7e6cfd207cbfbd040479fbf839a534935d0ed7ad4dcce27fc38566a1a5a98251a2cc94878ad81411f9302d705c39469d09ae786b536f1775 WHIRLPOOL 0a3815a3e87b98ecf4dc2cdfbda5176f5817fa450a7ae91ec6cc01e60a60953db1c53632e5dadfcdc30ceff62c0a41bd8c6b7044f07284430e19a8ffdc29289c
+MISC ChangeLog 3277 SHA256 3f0018d1951e20fe3f8462542687c03af0ac4e7b285ba3233345ba1363293d00 SHA512 1c971eac3d1f4b26c8218ba828614a2740e408a042bb8fd082a59055bd4987cae80c8518978745d4ab8cea5f827682270aa9109ac988a8fe0ae69026b2bca192 WHIRLPOOL 0e48acc6c6baf50b3049b32a7acdbbe7f0e4a3274eea81e9abc867b45d13aa11ce95d571808595fba121a01fab6de51e39e84b97579b3aed70216af46a98de4d
+MISC ChangeLog-2015 3735 SHA256 b205e408b55cdeba3db18f3350cd4425e68e626d8ec49cb22e2c4a86417a1ba1 SHA512 dabb7371dc665e82b0133a7f52baed5b8ed2707e64f8a34535e28f6b7c6780ed5d0e5f34baecd78d2a950f9ea59541848243cde60a5bef3977168338483b62cd WHIRLPOOL d6fcc3be69d71afcf587b353913e6dd96d887c6064d861532dd43a08e2af15307cf3570e8b86ff03dc37281fbc032cb56eaf67870a2ae1c53b4102b8f1020eb9
+MISC metadata.xml 255 SHA256 cff1aff5b344e0aa3804ac1258a12d1895697a6522fe80a94c9efcd5e272a5b4 SHA512 39d166e37ab93cad3ab7852f67a51422f3e2c3b23c79227ce1379e833455ac750cd69cba663a693fec0fca564434d56decaef0d03eace2ed9ce871805b537eed WHIRLPOOL b09e852aa8679ac1c2b71b5077134164130fae538fe7ac718ea3e3f95aff0c970eb8935bc27cbd093355ddc3e90d30465add7c1b6e918b40baffe354cf54819e
diff --git a/dev-scheme/guile-gnome-platform/files/2.16.1-conflicting-types.patch b/dev-scheme/guile-gnome-platform/files/2.16.1-conflicting-types.patch
new file mode 100644
index 000000000000..e470977acbc8
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/files/2.16.1-conflicting-types.patch
@@ -0,0 +1,34 @@
+http://bugs.gentoo.org/293655
+
+--- guile-gnome-platform-2.16.1.orig/gtk/gnome/gw/gtk-support.c 2008-07-03 11:52:27.000000000 -0300
++++ guile-gnome-platform-2.16.1/gtk/gnome/gw/gtk-support.c 2009-11-27 03:09:28.204506213 -0200
+@@ -1012,7 +1012,7 @@
+ }
+
+ GdkRectangle*
+-gtk_widget_get_allocation (GtkWidget *widget)
++guile_gtk_widget_get_allocation (GtkWidget *widget)
+ {
+ GdkRectangle *ret = g_new (GdkRectangle, 1);
+ *ret = widget->allocation;
+--- guile-gnome-platform-2.16.1.orig/gtk/gnome/gw/gtk-support.h 2008-04-09 19:10:40.000000000 -0300
++++ guile-gnome-platform-2.16.1/gtk/gnome/gw/gtk-support.h 2009-11-27 03:08:29.385756221 -0200
+@@ -117,6 +117,6 @@
+ guint _wrap_gtk_ui_manager_add_ui_from_string (GtkUIManager *ui, const gchar *string, GError **error);
+
+ GdkWindow* gtk_widget_get_window (GtkWidget *widget);
+-GdkRectangle* gtk_widget_get_allocation (GtkWidget *widget);
++GdkRectangle* guile_gtk_widget_get_allocation (GtkWidget *widget);
+ void _wrap_gtk_drag_dest_set (GtkWidget *widget, GtkDestDefaults flags, const GList *types, GdkDragAction actions);
+ GtkStateType gtk_widget_get_state (GtkWidget *widget);
+--- guile-gnome-platform-2.16.1.orig/gtk/gnome/overrides/gtk.defs 2008-04-09 19:12:44.000000000 -0300
++++ guile-gnome-platform-2.16.1/gtk/gnome/overrides/gtk.defs 2009-11-27 03:13:34.667506321 -0200
+@@ -848,7 +848,7 @@
+
+ (define-method get-allocation
+ (of-object "GtkWidget")
+- (c-name "gtk_widget_get_allocation")
++ (c-name "guile_gtk_widget_get_allocation")
+ (return-type "GdkRectangle*")) ;; same as GtkAllocation
+
+ (define-method get_state
diff --git a/dev-scheme/guile-gnome-platform/files/2.16.1-gcc45.patch b/dev-scheme/guile-gnome-platform/files/2.16.1-gcc45.patch
new file mode 100644
index 000000000000..39c7e94760bd
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/files/2.16.1-gcc45.patch
@@ -0,0 +1,11 @@
+--- common.mk
++++ common.mk
+@@ -50,7 +50,7 @@
+ guile-snarf $(GUILE_SNARF_CFLAGS) $< > $@ \
+ || { rm $@; false; }
+ .c.doc:
+- $(CPP) -DSCM_MAGIC_SNARF_DOCS $(GUILE_SNARF_CFLAGS) $< \
++ $(CPP) -P -DSCM_MAGIC_SNARF_DOCS $(GUILE_SNARF_CFLAGS) $< \
+ | grep -E '^\^\^ {.*\^\^ }' > $@ || { rm $@; false; }
+
+ %.scm guile-gnome-gw-%.c: %-spec.scm
diff --git a/dev-scheme/guile-gnome-platform/files/2.16.1-gdk-color.patch b/dev-scheme/guile-gnome-platform/files/2.16.1-gdk-color.patch
new file mode 100644
index 000000000000..d7836ac489f9
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/files/2.16.1-gdk-color.patch
@@ -0,0 +1,55 @@
+# Bazaar merge directive format 2 (Bazaar 0.90)
+# revision_id: gbenison@gmail.com-20080728153014-9cmh3qp4879910dg
+# target_branch: http://arch.gna.org/guile-gnome/bzr/gtk/
+# testament_sha1: 1dd74795aba452934a0810f47bfe1ad34b958e4b
+# timestamp: 2008-07-28 08:36:30 -0700
+# base_revision_id: wingo@pobox.com-20080703151735-je9a72h0nlq3eere
+#
+# Begin patch
+=== modified file 'gnome/gw/gdk-support.c'
+--- gtk/gnome/gw/gdk-support.c 2008-04-24 11:17:07 +0000
++++ gtk/gnome/gw/gdk-support.c 2008-07-28 15:30:14 +0000
+@@ -228,11 +228,22 @@
+ return ret;
+ }
+
++/*
++ * Allocate a new GdkColor* which must be freed using
++ * gdk_color_free().
++ */
++static GdkColor*
++gdk_color_new()
++{
++ GdkColor tmp;
++ return gdk_color_copy(&tmp);
++}
++
+ GdkColor*
+ scm_scm_to_gdk_color (SCM scm)
+ #define FUNC_NAME "%scm->gdk-rectangle"
+ {
+- GdkColor *ret = g_new0 (GdkColor, 1);
++ GdkColor *ret = gdk_color_new();
+
+ if (scm_is_string (scm)) {
+ char *chars;
+
+# Begin bundle
+IyBCYXphYXIgcmV2aXNpb24gYnVuZGxlIHY0CiMKQlpoOTFBWSZTWZjPJ74AAbHfgEAQUXP//3qA
+AAC////6UAPZV7KKmigbBkSKemTJNjQBMKepo9RkZNGQ00MAAAABoAAAAAEomgmgaCTNBR6NQHpD
+0TTT1GjDAAAAAaAAAAABJIQ0j0TBJ5JiGmAppkZBoZHetMt0dHeL+Zs1essYZwmiipWtmW5noD6t
+JP2bTdtsv1JJPzNyeehztVVSPROr6m0YKZQFaOWu+z06Rud5U/7D6/HzSd7loXjOuOtTyhUB1+CF
+uquimbPJylUSYlaqGEDm3OnfJaLqj2yQ6r3QgKpKtA0pmW2HITLziKOTjm/fVLt6fxQHZtkGFTeB
+FuHcCiRWzsuJDoOcpYPAVFiEB8InMDl4naQHikc4a1XMxmYpaVYnPm2xrL3exYl0MEuEnlJO+JM5
+UFYwKS8BCwsgYhIWS2kuWGPMseMJO8ncXBIuJJ/X3ZRKMVCSIGaSULHRgmhOe9tGooKytZCskgmJ
+VS3QycULqKoxuNQ40lJoxtNxRyHHy7M0nUOE7BicXaUrMD5NrgsTCJtL8C5FPpE4MOJhg9nMJwT3
+DIsLzYUpCYlqPMWnEscKgQYSs2YjyQ6qxhXiYYlgxArte4UW+sCwwi2FpYQLks5oURZypVRHaVFP
+pJwmgV89TYjcTRROinDCUijL3O+eY5U1957/RoOIq5mRPALX3Kin8fYD/w9R85hVuGpzKzOiC8oV
+dPSyI6qB4jHE1b13nz11zltZaFSX1tLIcaRTqymf46deB05hZeUhBjGBqRcFZ2XkTb8hmPQXCMP0
+tfrRiWC4H2BiBEq5zGkSOGJoLiorU6aBWik6E8Rdxl/gYWG3ds790ppnbBuHeVHwr+HA0EfQlKAc
+q/E8AntpuJ1obUmOUEnfKYWm3NSt+oNhgoiNKKE+jOcy30xMx7eHGTLe33vIVOBzpxG8omhwPoNo
+PUmADruvHqaAVsAj5wgV2JksOsiBgWJZJ5ceoZqpB76oTzAbgKgLn8+qwLOWhwi4O5KK3uWHx6y8
+xGhbXvEVnkl2qk3YyJxYRuKNpjChsznCTyZ4PfeDxdm8DFXuCDIZbZWg3Yr6/kuYYAypBkmDrMiE
+4iIZlSOUreq0/wTGBllkoFAYcVIzkYjT/nQq/MW2bYwSTILXX3uG2etAsP61m91rJ9MZK6x94QmG
+YZNAZtZGfFMR1gOijgJD1tiHFaPr3/XjtiadSQ2LOpiSg+seT5OMoANJeQvIZNTBh4134wCOLGE6
+SCzdOZStqOnvfsWpi8GtD3xaP8XckU4UJCYzye+A
diff --git a/dev-scheme/guile-gnome-platform/files/2.16.1-glib-single-include.patch b/dev-scheme/guile-gnome-platform/files/2.16.1-glib-single-include.patch
new file mode 100644
index 000000000000..84f8c8761fbc
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/files/2.16.1-glib-single-include.patch
@@ -0,0 +1,26 @@
+Index: guile-gnome-platform-2.16.1/corba/gnome/corba/guile-gnome-corba-generic.c
+===================================================================
+--- guile-gnome-platform-2.16.1.orig/corba/gnome/corba/guile-gnome-corba-generic.c
++++ guile-gnome-platform-2.16.1/corba/gnome/corba/guile-gnome-corba-generic.c
+@@ -24,7 +24,7 @@
+
+ #include <guile-gnome-corba-generic.h>
+ #include <guile-gnome-gobject.h>
+-#include <glib/gstrfuncs.h>
++#include <glib.h>
+ #include <string.h>
+
+ static GQuark quark_corba_typecode = 0;
+Index: guile-gnome-platform-2.16.1/glib/gnome/gobject/guile-support.h
+===================================================================
+--- guile-gnome-platform-2.16.1.orig/glib/gnome/gobject/guile-support.h
++++ guile-gnome-platform-2.16.1/glib/gnome/gobject/guile-support.h
+@@ -24,7 +24,7 @@
+ #ifndef __GUILE_SUPPORT_H__
+ #define __GUILE_SUPPORT_H__
+
+-#include <glib/gmacros.h>
++#include <glib.h>
+
+ #include <libguile.h>
+
diff --git a/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1-r1.ebuild b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1-r1.ebuild
new file mode 100644
index 000000000000..0155310f4dad
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils eutils multilib
+
+DESCRIPTION="Guile Scheme code that wraps the GNOME developer platform"
+HOMEPAGE="https://www.gnu.org/software/guile-gnome/"
+SRC_URI="https://ftp.gnu.org/pub/gnu/guile-gnome/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/atk
+ dev-libs/g-wrap
+ dev-libs/glib:2
+ dev-scheme/guile:12
+ dev-scheme/guile-cairo
+ dev-scheme/guile-lib
+ gnome-base/gconf:2
+ gnome-base/gnome-vfs:2
+ gnome-base/libbonobo
+ gnome-base/libglade:2.0
+ gnome-base/libgnomecanvas
+ gnome-base/libgnomeui
+ gnome-base/orbit:2
+ x11-libs/gtk+:2
+ x11-libs/pango"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+#needs guile with networking
+RESTRICT=test
+
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ PATCHES=(
+ "${FILESDIR}/${PV}-conflicting-types.patch"
+ "${FILESDIR}/${PV}-gcc45.patch"
+ "${FILESDIR}/${PV}-gdk-color.patch"
+ "${FILESDIR}/${PV}-glib-single-include.patch"
+ )
+ autotools-utils_src_prepare
+}
+
+src_configure() {
+ local myeconfargs=(
+ --disable-Werror
+ )
+ autotools-utils_src_configure
+}
+
+src_compile() {
+ autotools-utils_src_compile \
+ guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir)
+}
+
+src_install() {
+ autotools-utils_src_install \
+ guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir)
+}
diff --git a/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1.ebuild b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1.ebuild
new file mode 100644
index 000000000000..fdd0b82d9836
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit autotools eutils multilib
+
+DESCRIPTION="Guile Scheme code that wraps the GNOME developer platform"
+HOMEPAGE="https://www.gnu.org/software/guile-gnome"
+SRC_URI="https://ftp.gnu.org/pub/gnu/guile-gnome/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=dev-scheme/guile-1.6.4
+ >=dev-libs/g-wrap-1.9.11
+ dev-scheme/guile-cairo
+ dev-libs/atk
+ gnome-base/libbonobo
+ gnome-base/orbit:2
+ >=gnome-base/gconf-2.18:2
+ >=dev-libs/glib-2.10:2
+ >=gnome-base/gnome-vfs-2.16:2
+ >=x11-libs/gtk+-2.10:2
+ >=gnome-base/libglade-2.6:2.0
+ >=gnome-base/libgnomecanvas-2.14
+ >=gnome-base/libgnomeui-2.16
+ >=x11-libs/pango-1.14
+ dev-scheme/guile-lib"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+#needs guile with networking
+RESTRICT=test
+
+src_prepare() {
+ epatch "${FILESDIR}/${PV}-conflicting-types.patch"
+ epatch "${FILESDIR}/${PV}-gcc45.patch"
+ epatch "${FILESDIR}/${PV}-glib-single-include.patch"
+ eautoreconf
+}
+
+src_configure() {
+ econf --disable-Werror
+}
+
+src_compile() {
+ emake -j1 guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir) || die "emake failed."
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" \
+ guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir) \
+ install || die "emake install failed."
+}
diff --git a/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.2.ebuild b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.2.ebuild
new file mode 100644
index 000000000000..24195c42c0c3
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/guile-gnome-platform-2.16.2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+AUTOTOOLS_AUTORECONF=true
+
+inherit autotools-utils multilib
+
+DESCRIPTION="Guile Scheme code that wraps the GNOME developer platform"
+HOMEPAGE="https://www.gnu.org/software/guile-gnome/"
+SRC_URI="https://ftp.gnu.org/pub/gnu/guile-gnome/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="static-libs"
+
+RDEPEND="
+ dev-libs/atk
+ >=dev-libs/g-wrap-1.9.14
+ dev-libs/glib:2
+ dev-scheme/guile:12
+ dev-scheme/guile-cairo
+ dev-scheme/guile-lib
+ gnome-base/gconf:2
+ gnome-base/gnome-vfs:2
+ gnome-base/libbonobo
+ gnome-base/libglade:2.0
+ gnome-base/libgnomecanvas
+ gnome-base/libgnomeui
+ gnome-base/orbit:2
+ x11-libs/gtk+:2
+ x11-libs/pango"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+#needs guile with networking
+RESTRICT=test
+
+MAKEOPTS+=" -j1"
+
+src_prepare() {
+ PATCHES=(
+ "${FILESDIR}/2.16.1-glib-single-include.patch"
+ )
+ autotools-utils_src_prepare
+}
+
+src_compile() {
+ autotools-utils_src_compile \
+ guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir)
+}
+
+src_install() {
+ autotools-utils_src_install \
+ guilegnomedir=/usr/share/guile/site \
+ guilegnomelibdir=/usr/$(get_libdir)
+}
diff --git a/dev-scheme/guile-gnome-platform/metadata.xml b/dev-scheme/guile-gnome-platform/metadata.xml
new file mode 100644
index 000000000000..aa9967f46fc6
--- /dev/null
+++ b/dev-scheme/guile-gnome-platform/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile-gui/Manifest b/dev-scheme/guile-gui/Manifest
new file mode 100644
index 000000000000..526b4e521bbe
--- /dev/null
+++ b/dev-scheme/guile-gui/Manifest
@@ -0,0 +1,5 @@
+DIST guile-gui-0.2.tar.gz 33885 SHA256 4a43950189f261d339c46dad1b6b561b905417e927fd2641a6ac075eb379668d SHA512 98d6eaad412232c45e363b8e85ae74bd36fd7f89c2af3932c17eba04e2a4c70ddd8bbe86488e1277534c88e331d8c4ef3fc89f3b0b6b2a35b48d09a23c8c2d89 WHIRLPOOL a2ef054f05e039ec53a3db45a26d7c3b849df2d3d4bb16acad5e3eb7b50fba6a8696c841222d7dad64a9e281db8ea00cf501c96fd3e79d763ad3932339f30fc8
+EBUILD guile-gui-0.2.ebuild 537 SHA256 3f9f3c5ab4500dc46f196413139cb20d4fad70e1a35369294c45b76be256f15f SHA512 9282757920001783932b09da2986c70326a3a348121021d2f999ab19d7dd475ce54adbfef4077d6f4b1f7e15e8f09f6dfd900e51a47e774f01c7e59126bb6e5c WHIRLPOOL 06246c4dc2273f9953fcb4e16e66246637e78d412d5cc3f159a42ac4bdf81c224d82a79b090b0f731a8116c65d5d9c347d21894ee5b8ad33429770897cfd1bde
+MISC ChangeLog 2431 SHA256 54a1d65d13394d58de991ff82d17447f70c1b958a5f222ecd06ba1018af8d4af SHA512 fc3682f32d2372c2cb75ebe03bdc4a1d7c0e6d808a37ca581269982227774afdb718b6175ceda29b4471a43b79e365197528a73cd4db80cf4e50602de6f69df4 WHIRLPOOL d93e451826a9587e7afb92b064be9391584c23dd4bfee969c310096bb0c3197940a4e0cfa8119352ba1431f2b2b9e2cb1f0280b8e26cce749e97f9f1ebe96915
+MISC ChangeLog-2015 1349 SHA256 68dbdcbd2ccca3ab7b914fbd9f7863f9ba70583bee908d113aa614d34fc51a2a SHA512 3d38ff41be057a3d135a746071ad462e32e1e38d6a990c9804c1384c5104df680b822373ecf1ded2e9ac6215b480c5750053365c3778c94d0d9b183730be6e0f WHIRLPOOL dcf71b923b24904dbed600184c4994e58232164d549690159f2e683e703dfe98012f995cafa78576e71595cbf8fc13c4cf4e50ae29ca74baaf0750c995ebabbb
+MISC metadata.xml 261 SHA256 f53f2259ad8695c56f1457bcbd63ad8f51108ec471d728cd2fe6f523b36b09d8 SHA512 72682d17ec2b918131b551bd1ff41004965d3cf0c00d24222b34741d2eabf601cf36d4266be70ba7fb7bd0ab55d9dcb5b8e4ca41125bc31f176516797459c8c7 WHIRLPOOL 8ae9531cec25662e7d2a9df3c46039a66da22cb0becfc5cb2eacbb0ea5cfedf0491bd7110465ae37c4e8263b5a962f4973eed3dc569db0d524506943014444a2
diff --git a/dev-scheme/guile-gui/guile-gui-0.2.ebuild b/dev-scheme/guile-gui/guile-gui-0.2.ebuild
new file mode 100644
index 000000000000..00c1c6f24d01
--- /dev/null
+++ b/dev-scheme/guile-gui/guile-gui-0.2.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Guile Scheme code that aims to implement a graphical user interface"
+HOMEPAGE="http://www.ossau.uklinux.net/guile/"
+SRC_URI="http://www.ossau.uklinux.net/guile/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+RDEPEND="dev-scheme/guile
+ x11-libs/guile-gtk"
+DEPEND="${RDEPEND}"
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+ dodoc ${S}/README
+}
diff --git a/dev-scheme/guile-gui/metadata.xml b/dev-scheme/guile-gui/metadata.xml
new file mode 100644
index 000000000000..4ac68c154bb0
--- /dev/null
+++ b/dev-scheme/guile-gui/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile-json/Manifest b/dev-scheme/guile-json/Manifest
new file mode 100644
index 000000000000..b387b4719ff7
--- /dev/null
+++ b/dev-scheme/guile-json/Manifest
@@ -0,0 +1,3 @@
+DIST guile-json-0.6.0.tar.gz 99122 SHA256 ec51c039ffce91f61df782f829db3c616f645cba74ff365d493cb2b7e879b2e2 SHA512 90ab2a428669b5c2163e9b6b13e6f7fd7452e95d996f3cea44c3fd7bbf35e2d3759416e63a74b2193ba161f8022e845c0f058c3d20e89c18116660427a503d2e WHIRLPOOL f79da6d4f6372703879c4f29e15172ad1518a3a524939d49c9a5c18ed2311e12149ba88b3d9ff9162b7cc03416a141349bc6837545928fa3b803313c7ddb9215
+EBUILD guile-json-0.6.0.ebuild 401 SHA256 d7b119643aa263ca0ed892b1281d8c53da929d6360e0ea796ae955c43fa5d212 SHA512 c1bfcdcbb507ba1b35f11d31665480d27a0fec70f217708049ed36b1b5674b6d716205792406d927c26f6af7de1fbe38246cc6060270697a99cc65c75822d6f2 WHIRLPOOL 425e562548292bdc4119048edad7e4d536667ef12302a04b4b4b903ca64e8a0505b90b87cf7b427cb4d58e132adae650232fcafa4f3db917c802079a24037a0f
+MISC metadata.xml 251 SHA256 52d3b594d034e106a0c8cae1b07de3f3681c18d21824174b4e6345d7b57b1a73 SHA512 4fda90c4191ba8ea396da2c4a434893d4b9df976a918e4fb5651acaf92c6efc9103b738681a3d29abe801a4ad09eecf5a4b0bd799dab5b5f1e42a34c3b27d918 WHIRLPOOL 099a971fbe7cb62be17ec8078ebcbc635b1d155c914fc271b6c7ac4f15c3367c876934c0df91028d948e76ba76257ef41e86b467abc2387006e5cebd186de376
diff --git a/dev-scheme/guile-json/guile-json-0.6.0.ebuild b/dev-scheme/guile-json/guile-json-0.6.0.ebuild
new file mode 100644
index 000000000000..b2d2ca0cd382
--- /dev/null
+++ b/dev-scheme/guile-json/guile-json-0.6.0.ebuild
@@ -0,0 +1,16 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="JSON module for Guile"
+HOMEPAGE="http://savannah.nongnu.org/projects/guile-json/"
+SRC_URI="http://download.savannah.gnu.org/releases/guile-json/${P}.tar.gz"
+
+LICENSE="LGPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=dev-scheme/guile-2.0.0"
+DEPEND="${RDEPEND}"
diff --git a/dev-scheme/guile-json/metadata.xml b/dev-scheme/guile-json/metadata.xml
new file mode 100644
index 000000000000..8703fdc61595
--- /dev/null
+++ b/dev-scheme/guile-json/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile-lib/Manifest b/dev-scheme/guile-lib/Manifest
new file mode 100644
index 000000000000..7acec35bac40
--- /dev/null
+++ b/dev-scheme/guile-lib/Manifest
@@ -0,0 +1,7 @@
+DIST guile-lib-0.1.9.tar.gz 499394 SHA256 563dd0bfa8acc359e5d72b2618b98f1e1c2615f44bf164947bae66d053174c8f SHA512 53a00064783c6cdc450f3130808ca57696fdcd1aa25172b448f6d18861425e1dfa9a004df0405df0629950e80c43b4aebbef28be1e75a37f0d9cd4608ecc309e WHIRLPOOL 0b958a9acede7fc5e7475ee95ca7fc208ea104af62b93f8e77c14fe0882fd0311add7b71181c293ea9ad84e97d52c213eb988da164616133b276d2238aa2de2f
+DIST guile-lib-0.2.4.tar.gz 421960 SHA256 3134747138ae2ea978d254d17a429ccce33672b135a3a890524b6cb27ff0b83d SHA512 d5744f7f99bf566c569fdb06bf51b8f74543930cbe120c392d111b06ac930afa15008af44765331db0542affc07afb3016b60dc35be612b99f79264cd07b8f5e WHIRLPOOL 3e76c38f6220d806b22d74162afd4ebd2820620dab28b54a1aabf62be013fa8421eef75a6245d1096d56d859369e7480587e823d4a3431fb1a671ae61516807a
+EBUILD guile-lib-0.1.9.ebuild 571 SHA256 6445e2a565cbc40f494155354c2088f4db0a17d783f7c3e929cd5b6715a5c450 SHA512 5e8a86a54f9e5ad3ea1cffc74ea901d1a9481181f9915e23fa539c7e6d6a5957a69ea82ce84b10d5a663df18279623750704aa89902f6aa8501b1f04ccd07fbf WHIRLPOOL 541cc9ef77ae621cb39f0bdd8b056a3ba22744dba5a502447df0b41593b0f52d075ca102c9b5f9e4b42f0e0efb4b7f21b119371b29f3c9c95676c22808082106
+EBUILD guile-lib-0.2.4.ebuild 561 SHA256 7fb17976e78631bebb7579590379a174586b682b6f02e2731d496930003d805b SHA512 889cffe6fbea8ed7f2c9f2c1186db7a5443fac91586793213c57c0de720d28a634d74b901d307442efc75d7b773536eef5a85256a52fd00781922a6102715fd2 WHIRLPOOL 44a30d6648c9d25a73fd3734ca11dd9c8ba951e9efe4cd4f5042422daae636acc2dcac00cb6fbc204e64a2a14517412647dcd63a3aa5e4ef2157f82bded33a7a
+MISC ChangeLog 2556 SHA256 75ffbd6f35012cbf894cfac35df1d2b7f5ab980da7a1885755e810bebf59985a SHA512 0e76a319a9584acf25d6334e52da9334112d36f2a44ed3cc9f204ae719b2ce91285fc2eb48baac677cb36d53ae2d1b6e094105577c5598ca611f9392ed9c57f8 WHIRLPOOL 7f863688bd2643bfa885ac69534cda4b5eacf386ba1902f116edd37a82a4c15ff594cdbbf3949b33eb877d020fb9a1b3de4a9a850cb8c40ae735c4cf6092a7ae
+MISC ChangeLog-2015 3902 SHA256 f7511c5447ecd2c4bb56c914918c387e9f3e92e859add97f7c3e2450d0376b36 SHA512 3f7895712d2c546fa42852f28102ba84d7c9925e9d60cbd65f807dda6898c33a375fafa79e6e1595128edd30125203cc51a4632f6837e035a6876898a5f024b9 WHIRLPOOL 126b0c61995518ed305f84bcd243fa62659d91fd9caae2ff4c348fc422957e2221609218f62093a1911c1353e5dfc68d2371eb8adebe7db38983ec7d78a68ae4
+MISC metadata.xml 255 SHA256 cff1aff5b344e0aa3804ac1258a12d1895697a6522fe80a94c9efcd5e272a5b4 SHA512 39d166e37ab93cad3ab7852f67a51422f3e2c3b23c79227ce1379e833455ac750cd69cba663a693fec0fca564434d56decaef0d03eace2ed9ce871805b537eed WHIRLPOOL b09e852aa8679ac1c2b71b5077134164130fae538fe7ac718ea3e3f95aff0c970eb8935bc27cbd093355ddc3e90d30465add7c1b6e918b40baffe354cf54819e
diff --git a/dev-scheme/guile-lib/guile-lib-0.1.9.ebuild b/dev-scheme/guile-lib/guile-lib-0.1.9.ebuild
new file mode 100644
index 000000000000..f7ec05f375a9
--- /dev/null
+++ b/dev-scheme/guile-lib/guile-lib-0.1.9.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+DESCRIPTION="An accumulation place for pure-scheme Guile modules"
+HOMEPAGE="http://www.nongnu.org/guile-lib/"
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 hppa ppc ppc64 sparc x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND="dev-scheme/guile[regex,deprecated]"
+DEPEND="${RDEPEND} !<dev-libs/g-wrap-1.9.8"
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "install failed"
+}
diff --git a/dev-scheme/guile-lib/guile-lib-0.2.4.ebuild b/dev-scheme/guile-lib/guile-lib-0.2.4.ebuild
new file mode 100644
index 000000000000..c6796a8d2cab
--- /dev/null
+++ b/dev-scheme/guile-lib/guile-lib-0.2.4.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="An accumulation place for pure-scheme Guile modules"
+HOMEPAGE="http://www.nongnu.org/guile-lib/"
+SRC_URI="http://download.savannah.gnu.org/releases/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE=""
+
+RDEPEND=">=dev-scheme/guile-2.0.12[regex,deprecated]"
+DEPEND="${RDEPEND} !<dev-libs/g-wrap-1.9.8"
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install
+}
diff --git a/dev-scheme/guile-lib/metadata.xml b/dev-scheme/guile-lib/metadata.xml
new file mode 100644
index 000000000000..aa9967f46fc6
--- /dev/null
+++ b/dev-scheme/guile-lib/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile-www/Manifest b/dev-scheme/guile-www/Manifest
new file mode 100644
index 000000000000..5917ac9ed30d
--- /dev/null
+++ b/dev-scheme/guile-www/Manifest
@@ -0,0 +1,7 @@
+DIST guile-www-2.34.tar.xz 594488 SHA256 7d9ecf245f477970d7f9c035fcc4908537c165d02461cd6253ada3be32f45b62 SHA512 f2b05608eb3a3c79dfe779b771fe52acb78938290ecf34eeca8e11ded398366183cfba668fd50084ed67e06514b765034554ecc45ed969f51c1cdfa7c1e77a9c WHIRLPOOL 27699192f512f651273e95707d63f629f9d7426175b78d25f8966d08a06828578338aca370a845491487beb1ba8143f1c804e8d2de8da25b462dd6d58d60ac68
+DIST guile-www-2.35.tar.xz 614004 SHA256 67f2c6b4e52e339a521898b88d0e39e6f017721e500d80319a1cb2eda80b48a5 SHA512 5190088e762cfcaa1e602098a32b66af67295bc56c20d82f8b87fb3273370881805c1e735f4020b5889c904a588e21024432ddde15d452af82570367be6db3bb WHIRLPOOL 29bac413c74f9527333ebb83b4471494cd86c0cb27f77e9f9353bf9fe7151713338215d6cddaaaa4d7852a855dbbb5103431fa75d7b054148c721ada4c6fdc6d
+EBUILD guile-www-2.34.ebuild 504 SHA256 f978a4cef5159f934762cf958aba07aaa05a7bf798858cef29be77bc6e9af381 SHA512 b532c66bb475ec3e8129de62e90f3c4c19c6a8cae76a9d93fc3e41dbd0974ec775d5e5ffdeb8530c3c5430a9ccf1b6d4aa31aceeaf180870bd95e951ab9ec8c1 WHIRLPOOL b4873fd1e1ea3f85e6609a4ffef02b7f095ab126e3e046226251ea59dcf19d8bf5a0f0638b575439d6dc2d91557e10fa4e6ad1a731b977259cbc04453ededcd9
+EBUILD guile-www-2.35.ebuild 505 SHA256 ccc6def75cf4454b5546d483684ac9d71516ba609f8130b5609cd49ee459e11e SHA512 1336482e6f517c6ec142d8135b6c735d3f2dc72148f3aa0e403a1a6792cad46439026a142d345fe91da3e7c206b6a680e15ab6aeded6f8cbb22291cb9f70bb4b WHIRLPOOL c360e21282b5ce88c2cb2a0c0a5d834b2c138c9db00e0ae261838a390baa1d8e6edd9b3c27afcd0d6fa70b51d3126e0c9ebfd01a9d977f909764d4c9f9d9bab9
+MISC ChangeLog 2729 SHA256 a944d097fe6cfce91f045e68d8c587fc6ccc5511dd762cbb57fea855e06f9714 SHA512 281ec7125b065d313716b782c4b9780bc330b5efc63b937a0f95928293a0bc2110afdc0c2239444a5d87461b8ab4707639f8b61276871669e52ee470b328e331 WHIRLPOOL c476a5e4b73b5a1315ee136d73007012bdc02ed8cc97d85786bc681e0f31b320bcc3e16337678b179020d32af4442a08f7c39e3399621f1847227a0017dea06a
+MISC ChangeLog-2015 4222 SHA256 6c729511bfabfb4881635e9ea1c2a56fb71b6f34bafbedc9ba99e1038af68a19 SHA512 f487f2ea0a4ee07f350aaac46be7a36acd8c4f7dc3a8a48ea50a66bead601c39d117f1f03b09dd4a2834483d4f19af16d4ca10e2439a63ef045766f323283114 WHIRLPOOL c30af8962a2800bf607111c14e99c72ce3884b2302734832320f958cafd7313a3e0d6359a46c43edb6e65a43827276a120e8cc0cacda8988362316b2b48f6e13
+MISC metadata.xml 271 SHA256 70036ea85140f86ed670bc2791c9de861c4b6164755ee36a2560d1c812ec13f6 SHA512 3e6e6047a29e07123b81279cae1de17bc4bd4c3d7d8a8d26560114a18185f473d038fc220fa81c7213fa203ce197bad8b1c272d9b7e41cd770a953fa6308ff92 WHIRLPOOL 1ccb964819c99258af550a41c6712ba8ebdecbec1c821106de2f22c37b1c981cd4f324856a8014b08bd186bcd2a7fa45a7e772cc15705d1a39016b5229e77269
diff --git a/dev-scheme/guile-www/guile-www-2.34.ebuild b/dev-scheme/guile-www/guile-www-2.34.ebuild
new file mode 100644
index 000000000000..2407f10e2846
--- /dev/null
+++ b/dev-scheme/guile-www/guile-www-2.34.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="Guile Scheme modules to facilitate HTTP, URL and CGI programming"
+HOMEPAGE="http://www.nongnu.org/guile-www/"
+SRC_URI="mirror://nongnu/guile-www/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="dev-scheme/guile:12"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake VERBOSE=1 check
+}
diff --git a/dev-scheme/guile-www/guile-www-2.35.ebuild b/dev-scheme/guile-www/guile-www-2.35.ebuild
new file mode 100644
index 000000000000..c7874f6886eb
--- /dev/null
+++ b/dev-scheme/guile-www/guile-www-2.35.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Guile Scheme modules to facilitate HTTP, URL and CGI programming"
+HOMEPAGE="http://www.nongnu.org/guile-www/"
+SRC_URI="mirror://nongnu/guile-www/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="dev-scheme/guile"
+DEPEND="${RDEPEND}"
+
+src_test() {
+ emake VERBOSE=1 check
+}
diff --git a/dev-scheme/guile-www/metadata.xml b/dev-scheme/guile-www/metadata.xml
new file mode 100644
index 000000000000..8937bad0b175
--- /dev/null
+++ b/dev-scheme/guile-www/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/guile/Manifest b/dev-scheme/guile/Manifest
new file mode 100644
index 000000000000..96ceffbc8290
--- /dev/null
+++ b/dev-scheme/guile/Manifest
@@ -0,0 +1,21 @@
+AUX 50guile-gentoo.el 38 SHA256 f34ea07a3270a25cce3430e4781df47d9903052c9f3a4ea24efb64b1e63bd115 SHA512 5c00bcabe2d7cc03013dc7a54b2c653940c08098ca5646d7c73624cb1ca04376ae9dcf88a7166b1925c69f0c5d192d90f6bd790fdef8ed8c3b0f9d163c987da5 WHIRLPOOL cc5e2fd5081f5fb0018e1fa461c0802c7c90891accc55c02c2935dd3d413c5f8941e918af9341040526b037be4c34dab26008dfca91c153c11fca41338f77c14
+AUX guile-1.8.8-fix_guile-config.patch 494 SHA256 08e4d837a663fc27b037e64f8dd89d89ababb3ed13f1e7845109a0f901f3b0c4 SHA512 3ef2bcb31d5b80dfa2f23b8802b98af713230e59aafe773ca3fd847fbdc7759ebb2d19cead1b6b362a6fa504dfff0c2036d5359aa82b601d664eb2a49a98c970 WHIRLPOOL f6ccd01b09a7aab46fab36464ab49539c9dddb954cc2d1ed709074175273df306d8527bae0d3d83f212903693af00fdf087533611ea416036b1c557ebc0fd283
+AUX guile-1.8.8-gcc46.patch 1004 SHA256 9f11b3095ed4aa622a58e3a0805e49f56c258e81c9813c5053cea980cd93948b SHA512 0ace93548dde387c344e13f083d79227cd09506e0cf58ac0892f25c43bfcefe9071e83912b921fba120262884fa92aaabe4d07f8337d89b6da73f0f2c077dcfa WHIRLPOOL cf2ff22da564656387c7a42985d8c4fd004ff411739e1a081f71931c458287bf1166079f5a39b842f7e8b988e62e24e04d541e125340f0256c62b23de602d80b
+AUX guile-1.8.8-gcc5.patch 575 SHA256 4e9a1da6b8d68636f07a6ff33e071be1ef57e67e2191d7d7410fc50ec63472ac SHA512 844a585679f8d1cbdbe9c4c7c5feb21ebca095a522d75db264c0f4c244153a1435a01647955fc98a0743fec48aeac28c1570dbce78bfd026544addba945a1cee WHIRLPOOL 73742a12d87c1ca11327bb7f9d391394bdb9a6eeb1ad8c7e95b9201812b080c8e408c5b0428309896ee21fff302b01e1fa5bf7a75b0a48bde10fb34443599b97
+AUX guile-1.8.8-gtexinfo-5.patch 460 SHA256 bae4abbfb50e895ff12d7d49192b64e64be4ca270d424a59ad209c0c67bc281f SHA512 19185a96bb6dcf7f1cac1908633d65d8cb673148469553cce4099256d05a94688834a61ddc0a18957f9fe253fffb2821817b4b29a4a604e8c152debb6e3323a6 WHIRLPOOL 2c0249fae9e0197cddca53d84743f9134e6e7f15f3862953f3fc36d4554f6539f80e2d67cc604c6c25c099e5667512f4fc6204e091142d5af07e2943c4f34a96
+AUX guile-1.8.8-makeinfo-5.patch 2361 SHA256 f1bfbe27280f6105735a2b4f0cf7883a9a825d4df756b74663112612b7a72438 SHA512 a69ed6cf2fd87c6f3d61cc914eed960fcdebaa151778b1ecf04f1774e6dddf07d17bf90fb3243a08e8c231e391843201d0ba26debedef33199d8dd75f8cbcd09 WHIRLPOOL c392c00f99d68cba17db8f14c68dc153f9cf146a3a6e197c4101959e93eb634a451cf8cdf957216f1c24fafcebf377a93e81682d5c0692506a0dd4c7ac00fa48
+AUX guile-1.8.8-mkdir-mask.patch 1300 SHA256 005fb7443f6daa49ceed237ce486a33bfac0092724df69c84d65e0c5bb87ddf0 SHA512 e02fa50af16fb545b26560064cc7adb19caf523691dfb22044c1e01fe9c98c42804c3d13ac28d65cb61bf7667fb0f1d4aa703949cea321d382b871abd083454e WHIRLPOOL e125edc37ef68524632cecd5a0d61b2f5e59368549c189aa4d4177965ba28ce1be8e71b02c85cc58242e7fd28a22d5cdb957cacb4faba40b7d6d434ac874aa40
+AUX guile-1.8.8-readline.patch 953 SHA256 1c33023ccaa03c204e74fbe2cb3cff9d7948fa3bdc3a9e4b820af0076617f40c SHA512 e86e6e7f035f9ff9d541b44987d7cb0e5a1f80f62b7b4a112dc933f5831b90a33b506c6601165e957a3973c38ca56d0e84eafaa76c78ae5db26d7887669f1443 WHIRLPOOL a865c1b517c0c77cb8d23cceb1a7f2f9f29826f14ea8d97ce7e6eacf93d83ea94f731a54066cccbb7da4fba77b76181e358988cc85855417496efa88c19e4e10
+AUX guile-1.8.8-sandbox.patch 514 SHA256 ad20e02a81b7d0a6d9246e7b1d59be9da1e2c897bebaf26a9780466bb37908a8 SHA512 6786c4c8254ebf0dbfe69402f4781151fcecec0fad8b282b831cb0300721ef22b8c11d4feecbe30643e3783d488c53e3f1158c0b0c76f6beda15fd7c0d6515db WHIRLPOOL eb8944149c2fe2e1eb0863c61e71b44e0aa13e7b8bd11c16ea69ab1949e80ca6af8e1ba4988f75b80c1128c37b1a32b8c07b8e0ce2e3ab68b7a756709d682acb
+AUX guile-1.8.8-tinfo.patch 450 SHA256 ec01f6b9f8c5571f78b8332d31cc5d8df187d9929fe233b68617fe362337a498 SHA512 0ea33680a57b1adb0821bd00cd73955e8c2fd5f31c4bd20a291c3e4fbb6a3dd9e2f4977b135f05fa3e2b65b1f5e0f5253db642e7b0b0fcd2e78ff8b6dd1cf37a WHIRLPOOL 6f806c6efb52f5a5d039faa0435054d2e1f9f090e523c6c31d00342c043454b375695ce27f32212baaf0da59a2034bc53278ada1b64e2b11d34ee72a089f546b
+AUX guile-2-snarf.patch 1274 SHA256 2052353c3b2386db0e9066bb901c3a0a9b0e7c013f4d70b80d37d931b2f49b3b SHA512 49d015b08d0bcf5d27aa43d4a595b2ccb4366dffe0f5d159162c8c7747fb9fdbe84056a737f3c81a6e39281d91109bfa4aa98c85dd0e757c17ab668a1dd46f24 WHIRLPOOL 8df318b529809e96c5a78e2306760f1dddd466d89e85ed556cf166a62db30f1bae9c904c4746b302d982dc0a575e9a8d5b790d0a0efcbe8980560677b9802871
+AUX guile-2.0.14-darwin.patch 1026 SHA256 e86a1cc6a7fa5dcb988515c4f0a1cb54a83c398c6548e8051df6d837ed9bfd6c SHA512 151d19f171656105d87336f81dd8c34273d07a3e88aa03ac5ca8d640c79ab317a90ef06097858bf627e4666fba747faea45237c73e7bc6462d19d8f0d1904d53 WHIRLPOOL 0a48b56d9f88b51cb7f6a25062f4508de9ab635972581d23d0c4d116585482e4150075b2a82612747f68cc1282649e49776d972997e4ab5c9f8211e8f30401f1
+DIST guile-1.8.8.tar.gz 3956654 SHA256 c3471fed2e72e5b04ad133bbaaf16369e8360283679bcf19800bc1b381024050 SHA512 ede6feb90cd419d8763feb8c5169275490a653919573c4dfced025b74cf591072b3a10ffb9a3f6ee3fe7b0a0956ffcf434e0859b421455c8349cea56bf427db0 WHIRLPOOL 104810030b5dae16805595a5b398e5a7e600771b64b08d5ff686036e2f273dcec3829a16e4cdb1dbb9db5813f2e225476f83e0535a789bc570fc2fc15a76dbe2
+DIST guile-2.0.13.tar.gz 7808173 SHA256 ee8073c4582bb4f06412452fdf5dd185aae607441f1313c824f44bdd668b0bde SHA512 79fd5fda5064331eb687934ec3eaf07943f5b23bd05fbce23ab5ee3698864250b33746e33b8f074692b56f7b428dac42ed5d3f5b9dc17d171aa6dfadc1625b00 WHIRLPOOL 5f8b8e0f0e5fd2cde8fd4b1ca89ebe0231dd5f746945d71412a9d1ce57094013882972d9791511ef47e9bf1f2e9eff77a515dab8b4a6c0316122cb9ef49b5a7d
+DIST guile-2.0.14.tar.gz 7823099 SHA256 8aeb2f353881282fe01694cce76bb72f7ffdd296a12c7a1a39255c27b0dfe5f1 SHA512 d69c9bdf589fedcc227f3203012f6ed11c327cef3a0147d8e016fe276abecdb4272625efe1d0c7aa68219fe8f29bbced44089a4b479e4eafe01976c6b2b83633 WHIRLPOOL 3b355f40b47c940bf9330a3521447efd2da7c7c9c3615c208513e36fec937c06a9f307fb2c59d652c09e6e0e13e858d7ef7949efbe32d530431a7aace3d9a165
+EBUILD guile-1.8.8-r3.ebuild 3106 SHA256 5b96f889b86a292377f5110833697e2c8269587f908405197794f83b5b14cc7d SHA512 e83ecd2c5939e940a0b7203bb9e1cdb0e38dac1533d3652155fcfbaaa5009cc243859c800214e4aa0512efba87ccaa08f451fda236dfa3cf7f26897b1f9cfcb8 WHIRLPOOL cced4b16ee3171785b8954eadbb1e520787d9e3645d34decb4cf9ebaf1eea1389f8c38c39d4ab0f7e7970170df15d159338266e94ff56f861e3aec838d8af9ea
+EBUILD guile-2.0.13-r2.ebuild 2105 SHA256 64704b91a7603590285796971ec407f368d3ca73a54a794cac02744cf5e80d27 SHA512 0224ae401033f3bd36aa935984d84021ceddb8aea3bba2da79de6320efc7c6b14035b8e26bebffa1413d42e7b0f6512ba7235007917f181c62329abfee697bb0 WHIRLPOOL 8ca3738e6e10064a181ed40b7879729575694ed5f8901d892889a3c09becf298c1c420116c63c2b4536e2fa44868b1bea63451eca5193adf8fa8e9653a4904ed
+EBUILD guile-2.0.14-r2.ebuild 2189 SHA256 244be4dadd7b7647c0fe997f0b8210c97bc93a237e783cf30cf339a28f3f944a SHA512 3c22360885f09151cd646a23bf08bb83e21d2490ca1a6e9b2a6f59b05cf28fa15c3cd2080fefdc4aa05ef6ebc9ea2a11c2dad91eb37cb50967b21169ec121966 WHIRLPOOL 1873f11865ce97bb1346fc41839d5b5de6b768fc34c8e9aa616688b17691fcdce99446d5df22158341153af72aa99af395e004e76c5e94d76e1062938e7818d1
+MISC ChangeLog 10652 SHA256 5adb43044ea52ee805d186486a220bd365c3ba525697b50085983c1b6534bf4d SHA512 57ba3249328fd951875e24eba573ac934fbfdfa87ed84e7c34ba67d563bf17313b48cecf13946f48df33e9030d974b98f55d2bb60531b98faea70e9a415f5fc1 WHIRLPOOL 1168b383d6adacc0abbd91b4e0c2f8054478809802f21b0dd0ca14052b1391edc2046d3e69888612047d908c6f24e533ace2fb5aa25dbab3816a1f331fc5caf7
+MISC ChangeLog-2015 26392 SHA256 db7962030cf1210197f46edfd6ad83fcaad857e35d6f556c2632c20cb34322ec SHA512 fa75004987d940fb823a330cd2c7e32618e20982eb72d2b71bc4d919a37051a6a6cee81cd89ebeda97873fbcad838a74f296bc6ed223a608e98194a1c42c762c WHIRLPOOL cd68fb5a938ad7a98438f5e2f34ed0482830f2509f8bedf0ca5bd1684316b8e9d5b2f6d1dc3b19e4eedb401667489161f1877c83a6d23cc1d425a062340b3cb8
+MISC metadata.xml 1040 SHA256 a39b8cf38ffdbf8a5d6e2a302ee3b661bb7680f15c51f93ae9ac40eab70ca72b SHA512 6c44b82f0c361f23d377e34fd88249c4e601b215c1bb183afb8cac27bf105b314d5138877b05bf3144a3c60f5b240e4e76ca3fabf151e1182cc913825a093cf3 WHIRLPOOL 6003d8faba29536e6a44b854082ce41ae28fea03552809f6ad7b34023755f81b8156148fc7616c8ba7a9ee8eb917de257434f87084b66c6e0107afcace974f52
diff --git a/dev-scheme/guile/files/50guile-gentoo.el b/dev-scheme/guile/files/50guile-gentoo.el
new file mode 100644
index 000000000000..431f7e90ae73
--- /dev/null
+++ b/dev-scheme/guile/files/50guile-gentoo.el
@@ -0,0 +1 @@
+(add-to-list 'load-path "@SITELISP@")
diff --git a/dev-scheme/guile/files/guile-1.8.8-fix_guile-config.patch b/dev-scheme/guile/files/guile-1.8.8-fix_guile-config.patch
new file mode 100644
index 000000000000..2b04426ebd96
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-fix_guile-config.patch
@@ -0,0 +1,14 @@
+diff -ruN 1/configure.in 2/configure.in
+--- 1/configure.in 2010-12-13 17:24:39.000000000 +0000
++++ 2/configure.in 2011-04-29 11:53:39.000000000 +0000
+@@ -1522,8 +1522,8 @@
+ #######################################################################
+
+ dnl Tell guile-config what flags guile users should compile and link with.
+-GUILE_LIBS="$LDFLAGS $LIBS"
+-GUILE_CFLAGS="$CPPFLAGS $PTHREAD_CFLAGS"
++GUILE_LIBS="$LIBS"
++GUILE_CFLAGS="$PTHREAD_CFLAGS"
+ AC_SUBST(GUILE_LIBS)
+ AC_SUBST(GUILE_CFLAGS)
+
diff --git a/dev-scheme/guile/files/guile-1.8.8-gcc46.patch b/dev-scheme/guile/files/guile-1.8.8-gcc46.patch
new file mode 100644
index 000000000000..b06a0e59eb14
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-gcc46.patch
@@ -0,0 +1,39 @@
+Backported upstream patch to fix SIGSEGV with gcc-4.6
+
+http://git.savannah.gnu.org/cgit/guile.git/commit/?h=branch_release-1-8&id=62bc1072c19e81bb0f9e42a5034e7ab8c27d3b94
+https://bugs.gentoo.org/show_bug.cgi?id=424475
+--- a/configure.in
++++ b/configure.in
+@@ -1199,23 +1199,20 @@
+ AC_RUN_IFELSE([AC_LANG_SOURCE(
+ [AC_INCLUDES_DEFAULT
+ int
+-find_stack_direction ()
++find_stack_direction (int *addr, int depth)
+ {
+- static char *addr = 0;
+- auto char dummy;
+- if (addr == 0)
+- {
+- addr = &dummy;
+- return find_stack_direction ();
+- }
+- else
+- return (&dummy > addr) ? 1 : -1;
++ int dir, dummy = 0;
++ if (! addr)
++ addr = &dummy;
++ *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1;
++ dir = depth ? find_stack_direction (addr, depth - 1) : 0;
++ return dir + dummy;
+ }
+
+ int
+-main ()
++main (int argc, char **argv)
+ {
+- return find_stack_direction () < 0;
++ return find_stack_direction (0, argc + !argv + 20) < 0;
+ }])],
+ [SCM_I_GSC_STACK_GROWS_UP=1],
+ [],
diff --git a/dev-scheme/guile/files/guile-1.8.8-gcc5.patch b/dev-scheme/guile/files/guile-1.8.8-gcc5.patch
new file mode 100644
index 000000000000..742ea0ba9de2
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-gcc5.patch
@@ -0,0 +1,15 @@
+Preprocessor changes in GCC 5 cause guile-snarf to output garbage.
+
+https://bugs.gentoo.org/560736
+
+--- a/libguile/guile-snarf.in
++++ b/libguile/guile-snarf.in
+@@ -50,7 +50,7 @@
+ ## Apparently, AIX's preprocessor is unhappy if you try to #include an
+ ## empty file.
+ echo "/* cpp arguments: $@ */" ;
+- ${cpp} -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
++ ${cpp} -P -DSCM_MAGIC_SNARF_INITS -DSCM_MAGIC_SNARFER "$@" > ${temp} && cpp_ok_p=true
+ grep "^ *\^ *\^" ${temp} | sed -e "s/^ *\^ *\^//" -e "s/\^\ *:\ *\^.*/;/"
+ }
+
diff --git a/dev-scheme/guile/files/guile-1.8.8-gtexinfo-5.patch b/dev-scheme/guile/files/guile-1.8.8-gtexinfo-5.patch
new file mode 100644
index 000000000000..d7fbda15c101
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-gtexinfo-5.patch
@@ -0,0 +1,15 @@
+$NetBSD: patch-doc_tutorial_guile-tut.texi,v 1.1 2013/11/30 07:06:25 dsainty Exp $
+
+Compatibility with gtexinfo 5.2
+
+--- doc/tutorial/guile-tut.texi 2010-12-14 06:24:39.000000000 +1300
++++ doc/tutorial/guile-tut.texi 2013-11-30 19:44:28.304575529 +1300
+@@ -446,7 +446,7 @@
+ Schemer} from that list.}
+
+
+-@subsection Hello World
++@section Hello World
+ @cindex hello world
+
+ Our first program is the typical Scheme "hello world" program. Put the \ No newline at end of file
diff --git a/dev-scheme/guile/files/guile-1.8.8-makeinfo-5.patch b/dev-scheme/guile/files/guile-1.8.8-makeinfo-5.patch
new file mode 100644
index 000000000000..9f3a02c18c65
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-makeinfo-5.patch
@@ -0,0 +1,71 @@
+From 937da0f2604ea208ec56517c5a41e582f316a246 Mon Sep 17 00:00:00 2001
+From: Cyprien Nicolas <cyp@fulax.fr>
+Date: Thu, 18 Apr 2013 23:45:23 +0200
+Subject: [PATCH] Fix texinfo files for makeinfo-5.1
+
+---
+ doc/ref/api-options.texi | 2 +-
+ doc/ref/api-utility.texi | 2 +-
+ doc/ref/fdl.texi | 2 +-
+ doc/ref/gh.texi | 4 ++--
+ 4 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/doc/ref/api-options.texi b/doc/ref/api-options.texi
+index 7b7a6e0..6ce7291 100644
+--- a/doc/ref/api-options.texi
++++ b/doc/ref/api-options.texi
+@@ -377,9 +377,9 @@ configure @emph{reading}, @emph{printing}, @emph{debugging} or
+ * User level options interfaces::
+ * Reader options::
+ * Printing options::
+-* Debugger options::
+ * Evaluator options::
+ * Evaluator trap options::
++* Debugger options::
+ * Examples of option use::
+ @end menu
+
+diff --git a/doc/ref/api-utility.texi b/doc/ref/api-utility.texi
+index 4a90212..9a4f3cc 100644
+--- a/doc/ref/api-utility.texi
++++ b/doc/ref/api-utility.texi
+@@ -657,7 +657,7 @@ Return 1 if @var{x} is a Scheme-level hook, 0 otherwise.
+ @end deftypefn
+
+
+-@subsubsection Handling Scheme-level hooks from C code
++@subsubheading Handling Scheme-level hooks from C code
+
+ Here is an example of how to handle Scheme-level hooks from C code using
+ the above functions.
+diff --git a/doc/ref/fdl.texi b/doc/ref/fdl.texi
+index 17fe148..4866055 100644
+--- a/doc/ref/fdl.texi
++++ b/doc/ref/fdl.texi
+@@ -408,7 +408,7 @@ as a draft) by the Free Software Foundation.
+ @end enumerate
+
+ @page
+-@appendixsubsec ADDENDUM: How to use this License for your documents
++@appendixsec ADDENDUM: How to use this License for your documents
+
+ To use this License in a document you have written, include a copy of
+ the License in the document and put the following copyright and
+diff --git a/doc/ref/gh.texi b/doc/ref/gh.texi
+index 95dfd92..bbd3af1 100644
+--- a/doc/ref/gh.texi
++++ b/doc/ref/gh.texi
+@@ -995,8 +995,8 @@ These correspond to the Scheme @code{(cons a b)} and @code{(list l0 l1
+
+ @deftypefun SCM gh_car (SCM @var{obj})
+ @deftypefunx SCM gh_cdr (SCM @var{obj})
+-@dots{}
+-
++@deftypefunx SCM gh_c[ad][ad]r (SCM @var{obj})
++@deftypefunx SCM gh_c[ad][ad][ad]r (SCM @var{obj})
+ @deftypefunx SCM gh_c[ad][ad][ad][ad]r (SCM @var{obj})
+ These correspond to the Scheme @code{(caadar ls)} procedures etc @dots{}
+ @end deftypefun
+--
+1.8.2.1
+
diff --git a/dev-scheme/guile/files/guile-1.8.8-mkdir-mask.patch b/dev-scheme/guile/files/guile-1.8.8-mkdir-mask.patch
new file mode 100644
index 000000000000..7d1c703835f1
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-mkdir-mask.patch
@@ -0,0 +1,35 @@
+--- a/libguile/filesys.c 2016-11-05 15:03:52.131894648 +0100
++++ b/libguile/filesys.c 2016-11-05 15:07:13.275894481 +0100
+@@ -791,24 +791,18 @@
+ SCM_DEFINE (scm_mkdir, "mkdir", 1, 1, 0,
+ (SCM path, SCM mode),
+ "Create a new directory named by @var{path}. If @var{mode} is omitted\n"
+- "then the permissions of the directory file are set using the current\n"
+- "umask. Otherwise they are set to the decimal value specified with\n"
+- "@var{mode}. The return value is unspecified.")
++ "then the permissions of the directory are set to @code{#o777}\n"
++ "masked with the current umask (@pxref{Processes, @code{umask}}).\n"
++ "Otherwise they are set to the value specified with @var{mode}.\n"
++ "The return value is unspecified.")
+ #define FUNC_NAME s_scm_mkdir
+ {
+ int rv;
+- mode_t mask;
++ mode_t c_mode;
+
+- if (SCM_UNBNDP (mode))
+- {
+- mask = umask (0);
+- umask (mask);
+- STRING_SYSCALL (path, c_path, rv = mkdir (c_path, 0777 ^ mask));
+- }
+- else
+- {
+- STRING_SYSCALL (path, c_path, rv = mkdir (c_path, scm_to_uint (mode)));
+- }
++ c_mode = SCM_UNBNDP (mode) ? 0777 : scm_to_uint (mode);
++
++ STRING_SYSCALL (path, c_path, rv = mkdir (c_path, c_mode));
+ if (rv != 0)
+ SCM_SYSERROR;
+ return SCM_UNSPECIFIED;
diff --git a/dev-scheme/guile/files/guile-1.8.8-readline.patch b/dev-scheme/guile/files/guile-1.8.8-readline.patch
new file mode 100644
index 000000000000..68f64c528a4b
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-readline.patch
@@ -0,0 +1,34 @@
+Make guile-readline optional
+
+https://bugs.gentoo.org/392553
+
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -24,7 +24,7 @@
+ #
+ AUTOMAKE_OPTIONS = 1.10
+
+-SUBDIRS = oop libguile ice-9 guile-config guile-readline emacs \
++SUBDIRS = oop libguile ice-9 guile-config @GUILE_READLINE@ emacs \
+ scripts srfi doc examples test-suite benchmark-suite lang am
+
+ bin_SCRIPTS = guile-tools
+--- a/configure.in
++++ b/configure.in
+@@ -57,7 +57,15 @@ AH_TOP(/*GUILE_CONFIGURE_COPYRIGHT*/)
+ #
+ #--------------------------------------------------------------------
+
+-AC_CONFIG_SUBDIRS(guile-readline)
++GUILE_READLINE=
++AC_ARG_ENABLE([readline],
++ [AS_HELP_STRING([--disable-readline],
++ [disable building guile-readline])],
++ if test "x$enable_readline" != xno; then
++ AC_CONFIG_SUBDIRS([guile-readline])
++ GUILE_READLINE="guile-readline"
++ fi)
++AC_SUBST([GUILE_READLINE])
+
+ #--------------------------------------------------------------------
+
diff --git a/dev-scheme/guile/files/guile-1.8.8-sandbox.patch b/dev-scheme/guile/files/guile-1.8.8-sandbox.patch
new file mode 100644
index 000000000000..70d752fdae97
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-sandbox.patch
@@ -0,0 +1,15 @@
+Prevent sandbox violation when installing
+
+https://bugs.gentoo.org/521546
+
+--- a/guile-config/Makefile.am
++++ b/guile-config/Makefile.am
+@@ -39,8 +39,3 @@ guile-config: guile-config.in ${top_builddir}/libguile/libpath.h
+ -e s:@-GUILE_VERSION-@:${GUILE_VERSION}:
+ chmod +x guile-config.tmp
+ mv guile-config.tmp guile-config
+-
+-## Get rid of any copies of the configuration script under the old
+-## name, so people don't end up running ancient copies of it.
+-install-exec-local:
+- rm -f ${bindir}/build-guile
diff --git a/dev-scheme/guile/files/guile-1.8.8-tinfo.patch b/dev-scheme/guile/files/guile-1.8.8-tinfo.patch
new file mode 100644
index 000000000000..6c4d0116246e
--- /dev/null
+++ b/dev-scheme/guile/files/guile-1.8.8-tinfo.patch
@@ -0,0 +1,15 @@
+With ncurses[tinfo] tgoto will be in libtinfo
+
+https://bugs.gentoo.org/539316
+
+--- a/guile-readline/configure.in
++++ b/guile-readline/configure.in
+@@ -33,7 +33,7 @@ if test "$MINGW32" = "yes" ; then
+ fi
+ AC_SUBST(EXTRA_DEFS)
+
+-for termlib in ncurses curses termcap terminfo termlib ; do
++for termlib in ncurses curses termcap terminfo termlib tinfo ; do
+ AC_CHECK_LIB(${termlib}, tgoto,
+ [LIBS="-l${termlib} $LIBS"; break])
+ done
diff --git a/dev-scheme/guile/files/guile-2-snarf.patch b/dev-scheme/guile/files/guile-2-snarf.patch
new file mode 100644
index 000000000000..c6ab5cd48cd6
--- /dev/null
+++ b/dev-scheme/guile/files/guile-2-snarf.patch
@@ -0,0 +1,47 @@
+From f775ab3654357fcaad294b95efb0b1c16de1eda8 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich <slyfox@gentoo.org>
+Date: Sun, 19 Feb 2017 22:58:40 +0000
+Subject: guile-snarf: skip -g* arguments to avoid build failure
+
+* libguile/guile-snarf.in: skip -g* arguments to avoid failure on
+ -ggdb3.
+
+Bug: https://bugs.gentoo.org/608190
+Bug: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=25803
+Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
+---
+ libguile/guile-snarf.in | 16 ++++++++++++++--
+ 1 file changed, 14 insertions(+), 2 deletions(-)
+
+diff --git a/libguile/guile-snarf.in b/libguile/guile-snarf.in
+index 47bbc04..22dc1d3 100644
+--- a/libguile/guile-snarf.in
++++ b/libguile/guile-snarf.in
+@@ -95,10 +95,22 @@ if [ x"$CPP" = x ] ; then cpp="@CPP@" ; else cpp="$CPP" ; fi
+
+ trap "rm -rf $tempdir" 0 1 2 15
+
++# filter out -g* flags from commandline
++# as some flags like -ggdb3 cause CPP
++
++cpp_args=""
++for arg in "$@"
++do
++ case "$arg" in
++ -g*) ;; # skip debug flag
++ *) cpp_args="$cpp_args $arg" ;;
++ esac
++done
++
+ if [ ! "$outfile" = "-" ] ; then
+- modern_snarf "$@" > $outfile
++ modern_snarf $cpp_args > $outfile
+ else
+- modern_snarf "$@"
++ modern_snarf $cpp_args
+ fi
+
+ # zonk outfile if errors occurred
+--
+cgit v1.0-41-gc330
+
diff --git a/dev-scheme/guile/files/guile-2.0.14-darwin.patch b/dev-scheme/guile/files/guile-2.0.14-darwin.patch
new file mode 100644
index 000000000000..17741ae352c2
--- /dev/null
+++ b/dev-scheme/guile/files/guile-2.0.14-darwin.patch
@@ -0,0 +1,38 @@
+fix compilation on Darwin
+
+https://debbugs.gnu.org/cgi/bugreport.cgi?bug=24862#23
+https://bugs.gentoo.org/show_bug.cgi?id=612338
+
+--- guile-2.0.14/libguile/filesys.c
++++ guile-2.0.14/libguile/filesys.c
+@@ -1486,6 +1486,9 @@
+ mode_bits = scm_i_mode_bits (mode);
+ }
+
++#ifdef __APPLE__
++ open_flags &= O_APPEND|O_SHLOCK|O_EXLOCK|O_CLOEXEC;
++#endif
+ SCM_SYSCALL (rv = mkostemp (c_tmpl, open_flags));
+ if (rv == -1)
+ SCM_SYSERROR;
+--- guile-2.0.14/libguile/stime.c
++++ guile-2.0.14/libguile/stime.c
+@@ -830,6 +830,10 @@
+
+ #ifdef HAVE_POSIX_CPUTIME
+ {
++#ifdef __APPLE__
++ if (clock_gettime (CLOCK_PROCESS_CPUTIME_ID, &posix_run_time_base) == 0)
++ get_internal_run_time = get_internal_run_time_posix_timer;
++#else
+ clockid_t dummy;
+
+ /* Only use the _POSIX_CPUTIME clock if it's going to work across
+@@ -839,6 +843,7 @@
+ get_internal_run_time = get_internal_run_time_posix_timer;
+ else
+ errno = 0;
++#endif
+ }
+ #endif /* HAVE_POSIX_CPUTIME */
+ #endif /* HAVE_CLOCKTIME */
diff --git a/dev-scheme/guile/guile-1.8.8-r3.ebuild b/dev-scheme/guile/guile-1.8.8-r3.ebuild
new file mode 100644
index 000000000000..c2740abb37d5
--- /dev/null
+++ b/dev-scheme/guile/guile-1.8.8-r3.ebuild
@@ -0,0 +1,118 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit eutils autotools flag-o-matic elisp-common
+
+DESCRIPTION="Scheme interpreter"
+HOMEPAGE="https://www.gnu.org/software/guile/"
+SRC_URI="mirror://gnu/guile/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+KEYWORDS="alpha amd64 arm arm64 hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+IUSE="debug debug-freelist debug-malloc +deprecated discouraged emacs networking nls readline +regex +threads"
+
+RESTRICT="!regex? ( test )"
+
+RDEPEND="
+ >=dev-libs/gmp-4.1:0=
+ dev-libs/libltdl:0=
+ sys-devel/gettext
+ sys-libs/ncurses:0=
+ emacs? ( virtual/emacs )
+ readline? ( sys-libs/readline:0= )"
+DEPEND="${RDEPEND}
+ sys-apps/texinfo
+ sys-devel/libtool"
+
+# Guile seems to contain some slotting support, /usr/share/guile/ is slotted,
+# but there are lots of collisions. Most in /usr/share/libguile. Therefore
+# I'm slotting this in the same slot as guile-1.6* for now.
+SLOT="12/8"
+MAJOR="1.8"
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}-fix_guile-config.patch" \
+ "${FILESDIR}/${P}-gcc46.patch" \
+ "${FILESDIR}/${P}-gcc5.patch" \
+ "${FILESDIR}/${P}-makeinfo-5.patch" \
+ "${FILESDIR}/${P}-gtexinfo-5.patch" \
+ "${FILESDIR}/${P}-readline.patch" \
+ "${FILESDIR}/${P}-tinfo.patch" \
+ "${FILESDIR}/${P}-sandbox.patch" \
+ "${FILESDIR}/${P}-mkdir-mask.patch"
+
+ sed \
+ -e "s/AM_CONFIG_HEADER/AC_CONFIG_HEADERS/g" \
+ -e "/AM_PROG_CC_STDC/d" \
+ -i guile-readline/configure.in || die
+
+ epatch_user
+
+ mv "${S}"/configure.{in,ac} || die
+ mv "${S}"/guile-readline/configure.{in,ac} || die
+
+ eautoreconf
+}
+
+src_configure() {
+ # see bug #178499
+ filter-flags -ftree-vectorize
+
+ #will fail for me if posix is disabled or without modules -- hkBst
+ econf \
+ --disable-error-on-warning \
+ --disable-static \
+ --enable-posix \
+ $(use_enable networking) \
+ $(use_enable readline) \
+ $(use_enable regex) \
+ $(use deprecated || use_enable discouraged) \
+ $(use_enable deprecated) \
+ $(use_enable emacs elisp) \
+ $(use_enable nls) \
+ --disable-rpath \
+ $(use_enable debug-freelist) \
+ $(use_enable debug-malloc) \
+ $(use_enable debug guile-debug) \
+ $(use_with threads) \
+ --with-modules \
+ EMACS=no
+}
+
+src_compile() {
+ emake
+
+ # Above we have disabled the build system's Emacs support;
+ # for USE=emacs we compile (and install) the files manually
+ if use emacs; then
+ cd emacs || die
+ elisp-compile *.el || die
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS ChangeLog GUILE-VERSION HACKING NEWS README THANKS
+
+ # texmacs needs this, closing bug #23493
+ dodir /etc/env.d
+ echo "GUILE_LOAD_PATH=\"${EPREFIX}/usr/share/guile/${MAJOR}\"" > "${ED}"/etc/env.d/50guile || die
+
+ # necessary for registering slib, see bug 206896
+ keepdir /usr/share/guile/site
+
+ if use emacs; then
+ elisp-install ${PN} emacs/*.{el,elc} || die
+ elisp-site-file-install "${FILESDIR}/50${PN}-gentoo.el" || die
+ fi
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-scheme/guile/guile-2.0.13-r2.ebuild b/dev-scheme/guile/guile-2.0.13-r2.ebuild
new file mode 100644
index 000000000000..c5974166eba0
--- /dev/null
+++ b/dev-scheme/guile/guile-2.0.13-r2.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic autotools
+
+DESCRIPTION="GNU Ubiquitous Intelligent Language for Extensions"
+HOMEPAGE="https://www.gnu.org/software/guile/"
+SRC_URI="mirror://gnu/guile/${P}.tar.gz"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+LICENSE="LGPL-3+"
+IUSE="debug debug-malloc +deprecated +networking +nls +regex +threads" # upstream recommended +networking +nls
+# emacs useflag removal not working
+
+# workaround for bug 596322
+REQUIRED_USE="regex"
+
+RDEPEND="
+ >=dev-libs/boehm-gc-7.0[threads?]
+ dev-libs/gmp:=
+ virtual/libffi
+ dev-libs/libltdl:=
+ dev-libs/libunistring:0=
+ sys-devel/libtool
+ sys-libs/ncurses:0=
+ sys-libs/readline:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-apps/texinfo
+ sys-devel/gettext"
+
+SLOT="12/22" # subslot is soname version
+MAJOR="2.0"
+
+DOCS=( GUILE-VERSION HACKING README )
+
+PATCHES=( "${FILESDIR}/${PN}-2-snarf.patch" )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # see bug #178499
+ filter-flags -ftree-vectorize
+
+ econf \
+ --disable-error-on-warning \
+ --disable-rpath \
+ --enable-posix \
+ --without-libgmp-prefix \
+ --without-libiconv-prefix \
+ --without-libintl-prefix \
+ --without-libltdl-prefix \
+ --without-libreadline-prefix \
+ --without-libunistring-prefix \
+ $(use_enable debug guile-debug) \
+ $(use_enable debug-malloc) \
+ $(use_enable deprecated) \
+ $(use_enable networking) \
+ $(use_enable nls) \
+ $(use_enable regex) \
+ $(use_with threads)
+}
+
+src_install() {
+ default
+
+ # From Novell
+ # https://bugzilla.novell.com/show_bug.cgi?id=874028#c0
+ dodir /usr/share/gdb/auto-load/$(get_libdir)
+ mv "${ED}"/usr/$(get_libdir)/libguile-*-gdb.scm "${ED}"/usr/share/gdb/auto-load/$(get_libdir) || die
+
+ # necessary for registering slib, see bug 206896
+ keepdir /usr/share/guile/site
+
+ # Dark magic necessary for some deps
+ dosym libguile-2.0.so /usr/$(get_libdir)/libguile.so
+}
diff --git a/dev-scheme/guile/guile-2.0.14-r2.ebuild b/dev-scheme/guile/guile-2.0.14-r2.ebuild
new file mode 100644
index 000000000000..37a3cd3ede72
--- /dev/null
+++ b/dev-scheme/guile/guile-2.0.14-r2.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic autotools ltprune
+
+DESCRIPTION="GNU Ubiquitous Intelligent Language for Extensions"
+HOMEPAGE="https://www.gnu.org/software/guile/"
+SRC_URI="mirror://gnu/guile/${P}.tar.gz"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
+LICENSE="LGPL-3+"
+IUSE="debug debug-malloc +deprecated +networking +nls +regex +threads" # upstream recommended +networking +nls
+# emacs useflag removal not working
+
+# workaround for bug 596322
+REQUIRED_USE="regex"
+
+RDEPEND="
+ >=dev-libs/boehm-gc-7.0[threads?]
+ dev-libs/gmp:=
+ virtual/libffi
+ dev-libs/libltdl:=
+ dev-libs/libunistring:0=
+ sys-devel/libtool
+ sys-libs/ncurses:0=
+ sys-libs/readline:0="
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ sys-apps/texinfo
+ sys-devel/gettext"
+
+SLOT="12/22" # subslot is soname version
+MAJOR="2.0"
+
+DOCS=( GUILE-VERSION HACKING README )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2-snarf.patch"
+ "${FILESDIR}/${P}-darwin.patch"
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ # see bug #178499
+ filter-flags -ftree-vectorize
+
+ econf \
+ --disable-error-on-warning \
+ --disable-rpath \
+ --disable-static \
+ --enable-posix \
+ --without-libgmp-prefix \
+ --without-libiconv-prefix \
+ --without-libintl-prefix \
+ --without-libltdl-prefix \
+ --without-libreadline-prefix \
+ --without-libunistring-prefix \
+ $(use_enable debug guile-debug) \
+ $(use_enable debug-malloc) \
+ $(use_enable deprecated) \
+ $(use_enable networking) \
+ $(use_enable nls) \
+ $(use_enable regex) \
+ $(use_with threads)
+}
+
+src_install() {
+ default
+ prune_libtool_files
+
+ # From Novell
+ # https://bugzilla.novell.com/show_bug.cgi?id=874028#c0
+ dodir /usr/share/gdb/auto-load/$(get_libdir)
+ mv "${ED}"/usr/$(get_libdir)/libguile-*-gdb.scm "${ED}"/usr/share/gdb/auto-load/$(get_libdir) || die
+
+ # necessary for registering slib, see bug 206896
+ keepdir /usr/share/guile/site
+
+ # Dark magic necessary for some deps
+ dosym libguile-2.0.so /usr/$(get_libdir)/libguile.so
+}
diff --git a/dev-scheme/guile/metadata.xml b/dev-scheme/guile/metadata.xml
new file mode 100644
index 000000000000..02c7884936bb
--- /dev/null
+++ b/dev-scheme/guile/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Guile is a library designed to help programmers create flexible applications. Using Guile in an application allows programmers to write plug-ins, or modules (there are many names, but the concept is essentially the same) and users to use them to have an application fit their needs.
+ </longdescription>
+ <use>
+ <flag name="debug-freelist">Include garbage collector freelist debugging
+ code</flag>
+ <flag name="debug-malloc">Include malloc debugging code</flag>
+ <flag name="deprecated">Enable deprecated features</flag>
+ <flag name="discouraged"> (implied by deprecated) enable merely discouraged
+ features</flag>
+ <flag name="networking">Include networking interfaces</flag>
+ <flag name="regex"> Include regular expression interfaces</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-scheme/ikarus/Manifest b/dev-scheme/ikarus/Manifest
new file mode 100644
index 000000000000..cc4450d8b2ed
--- /dev/null
+++ b/dev-scheme/ikarus/Manifest
@@ -0,0 +1,7 @@
+AUX ikarus-0.0.3_p1870-cpu_has_sse2.patch 407 SHA256 b9dab78bae863214bf512e2c5b0371a1984db0f63942f00297a82aba155829ee SHA512 566cb42b563cc8449fc669ee3478df98ac36540d86f502c095ccea1da34818cf4fcd864dd757375eed682358f43bc5b83060eb98e90bcc8d6baa473305fffacf WHIRLPOOL 8a2ff89a2cf2aefcf6789cfae70bc4416aa1a23dbdff7e020b5da3c0727d7f3a550df6b45ae4531ee4ddcc48930d5ba0f4ed01edf4bb468dd594e2563e946ae4
+AUX ikarus-0.0.3_p1870-ikarus-enter.patch 409 SHA256 56bd469abbcc98d4e30b9125b65a48e484d21c09c072a718d043142d3c625f78 SHA512 b0d4840b42a3aa30a6b7b0eaefce24889910dd0c7785bdec6c3b65c7f15b32009c9f72b0172f8f4b17d9e9de969884bccde1c157da75bffc2a02591c29d7fd32 WHIRLPOOL 96c4fbab476e76b39717bafc6d97e4a27039370e9e3cbbbda47ea1c8d6cd36010e2b71225a5ca1c1ccc5a22b78ac9123ebd602fc97b6d4b7df1f01c8baa56d72
+DIST ikarus-scheme-r1870.tgz 9397981 SHA256 cc4a2a23517a485d5ddbde87d9e504fb618e30b1f6d661e7c7b5061c19a3ca82 SHA512 5ab962c7234c7417d3898d467c6c876cc7891a2288c1dc7a6002076de382f90c41cf277a1798639395dd69262fecd304b7a1024f47e2209049fc2265bd9d938d WHIRLPOOL 43fca09dc034660862ad71045fced208ac8cbeb431bbae8f04c31b4b033e3b800cba911c1ee4358398ba72617c493e44bab4c644a10002b8c75925737214206a
+EBUILD ikarus-0.0.3_p1870.ebuild 1308 SHA256 8386bc48818e67bc6e958177ecabf5238f0d564875c02d44af9fb13b8272b92c SHA512 807102a54ff7915a05b14b19b2aef9b86af659cd9a0b5f581e49888d46530ce70d46dd974cac3077fc13866de3b6f318ab54040b4e4250c929cd80d16f15c6ee WHIRLPOOL dabfff3e0fb5c454c97f31af90c06a0840deb9523e5f5791fb27ffe0e771356fd036fc2e16703169da141dc98b6db6713c1a7fc64c3a19d6ba11b33a538d7983
+MISC ChangeLog 2927 SHA256 2fa2706bbd996682d40a439b09256c17f60bdfa473d0fbad1643acd4da3e6808 SHA512 2d465f5d49791d6e8f9fe2f55355fa1198953dffe1ecc278fec648d9dcc85f14b52a7f548ec326e732efca1db55fda8389bb4c644374481bd989ff923038ef7e WHIRLPOOL 4e71dbf796ed1aa51e4184ee95663c295ec3413d112c4e34bc4877c15d677c71760e311c2686a13df2f04cc0d8d93e77beee00bbfd4b0d568dbe1371de4b47e4
+MISC ChangeLog-2015 1438 SHA256 ceebd75e333fc5c6afe7a3ca0059265c820c1c75d3b36987a9d2a3d8cffb77cf SHA512 a5227efb7f8a13cf968706d878dcaae34cfc62e7a267c66c5c3ca0612bdbdd3cfb910f8c04c4472f96ef81dfa5b1686429e2f6ea10782729edc73cfdd88cd7e5 WHIRLPOOL 01c6e75fbdd3bddfcf7ec2c8d94991dd5cae4f2443fc19ca562cd097e5699b5e00e0469abea8c77ddecda97398c14664f80a0b434129a53d4e7987d62495bf1d
+MISC metadata.xml 581 SHA256 18ceb2c17c437cec9febfd4b0499b14cd29f2f7667a0b649d39d2321679a33d1 SHA512 028ca8b08aa1dd93e258e78591efa65357b033e81188d63f23bc7044ca4e4f0dcd06c552c0b7962525675a518332870f48e87deae8a331cc900265cf39251ed1 WHIRLPOOL 02847fa6a731c64c87479ccbac77cf6a84f8602ff0a8eed91457ebc0307fe808e56c4215055e0cee3c0979dbeb7af1d6db760fffe08ac8da9a40dc670f40dc7a
diff --git a/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-cpu_has_sse2.patch b/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-cpu_has_sse2.patch
new file mode 100644
index 000000000000..d66989671e32
--- /dev/null
+++ b/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-cpu_has_sse2.patch
@@ -0,0 +1,12 @@
+--- a/src/cpu_has_sse2.S 2008-01-29 04:44:10.000000000 +0000
++++ b/src/cpu_has_sse2.S 2008-05-31 18:29:00.000000000 +0000
+@@ -13,6 +13,9 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+
+ .text
+ .globl cpu_has_sse2
diff --git a/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-ikarus-enter.patch b/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-ikarus-enter.patch
new file mode 100644
index 000000000000..2bdd780d7490
--- /dev/null
+++ b/dev-scheme/ikarus/files/ikarus-0.0.3_p1870-ikarus-enter.patch
@@ -0,0 +1,13 @@
+--- a/src/ikarus-enter.S 2008-01-29 04:44:17.000000000 +0000
++++ b/src/ikarus-enter.S 2008-05-31 18:28:09.000000000 +0000
+@@ -13,7 +13,9 @@
+ # You should have received a copy of the GNU General Public License
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+-
++#if defined(__linux__) && defined(__ELF__)
++.section .note.GNU-stack,"",%progbits
++#endif
+
+ .text
+ .globl ik_asm_enter
diff --git a/dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild b/dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild
new file mode 100644
index 000000000000..7867078131bc
--- /dev/null
+++ b/dev-scheme/ikarus/ikarus-0.0.3_p1870.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit eutils flag-o-matic autotools versionator
+
+MY_PV=$(get_version_component_range 4-)
+MY_PV=${MY_PV/p/}
+
+MY_P=${PN}-scheme-r${MY_PV}
+
+DESCRIPTION="A free optimizing incremental native-code compiler for R6RS Scheme"
+HOMEPAGE="http://ikarus-scheme.org/"
+SRC_URI="http://ikarus-scheme.org/ikarus.dev/${MY_P}.tgz"
+
+LICENSE="GPL-3"
+SLOT="0"
+
+KEYWORDS="-* ~x86"
+IUSE="cpu_flags_x86_sse2 doc"
+
+RDEPEND=">=dev-libs/gmp-4.2.2"
+DEPEND="${RDEPEND}"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i -e 's/-O3//' configure.ac || die
+ epatch "${FILESDIR}/${P}-cpu_has_sse2.patch"
+ epatch "${FILESDIR}/${P}-ikarus-enter.patch"
+
+ eautoreconf
+}
+
+src_compile() {
+ if use !cpu_flags_x86_sse2; then \
+ eerror "You must have a processor who supports \
+ SSE2 instructions" && die
+ fi
+
+ append-flags "-std=gnu99"
+
+ emake || die "emake failed"
+}
+
+src_test() {
+ cd benchmarks
+ make benchall || die "Tests failed"
+ if [ -e timelog ]
+ then
+ cat timelog || die "stdout test logs failed."
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+ rm -Rf "${D}/usr/share"
+ dodoc README ACKNOWLEDGMENTS || die "dodoc failed"
+ if use doc; then
+ dodoc doc/*.pdf || die "dodoc failed"
+ fi
+}
diff --git a/dev-scheme/ikarus/metadata.xml b/dev-scheme/ikarus/metadata.xml
new file mode 100644
index 000000000000..60c1a3d3b2b9
--- /dev/null
+++ b/dev-scheme/ikarus/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pchrist@gentoo.org</email>
+ <name>Panagiotis Christopoulos</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ Ikarus Scheme is a free optimizing incremental native-code compiler for
+ Scheme as specified in the Revised-6 Report on the Algorithmic Language
+ Scheme.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/jscheme/Manifest b/dev-scheme/jscheme/Manifest
new file mode 100644
index 000000000000..0241470482bb
--- /dev/null
+++ b/dev-scheme/jscheme/Manifest
@@ -0,0 +1,5 @@
+DIST jscheme-7.2.tgz 2507622 SHA256 a6460c3903c0dcd9eb8e31be4b3c324ec9f8e2aa43fbc8ec14948b2ea68a67a1 SHA512 48aa1ce806e2dd9bd6797dce6e6569787ad9072f728a39a37310ec5604afdb3fda4ad56a721336d0be9e3c985333ff9dd31cdb809c095d503f54a0f477adc3c7 WHIRLPOOL a12e899807e84922cfb879a88d6f885502260056501d277941bcf7bd7b68ed45dc000377a2e4a23a0bf717a5600756b07b8ed94c2f9734ce95ad03670b6a3965
+EBUILD jscheme-7.2.ebuild 712 SHA256 fb3e954b15af031747aea5cc6a64e96342bfffd92cedcdc022118da111f378e1 SHA512 c6dccde2867fc3f113d49ffa42969f33d2b01ced904c2d83efd1809761c5ce19924be79e06f5c9a50498474cb99a83d4484c0d7b5c32fe6d8c14a0b2013e61f5 WHIRLPOOL 6f18b951b6eb8fb054ab167703fb9b1be0f0bae97a64afd874ecc2485f9d73de2011db65e29c38c0e1e6cf4a8e2b99d456254bb04be96d5625be9317115e1d01
+MISC ChangeLog 2425 SHA256 9143de5ac289e3971f120a43b98c98706b554fdadf1e7edb0cfd81ea2570e559 SHA512 d03f5ace34c13eb3a42d34672624d1f8187d462212e80a20597adbaeace568873434231c5a86b2a0729e4df99e5cdeea27e0ea23e3ef2963b6cc665e755155ed WHIRLPOOL cb25af3a83d8d65757a214889c80cdf95105d1edfd586231281768b13ad062a4754d6e40f12bc379a1ba5596470b3a2e7f5aedd421d424942580984175d3734a
+MISC ChangeLog-2015 653 SHA256 e50f2e49c3110d840a4eb646160c110876e1c0dea804d92b5f88234687750167 SHA512 2d97efaf4c592a4547658caf91cc5e8298ff142711e6cd65108eec41b17abd3d8be0136b27d9bbc509c91ebeaa39e7698483dde67e1cafb5b8da3c0bb9b95316 WHIRLPOOL 308a43bafffa8bf8656c04bd83078fa126934e985a4e7d5fa8722b90d8d03b692550f66657002022c3b4b6009e30d2ad0c90fe2881d071fece4d6dcb930f597a
+MISC metadata.xml 599 SHA256 80f9a8045392860e74fcfdb47a66568577f4ec6a2d93c6feb7b78e4526fc99dc SHA512 f1ae5056e6e7ac9d45d80d2a11c3501c24b1cb50818345e70833df9e84eed3b6656d2cbda53e392bf52694f5b32926d177cd49dd6163f67a692b32a62a873c5f WHIRLPOOL a5e596ff81a629091070fc0625b783f02c17380b95b8b0f1cb16b61444d8b525deb78b04a7f08ad70c2f422637fcbb7f4add2993d98b2ebfc58ee02efb3e18af
diff --git a/dev-scheme/jscheme/jscheme-7.2.ebuild b/dev-scheme/jscheme/jscheme-7.2.ebuild
new file mode 100644
index 000000000000..e92523300a5d
--- /dev/null
+++ b/dev-scheme/jscheme/jscheme-7.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit java-utils-2 java-pkg-2
+
+DESCRIPTION="JScheme is a dialect of Scheme with a very simple interface to Java, called the Javadot notation"
+HOMEPAGE="http://jscheme.sourceforge.net/jscheme/main.html"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+
+LICENSE="Apache-1.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND=">=virtual/jdk-1.6"
+RDEPEND=">=virtual/jre-1.6
+ ${DEPEND}"
+
+src_compile() {
+ sh bin/make || die "make failed"
+}
+
+src_install() {
+ java-pkg_dojar lib/*.jar
+
+ java-pkg_dolauncher ${PN} \
+ --main jscheme.REPL
+
+ if use doc; then
+ dohtml -r doc || die "dohtml failed"
+ fi
+}
diff --git a/dev-scheme/jscheme/metadata.xml b/dev-scheme/jscheme/metadata.xml
new file mode 100644
index 000000000000..28f1568c4bc2
--- /dev/null
+++ b/dev-scheme/jscheme/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ JScheme is a dialect of Scheme with a very simple interface to Java, called
+ the Javadot notation . This notation provides a transparent access to all
+ Java classes, constructors, methods, and fields on the classpath.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">jscheme</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/kawa/Manifest b/dev-scheme/kawa/Manifest
new file mode 100644
index 000000000000..02c4bc4fa229
--- /dev/null
+++ b/dev-scheme/kawa/Manifest
@@ -0,0 +1,11 @@
+AUX kawa-1.10.patch 1482 SHA256 e9b59585d9877807c6207d9c86862123f72b5062f441fd9fa63e0c4e8b954410 SHA512 796621da5483629953ed421e7643439702e088c74098af234b4023d50841dd98374a9b51d6549a3791a47bb8c6904aaebfd82cb668cd1e082f595d63c8bc3f92 WHIRLPOOL 71848e8ca8be6d311b9332272a822c96e715681ff8800f6303d0a86fec82591136f492b2f3ad2359305a90a8e31194126bc91f72a8dab13dd25946204a9dfcd5
+AUX kawa-1.14.patch 1482 SHA256 e9b59585d9877807c6207d9c86862123f72b5062f441fd9fa63e0c4e8b954410 SHA512 796621da5483629953ed421e7643439702e088c74098af234b4023d50841dd98374a9b51d6549a3791a47bb8c6904aaebfd82cb668cd1e082f595d63c8bc3f92 WHIRLPOOL 71848e8ca8be6d311b9332272a822c96e715681ff8800f6303d0a86fec82591136f492b2f3ad2359305a90a8e31194126bc91f72a8dab13dd25946204a9dfcd5
+DIST XQTS_1_0_2.zip 19879467 SHA256 923361362d70a20818c6442eb52a6401fe9d2e53e4f52ee8b4d7fb1c841b4443 SHA512 a9c35ee02871b2b9629ce87125886347ef407133871c63e7628bfc8b99a60045c0187a2fbfa1a6f02dc572d7ac1b27cac24e467dd07f95acdedc6b4c7ffd969a WHIRLPOOL 43628d3650e0996c97f7bc05da2255661d8dcedfa45ddbb325311a3aec0d9e7e6f6383f73ed2f65a77bd5a26158c069dcfe1eac04b418da21c14bfcdf2a55a0f
+DIST XQTS_1_0_3.zip 30956043 SHA256 1a6c9dd8761f021e78105efd4f46d5d35bb8b73b18e14bfde0512661e6be78ec SHA512 e00efd3dbf0b1cf530795073f7548cf4ab4f3c55921f76af7c000e61e1d7293cd11f41d617b3ce5343df5e9c5b6de4ee3819a6db2b15df9441a19489ae46e1dd WHIRLPOOL 57ac5b2d5a38446d89df7bd7d06dbe09a592b6243ceb415fac4d2d0bf154a8cf51307194feab7eef14643bdd8f24e87f307b2cb521f5f81ef412814bf9fddc8b
+DIST kawa-1.10.tar.gz 2238130 SHA256 f697f5784b55b1945f0644954459f88a0eb9511bb60d695b1a9767b58eb7492e SHA512 4ab27331f7be6d6107272e75508179ed7d14c475e1fffaceeb7a16600e3ba4e54fc63506788ed89fca1f2d390477d2e3e685f29b015a28214fcb4f62016c943d WHIRLPOOL 2dc4c85ae4d8496b0425d6faf9c6077fe66906a107d0780b60d19fc91992b0a06f066857c4aa45fb81e29495ec4f9c7d9bac9d6f9a210874d2ffaf79dbf851eb
+DIST kawa-1.14.tar.gz 2691484 SHA256 2201cf3f4c57f49f15cf929d8634855cb8ef4ffe79158cecd66ebd5bd9b4b909 SHA512 e0a0eafd4ed0ce7d254f295db8e920b82cfef6f4f71c440db655d73761a2f99ab743def1daa54241998497db8f29269c7d98f7e3bf819a36d7f7151d3ba2913e WHIRLPOOL 6f7e32e38ecea68e4d7faffc2cb1df16d33b384010391d23507397714891ad1588a35aa7d0b4c1079322acc3250f25459c94ddb68f90a14f04a552f847542d6a
+EBUILD kawa-1.10.ebuild 2919 SHA256 070d23426abfbd8e7edf942e557d13a16ecacc2888a9e5b8ed5482fc0a2a8aed SHA512 9e7e3c895a19bf854e2631b87b556b40098d5225d75342b7bc2963d9bd214c2a946ae4ce85a42b01345b1c2f61d64b57d163bb62eee48b9298f2a7c451dd4ae7 WHIRLPOOL 334865e65b440a5558d5433b551fa3fb7ff3fd11ac8e0f1ad6ce1af5cae9740d07eec0a1d3249761955c9112dfa47e92d346cd775240fe24425f4bf13d58ef0e
+EBUILD kawa-1.14.ebuild 2880 SHA256 94c37f3e74d720774daef3487cbc47f3466c862b1a84f828c28fa01035cf0aeb SHA512 fd67b6e5e1102b983ab5064164a5d0ca5fb89f19772a3b6da1b67e3688f0a2204079e58384c311d66a05f9fabeca411eac5c37cb0197966e298b284a6b44b81e WHIRLPOOL d0cc48c9a018d2e537808589966924322dc68380d4224d3cb50c3c3a8de54a1093c8d89ea4e624f2fc4856bbb29c2c1d0c78b3220c13e491542f4c878acad587
+MISC ChangeLog 3214 SHA256 445ca07eaed0cea91a04d58bedcd9980031cb159500033f6c7acd58682f429f6 SHA512 fb0590f437ad707dafbc823193fddfb37337bd57f0255af60393880838b7fcf3ddccb006c30d24136147ab95d82f55a967fc74927d321e59d857eedc71358df9 WHIRLPOOL 161ea64093bd3da327ea1ccfcd2780930029d5fc6fee0d7a76059423c2dedce0132b8107a8f90bb57679bed7010e454cca485e7a67d41235f44d030fceb8b734
+MISC ChangeLog-2015 3007 SHA256 b2a17e8bad89eb3c42247d6eb845a98a1645029b20c895716c01d22ce1ea1d48 SHA512 403abc855263b57cb3f77382d44f623d783079fd170a89133890772210afd98c6d5cdf0cbc91a8e4830e7eb1281cdf9203766d6fc1cd3d5346ba8e2ecbc67f1e WHIRLPOOL d4b0f397cc0f8ffd4652e2c3bba16ecad1fab5be79c5905fc36429c630a5b8ed80b8eb0893aaa205818d141fdecd8828348ba55d566a05ff285b1c7fa06c756a
+MISC metadata.xml 1375 SHA256 77077bfe7470f9bf6f8d5ed8038da2b320212d65f1779675f79f63cd9713ad02 SHA512 6d211ce3778ee387d9776cc33a361f745414dc546e3acece0b5240d2a62f2b1f83ebe505a04e5ae66d7c6f46631bfa8b248234da6176fcca993c9602d1a265b0 WHIRLPOOL 503a3cd09af92f29fba62e10ddbb4f11c9c16d860f012139bb3ad7bec3b6d97b9da00dcb8bcc2e4c345f63577f545ee06732534fa920159cce9fa18b558ebabc
diff --git a/dev-scheme/kawa/files/kawa-1.10.patch b/dev-scheme/kawa/files/kawa-1.10.patch
new file mode 100644
index 000000000000..8acc5e442f69
--- /dev/null
+++ b/dev-scheme/kawa/files/kawa-1.10.patch
@@ -0,0 +1,24 @@
+diff -Naur kawa-1.10.orig/Makefile.in kawa-1.10/Makefile.in
+--- kawa-1.10.orig/Makefile.in 2010-09-19 01:38:24.000000000 +0200
++++ kawa-1.10/Makefile.in 2010-09-19 01:38:59.000000000 +0200
+@@ -908,7 +908,7 @@
+ | sed -e 's|./||' | sort > $@
+
+ gnu/kawa/util/PreProcess.class: $(srcdir)/gnu/kawa/util/PreProcess.java
+- $(JAVAC) -d . $(srcdir)/gnu/kawa/util/PreProcess.java
++ $(JAVAC) $(JAVACFLAGS) -d . $(srcdir)/gnu/kawa/util/PreProcess.java
+
+ # JDK 1.1
+ select-java1: $(srcdir)/patch-source-list gnu/kawa/util/PreProcess.class
+diff -Naur kawa-1.9.90.orig/bin/Makefile.in kawa-1.9.90/bin/Makefile.in
+--- kawa-1.9.90.orig/bin/Makefile.in 2009-08-08 12:20:49.000000000 -0300
++++ kawa-1.9.90/bin/Makefile.in 2009-09-21 20:15:06.000000000 -0300
+@@ -686,7 +686,7 @@
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
+-@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT)
++@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) ./kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT)
+ @WITH_GCJ_DBTOOL_FALSE@@WITH_GCJ_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa-bin$(EXEEXT) $(DESTDIR)$(bindir)/kawa-bin$(EXEEXT)
+ @ENABLE_SERVLET_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) cgi-servlet$(EXEEXT) $(DESTDIR)$(bindir)/cgi-servlet$(EXEEXT)
+
diff --git a/dev-scheme/kawa/files/kawa-1.14.patch b/dev-scheme/kawa/files/kawa-1.14.patch
new file mode 100644
index 000000000000..8acc5e442f69
--- /dev/null
+++ b/dev-scheme/kawa/files/kawa-1.14.patch
@@ -0,0 +1,24 @@
+diff -Naur kawa-1.10.orig/Makefile.in kawa-1.10/Makefile.in
+--- kawa-1.10.orig/Makefile.in 2010-09-19 01:38:24.000000000 +0200
++++ kawa-1.10/Makefile.in 2010-09-19 01:38:59.000000000 +0200
+@@ -908,7 +908,7 @@
+ | sed -e 's|./||' | sort > $@
+
+ gnu/kawa/util/PreProcess.class: $(srcdir)/gnu/kawa/util/PreProcess.java
+- $(JAVAC) -d . $(srcdir)/gnu/kawa/util/PreProcess.java
++ $(JAVAC) $(JAVACFLAGS) -d . $(srcdir)/gnu/kawa/util/PreProcess.java
+
+ # JDK 1.1
+ select-java1: $(srcdir)/patch-source-list gnu/kawa/util/PreProcess.class
+diff -Naur kawa-1.9.90.orig/bin/Makefile.in kawa-1.9.90/bin/Makefile.in
+--- kawa-1.9.90.orig/bin/Makefile.in 2009-08-08 12:20:49.000000000 -0300
++++ kawa-1.9.90/bin/Makefile.in 2009-09-21 20:15:06.000000000 -0300
+@@ -686,7 +686,7 @@
+ install-binPROGRAMS: $(bin_PROGRAMS)
+ @$(NORMAL_INSTALL)
+ test -z "$(bindir)" || $(mkdir_p) "$(DESTDIR)$(bindir)"
+-@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT)
++@ENABLE_KAWA_FRONTEND_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) ./kawa$(EXEEXT) $(DESTDIR)$(bindir)/kawa$(EXEEXT)
+ @WITH_GCJ_DBTOOL_FALSE@@WITH_GCJ_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) kawa-bin$(EXEEXT) $(DESTDIR)$(bindir)/kawa-bin$(EXEEXT)
+ @ENABLE_SERVLET_TRUE@ $(INSTALL_PROGRAM_ENV) $(LIBTOOL_INSTALL) $(binPROGRAMS_INSTALL) cgi-servlet$(EXEEXT) $(DESTDIR)$(bindir)/cgi-servlet$(EXEEXT)
+
diff --git a/dev-scheme/kawa/kawa-1.10.ebuild b/dev-scheme/kawa/kawa-1.10.ebuild
new file mode 100644
index 000000000000..74950542bece
--- /dev/null
+++ b/dev-scheme/kawa/kawa-1.10.ebuild
@@ -0,0 +1,109 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Kawa, the Java-based Scheme system & Language Framework"
+HOMEPAGE="https://www.gnu.org/software/kawa/"
+XQTS_Ver="1_0_2"
+SRC_URI="mirror://gnu/kawa/${P}.tar.gz
+ xqtests? ( http://www.w3.org/XML/Query/test-suite/XQTS_${XQTS_Ver}.zip )"
+
+LICENSE="MIT public-domain
+ jemacs? ( GPL-2 )
+ krl? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="+awt echo2 +frontend jemacs krl +sax servlets +swing swt +xml xqtests"
+
+COMMON_DEPEND="( >=virtual/jdk-1.5 )
+ frontend? ( sys-libs/readline:0 )
+ sax? ( dev-java/sax:0 )
+ echo2? ( dev-java/echo2 )
+ swt? ( dev-java/swt:3.5 )
+ servlets? ( dev-java/servletapi:2.4 )"
+DEPEND="${COMMON_DEPEND}
+ xqtests? ( app-arch/unzip:0 )"
+RDEPEND="${COMMON_DEPEND}"
+
+xtestsuite="XQTS_${XQTS_Ver}"
+
+src_unpack () {
+ unpack kawa-${PV}.tar.gz || die
+ if use xqtests; then
+ mkdir "${WORKDIR}/${xtestsuite}" || die
+ cd "${WORKDIR}/${xtestsuite}" || die
+ unpack ${xtestsuite}.zip || die
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_configure() {
+ # speeds up one-shot ebuilds.
+ myconf="--disable-dependency-tracking"
+ if use jemacs && ! use swing; then
+ echo
+ einfo "Although the swing USE flag is disabled you chose to enable jemacs,"
+ einfo "so swing is enabled anyway."
+ echo
+ myconf="${myconf} --with-swing"
+ else
+ myconf="${myconf} $(use_with swing)"
+ fi
+ if use xqtests; then
+ myconf="${myconf} $(use_with xqtests XQTS=${WORKDIR}/${xtestsuite})"
+ fi
+ if use servlets; then
+ myconf="${myconf} --with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)"
+ fi
+ if use swt; then
+ myconf="${myconf} --with-swt=$(java-pkg_getjar swt-3.5 swt.jar)"
+ fi
+
+ econf ${myconf} $(use_enable frontend kawa-frontend) \
+ $(use_enable xml) \
+ $(use_enable krl brl) \
+ $(use_enable echo2) \
+ $(use_enable jemacs) \
+ $(use_with awt) \
+ $(use_with sax sax2) \
+ --with-java-source=$(java-pkg_get-source) || die "econf failed."
+}
+
+src_compile() {
+ emake -j1 || die "emake failed."
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+ rm -rv "${D}"/usr/share/java/ || die "rm -rv failed"
+
+ java-pkg_newjar kawa-${PV}.jar || die
+
+ java-pkg_dolauncher "kawa" --main kawa.repl || die "dolauncher failed"
+ java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \
+ "--xquery" || die "dolauncher qexo failed"
+ if use servlets; then
+ java-pkg_dolauncher "kawa-cgi-servlet" --main \
+ gnu.kawa.servlet.CGIServletWrapper || die
+ fi
+ if use jemacs; then
+ java-pkg_dolauncher "jemacs" --main \
+ gnu.jemacs.lang.ELisp || die
+ fi
+
+ use source && java-pkg_dosrc kawa/* gnu/*
+
+ dodoc ChangeLog TODO README NEWS || die
+ doinfo doc/kawa.info* || die
+ cp doc/kawa.man doc/kawa.2 || die
+ cp doc/qexo.man doc/qexo.2 || die
+ doman doc/*.2 || die
+}
diff --git a/dev-scheme/kawa/kawa-1.14.ebuild b/dev-scheme/kawa/kawa-1.14.ebuild
new file mode 100644
index 000000000000..f029a48fca02
--- /dev/null
+++ b/dev-scheme/kawa/kawa-1.14.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+
+JAVA_PKG_IUSE="source"
+
+inherit eutils java-pkg-2
+
+DESCRIPTION="Kawa, the Java-based Scheme system & Language Framework"
+HOMEPAGE="https://www.gnu.org/software/kawa/"
+XQTS_Ver="1_0_3"
+SRC_URI="mirror://gnu/kawa/${P}.tar.gz
+ xqtests? ( http://www.w3.org/XML/Query/test-suite/XQTS_${XQTS_Ver}.zip )"
+
+LICENSE="MIT public-domain
+ jemacs? ( GPL-2 )
+ krl? ( GPL-2 )"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE="+awt echo2 +frontend jemacs krl +sax servlets +swing swt +xml xqtests"
+
+CDEPEND="( >=virtual/jdk-1.6 )
+ frontend? ( sys-libs/readline:0 )
+ sax? ( dev-java/sax:0 )
+ echo2? ( dev-java/echo2 )
+ swt? ( dev-java/swt:3.5 )
+ servlets? ( java-virtuals/servlet-api:3.0 )"
+DEPEND="${CDEPEND}
+ xqtests? ( app-arch/unzip:0 )"
+RDEPEND="${CDEPEND}"
+
+xtestsuite="XQTS_${XQTS_Ver}"
+
+src_unpack () {
+ unpack kawa-${PV}.tar.gz || die
+ if use xqtests; then
+ mkdir "${WORKDIR}/${xtestsuite}" || die
+ cd "${WORKDIR}/${xtestsuite}" || die
+ unpack ${xtestsuite}.Zip || die
+ fi
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}.patch
+}
+
+src_configure() {
+ # speeds up one-shot ebuilds.
+ myconf="--disable-dependency-tracking"
+ if use jemacs && ! use swing; then
+ echo
+ einfo "Although the swing USE flag is disabled you chose to enable jemacs,"
+ einfo "so swing is enabled anyway."
+ echo
+ myconf="${myconf} --with-swing"
+ else
+ myconf="${myconf} $(use_with swing)"
+ fi
+ if use xqtests; then
+ myconf="${myconf} $(use_with xqtests XQTS=${WORKDIR}/${xtestsuite})"
+ fi
+ if use servlets; then
+ myconf="${myconf} --with-servlet=$(java-pkg_getjar servletapi-2.4 servlet-api.jar)"
+ fi
+ if use swt; then
+ myconf="${myconf} --with-swt=$(java-pkg_getjar swt-3.5 swt.jar)"
+ fi
+
+ econf ${myconf} $(use_enable frontend kawa-frontend) \
+ $(use_enable xml) \
+ $(use_enable krl brl) \
+ $(use_enable echo2) \
+ $(use_enable jemacs) \
+ $(use_with awt) \
+ $(use_with sax sax2) \
+ --with-java-source=$(java-pkg_get-source) || die "econf failed."
+}
+
+src_compile() {
+ emake -j1 || die "emake failed."
+}
+
+src_install () {
+ emake -j1 DESTDIR="${D}" install || die "emake install failed"
+ rm -rv "${D}"/usr/share/java/ || die "rm -rv failed"
+
+ java-pkg_newjar kawa-${PV}.jar || die
+
+ java-pkg_dolauncher "kawa" --main kawa.repl || die "dolauncher failed"
+ java-pkg_dolauncher "qexo" --main kawa.repl --pkg_args \
+ "--xquery" || die "dolauncher qexo failed"
+ if use servlets; then
+ java-pkg_dolauncher "kawa-cgi-servlet" --main \
+ gnu.kawa.servlet.CGIServletWrapper || die
+ fi
+ if use jemacs; then
+ java-pkg_dolauncher "jemacs" --main \
+ gnu.jemacs.lang.ELisp || die
+ fi
+
+ use source && java-pkg_dosrc kawa/* gnu/*
+
+ dodoc ChangeLog TODO README NEWS || die
+ doinfo doc/kawa.info* || die
+ cp doc/kawa.man doc/kawa.2 || die
+ cp doc/qexo.man doc/qexo.2 || die
+ doman doc/*.2 || die
+}
diff --git a/dev-scheme/kawa/metadata.xml b/dev-scheme/kawa/metadata.xml
new file mode 100644
index 000000000000..c7ff97f104a7
--- /dev/null
+++ b/dev-scheme/kawa/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+</maintainer>
+<longdescription lang="en">
+ Kawa is a full Scheme implementation. It implements almost all of R5RS,
+ plus some extensions. By default, symbols are case sensitive. It is
+ completely written in Java. Scheme functions and files are automatically
+ compiled into Java byte-codes. Kawa does some optimizations, and the
+ compiled code runs at reasonable speed.
+</longdescription>
+<use>
+ <flag name="awt">Assume AWT is available</flag>
+ <flag name="echo2">Enable support for the Echo2 web toolkit with
+ <pkg>dev-java/echo2</pkg></flag>
+ <flag name="frontend">Build "kawa" front-end program using
+ <pkg>sys-libs/readline</pkg></flag>
+ <flag name="jemacs">Build JEmacs</flag>
+ <flag name="krl">Build BRL emulation and KRL</flag>
+ <flag name="sax">Assume SAX2 is available with <pkg>dev-java/sax</pkg></flag>
+ <flag name="servlets">Build support for generating servlets with
+ <pkg>dev-java/servletapi</pkg></flag>
+ <flag name="swing">Assume Swing is available</flag>
+ <flag name="swt">Assume SWT is available with <pkg>dev-java/swt</pkg></flag>
+ <flag name="xqtests">Support XQuery Test Suite</flag>
+</use>
+</pkgmetadata>
diff --git a/dev-scheme/metadata.xml b/dev-scheme/metadata.xml
new file mode 100644
index 000000000000..30a22896bc74
--- /dev/null
+++ b/dev-scheme/metadata.xml
@@ -0,0 +1,41 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The dev-scheme category contains libraries and utilities relevant to the
+ Scheme programming language.
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie dev-scheme enthält Bibliotheken und Werkzeuge für die
+ Programmiersprache Scheme.
+ </longdescription>
+ <longdescription lang="es">
+ La categoría dev-scheme contiene librerías y utilidades referentes al
+ lenguaje de programación Scheme.
+ </longdescription>
+ <longdescription lang="ja">
+ dev-schemeカテゴリーにはSchemeプログラミング言語に関連したライブラリーと
+ ユーティリティが含まれます。
+ </longdescription>
+ <longdescription lang="nl">
+ De dev-scheme categorie bevat bibliotheken en hulpmiddelen voor het gebruik
+ van de programmeertaal Scheme.
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm dev-scheme chứa các thư viện và tiện ích liên quan
+ đến ngôn ngữ lập trình Scheme.
+ </longdescription>
+ <longdescription lang="it">
+ La categoria dev-scheme contiene librerie e utilità per il linguaggio di
+ programmazione Scheme.
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria dev-scheme contém bibliotecas e utilitários
+ referentes à linguagem de programação Scheme.
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria dev-scheme zawiera biblioteki i narzędzia związane z językiem
+ programowania Scheme.
+ </longdescription>
+</catmetadata>
+
diff --git a/dev-scheme/net-http/Manifest b/dev-scheme/net-http/Manifest
new file mode 100644
index 000000000000..390dd820ef8d
--- /dev/null
+++ b/dev-scheme/net-http/Manifest
@@ -0,0 +1,6 @@
+DIST net-http-0.3.1.tar.gz 26907 SHA256 4a89e51921604c0d1201df8524e49e68cbe4a831ff76382b045d8f9a920c8bfe SHA512 a85d45c2dca6572b8b66a98dfb6719acba4d5ed61bce88de56ea8a84dc41ff0068e7d5b6c864b32b41c608521b153a8fc785635740d65aa4c1bd6d28daaefc3a WHIRLPOOL 416cc530496fe05f569af18a6531d9925c024b07d96b694b8d8d7a31ae3ab1962dacae9f1e52cdd9640b97b47cbe2bcea24466a16fd97c77ca01199660ca2007
+EBUILD net-http-0.3.1-r1.ebuild 714 SHA256 619bc04c7a58fcbf45eff9d937c3378a6a57ef847d9048bac936b8ded21a7576 SHA512 8ddf616e18fd84b4226646d49f8676b4428def624b76198503661e8f3372eadabba78c7aa87637cadef5bde4fde2bca0fed77c4706ed489cf94efde4c441dcc9 WHIRLPOOL a6f8987b8294a5c3ddbcb69369449103153b2f7818d79ca3f7a13cc1e00045df60a675c00ac1e7bc701e2aab8255ccbab8229c503fc8586576e4b07766132df3
+EBUILD net-http-0.3.1.ebuild 617 SHA256 d64a33548752b193812d6f0d98d429c16ce04b1f865d63abffdecd7a9f029dc4 SHA512 e59febee0fcf05335c30e3b22643531ae620a9c5a20c80b5199667fa595053ac74ec93bec8015347ba30b5ac09ba990452a40af922638076d496ee028972155c WHIRLPOOL d9040b74441b5772ec66f57e1edde45a2aa21482cf93a25f08d8a7800fc74963279c868cca3e75e204c1df070f88074b55024012577dc03f1c8ca596d21ebfc6
+MISC ChangeLog 2492 SHA256 195db87325208ca688b2c2ad3478633218d9e8e5be7976cc3f16afce1140f0a5 SHA512 599314653f473b975feca9f7351f703ecc1615fce51f450693b2c24a9f818800cd8742cdbfb54ec768b2a0cad52e11975fd0032894a5b51b0fbbfaa78421c2e1 WHIRLPOOL 400a4dc24bb0d2a49cdaa75b42bdf4fcd6de291a72f47e9ddcae0921573fbacf8776f275d9a1f45cec7f9f23d4a83a58d2a0519e6743589a08e3790fd5189d30
+MISC ChangeLog-2015 1893 SHA256 20a45ace61ee770d4185158eb0d7be10b50229dec0b9d41d1e90717bff0a3025 SHA512 25c242a3043f28a04e26992ab3ec06a62199e836ae6a066dad852dc88d5fbe544c0645bfbd4452a23282e4e6d67c6fd968c334dc7d1a3fec3205aa8d0deea130 WHIRLPOOL 88004050c6935b8ff3fb74d6a7861cd2a5d46c0d1cded7ebb289e58fb71a45bd0720cabdf19a636e6ab1901c8689221e389bb0f300ef3dd5671405f9dec1d0b0
+MISC metadata.xml 261 SHA256 f53f2259ad8695c56f1457bcbd63ad8f51108ec471d728cd2fe6f523b36b09d8 SHA512 72682d17ec2b918131b551bd1ff41004965d3cf0c00d24222b34741d2eabf601cf36d4266be70ba7fb7bd0ab55d9dcb5b8e4ca41125bc31f176516797459c8c7 WHIRLPOOL 8ae9531cec25662e7d2a9df3c46039a66da22cb0becfc5cb2eacbb0ea5cfedf0491bd7110465ae37c4e8263b5a962f4973eed3dc569db0d524506943014444a2
diff --git a/dev-scheme/net-http/metadata.xml b/dev-scheme/net-http/metadata.xml
new file mode 100644
index 000000000000..4ac68c154bb0
--- /dev/null
+++ b/dev-scheme/net-http/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>sci-chemistry@gentoo.org</email>
+ <name>Gentoo Chemistry Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/dev-scheme/net-http/net-http-0.3.1-r1.ebuild b/dev-scheme/net-http/net-http-0.3.1-r1.ebuild
new file mode 100644
index 000000000000..44224e7189dd
--- /dev/null
+++ b/dev-scheme/net-http/net-http-0.3.1-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+DESCRIPTION="Library for doing HTTP client-side programming in Guile"
+HOMEPAGE="http://evan.prodromou.name/software/net-http/"
+SRC_URI="http://evan.prodromou.name/software/net-http/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ~ppc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE=""
+
+RDEPEND="dev-scheme/guile"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_configure() {
+ # Scheme doesn't compile
+ true
+}
+
+src_compile() {
+ # Scheme doesn't compile
+ true
+}
+
+src_install() {
+ local GUILE_DIR="/usr/share/guile/site"
+ insinto ${GUILE_DIR}
+ doins -r "${S}"/net
+ dodoc "${S}"/README
+}
diff --git a/dev-scheme/net-http/net-http-0.3.1.ebuild b/dev-scheme/net-http/net-http-0.3.1.ebuild
new file mode 100644
index 000000000000..ede4863a9d4b
--- /dev/null
+++ b/dev-scheme/net-http/net-http-0.3.1.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Library for doing HTTP client-side programming in Guile"
+HOMEPAGE="http://evan.prodromou.name/software/net-http/"
+SRC_URI="http://evan.prodromou.name/software/net-http/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+RDEPEND="dev-scheme/guile"
+DEPEND="${RDEPEND}"
+S="${WORKDIR}/${PN}"
+
+src_compile() {
+ # Scheme doesn't compile
+ true
+}
+
+src_install() {
+ local GUILE_DIR="/usr/share/guile/site"
+ dodir ${GUILE_DIR}
+ cp -R "${S}"/net "${D}"${GUILE_DIR}
+ dodoc "${S}"/README
+}
diff --git a/dev-scheme/racket/Manifest b/dev-scheme/racket/Manifest
new file mode 100644
index 000000000000..530bdbfb8cc6
--- /dev/null
+++ b/dev-scheme/racket/Manifest
@@ -0,0 +1,11 @@
+DIST racket-5.3.6-src-unix.tgz 19278914 SHA256 7fe0ffc1231f888cd481f175e428f0217257dd136d2513bde73954af5a7cfb8a SHA512 08e8b599e800f41c9497b07e163ed43ae02ae9d9bcc3e20da31eb2f6aa20aa4b0071db51e93696ae1bd644ddfa1c3aea587a334db24ced4a3654dcf5da138e8f WHIRLPOOL c2c34de08d0ec9942f040cc23ea7f2a9bb743d0dcc7125e1b5336b0845482e67abd46b1b5cb821e898c3db50767312f3a27e386a0b7046bf068feb23a1b1bf52
+DIST racket-6.7-src-builtpkgs.tgz 116773863 SHA256 3608a2d8b5dc5b755f014972140594e39110c5c391b556da43aa349d64c392ed SHA512 63fdc18e72fa152434d0fb83e926c28d2b2d16c93a0a2be0c14d445671c1bff5daf500e9917e41fa2f60454377de0cc10d226c321402abf4bad55a15ac74f127 WHIRLPOOL d4ee7c9cd61f79d7d6d5928ed697085a8f06c377cd80c10bfd68b5c250b3e901dcc8fad56d223ba27e486d00f7b926be49268a580137964023948d53837e05e5
+DIST racket-6.9-src-builtpkgs.tgz 118620147 SHA256 2b87f1abbeb3bf9fa981fcfb9d7b53886d8bb3591a35b7f730cbd429fe238c60 SHA512 14144c408521034b9c57925cd01ca25488cdcbcd3f8b943074f8ea434b84bdd76a73095ef920051a925929e3fcb4707bfd6b1585a7debaf23069f1a0db06298b WHIRLPOOL f00256a0f7b53748e1b3cb4fee43c769c8fd3b3af42ff765a71c6d68d3fc89c89812ab7cf7c0c5028f1ae5ae0d70a56402b42b9db18d5a11815b2195d8a73417
+DIST racket-minimal-6.7-src-builtpkgs.tgz 11213736 SHA256 4203d9b51a0de7ea549db966cfa49a736f8605ab51e2f198cbdb9cfaf428b0f3 SHA512 59c885b535ed8e91a3b2a524bbc38661a5c19848ded935cc9f068c3fd6c8da39fc0755ef8df3a69cce3d50b96ee30d91972d6a4f6d5414eefb80bdc1ede6a285 WHIRLPOOL aadcd035595325320cd7d372f4b7773ef66b542056b0140066279fe9aa9bcb054d25157774040dcc65749ac528f0297e4a30787e2a37d52fae6888b005e62490
+DIST racket-minimal-6.9-src-builtpkgs.tgz 11065867 SHA256 0b8eb43c16e2380ff47fd7883d7886a1d34935ead3546cde9e292318ddefba87 SHA512 4d619e2b2efc852b24f925b51fe452316693ce850f71298fcb2a0009fe5770c15fbe88830f8a214cbfd4e0be57e6bd47ca963c0bd919bd5fc1f986f96d7a12f5 WHIRLPOOL 534f13e0e945ba5536101e92e120da6a5e8123daf416c04b8d0b596cd54b05fc79ec5dd6dddbddef8a6cd45b06e3b51fd735590e1896373fbe44afc37329de42
+EBUILD racket-5.3.6.ebuild 1966 SHA256 9415b7ee815a0237161256991e33a02e0431110a385037f5fdf10a96bb4235d5 SHA512 6d653d903955e1336064c3f7f38375d7deed674af2a585ec0d3ff1978b1f0d40f97a631a007a128604f82a6d9bad91b1636f19baa68faffe0da9fea711b33389 WHIRLPOOL e1d84b241d4cb164eaeee8ef355c02ef397c0147838ad1d1aa97f21690f19e5e27c98f31ebb500d4540cf755e9c78c40ae3951cdd060d391a99fc71b481a9801
+EBUILD racket-6.7.ebuild 1833 SHA256 ce13e4eb40c5408d6f91c71e711df7a6f2078b5806c0c86e6b94262eef7f1534 SHA512 c67c71c65491ee53b3fd0e3d33d44a7a5af6fdbd6322a985c6f52d691a51d043b1226231a7dbad5d872ad8b34e417d10e515146127f18789c2ced00264c44f3c WHIRLPOOL 93651f4326f67ab3e80349cd8ef1a08f0a8538ea3b68b245918f0fac5ea537e4ae4d7fc7ed73ad05b486a36d4755ef07ad5d765ce42f378b2171a69da2689096
+EBUILD racket-6.9.ebuild 3882 SHA256 c186169a18bd7eecf42ddb828d565bb74bbdf38234c596c87bf1d01e58eeab22 SHA512 a4596804668d509c03f1c5ac958a8c959b2d64525c214f9f6b2688de3d6a458262bff9bef3ca48f58faab5bcf3bc2999037f16c0406e31e8d6a0ebdc4c031a44 WHIRLPOOL 1b2c51b55d1dcbea10d19177050e3c57b2807c79c936a8be1196302914e81a9bfe64b78fd80035f89476f33d1e4911066cc884a9ff8c5293d7d46d75d8b7bc12
+MISC ChangeLog 5000 SHA256 49eec6574beeab694fceee5ea52c4411d6f8f6b95d303f59c4af2c5f54d72509 SHA512 7e35729ac73dd8f81cee94af713dfcc0c2027dc127485684f3fe27a886e17cd0a74b47c0a1fe159867925555f2aa066328c4f0a2f7e484725ad77acab143b79a WHIRLPOOL 7de6dae39e373936698df9e606b4e9a374c8528933909275021d61bbef78c3a5f50646355749cfa5e09ff65c0c926ecff1534b919b6459a63cb9fc3d0b096be5
+MISC ChangeLog-2015 22122 SHA256 cdd3385e9ad33dad2165e70c6e3ba27e49ec802ab43bf53e409d17c91438a8d9 SHA512 b7ea26b80aa58578eb4ccc650dbaa44e178f4a5c29b83df02120985aef85ddd65e76ccd01e3a978c52ccdd626551727bc12753b668b0da773520d5f0d71cc467 WHIRLPOOL 656d08b9e11e02152a8104150f9a150a76bd7033b247808d57c634c233885f92dd37e92a28ff8c0217ae03eba4039f715dbd5d8c93e817920bb97a688cf34d51
+MISC metadata.xml 1713 SHA256 f5d3056e1eb9b7ff3edd0fe25e48daf67b350af3916ba689bbf06b1f92813615 SHA512 03ede908f3fd71dca9e60f6064ba626386506f0b2eb310d6668f79cb48a6d7a12c04765302a0375839dea651526add8773e9b43bb888fb1b671f36b89a70003c WHIRLPOOL 95cb4919c566133bb345cbb3694ed817ae4ab9fff18c1fef57c0e5b0ddfff2b14baf4f582e8a3ed603ef923f73606c2217be3b8a5425e877ae3b5356dd391f67
diff --git a/dev-scheme/racket/metadata.xml b/dev-scheme/racket/metadata.xml
new file mode 100644
index 000000000000..559734ba2c14
--- /dev/null
+++ b/dev-scheme/racket/metadata.xml
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+==Grow your Program==
+Racket's interactive mode encourages experimentation, and quick scripts easily compose into larger systems. Small scripts and large systems both benefit from native-code JIT compilation. When a system gets too big to keep in your head, you can add static types.
+
+==Grow your Language==
+Extend Racket whenever you need to. Mold it to better suit your tasks without sacrificing interoperability with existing libraries and without having to modify the tool chain. When less is more, you can remove parts of a language or start over and build a new one.
+
+==Grow your Skills==
+Whether you're just starting out, want to know more about programming language applications or models, looking to expand your horizons, or ready to dive into research, Racket can help you become a better programmer and system builder.
+ </longdescription>
+ <use>
+ <flag name="backtrace">
+ Support GC backtrace dumps
+ </flag>
+ <flag name="futures">
+ Enable racket/future library for fine-grained hardware parallelism
+ </flag>
+ <flag name="places">
+ Enable racket/place library for share-nothing parallelism and message-passing communication. Compared to futures, places are heavyweight, but they have a simpler performance model.
+ </flag>
+ <flag name="plot">
+ Enable plot libraries
+ </flag>
+ <flag name="threads">
+ Enable support for green threads
+ </flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-scheme/racket/racket-5.3.6.ebuild b/dev-scheme/racket/racket-5.3.6.ebuild
new file mode 100644
index 000000000000..50d85cd87bb9
--- /dev/null
+++ b/dev-scheme/racket/racket-5.3.6.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="4"
+
+# for live ebuilds uncomment inherit git, comment SRC_URI and empty KEYWORDS
+
+inherit eutils
+#inherit git-2
+
+DESCRIPTION="General purpose, multi-paradigm programming language in the Lisp-Scheme family."
+HOMEPAGE="http://racket-lang.org/"
+SRC_URI="http://download.racket-lang.org/installers/${PV}/${PN}/${P}-src-unix.tgz"
+#SRC_URI="http://pre.racket-lang.org/installers/plt-${PV}-src-unix.tgz"
+EGIT_REPO_URI="git://git.racket-lang.org/plt.git"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 x86"
+IUSE="backtrace cairo doc futures jit places plot threads X"
+
+RDEPEND="dev-db/sqlite:3 x11-libs/cairo[X?] virtual/libffi"
+
+# see bug 426316: racket/draw (which depends on cairo) is sometimes used in compile-time code or when rendering documentation
+DEPEND="${RDEPEND} x11-libs/cairo !dev-tex/slatex"
+
+EGIT_SOURCEDIR="${WORKDIR}/${P}"
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ #remove bundled libraries
+ rm -rf foreign/libffi/
+
+ sed -e "s,docdir=\"\${datadir}/${PN}/doc,docdir=\"\${datadir}/doc/${PF}," -i configure || die
+}
+
+src_configure() {
+# according to vapier, we should use the bundled libtool
+# such that we don't preclude cross-compile. Thus don't use
+# --enable-lt=/usr/bin/libtool
+ econf \
+ $(use_enable X gracket) \
+ $(use_enable plot) \
+ $(use_enable doc docs) \
+ --enable-shared \
+ $(use_enable jit) \
+ --enable-foreign \
+ $(use_enable places) \
+ $(use_enable futures) \
+ $(use_enable backtrace) \
+ $(use_enable threads pthread) \
+ --disable-perl \
+ $(use_with X x)
+}
+
+src_compile() {
+ emake || die
+}
+
+src_install() {
+ # deal with slatex
+ insinto /usr/share/texmf/tex/latex/slatex/
+ doins ../collects/slatex/slatex.sty
+
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use X; then
+ newicon ../collects/icons/PLT-206.png drracket.png
+ make_desktop_entry drracket "DrRacket" drracket "Development"
+ fi
+}
diff --git a/dev-scheme/racket/racket-6.7.ebuild b/dev-scheme/racket/racket-6.7.ebuild
new file mode 100644
index 000000000000..a94bf65dbc89
--- /dev/null
+++ b/dev-scheme/racket/racket-6.7.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils pax-utils
+
+DESCRIPTION="General purpose, multi-paradigm programming language in the Lisp-Scheme family."
+HOMEPAGE="http://racket-lang.org/"
+SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )"
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="amd64 ~arm x86"
+IUSE="doc +futures +jit minimal +places +threads +X"
+REQUIRED_USE="futures? ( jit )"
+
+# see bug 426316: racket/draw (which depends on cairo) is sometimes used in compile-time code or when rendering documentation
+RDEPEND="dev-db/sqlite:3
+ x11-libs/cairo[X?]
+ virtual/libffi"
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ default
+ #remove bundled libraries
+ rm -rf foreign/libffi/ || die "Bundled libraries libffi was not removed"
+}
+
+src_configure() {
+# according to vapier, we should use the bundled libtool
+# such that we don't preclude cross-compile. Thus don't use
+# --enable-lt=/usr/bin/libtool
+ econf \
+ $(use_enable X gracket) \
+ $(use_enable doc docs) \
+ --enable-shared \
+ $(use_enable jit) \
+ --enable-foreign \
+ $(use_enable places) \
+ $(use_enable futures) \
+ --enable-float \
+ --enable-libffi \
+ $(use_enable threads pthread)
+}
+
+src_compile() {
+ if use jit; then
+ pushd racket
+ emake cgc
+ pax-mark m .libs/racketcgc
+ emake 3m
+ pax-mark m .libs/racket3m
+ popd
+ fi
+ emake
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ if ! use minimal; then
+ #racket now comes with desktop files, but DESTDIR is mishandled
+ for f in /usr/share/applications/{drracket,slideshow}.desktop; do
+ sed -e "s|${D}||g" \
+ -i "${D}/${f}" || die "Failed to patch '${f}'"
+ done
+ fi
+}
diff --git a/dev-scheme/racket/racket-6.9.ebuild b/dev-scheme/racket/racket-6.9.ebuild
new file mode 100644
index 000000000000..069d5423011f
--- /dev/null
+++ b/dev-scheme/racket/racket-6.9.ebuild
@@ -0,0 +1,132 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit pax-utils
+
+DESCRIPTION="General purpose, multi-paradigm Lisp-Scheme programming language"
+HOMEPAGE="http://racket-lang.org/"
+SRC_URI="minimal? ( http://download.racket-lang.org/installers/${PV}/${PN}-minimal-${PV}-src-builtpkgs.tgz ) !minimal? ( http://download.racket-lang.org/installers/${PV}/${P}-src-builtpkgs.tgz )"
+
+# The main license is LGPL-3, as described here:
+#
+# https://download.racket-lang.org/license.html
+#
+# However, there are traces of plain-GPL code, such as the routines in
+# collects/file/gzip.rkt that were based on GPLed C code, or the Cygwin
+# code in src/racket/dynsrc/init.cc. To err on the side of correctness,
+# we list GPL-3+, too.
+#
+LICENSE="GPL-3+ LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="doc +futures +jit minimal +places +threads +X"
+REQUIRED_USE="futures? ( jit )"
+
+# According to the Racket README, the dependencies of racket/draw should
+# only be needed at runtime, unless you're building the documentation:
+#
+# http://docs.racket-lang.org/draw/libs.html
+#
+# However, we have one report where the build system tried to use Pango,
+# even with USE="-doc". To be safe, we require the racket/draw
+# dependencies unconditionally at both build- and run-time.
+#
+# References:
+#
+# * bug 426316
+# * bug 486016
+#
+# The Racket GUI has some additional dependencies,
+#
+# http://docs.racket-lang.org/gui/libs.html
+#
+# that may truly be runtime-only.
+#
+RDEPEND="dev-db/sqlite:3
+ media-libs/libpng:0
+ x11-libs/cairo[X?]
+ x11-libs/pango[X?]
+ virtual/libffi
+ virtual/jpeg:0
+ X? ( x11-libs/gtk+[X?] )"
+
+# The blocker on dev-tex/slatex is because they both ship a "slatex"
+# executable. The slatex that comes with racket is apparently a copy of
+# dev-tex/slatex that has been modified to support only mzscheme. It's
+# not clear if dev-tex/slatex can be used as a replacement for the
+# racket version, but the racket version almost certainly cannot replace
+# dev-tex/slatex.
+#
+# If dev-tex/slatex will work for racket, then maybe we could just pull
+# it in as a dependency and remove /usr/bin/slatex in the src_install
+# for racket. Otherwise, we may have to rename racket's version to
+# somethine like slatex-racket, assuming that doesn't break
+# anything. This is all bug 547398.
+#
+RDEPEND="${RDEPEND} !dev-tex/slatex"
+
+DEPEND="${RDEPEND}"
+
+S="${WORKDIR}/${P}/src"
+
+src_prepare() {
+ default
+ rm -r foreign/libffi || die 'failed to remove bundled libffi'
+}
+
+src_configure() {
+ # According to vapier, we should use the bundled libtool
+ # such that we don't preclude cross-compile. Thus don't use
+ # --enable-lt=/usr/bin/libtool
+ econf \
+ --enable-shared \
+ --enable-float \
+ --enable-libffi \
+ --enable-foreign \
+ --disable-libs \
+ --disable-strip \
+ $(use_enable X gracket) \
+ $(use_enable doc docs) \
+ $(use_enable jit) \
+ $(use_enable places) \
+ $(use_enable futures) \
+ $(use_enable threads pthread)
+}
+
+src_compile() {
+ if use jit; then
+ # When the JIT is enabled, a few binaries need to be pax-marked
+ # on hardened systems (bug 613634). The trick is to pax-mark
+ # them before they're used later in the build system. The
+ # following order for racketcgc and racket3m was determined by
+ # digging through the Makefile in src/racket to find out which
+ # targets would build those binaries but not use them.
+ pushd racket
+ emake cgc-core
+ pax-mark m .libs/racketcgc
+ pushd gc2
+ emake all
+ popd
+ pax-mark m .libs/racket3m
+ popd
+ fi
+
+ default
+}
+
+src_install() {
+ default
+
+ if use jit; then
+ # The final binaries need to be pax-marked, too, if you want to
+ # actually use them. The src_compile marking get lost somewhere
+ # in the install process.
+ for f in mred mzscheme racket; do
+ pax-mark m "${D}/usr/bin/${f}"
+ done
+
+ use X && pax-mark m "${D}/usr/$(get_libdir)/racket/gracket"
+ fi
+}
diff --git a/dev-scheme/scheme48/Manifest b/dev-scheme/scheme48/Manifest
new file mode 100644
index 000000000000..7188338f1714
--- /dev/null
+++ b/dev-scheme/scheme48/Manifest
@@ -0,0 +1,7 @@
+AUX 50scheme48-gentoo.el 198 SHA256 6aaa0729ea2383855c6d3c6e254b0656ad03fdd97e5ea80de99a04e7c0585024 SHA512 874355b78d5ddcc55add22d7171ae92e4115c8e84883a89e76848ad362c070c00d8ec12e1841eabd1bc0d2a786d789e36f3f109b0d3e5dd879a9faca1fb8e4b7 WHIRLPOOL 0e66bdfd7cd314f809f3d43d4fe17b2bab252109179c2efdf178db996246cec1f7a8780b7ac9bc11f00d6bfb3a8698a6fd2622bd66a1efc655bfa98019793964
+AUX CVE-2014-4150.patch 407 SHA256 cd94bc0d5bf7b9e4b51b2d74f3db4ccc2b2f8a86b661fc2eb33395c89594f9c3 SHA512 b15b5c9ccc1cf2fba1c15244a4ec0a08d49188fc3476ee1abea74d4415cbd59e94d1a5ad7be39b73fd82a393e29a13569a8178017b6ca82320646a1ac9260eb7 WHIRLPOOL b99112f56aea66ccea044e93e140beb05ea10e8c614bc9aa46348789a52b66ece9f977cc3fafdfb09c938aae5d1af969050049fa6f096438533785df610c343e
+DIST scheme48-1.9.2.tgz 3951356 SHA256 9c4921a90e95daee067cd2e9cc0ffe09e118f4da01c0c0198e577c4f47759df4 SHA512 a854e3c6f5b02c585fa125899dee276500b91e21cc773202fd4cb84f2e0566a0e19cc34b5f96a3265fab6bf06422e869a2e48433eb2d8fac83a1179fda62e2d1 WHIRLPOOL 6774a5488172b905577cfedabf454e54ec175df7582ea607ce99b39f6cedfa24366ecf1bcec3d60bc35132d483316cd192dcd9773e6d37af59c71de7ac0eed88
+EBUILD scheme48-1.9.2-r1.ebuild 1458 SHA256 3d677da27f86c593a2c8fe742d7d8e49fb17e282a5b3d90a7948bd8d1c8aec35 SHA512 28998c63133fd2e757ee3652bb06bcc2b34d36756aa6de9b7567688b48606b931373b079768e2c19c570d4b8b4c9fd8d4052ae72da54a59a14a4ad919a2abdf0 WHIRLPOOL 5c4e3f995a3f50d6a6165f2ca3dd8cba678f6f7428fa1f204d65a3835dcc733c7e6908928328c2082251698f545462a4e03b81d1e47fa133b31f39357263b7cc
+MISC ChangeLog 3393 SHA256 cce93c43b352597f71248a0a80aff6cc7a9eb5d9b4878dd59dc235d2de6d4a21 SHA512 5505f81fca2f9ef95de21c04e1c0ec4e03866d7eb2c4bef1c94c2a34397082309b02c965b76b80d37fb31cd06c76640e2ee0635629f525511dc6541707b1e035 WHIRLPOOL d1939d2cb58179a59e6c241711e9acbb72bdd5d005bc230a1b58e075c6629aa4192b1809bae19213014d0a8285a4bcd3f32fee299ad0c165a73c92af0681afde
+MISC ChangeLog-2015 3504 SHA256 f307c202bb56b8915c993e42f19c9aa77c15cc6f6bc4e41aa50d918a258b16cb SHA512 cf1f1ecaea63310e087915bc3a75fa9e354c2f9fb5be7cf27a03ad7fda4df637d7d4369120f3bb329b1c8522061cfc4653e78db266450dad2f6c142732d45df5 WHIRLPOOL d2a2a8b237e72c215de604b0358dbe5f8736f1cb35fd569fd0741ac5d20bacbe236eefd191a720e820c8e8d04451edb5745561af060a5fee77fab4dee1bfe454
+MISC metadata.xml 535 SHA256 d18800c0737b5164e2675f94f20e02364441b2601241fe8a9de29596260ed73f SHA512 b7fc727061a594f67a9ff8ec36dd64150cebf6813b1438fb5173b7679ce65bda92ba5ea9501816cfed738797b012f198da27622a1fb038800181dd16c2d50917 WHIRLPOOL b704deb87309050f1620d0ed52038897fdf332f002309a7a042d0b0eaa9552e9de63c75cfd08f4f2c71c0a23d9979295a988e80833d741c15778190e20752055
diff --git a/dev-scheme/scheme48/files/50scheme48-gentoo.el b/dev-scheme/scheme48/files/50scheme48-gentoo.el
new file mode 100644
index 000000000000..fe378e6a7081
--- /dev/null
+++ b/dev-scheme/scheme48/files/50scheme48-gentoo.el
@@ -0,0 +1,10 @@
+;;; scheme48 site-lisp configuration
+
+(add-to-list 'load-path "@SITELISP@")
+
+(setq scheme-program-name "scheme48")
+(autoload 'run-scheme
+ "cmuscheme48"
+ "Run an inferior Scheme process."
+ t)
+
diff --git a/dev-scheme/scheme48/files/CVE-2014-4150.patch b/dev-scheme/scheme48/files/CVE-2014-4150.patch
new file mode 100644
index 000000000000..9457fbe7b3c0
--- /dev/null
+++ b/dev-scheme/scheme48/files/CVE-2014-4150.patch
@@ -0,0 +1,11 @@
+--- a/emacs/cmuscheme48.el 2012-12-28 01:43:30.000000000 +0900
++++ b/emacs/cmuscheme48.el 2016-07-05 20:06:19.200173816 +0900
+@@ -58,7 +58,7 @@
+ (let ((end (point)))
+ (beginning-of-defun)
+ (if losep
+- (let ((loser "/tmp/s48lose.tmp"))
++ (let ((loser (make-temp-file "s48lose")))
+ (write-region (point) end loser)
+ (scheme48-load-file loser))
+ (scheme48-send-region (point) end)))))
diff --git a/dev-scheme/scheme48/metadata.xml b/dev-scheme/scheme48/metadata.xml
new file mode 100644
index 000000000000..afd07b1fd150
--- /dev/null
+++ b/dev-scheme/scheme48/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+</maintainer>
+<longdescription lang="en">
+Scheme 48 is an implementation of Scheme written by Richard Kelsey and Jonathan
+Rees. It is based on a byte-code interpreter and is designed to be used as a
+testbed for experiments in implementation techniques and as an expository tool.
+</longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild b/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild
new file mode 100644
index 000000000000..fb3e5b00945b
--- /dev/null
+++ b/dev-scheme/scheme48/scheme48-1.9.2-r1.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit elisp-common multilib eutils flag-o-matic
+
+DESCRIPTION="Scheme48 is an implementation of the Scheme Programming Language"
+HOMEPAGE="http://www.s48.org/"
+SRC_URI="http://www.s48.org/${PV}/${P}.tgz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="doc emacs"
+
+DEPEND="emacs? ( virtual/emacs )"
+RDEPEND="${DEPEND}"
+SITEFILE=50scheme48-gentoo.el
+
+src_prepare() {
+ epatch "${FILESDIR}"/CVE-2014-4150.patch
+}
+
+src_configure() {
+ append-cflags -fno-strict-aliasing
+ econf --docdir=/usr/share/doc/${P}
+}
+
+src_compile() {
+ emake
+ if use emacs; then
+ elisp-compile "${S}"/emacs/cmuscheme48.el
+ fi
+}
+
+src_install() {
+ # weird parallel failures!
+ emake -j1 DESTDIR="${D}" install
+
+ if use emacs; then
+ elisp-install ${PN} emacs/cmuscheme48.el emacs/*.elc
+ elisp-site-file-install "${FILESDIR}"/${SITEFILE}
+ fi
+
+ dodoc README
+ if use doc; then
+ dodoc doc/*.txt
+ docinto src
+ dodoc doc/src/*
+ pushd "${ED}/usr/share/doc/${P}" > /dev/null
+ install -dm755 html
+ mv *.html *.css *.gif html/
+ popd > /dev/null
+ else
+ pushd "${ED}/usr/share/doc/${P}" > /dev/null
+ rm -f *.html *.css *.gif
+ rm -f manu*
+ popd > /dev/null
+ fi
+
+ #this symlink clashes with gambit
+ rm "${ED}"/usr/bin/scheme-r5rs || die
+}
+
+pkg_postinst() {
+ use emacs && elisp-site-regen
+}
+
+pkg_postrm() {
+ use emacs && elisp-site-regen
+}
diff --git a/dev-scheme/scm/Manifest b/dev-scheme/scm/Manifest
new file mode 100644
index 000000000000..685342cf5fd3
--- /dev/null
+++ b/dev-scheme/scm/Manifest
@@ -0,0 +1,6 @@
+AUX scm-5.5.6-multiplefixes.patch 3014 SHA256 8c709dc2df7d3cd9415fdd090e8dd3ab4fd7a8f45444bd5388e6891056f1c279 SHA512 e746ebca91e26569354f09403cf1610c745281af3477d92587a8b52de704998a61d1aeac75bfadfed8aead84243aa01f626438399cfffe92c73bba9fa9564f22 WHIRLPOOL 2881391cfa12d6b2de0959c0386ceebabd192a5e8fa5ad2591630e8695eaa77d7205ac5ba889423c8413359f511b08afc33014eeecdd8aca540cb7fd81dfc787
+DIST scm-5e6.zip 912968 SHA256 97f1b284aacfca01ae44e936dd8468c1d68b0b323776ab5da1d6ec7cb737c1df SHA512 897370f043401a7961eb1c2e22c951e2144505a1670e328e2c3eab33d52da83f195b873fb7cf8486f412ae52316cfc437c9f2da1432ade70f82eb0da12c2f852 WHIRLPOOL 6734e610e50691e869ad3daeb909bc66d24804239787effadb1499bdad2b7e57583ad02e9e9bec9fb8684184f963ee4473ebb1571139cf53da433e07df43ffc9
+EBUILD scm-5.5.6-r3.ebuild 3764 SHA256 544b4553891d8436c18d351fc656703a31ca42840d7d79ebeebdfbd88792e802 SHA512 610a2dc42ad7b69764b05bade539b3fee5f1310577247e5a80c086a4220cb73330d582835aa2410e4741fea6bb63d03042a4b71ad8605c1126444cb175d7adac WHIRLPOOL 27fe64bb7c1f3d22fb4235bf98d643b1a87dc7e08f8f2427d9d3bab2a3b91060e069b1c7365dd76542e525a6f0f74662eb3cb9696a011d9c15c48b3ba3da2421
+MISC ChangeLog 3296 SHA256 41dda89a6940b0fc34b07877e24118409143a2a75b5f4b763f16343bdf62db04 SHA512 fc281767cece0951b1965d961f516bf1c71f072a338f740a32430810ad481a43b4ba70d85334c9d93cd9631b077331036dc841334b99921e1bf3b5b5003f5a3c WHIRLPOOL 7910f400e1d9dbe908ec5c09688bc2da6ab5bd1c6e21507d1f39900cf7db983295ad7c39950d47294021579411729d5818f560be87f3db5382d0ab906c0a0c73
+MISC ChangeLog-2015 2067 SHA256 fbd2fe19ebde733329f5b70fb7b8da59bb0eceab3921844b34e7163861cfc867 SHA512 d9075d90f26229e1a4b406ab0a5dee525acd3303a61c02185f428fd5075beefcf10a4206412da06d9ab9ffe6e00f1adfbcc4f48aa768c76a5900843241bf4e05 WHIRLPOOL 1bbeaaf57566a026082210cb016fc7182aa594c4b3907453365150b519a06054e0b561fc70fc53945672fe33e18241edb4371085a69f2c3eec38cbfb6dff5c74
+MISC metadata.xml 1636 SHA256 9c3eb952fd66cbe1df88abf8cf60fa16143a039e9f2b995a478bf7f4f2ac3904 SHA512 f0936782a77db52a61d47c86f9d638c66ac9848e8b62fcef182b5346abd55e83a5f275b6a60c865551dd134dcb85a77906d4662f91ed505d167608f8901dc0d0 WHIRLPOOL eece3ddadb2b9d2188734e69c71389905275954986940f8fe786c1166116864e27dcecbda499f2e36121ce5e8b0ff4818573366eadaf8c31e2052a31a1df95cf
diff --git a/dev-scheme/scm/files/scm-5.5.6-multiplefixes.patch b/dev-scheme/scm/files/scm-5.5.6-multiplefixes.patch
new file mode 100644
index 000000000000..8636c47c7185
--- /dev/null
+++ b/dev-scheme/scm/files/scm-5.5.6-multiplefixes.patch
@@ -0,0 +1,81 @@
+diff -Naur scm.old//build.scm scm//build.scm
+--- scm.old//build.scm 2009-08-03 15:35:57.000000000 -0300
++++ scm//build.scm 2010-04-16 15:52:25.000000000 -0300
+@@ -540,7 +540,7 @@
+ (graphics *unknown* "-I/usr/X11/include -DX11" "-lX11"
+ "/usr/X11/lib/libX11.sa" () ())
+ (editline *unknown* "" "-lreadline" "/usr/lib/libreadline.a" () ())
+- (termcap *unknown* "" "-ltermcap" "/usr/lib/libtermcap.a" () ())
++ (termcap *unknown* "" "-lncurses" "/usr/lib/libncurses.a" () ())
+ (debug *unknown* "-g" "-g" #f () ())
+ (socket *unknown* "" "" #f () ())
+ (lib *unknown* "" "" #f () ("scmmain.c"))
+diff -Naur scm.old//Makefile scm//Makefile
+--- scm.old//Makefile 2009-08-03 15:38:21.000000000 -0300
++++ scm//Makefile 2010-04-16 15:51:11.000000000 -0300
+@@ -178,18 +178,9 @@
+ $(BUILD) -f udscm4.opt -o udscm4 -s $(IMPLPATH)
+ -rm $(ofiles) scmmain.o
+ dscm4: udscm4 $(ifiles) require.scm
+- if [ -f /proc/sys/kernel/randomize_va_space -a\
+- "`cat /proc/sys/kernel/randomize_va_space`" != "0" ]; then {\
+- cat /proc/sys/kernel/randomize_va_space > randomize_va_space.tmp;\
+- echo 0 > /proc/sys/kernel/randomize_va_space;\
+- } fi
+ -rm -f slibcat implcat scm~
+ -mv scm scm~
+ echo "(quit)" | $(SETARCH) ./udscm4 -no-init-file -o scm
+- if [ -f randomize_va_space.tmp ]; then {\
+- cat randomize_va_space.tmp > /proc/sys/kernel/randomize_va_space;\
+- rm randomize_va_space.tmp;\
+- } fi
+
+ # dumpable R5RS interpreter
+ udscm5.opt:
+@@ -199,20 +190,10 @@
+ udscm5: $(cfiles) $(ufiles) $(hfiles) build.scm build udscm5.opt
+ $(BUILD) -f udscm5.opt -o udscm5 -s $(IMPLPATH)
+ -rm $(ofiles) scmmain.o
+- strip udscm5
+ dscm5: udscm5 $(ifiles) require.scm
+- if [ -f /proc/sys/kernel/randomize_va_space -a\
+- "`cat /proc/sys/kernel/randomize_va_space`" != "0" ]; then {\
+- cat /proc/sys/kernel/randomize_va_space > randomize_va_space.tmp;\
+- echo 0 > /proc/sys/kernel/randomize_va_space;\
+- } fi
+ -rm -f slibcat implcat scm~
+ -mv scm scm~
+ echo "(quit)" | $(SETARCH) ./udscm5 -no-init-file -r5 -o scm
+- if [ -f randomize_va_space.tmp ]; then {\
+- cat randomize_va_space.tmp > /proc/sys/kernel/randomize_va_space;\
+- rm randomize_va_space.tmp;\
+- } fi
+ $(MAKE) check
+ $(MAKE) checkmacro
+
+@@ -394,7 +375,7 @@
+ PREVDOCS = prevdocs/
+ html: $(htmldir)scm_toc.html $(htmldir)Xlibscm_toc.html $(htmldir)hobbit_toc.html
+
+-TEXI2HTML = /usr/local/bin/texi2html -split -verbose
++TEXI2HTML = /usr/bin/texi2html -split -verbose
+
+ $(htmldir)scm_toc.html: Makefile $(texifiles)
+ ${TEXI2HTML} scm.texi
+@@ -431,7 +412,7 @@
+
+ rpm_prefix=$(HOME)/rpmbuild/
+
+-prefix = /usr/local/
++prefix = /usr/
+ exec_prefix = $(prefix)
+ # directory where `make install' will put executable.
+ bindir = $(exec_prefix)bin/
+@@ -498,7 +479,6 @@
+ mkdir -p $(DESTDIR)$(bindir)
+ mkdir -p $(DESTDIR)$(man1dir)
+ -cp scm scmlit $(DESTDIR)$(bindir)
+- -strip $(DESTDIR)$(bindir)scmlit
+ -cp scm.1 $(DESTDIR)$(man1dir)
+ mkdir -p $(DESTDIR)$(libscmdir)
+ test -f $(DESTDIR)$(libscmdir)require.scm || \
diff --git a/dev-scheme/scm/metadata.xml b/dev-scheme/scm/metadata.xml
new file mode 100644
index 000000000000..04609e08685d
--- /dev/null
+++ b/dev-scheme/scm/metadata.xml
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+SCM is a Scheme implementation conforming to Revised5 Report on the Algorithmic Language Scheme and the IEEE P1178 specification.
+ </longdescription>
+ <use>
+ <flag name="arrays">Support for arrays, uniform-arrays and
+ uniform-vectors.</flag>
+ <flag name="bignums">Support for large precision integers.</flag>
+ <flag name="cautious">SCM will always check the number of arguments to
+ interpreted closures.</flag>
+ <flag name="dynamic-linking">Be able to load compiled files while
+ running.</flag>
+ <flag name="engineering-notation">Floats to display in engineering
+ notation (exponents always multiples of 3) instead of scientific
+ notation.</flag>
+ <flag name="gsubr">generalized c arguments: for arbitrary
+ (more then 11) arguments to C functions.</flag>
+ <flag name="inexact">Support for floating point numbers.</flag>
+ <flag name="ioext">Commonly available I/O extensions: line I/O, file
+ positioning, file delete and rename, and directory functions.</flag>
+ <flag name="libscm">Build and install libscm.a and related headers</flag>
+ <flag name="macro">C level support for hygienic and referentially
+ transparent macros (syntax-rules macros).</flag>
+ <flag name="regex">String regular expression matching.</flag>
+ <flag name="unix">Support for: nice, acct, lstat, readlink, symlink,
+ mknod and sync.</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-scheme/scm/scm-5.5.6-r3.ebuild b/dev-scheme/scm/scm-5.5.6-r3.ebuild
new file mode 100644
index 000000000000..c24ee44c3492
--- /dev/null
+++ b/dev-scheme/scm/scm-5.5.6-r3.ebuild
@@ -0,0 +1,167 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit versionator eutils flag-o-matic
+
+#version magic thanks to masterdriverz and UberLord using bash array instead of tr
+trarr="0abcdefghi"
+MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
+
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${PN}
+DESCRIPTION="SCM is a Scheme implementation from the author of slib"
+SRC_URI="http://groups.csail.mit.edu/mac/ftpdir/scm/${MY_P}.zip"
+HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM"
+
+SLOT="0"
+LICENSE="LGPL-3"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-macos"
+IUSE="arrays bignums cautious dynamic-linking engineering-notation gsubr inexact ioext libscm macro ncurses posix readline regex sockets unix"
+
+#unzip for unpacking
+DEPEND="app-arch/unzip
+ >=dev-scheme/slib-3.1.5
+ dev-util/cproto
+ ncurses? ( sys-libs/ncurses:0= )
+ readline? ( sys-libs/libtermcap-compat )"
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}-multiplefixes.patch" )
+
+src_compile() {
+ # SLIB is required to build SCM.
+ local slibpath="${EPREFIX}/usr/share/slib/"
+ if [ -n "$SCHEME_LIBRARY_PATH" ]; then
+ einfo "using SLIB $SCHEME_LIBRARY_PATH"
+ elif [ -d ${slibpath} ]; then
+ export SCHEME_LIBRARY_PATH=${slibpath}
+ fi
+
+ einfo "Making scmlit"
+ emake -j1 scmlit clean
+
+ einfo "Building scm"
+ local features=""
+ use arrays && features+="arrays"
+ use bignums && features+=" bignums"
+ use cautious && features+=" cautious"
+ use engineering-notation && features+=" engineering-notation"
+ use inexact && features+=" inexact"
+ use macro && features+=" macro"
+
+ ( use readline ||
+ use ncurses ||
+ use regex ||
+ use posix ||
+ use ioext ||
+ use gsubr ||
+ use sockets ||
+ use unix ||
+ use dynamic-linking ) && features+=" dynamic-linking"
+
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS} -L${EPREFIX}/$(get_libdir)" \
+ -s "${EPREFIX}"/usr/$(get_libdir)/scm \
+ -F ${features:="none"} \
+ -h system \
+ -o scm || die
+
+ einfo "Building DLLs"
+ if use readline; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -h system \
+ -F edit-line \
+ -t dll || die
+ fi
+ if use ncurses ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -F curses \
+ -h system \
+ -t dll || die
+ fi
+ if use regex ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c rgx.c \
+ -h system \
+ -t dll || die
+ fi
+ if use gsubr ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c gsubr.c \
+ -h system \
+ -t dll || die
+ fi
+ if use ioext ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c ioext.c \
+ -h system \
+ -t dll || die
+ fi
+ if use posix; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c posix.c \
+ -h system \
+ -t dll || die
+ fi
+ if use sockets ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c socket.c \
+ -h system \
+ -t dll || die
+ fi
+ if use unix ; then
+ ./build \
+ --compiler-options="${CFLAGS}" \
+ --linker-options="${LDFLAGS}" \
+ -c unix.c \
+ -h system \
+ -t dll || die
+ fi
+
+ if use libscm ; then
+ emake libscm.a
+ fi
+}
+
+src_test() {
+ emake check
+}
+
+src_install() {
+ emake DESTDIR="${D}" man1dir="${EPREFIX}"/usr/share/man/man1/ \
+ install
+
+ if use libscm; then
+ emake DESTDIR="${D}" libdir="${EPREFIX}"/usr/$(get_libdir)/ \
+ installlib
+ fi
+
+ doinfo scm.info
+ doinfo hobbit.info
+}
+
+pkg_postinst() {
+ [ "${ROOT}" == "/" ] && pkg_config
+}
+
+pkg_config() {
+ einfo "Regenerating catalog..."
+ scm -e "(require 'new-catalog)"
+}
diff --git a/dev-scheme/scmxlate/Manifest b/dev-scheme/scmxlate/Manifest
new file mode 100644
index 000000000000..6dda545ece2e
--- /dev/null
+++ b/dev-scheme/scmxlate/Manifest
@@ -0,0 +1,5 @@
+DIST scmxlate-20090410.tar.bz2 30016 SHA256 78fd2155dab925f1b47e36a57c55e6a322397737063aed1945b2da9325ae7cf6 SHA512 c6148a1c928ff326c5ac5442a0843a334645d76bb17a48d32018807a2dfa2a4147acfaf43866996d4b06fbe0e6723280da7e66576a3c7c18d70f8e75c73954af WHIRLPOOL 7a95f6f3698900ad87a0ba0a4aff3c5575bb2b7de1d52f4d26eb4db89ef1813095a12bf118df2f0b61d27077d73ec60efd120af5ff89e8ba339d57c5facb3759
+EBUILD scmxlate-20090410-r1.ebuild 580 SHA256 6ee6f6131f612183ec956a8c239d546d171394bc4bb4ddb41e207cd8374f3c94 SHA512 8324f8eef59ebd7dc048a001d1a752f3c41a69fd8a6eba9978f7f884e3d11858c9964e6cd2d40480666a9830c6627e628232d79adc96a99eab5ce10af91fc5ec WHIRLPOOL 74541e33dce7e83e4c0ed75a56084ae99a4ad34aac78c9920be0551f5dfc728d1b3fc3b9dff5fbbdc072697d9391879c9e2080395f0f4f95706dceafd1d365e4
+MISC ChangeLog 2559 SHA256 995848963bf16151096a046d37e7eecb7e3e8d305be9f83b2bc1a7837b872cf0 SHA512 c25abbaabbee952458cc2cfd99a9a0136efeb06c88a22a4bfec7aaf437248fedeae8418e755f612660687d4aa906c1f8b2c8c9ce2d2f2e6d7546c91a17f67e04 WHIRLPOOL c626e25aa7eb0f79cb644a09e1d93abda985adc4b430d9d82a0523d2f379b02284f87e5496da8a5923a150ade49e4c5b929dbbe011e39eb702a53ea5ec16102b
+MISC ChangeLog-2015 1140 SHA256 2c93421d536d3616a67171f9a62739f05aadca43a397a174872a22b38fc78db1 SHA512 f680d3b885d5553813dc5052ab2abb050a7722af36560bd995781197a3623fd326bf1edffb0e3ce7680056cb10842e36fa13412d02810962b04d1cb46ce75fdd WHIRLPOOL cf0dfc7d671f73c22c3fddf73f4ad7a8c094b7a5979bc3a2d097c77ed9e4565f37bf3fdfb6784e549df6f7b5a5f3d24220f142a1ea1387f028e2a0c757703922
+MISC metadata.xml 753 SHA256 51e1252bb1b868c767717403b7db513b060e4d208d8924a3f1a66cc2a50c8941 SHA512 962ae334810dc4891638dbf00f43fe20e4e548045657de93bfe30cecfe57ead9019d04f849f8163398ee288937e46709106e23826e48feb80a4d9c263fe6cb9e WHIRLPOOL eb7a5f175a972aea2b484ab64c12b35d32adf913f6ba7ed25ea2a4d36ebc7b323ba5a7b89229916a5320699ea7074f99d5c0bf274d7e405347d1f4d1fa22f463
diff --git a/dev-scheme/scmxlate/metadata.xml b/dev-scheme/scmxlate/metadata.xml
new file mode 100644
index 000000000000..71f54d2527aa
--- /dev/null
+++ b/dev-scheme/scmxlate/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+Scmxlate is a configuration tool for software packages written in Scheme.
+Scmxlate provides the package author with a strategy for programmatically specifying the changes required to translate the package for a variety of Scheme dialects and Common Lisp, and a variety of operating systems. The end-user simply loads one file into their Scheme or Common Lisp, which triggers the entire configuration process with little or no further intervention.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/scmxlate/scmxlate-20090410-r1.ebuild b/dev-scheme/scmxlate/scmxlate-20090410-r1.ebuild
new file mode 100644
index 000000000000..ed7e4e6d24c3
--- /dev/null
+++ b/dev-scheme/scmxlate/scmxlate-20090410-r1.ebuild
@@ -0,0 +1,23 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Scmxlate is a configuration tool for software packages written in Scheme"
+HOMEPAGE="http://www.ccs.neu.edu/home/dorai/scmxlate/scmxlate.html"
+SRC_URI="http://evalwhen.com/scmxlate/scmxlate.tar.bz2 -> ${P}.tar.bz2"
+
+LICENSE="freedist" # license doesn't grant the right for modifications
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+S="${WORKDIR}/${PN}"
+
+src_compile() { true; }
+
+src_install() {
+ insinto /usr/share/${PN}/
+ doins *.cl *.scm
+ dodoc README
+}
diff --git a/dev-scheme/sigscheme/Manifest b/dev-scheme/sigscheme/Manifest
new file mode 100644
index 000000000000..2f1bdf5045f8
--- /dev/null
+++ b/dev-scheme/sigscheme/Manifest
@@ -0,0 +1,5 @@
+DIST sigscheme-0.8.5.tar.bz2 1117490 SHA256 046b00f4793ea1d1ad22b73af72c60f42ac83369d526b0a8b531509e67cd6bbe SHA512 88cb9aec0ddd71a6cb6ad70fbd0554285538d17f2d9c888914101a1e5e16ad4ab65dc30c2b6f25d450af903e408bc903c516cc397d9f2242979cd20607686313 WHIRLPOOL fafe5136a1af5c1051bdca484bb45b0e61fcb0029f774c3a337a33edb65eb8e9defd7941a7465ecb4571f6373721e6fa0d81f526901afd41d5fdde84ea5e1d4b
+EBUILD sigscheme-0.8.5-r1.ebuild 400 SHA256 80ad1ff577a2b13939782439b5ee263cdbc9d6d43ddf162d2b32f1fd68650682 SHA512 f0af1608ede941b43cbdb4dc4b5165d3b81f6f31338b278850985e184ba497a8f5204a822d8515eb212549088f03c25d53d0aa450a655247b9bee945ca2802ae WHIRLPOOL 7e0f623cd324aebf6c06212f937cde8c9685bbaff57a5de3db51c2462c43e30a1242b5e73851d41915f4df01d1d5c48866869e9c2758f12c0c50ffc31d81e89f
+MISC ChangeLog 2757 SHA256 a776206cc07bf402f451fdbf432d06a12e261a2fb5d6db01cc141f3f5908af55 SHA512 ae45dbfc70e2f00a99d2173d9bf9ce565f1f8a518eec826518ff8913212c3c694d97748c222aa000bbaff4e244e045d5ccf23141f6f1a2ef91f576200b67da74 WHIRLPOOL 50e3daf37d9867bd4475924a2c4fd81a2dc4d24ab3f71d7150845339feb2ad6aae6ae460ec415ce283efbc55079b1a951e6cb8c595fc93946bb55460d4b927fa
+MISC ChangeLog-2015 824 SHA256 ab33a10ee517ebc2907c767b933ee4b203679da4f541d31b80725732a9924014 SHA512 6eca98a21285d590c3ffe5860a205a2105380d6ec4373a9087ba59603921fdfeaf9f05d7c620971d645e98fe6bdc9e779f0074dffd1aa11e4a459e19e1b67a3e WHIRLPOOL c4be9d93c06ccf2a000a110c24d4d3f4498038719d8a42293740ea422718f89084ea7db03ed1bc6a488bc3ca579874f0255f48edd5a06d6ac544f7e1565c91da
+MISC metadata.xml 729 SHA256 38b4431178de04aa754855c5d79487acbdee8abb6ca57d2ad1525a4a2f474994 SHA512 e31ba55c22696074c4f1f9a86d9811220aba54704e5ebae30f51ad54f30c958890f84a7ea335354af18a257c92ae7547e609f744b4270d7d7c52f065777216a0 WHIRLPOOL b9e6f280eed3085c72edf45cbcc8ff8da71f89bc3258823464dbb726403a5e6a2fbfa752d33a066e63d02ed446448e1068f5be0107c0f558a1131f3d8b99940c
diff --git a/dev-scheme/sigscheme/metadata.xml b/dev-scheme/sigscheme/metadata.xml
new file mode 100644
index 000000000000..9b93c167db39
--- /dev/null
+++ b/dev-scheme/sigscheme/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription>SigScheme is a R5RS Scheme interpreter for embedded use.
+ It features small footprint (64KB in library form on the
+ 'small' configuration) like SIOD and TinyScheme, low memory
+ consumption (2-words per cons cell), multibyte characters
+ handling (UTF-8, EUCs and Shift_JIS) and more.
+ It is mainly developed to replace the Scheme interpreter of uim.</longdescription>
+ <upstream>
+ <remote-id type="google-code">sigscheme</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/sigscheme/sigscheme-0.8.5-r1.ebuild b/dev-scheme/sigscheme/sigscheme-0.8.5-r1.ebuild
new file mode 100644
index 000000000000..cbed33d141c5
--- /dev/null
+++ b/dev-scheme/sigscheme/sigscheme-0.8.5-r1.ebuild
@@ -0,0 +1,17 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="SigScheme is an R5RS Scheme interpreter for embedded use"
+HOMEPAGE="https://code.google.com/p/sigscheme/"
+SRC_URI="https://${PN}.googlecode.com/files/${P}.tar.bz2"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+src_configure() {
+ econf --enable-hygienic-macro
+}
diff --git a/dev-scheme/slib/Manifest b/dev-scheme/slib/Manifest
new file mode 100644
index 000000000000..d8d3b74dc953
--- /dev/null
+++ b/dev-scheme/slib/Manifest
@@ -0,0 +1,13 @@
+AUX 50slib 39 SHA256 c997087437fa40be31d52cd86749d4345319f7197ba65cfb3c3c2bf9530b579c SHA512 e454fbcd8e4516b363a94055a0dde09f3cd5fa61babb0c6510ba6dcb50ddc123bb89ec8657171cc1d05fa5ebf5a1691b9425d3397c88617c9d2288770ff8a29b WHIRLPOOL 70636e9ec6bd241bdc5f1bddb913ad41ceb3edc2e733a83428bbb4c9b7a49f575b35151a7eb49b3f5633506168c7508573b435ae7e2f52dda331cfd6bc7e74f1
+AUX slib-3.2.2-fix-texinfo.awk 1615 SHA256 109f38798a407b596c66f17280893bc3963eff395e1204ff435bf67134a33204 SHA512 793b50b9678e5d29465e29fc00348df0357310cb10b5a9446397a11f21c30d885a6bbc92577ebd7c9ae82ac07081baa08692a80c4d0b0738020f01c57a7e128e WHIRLPOOL effc213044202e982c1ca91cb33de4ec247b64c63be03689fb3a6dbc5fdeb8a4ac10411a3e4491680126081af3adbbb526bd3ff2da4d70f45058049dee934834
+AUX slib-3.2.5-fix-makefile-guile.patch 882 SHA256 56896f6a29643ce9cf656bef587b7ae8aefdd311d04d29109d6b65f57474e303 SHA512 74997578edd5472f084a3b899c4e11b67432a4776bce6a19cbd4300316bf413f38374711a9a5cd3c10cd6cac01cb6d337d6f2ad18236bc4747c0bccf88948e3a WHIRLPOOL 48cc3ee3fb3f074405a5690dc09c6c2bdf3eee857403418c47b5b3899ed9021b5c9dcd8c0c01d1a27ae9d18a5b5096db8d9372f0013a10f566c9d7bf1848d9f6
+AUX slib-3.2.5-fix-paths.patch 1627 SHA256 0136081287f437697a71d700a974d7c1720520eb9498e76d1ebd2affcde1456c SHA512 bdd667f20ca0ef57707a4df379186b58ef5ffab38e61a7e8e4ef697d7a90ebbafa8e4ca1f887d87520290656f2445fe1a9f4bd4e22634587908f70059dde0f30 WHIRLPOOL caf0b4523d4b9bda63f30d21002860346492457b332e5e980c32a1123891d640eb0a0a9ce4b29ecd0cd783a8bd0e3065fc9d5e164360e6e91db246de931571f8
+DIST slib-3b1.zip 1063227 SHA256 8e3ec24d51be03ebb7357ad9a2f3554056b86dafbc9e48d1d491aeda1efa566f SHA512 28eb997a094cfb0a97eb924ed7bd965bb094db773343529f1593446b507908ccdec3086c6ce0b6b938a9742ed84bd8f5f36b14911296549660cc4b301f84c977 WHIRLPOOL 5c5a20fca0ad605d3ade593449071ca3afdc47522b1158c3e013477811a3720e82ed742873de7b75c0354fa456725090357c214c7b638110b2438e874b3e242d
+DIST slib-3b2.zip 1067021 SHA256 b1cb9c1b7c888e32918ebdd8fca80d9c875024b064bc6989e4700905873bcae8 SHA512 199b5ddaffd1213dd144dc7f60de020029586babc83f702830d95a0d387c4f1aad9fcbe1603c0f8d4351e0ec1650fad745fd463a56c3bb86394e81eadae6afd5 WHIRLPOOL d31902c7780d528a1a130d5d8f3f77692b033a7227d6cf398a67829dcc8ad20976f55d7ac60b3ba7376ff4fd246b042f842674d05f10287799e24413d783da10
+DIST slib-3b5.tar.gz 987735 SHA256 ea26e5170c6db6d6c69e4aaf91e9b1c9619174fc92d5dc63c71fff2a935e51ba SHA512 e5d1210b70cd882cd5e810b3c4102d6060ec82fb2093f472bf31b597f6273e0a02f4d35a82c4b5c8cdc3f8b2c7b9e498fa3e35c7f265fa864cd9dc50e7a874c8 WHIRLPOOL 2d962de080e2786c72bfa4fa9bb2c907f1e3cc934cdb696a22f117e5733abfc49e176c9731841dbb0f735cfd59fd6c0bdbb1706c3510b8fc3d3f886afacdc5fb
+EBUILD slib-3.2.1.ebuild 3861 SHA256 bba5a5a5b4a3e5aa65277c4ae6fedb6628df1c45b903ab95f6deb06b59d2304c SHA512 032eddda11b6d5f196f7ebc77f5cd0c3d0c33489470e1bfb9b3a7f1ae744c2dcc3e6229c475efcd45be86e7ff206f80c225e2494430a3ead2fb4702600347462 WHIRLPOOL 246ff88d0306f682f29380ab054920c026c534512299e11f271a59c3073926245fc618f6e92c51556c37f571d4aa96973a8c1c8d5c27e84deecdec5bc9ad36ea
+EBUILD slib-3.2.2.ebuild 4050 SHA256 6a7f63f8b997247bb39ca0952efc4c53014d0d7920e009ee544582bd3b2d7cbc SHA512 d44ec1a0e70ee5170d79c9e0c403c632cbee43f9d443070bbe45de98ec4cc8c09f3b9027734f9138528b54b1b9710728e87cef5f94951e1e39f69409e2318757 WHIRLPOOL 2600059d6fff9f8cb2df4fdd6a747c7206756be23f18757d839ed9048bfc944b59275985cc6caf40822c5e343308af281a30ff93fa85604e413651dfed366987
+EBUILD slib-3.2.5-r1.ebuild 2774 SHA256 8bb022ad347c4bd4e3927ee7c6c16a43005b0977eed92992f3bc814edb8166ce SHA512 9da8a5d0c95a12adbb3150ec1b5942043e2330e544b567f43d3bd49cacf50b983cb7730952a0135c6d5f078efa6eaf458e1e5e8e1bb942fe7867a019f6e1f28a WHIRLPOOL 17e7e14853a0bb4135c7687b2608898c7ca63ace05ad995511aa65bdc703c3a23ede50974dd6609810997a732d93699cbf659c10e86171b16b54737f2ccf2cd9
+MISC ChangeLog 5017 SHA256 39a8d20f986aebaf57bf51dd2c5eaedca142d9d481accf14d9f231a17cc34979 SHA512 55f0cefd8be5085387bfdd8f536da241ab3e14e97b69bf3440552b53b4c7be9e97bb597e73a72ee8b7ec83162d31c73f6b762bc2c58acaa6e58987fd3f0eb6c7 WHIRLPOOL a9c88a1b1f1bdba0dd22b3255791de502898cfd65d40fdfc8fecb0e2a3685f7ba44ec7e67f14251d71c60eaf4222c987e2d082948cc9b45b38769da9e7cf1bc6
+MISC ChangeLog-2015 8690 SHA256 e7fdfc234f5c507718f68369d36ba91c4ca6f1311ce6fa1fe9e75eab97df6df4 SHA512 73b8d95a979bc47f93a571adc0f1166ea8c90b0b41dc2d75253d152f74fba8e4af8f1813ddbc68100932cb8b032b813d322758d1360a93686804502a1f03b22b WHIRLPOOL abfca707bc1a9cd657c45a223010bd6eae10ce9882db750fd7ff1c723ad86cc460a0b9da24ff4be2815322def8f06a93b0c5374bd7fa142d8f60c71d6869d77e
+MISC metadata.xml 580 SHA256 59e6d5c9b931bce6c2549996b42ae724ec2e83c96e02e3abb9d512da1df98c9f SHA512 5b75cfc410ff0ec6a324590f69001ac38410e963df6490695abb85132168cd37ccf685b9281026eea2fc82e59340fccecde58887aa3b64f88003970b979d5807 WHIRLPOOL 82db5dd3b879bf1e18fc542e6af9af7df7606cbef1032c5488e7a4017818fe22d51a3b854fa921823fa6a5143e241482ec3fb8ca8cd1e79f4d93da570c4e3700
diff --git a/dev-scheme/slib/files/50slib b/dev-scheme/slib/files/50slib
new file mode 100644
index 000000000000..072862ed0b83
--- /dev/null
+++ b/dev-scheme/slib/files/50slib
@@ -0,0 +1 @@
+SCHEME_LIBRARY_PATH="/usr/share/slib/"
diff --git a/dev-scheme/slib/files/slib-3.2.2-fix-texinfo.awk b/dev-scheme/slib/files/slib-3.2.2-fix-texinfo.awk
new file mode 100644
index 000000000000..6bc3ce8e177b
--- /dev/null
+++ b/dev-scheme/slib/files/slib-3.2.2-fix-texinfo.awk
@@ -0,0 +1,123 @@
+# Fixes Texinfo input to compile with Texinfo 5 or later
+#
+# Written by Sebastian Pipping <sebastian@pipping.org>
+# Licensed under CC0 1.0 Universal Public Domain Dedication
+# https://creativecommons.org/publicdomain/zero/1.0/
+#
+# Version 0_p20150813_p0418
+
+BEGIN {
+ inside_deffn = 0
+ inside_defmac = 0
+ inside_defop = 0
+ inside_deftp = 0
+ inside_defun = 0
+}
+
+/^@deffn / {
+ if (inside_deffn) {
+ print "@end deffn"
+ }
+ inside_deffn = 1
+}
+
+/^@deffnx / {
+ if (inside_deffn) {
+ print "@end deffn"
+ }
+ sub(/^@deffnx/, "@deffn")
+ inside_deffn = 1
+}
+
+/^@defmac / {
+ if (inside_defmac) {
+ print "@end defmac"
+ }
+ inside_defmac = 1
+}
+
+/^@defmacx / {
+ if (inside_defmac) {
+ print "@end defmac"
+ }
+ sub(/^@defmacx/, "@defmac")
+ inside_defmac = 1
+}
+
+/^@defop / {
+ if (inside_defop) {
+ print "@end defop"
+ }
+ inside_defop = 1
+}
+
+/^@defopx / {
+ if (inside_defop) {
+ print "@end defop"
+ }
+ sub(/^@defopx/, "@defop")
+ inside_defop = 1
+}
+
+/^@deftp / {
+ if (inside_deftp) {
+ print "@end deftp"
+ }
+ inside_deftp = 1
+}
+
+/^@deftpx / {
+ if (inside_deftp) {
+ print "@end deftp"
+ }
+ sub(/^@deftpx/, "@deftp")
+ inside_deftp = 1
+}
+
+/^@defun / {
+ if (inside_defun) {
+ print "@end defun"
+ }
+ inside_defun = 1
+}
+
+/^@defunx / {
+ if (inside_defun) {
+ print "@end defun"
+ }
+ sub(/^@defunx/, "@defun")
+ inside_defun = 1
+}
+
+/^@end deffn/ {
+ inside_deffn = 0
+}
+
+/^@end defmac/ {
+ inside_defmac = 0
+}
+
+/^@end defop/ {
+ inside_defop = 0
+}
+
+/^@end deftp/ {
+ inside_deftp = 0
+}
+
+/^@end defun/ {
+ inside_defun = 0
+}
+
+/^@subsubsection/ {
+ if (inside_deffn) {
+ print "@end deffn"
+ print $0
+ print "@deffn {Dummy} Dummy"
+ next
+ }
+}
+
+{
+ print
+}
diff --git a/dev-scheme/slib/files/slib-3.2.5-fix-makefile-guile.patch b/dev-scheme/slib/files/slib-3.2.5-fix-makefile-guile.patch
new file mode 100644
index 000000000000..4617b4e780cb
--- /dev/null
+++ b/dev-scheme/slib/files/slib-3.2.5-fix-makefile-guile.patch
@@ -0,0 +1,23 @@
+--- slib-3b5/~Makefile 2016-10-10 23:54:01.461733550 +0200
++++ slib-3b5/Makefile 2016-10-10 23:59:33.806035867 +0200
+@@ -13,9 +13,9 @@ SHELL = /bin/sh
+ INSTALL = install
+ INSTALL_PROGRAM = ${INSTALL}
+ INSTALL_DATA = ${INSTALL} -m 644
+-INSTALL_INFO = ginstall-info
++INSTALL_INFO = install-info
+
+-SCHEME = scm
++SCHEME = guile
+ CHPAT = $(HOME)/bin/chpat
+ MAKEDEV = $(MAKE) -f $(HOME)/makefile.dev
+ TEXI2HTML = /usr/local/bin/texi2html -split -verbose
+@@ -183,7 +183,7 @@ slib.html: slib.texi
+ $(MAKEINFO) --html --no-split --no-warn --force $<
+
+ slib-$(VERSION).info: slib.texi version.txi $(txifiles) $(texifiles)
+- $(MAKEINFO) $< --no-warn --no-split -o slib-$(VERSION).info
++ $(MAKEINFO) $< --no-warn --no-split --force -o slib-$(VERSION).info
+ slib.info: slib-$(VERSION).info
+ if [ -f $(prevdocsdir)slib.info ];\
+ then infobar $(prevdocsdir)slib.info slib-$(VERSION).info \
diff --git a/dev-scheme/slib/files/slib-3.2.5-fix-paths.patch b/dev-scheme/slib/files/slib-3.2.5-fix-paths.patch
new file mode 100644
index 000000000000..9a373c14d733
--- /dev/null
+++ b/dev-scheme/slib/files/slib-3.2.5-fix-paths.patch
@@ -0,0 +1,42 @@
+--- slib-3b5/~RScheme.init 2016-10-10 23:05:39.117046443 +0200
++++ slib-3b5/RScheme.init 2016-10-10 23:06:47.242857550 +0200
+@@ -52,7 +52,7 @@
+ ;; Use this path if your scheme does not support GETENV
+ ;; or if SCHEME_LIBRARY_PATH is not set.
+ (case (software-type)
+- ((unix) "/usr/lib/slib/")
++ ((unix) "/usr/share/slib/")
+ ((vms) "lib$scheme:")
+ ((ms-dos) "C:\\SLIB\\")
+ (else "")))))
+--- slib-3b5/~gambit.init 2016-10-10 23:05:20.939634454 +0200
++++ slib-3b5/gambit.init 2016-10-10 23:07:46.571968697 +0200
+@@ -38,7 +38,7 @@
+ (let ((impl-path
+ (or (getenv "GAMBIT_IMPLEMENTATION_PATH")
+ (case (software-type)
+- ((unix) "/usr/local/share/gambc/")
++ ((unix) "/usr/share/gambc/")
+ ((vms) "scheme$src:")
+ ((ms-dos) "C:\\scheme\\")
+ ((windows) "c:/scheme/")
+@@ -65,7 +65,7 @@
+ ;; Use this path if your scheme does not support GETENV
+ ;; or if SCHEME_LIBRARY_PATH is not set.
+ (case (software-type)
+- ((unix) "/usr/local/lib/slib/")
++ ((unix) "/usr/share/slib/")
+ ((macos) (string-append (implementation-vicinity) "slib:"))
+ ((amiga) "dh0:scm/Library/")
+ ((vms) "lib$scheme:")
+--- slib-3b5/~guile-2.init 2016-10-10 23:05:46.531807087 +0200
++++ slib-3b5/guile-2.init 2016-10-10 23:08:00.154538349 +0200
+@@ -199,7 +199,7 @@
+ (define implementation-vicinity
+ (cond ((getenv "GUILE_IMPLEMENTATION_PATH")
+ => (lambda (path) (lambda () path)))
+- (else %site-dir)))
++ (else %library-dir)))
+
+ ;;; (library-vicinity) should be defined to be the pathname of the
+ ;;; directory where files of Scheme library functions reside.
diff --git a/dev-scheme/slib/metadata.xml b/dev-scheme/slib/metadata.xml
new file mode 100644
index 000000000000..def1d63fae27
--- /dev/null
+++ b/dev-scheme/slib/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+SLIB is a portable scheme library meant to provide compatibiliy and
+utility functions for all standard scheme implementations.
+ </longdescription>
+ <use>
+ <flag name="scm">Support for scm scheme implementation</flag>
+ <flag name="gambit">Support for gambit scheme implementation</flag>
+ </use>
+</pkgmetadata>
diff --git a/dev-scheme/slib/slib-3.2.1.ebuild b/dev-scheme/slib/slib-3.2.1.ebuild
new file mode 100644
index 000000000000..318985c33d5b
--- /dev/null
+++ b/dev-scheme/slib/slib-3.2.1.ebuild
@@ -0,0 +1,129 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit versionator eutils
+
+#version magic thanks to masterdriverz and UberLord using bash array instead of tr
+trarr="0abcdefghi"
+MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
+
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${PN}
+DESCRIPTION="library providing functions for Scheme implementations"
+SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
+
+HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SLIB"
+
+SLOT="0"
+LICENSE="public-domain BSD"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+IUSE="" #test"
+
+#unzip for unpacking
+RDEPEND=""
+DEPEND="app-arch/unzip"
+# test? ( dev-scheme/scm )"
+
+INSTALL_DIR="/usr/share/slib/"
+
+src_unpack() {
+ unpack ${A}; cd "${S}"
+
+# cp Makefile Makefile.old
+
+ sed "s:prefix = /usr/local/:prefix = ${D}/usr/:" -i Makefile
+ sed 's:libdir = $(exec_prefix)lib/:libdir = $(exec_prefix)share/:' -i Makefile
+ sed 's:man1dir = $(prefix)man/:man1dir = $(prefix)/share/man/:' -i Makefile
+ sed 's:infodir = $(prefix)info/:infodir = $(prefix)share/info/:' -i Makefile
+
+ sed 's:echo SCHEME_LIBRARY_PATH=$(libslibdir) >> $(bindir)slib:echo SCHEME_LIBRARY_PATH=/usr/share/slib/ >> $(bindir)slib:' -i Makefile
+
+# diff -u Makefile.old Makefile
+
+ sed 's:(lambda () "/usr/local/share/gambc/")):(lambda () "/usr/share/gambit")):' -i gambit.init
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+#slib needs scm for tests, but scm needs slib so we can't depend on it
+src_test() {
+ if has_version dev-scheme/scm; then
+ make test || die "Make test failed. See above for details."
+ else
+ einfo "Skipping test, because dev-scheme/scm is not installed."
+ fi
+}
+
+src_install() {
+ emake infoz || die "infoz failed"
+ emake install || die "install failed"
+
+ dodoc ANNOUNCE ChangeLog FAQ README
+ dodir /usr/share/gambit/
+ more_install
+}
+
+more_install() {
+ dosym ${INSTALL_DIR} /usr/share/guile/slib # link from guile dir
+ dosym ${INSTALL_DIR} /usr/lib/slib
+ dodir /etc/env.d/ && echo "SCHEME_LIBRARY_PATH=\"${INSTALL_DIR}\"" > "${D}"/etc/env.d/50slib
+
+ mkdir "${S}"/installers
+ pushd installers; make_installers; popd
+ dosbin installers/*
+}
+
+pkg_postinst() {
+ [ "${ROOT}" == "/" ] && pkg_config
+}
+
+IMPLEMENTATIONS="bigloo drscheme elk gambit guile scm" # mit-scheme
+
+pkg_config() {
+ for impl in ${IMPLEMENTATIONS}; do
+ install_slib ${impl}
+# echo '(slib:report-version)' | slib ${impl}
+ done
+}
+
+make_load_expression() {
+ echo "(load \\\"${INSTALL_DIR}$1.init\\\")"
+}
+
+make_installers()
+{
+ PROGRAM="(require 'new-catalog) (slib:report-version)"
+
+ bigloo_install_command="bigloo -s -eval \"(begin "$(make_load_expression bigloo)" ${PROGRAM} (exit))\""
+ drscheme_install_command="mzscheme -vme \"(begin $(make_load_expression mzscheme) ${PROGRAM})\""
+ elk_install_command="echo \"$(make_load_expression elk) ${PROGRAM}\" | elk -l -"
+ gambit_install_command="gambit-interpreter -e \"$(make_load_expression gambit) ${PROGRAM}\""
+# guile_install_command="guile -c \"$(make_load_expression guile) ${PROGRAM}\""
+ guile_install_command="guile -c \"(use-modules (ice-9 slib)) ${PROGRAM}\""
+ #variable names may not contain hyphens (-)
+ mitscheme_install_command="echo \"(set! load/suppress-loading-message? #t) $(make_load_expression mitscheme) ${PROGRAM}\" | mit-scheme --batch-mode"
+ echo ${mitscheme_install_command}
+ scm_install_command="scm -e \"${PROGRAM}\""
+
+ for impl in ${IMPLEMENTATIONS}; do
+ command_var=${impl//-/}_install_command
+ make_installer ${impl} "${!command_var}"
+ done
+}
+
+make_installer() {
+ echo $2 > install_slib_for_${1//-/}
+}
+
+install_slib() {
+ if has_version dev-scheme/$1; then
+ script=install_slib_for_${1//-/}
+ einfo "Registering slib with $1..."
+# echo running: $(cat /usr/sbin/${script})
+ $script
+ else
+ einfo "$1 not installed, not registering..."
+ fi
+}
diff --git a/dev-scheme/slib/slib-3.2.2.ebuild b/dev-scheme/slib/slib-3.2.2.ebuild
new file mode 100644
index 000000000000..58e87bf28255
--- /dev/null
+++ b/dev-scheme/slib/slib-3.2.2.ebuild
@@ -0,0 +1,130 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="3"
+
+inherit versionator eutils
+
+#version magic thanks to masterdriverz and UberLord using bash array instead of tr
+trarr="0abcdefghi"
+MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
+
+MY_P=${PN}-${MY_PV}
+S=${WORKDIR}/${PN}
+DESCRIPTION="library providing functions for Scheme implementations"
+SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip"
+
+HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SLIB"
+
+SLOT="0"
+LICENSE="public-domain BSD"
+KEYWORDS="alpha amd64 ia64 ppc ~ppc64 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE="" #test"
+
+#unzip for unpacking
+RDEPEND=""
+DEPEND="app-arch/unzip"
+# test? ( dev-scheme/scm )"
+
+INSTALL_DIR="/usr/share/slib/"
+
+_fix_txi_file() {
+ local inplace_filename="${1}"
+ local tempfile="$(emktemp)"
+ awk -f "${FILESDIR}"/slib-3.2.2-fix-texinfo.awk < "${inplace_filename}" > "${tempfile}"
+ mv "${tempfile}" "${inplace_filename}" || die
+}
+
+src_prepare() {
+ sed "s:prefix = /usr/local/:prefix = ${ED}/usr/:" -i Makefile || die
+ sed 's:libdir = $(exec_prefix)lib/:libdir = $(exec_prefix)share/:' -i Makefile || die
+ sed 's:man1dir = $(prefix)man/:man1dir = $(prefix)/share/man/:' -i Makefile || die
+ sed 's:infodir = $(prefix)info/:infodir = $(prefix)share/info/:' -i Makefile || die
+
+ sed 's:echo SCHEME_LIBRARY_PATH=$(libslibdir) >> $(bindir)slib:echo SCHEME_LIBRARY_PATH='"${EPREFIX}"'/usr/share/slib/ >> $(bindir)slib:' -i Makefile || die
+
+# diff -u Makefile.old Makefile
+
+ sed 's:(lambda () "/usr/local/share/gambc/")):(lambda () "'"${EPREFIX}"'/usr/share/gambit")):' -i gambit.init || die
+
+ einfo "Fixing Texinfo files..."
+ for i in *.txi *.texi ; do
+ _fix_txi_file "${i}" || die
+ done
+}
+
+src_compile() {
+ emake || die "make failed"
+}
+
+src_install() {
+ emake infoz || die "infoz failed"
+ emake install || die "install failed"
+
+ dodoc ANNOUNCE ChangeLog FAQ README || die
+ dodir /usr/share/gambit/
+ more_install
+}
+
+more_install() {
+ dosym ${INSTALL_DIR} /usr/share/guile/slib # link from guile dir
+ dosym ${INSTALL_DIR} /usr/lib/slib
+ dodir /etc/env.d/ && echo "SCHEME_LIBRARY_PATH=\"${EPREFIX}${INSTALL_DIR}\"" > "${ED}"/etc/env.d/50slib
+
+ mkdir "${S}"/installers
+ pushd installers; make_installers; popd
+ dosbin installers/* || die
+}
+
+pkg_postinst() {
+ [ "${ROOT}" == "/" ] && pkg_config
+}
+
+IMPLEMENTATIONS="bigloo drscheme elk gambit guile scm" # mit-scheme
+
+pkg_config() {
+ for impl in ${IMPLEMENTATIONS}; do
+ install_slib ${impl}
+# echo '(slib:report-version)' | slib ${impl}
+ done
+}
+
+make_load_expression() {
+ echo "(load \\\"${EPREFIX}${INSTALL_DIR}$1.init\\\")"
+}
+
+make_installers()
+{
+ PROGRAM="(require 'new-catalog) (slib:report-version)"
+
+ bigloo_install_command="bigloo -s -eval \"(begin "$(make_load_expression bigloo)" ${PROGRAM} (exit))\""
+ drscheme_install_command="mzscheme -vme \"(begin $(make_load_expression mzscheme) ${PROGRAM})\""
+ elk_install_command="echo \"$(make_load_expression elk) ${PROGRAM}\" | elk -l -"
+ gambit_install_command="gambit-interpreter -e \"$(make_load_expression gambit) ${PROGRAM}\""
+# guile_install_command="guile -c \"$(make_load_expression guile) ${PROGRAM}\""
+ guile_install_command="guile -c \"(use-modules (ice-9 slib)) ${PROGRAM}\""
+ #variable names may not contain hyphens (-)
+ mitscheme_install_command="echo \"(set! load/suppress-loading-message? #t) $(make_load_expression mitscheme) ${PROGRAM}\" | mit-scheme --batch-mode"
+ echo ${mitscheme_install_command}
+ scm_install_command="scm -e \"${PROGRAM}\""
+
+ for impl in ${IMPLEMENTATIONS}; do
+ command_var=${impl//-/}_install_command
+ make_installer ${impl} "${!command_var}"
+ done
+}
+
+make_installer() {
+ echo $2 > install_slib_for_${1//-/}
+}
+
+install_slib() {
+ if has_version dev-scheme/$1; then
+ script=install_slib_for_${1//-/}
+ einfo "Registering slib with $1..."
+# echo running: $(cat "${EPREFIX}"/usr/sbin/${script})
+ $script
+ else
+ einfo "$1 not installed, not registering..."
+ fi
+}
diff --git a/dev-scheme/slib/slib-3.2.5-r1.ebuild b/dev-scheme/slib/slib-3.2.5-r1.ebuild
new file mode 100644
index 000000000000..fc19b1b316e7
--- /dev/null
+++ b/dev-scheme/slib/slib-3.2.5-r1.ebuild
@@ -0,0 +1,122 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit versionator
+
+#version magic thanks to masterdriverz and UberLord using bash array instead of tr
+trarr="0abcdefghi"
+MY_PV="$(get_version_component_range 1)${trarr:$(get_version_component_range 2):1}$(get_version_component_range 3)"
+
+DESCRIPTION="Portable Scheme library for all standard Scheme implementations"
+HOMEPAGE="http://people.csail.mit.edu/jaffer/SLIB"
+SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${PN}-${MY_PV}.tar.gz"
+
+RESTRICT="mirror"
+
+LICENSE="public-domain BSD"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris"
+IUSE="gambit scm"
+
+RDEPEND="
+ >=sys-apps/texinfo-5.0
+ >=dev-scheme/guile-1.8.8:=
+ gambit? ( dev-scheme/gambit )
+ scm? ( dev-scheme/scm )"
+DEPEND="${RDEPEND}"
+
+DOCS=( ANNOUNCE COPYING FAQ README ChangeLog slib.{txt,html} )
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-paths.patch"
+ "${FILESDIR}/${P}-fix-makefile-guile.patch"
+)
+
+S=${WORKDIR}/${PN}-${MY_PV}
+
+src_configure() {
+ ./configure \
+ --prefix=/usr \
+ --libdir=/usr/share || die
+}
+
+src_compile() {
+ default
+
+ makeinfo -o slib.txt --plaintext --force slib.texi || die
+ makeinfo -o slib.html --html --no-split --force slib.texi || die
+}
+
+src_install() {
+ # core
+ dodir /usr/share/${PN}
+ insinto /usr/share/${PN}
+ doins *.{dat,init,ps,scm,sh}
+
+ # permissions
+ local i
+ for i in "${ED%/}"/usr/share/${PN}/*.sh ; do
+ fperms +x /usr/share/${PN}/$(basename "$i")
+ done
+
+ # bin
+ dodir /usr/bin/
+ dosym /usr/share/${PN}/${PN}.sh /usr/bin/${PN}
+
+ # env
+ doenvd "${FILESDIR}/50slib"
+
+ # docs
+ doinfo slib.info
+ doman slib.1
+
+ # guile
+ if has_version '=dev-scheme/guile-2.0*'; then
+ dodir /usr/share/guile/2.0
+ dosym /usr/share/${PN}/ /usr/share/guile/2.0/${PN}
+ else
+ dodir /usr/share/guile/1.8
+ dosym /usr/share/${PN}/ /usr/share/guile/1.8/${PN}
+ fi
+
+ # backwards compatibility
+ dodir /usr/lib/
+ dosym /usr/share/${PN}/ /usr/lib/${PN}
+}
+
+_new_catalog() {
+ if [[ ! "$1" =~ ^(guile|scm)$ ]]; then
+ echo -n "(load \"${ROOT}/usr/share/slib/$1.init\")" || die
+ fi
+ echo " (require 'new-catalog) (slib:report-version)" || die
+}
+
+pkg_postinst() {
+ local SCHEME_LIBRARY_PATH=/usr/share/slib/
+
+ # catalogs
+ einfo "Updating implementation catalogs.."
+ guile -c "(use-modules (ice-9 slib)) $(_new_catalog guile)" |& grep -i '^slib' || die
+
+ # broken as for now
+ # if use elk ; then
+ # echo "$(_new_catalog elk)" | elk -l -
+ # fi
+
+ if use gambit ; then
+ gsi -e "$(_new_catalog gambit)" || die
+ fi
+
+ if use scm ; then
+ scm -e "$(_new_catalog scm)" || die
+ fi
+}
+
+pkg_postrm() {
+ for impl in 'guile/*' gambc scm; do
+ rm -f "${ROOT}/usr/"lib*/${impl}/slibcat \
+ "${ROOT}/usr/share/"${impl}/slibcat || die
+ done
+}
diff --git a/dev-scheme/stklos/Manifest b/dev-scheme/stklos/Manifest
new file mode 100644
index 000000000000..1cb3e8c13619
--- /dev/null
+++ b/dev-scheme/stklos/Manifest
@@ -0,0 +1,5 @@
+DIST stklos-1.10.tar.gz 6097807 SHA256 215e6e6ffcf7751be5f0c114f83286f99e556e089ca1b0ee66f54dd1be080de4 SHA512 64877dec82b4c19bcaea95f6c60a4b9dff19c11bf11792fa5204d0ca3bb6f6962cc9250b35dcd5f01015e430b9a027add4f40c6a7169858893cab3e8c8df0bbb WHIRLPOOL aba96ee4d258c1f92100392f0fbcd5fa39fcadba23538ca70c1c6c3a952460cfd1e3675b03500a85265208f548dfdf2f6bbf89a755338bd09b5ad9ec09785a6d
+EBUILD stklos-1.10-r1.ebuild 898 SHA256 786108e7b68d5fec7aa4a1e7705e3812e8ad8ab651d7c89f2aad622f2396f536 SHA512 c11a85b5044b87af3e9bc4cc4550ec76006e902868cb248eb47c1972fec64b353bb4c580a67f570306715b6c21bc9c26b866a9470512c88b7b48c8cd70314d7c WHIRLPOOL d6baafaa5d6b63294482447d2dca4f839368ba9ffe2b06166fef4b76939e96289c8efa70e8c6f6b2c245d41d3bc03f317e1385b32763eac48173b1e79c1c4021
+MISC ChangeLog 2545 SHA256 0b5580375f5e0c697d3d9f466dedd7cf2443561653a234d3816701fa14706bf0 SHA512 cfd302615fd5ee23f5b0ca7c0e6c95480bb837d4593d9c5d47555588a08bef0ae0ac575b11f5b39ae87fecef3adfedf752df73fdf1e73566067f3bf907e50b40 WHIRLPOOL a0d2bb82bf768808ab89bb7fd5d0ba2a38b9b67659427785064ca708fcc710a3a139ff5272347eebe7ed0ea9ffb96fa21c9970c6673ca8a9b353cfdd50a5e626
+MISC ChangeLog-2015 3542 SHA256 149a0c9d7800b8a835ae6f1bea16d5d30f5ebe72d90c548103d678451e0c1645 SHA512 98cb358145fe43c6b112c18460e5260ab97669f3652f767e98606dd7aff1baad90ad462c1512767d497d1883cbde43a482d2409797ff2a0fdecf9b7ef26ed366 WHIRLPOOL 5e436599e1022b60e4e412a59e77b719bd921a73d6c46a133f66869caf1620f4a408fbe1a1e21ff48352ba3d5f19cdb67a6c2bdf7a61063a10885c44e567bdd3
+MISC metadata.xml 602 SHA256 0e1670e8cfd722cfd32b5d9b6dd22b1c7d7938ce2f2df18e596ac5c3d34a6c3e SHA512 ee3d82277e478d2e00f67fc96268dd45440efd0a2b3dac1adae60e905af831478fdb43ce9051f909b20183a305784d7327bc677887598fbb5558c9a6b6297aa1 WHIRLPOOL 585c2d400987e480d73289e32b7bddc4649842476336b0727999b88f825c97670f2d96458f1e23b8c3639711201144a3a7301d27d38602c7a9f2f69e6bbca9ad
diff --git a/dev-scheme/stklos/metadata.xml b/dev-scheme/stklos/metadata.xml
new file mode 100644
index 000000000000..db151c849da5
--- /dev/null
+++ b/dev-scheme/stklos/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+ STklos is a free Scheme system supporting most of the languages
+ features defined in R5RS. The aim of this implementation is to
+ be fast as well as light. The implementation is based on an ad-hoc
+ Virtual Machine. STklos can also be compiled as a library and
+ embedded in an application.
+ </longdescription>
+</pkgmetadata>
diff --git a/dev-scheme/stklos/stklos-1.10-r1.ebuild b/dev-scheme/stklos/stklos-1.10-r1.ebuild
new file mode 100644
index 000000000000..16e52f98762b
--- /dev/null
+++ b/dev-scheme/stklos/stklos-1.10-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="fast and light Scheme implementation"
+HOMEPAGE="http://www.stklos.net"
+SRC_URI="http://www.stklos.net/download/${P}.tar.gz"
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="threads"
+DEPEND="dev-libs/gmp:= dev-libs/libpcre virtual/libffi dev-libs/boehm-gc[threads?]"
+RDEPEND="${DEPEND}"
+
+#parallel build failure reported upstream
+MAKEOPTS=-j1
+
+src_prepare() {
+ # kill bundled libs
+ rm -rf "${S}"/{ffi,gc,gmp,pcre} || die
+ default
+}
+
+src_configure() {
+ econf --enable-threads=$(if use threads; then echo pthreads; else echo none; fi) \
+ --without-gmp-light --without-provided-gc \
+ --without-provided-regexp --without-provided-ffi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ dodoc AUTHORS ChangeLog NEWS PACKAGES-USED PORTING-NOTES README SUPPORTED-SRFIS
+}
diff --git a/dev-scheme/termite/Manifest b/dev-scheme/termite/Manifest
new file mode 100644
index 000000000000..c8a8e55ef050
--- /dev/null
+++ b/dev-scheme/termite/Manifest
@@ -0,0 +1,5 @@
+DIST termite-0.15.tar.gz 77482 SHA256 afd3ccdc40580b227c7e72aa08d41e60b40e566b2d23f396581f0272eec30ad3 SHA512 77369d08f222b6a51272aa067036061059bd49263cbcdf28e5254198437399bab9d4aa464b34d049480935dfe31843b3fc683eea3fa0c06a181a4521a92f4933 WHIRLPOOL e897987445f119139dc7513c67c5670de664226e347f3d01134fda242034957b608e41c126da12ba3151f08eab942a8be80e50b926c2c34ba01fafb89386b2ea
+EBUILD termite-0.15-r1.ebuild 603 SHA256 d623b314bf1265a1e0e64aaa5d512adf882314ea5ee1b18ce006fafa80b9720f SHA512 33b1517ca0c5f2789d0714031600b23cc7f0074694ecf76e48fef18699d0d9644c913d727d2624ce9dc2d29f89180c066b215f110f719b24c0fa70c7631d77f9 WHIRLPOOL 50fbf4a6dba7133832c1a42c7f7f31c5ff33a62bd7a4603f796410aa11e0c8152d827fcdaca9e8c4e7bcb011503f5536206d65b5f8d9ae81aab645932a9c1930
+MISC ChangeLog 2743 SHA256 a9cdf48c39b03be2e7062ddf23a169d90871281f123f6df1963147124f91bc2f SHA512 77111461fb92c79c4e307e6b77787568700a21abff1513bcd6904e182d8065ff9c129cc238f1e5c415501817a9e9cdb99d4ccb6e05e204528e454b20ac92746e WHIRLPOOL 29cdb82bdf532155de787d90d538b831dee834bd0e0156d1be437ba49bed3593578de313f8d78de81c6e4837ef69910f6dcd7a1ba2c2a60f1548c3874b117673
+MISC ChangeLog-2015 473 SHA256 f7c9a935f5cf52cdb3e4464cf8f5a6bfeb23602a8a039c7c4906207a02a10cfc SHA512 de6bb3f6ba8b683f3a60f875b74af483132a7f1736304be08c08e24e4a3ea11a721cc7cf222555f047bea3bac11d81bdc1a582a9a5155472a41ca1f9826d307b WHIRLPOOL e4f2f247d9b1d8b1f79e440b381d52a4be8b9a87e8e56e1a0a7886a7876823fcc0c790e0b94eb85e69583d79593bc0e6ba9ebb08bfc108cb5de1912ff8bf8fb9
+MISC metadata.xml 612 SHA256 6bfb4412ca458d2240db3c2236a739fd7038defbbba5ff3dd8afd52be159725b SHA512 e1f5de468e16fce0ca4b6ddbc719d9773dc65d493539f934ef35d45d7584b1c0649ae23e2ebccdf8bcd5f5dcfec9780adb28f2edf68158979d7efb610d04eea5 WHIRLPOOL 2c98b1e92a26434317845a34deef3883e91bd2c7134360e0b37f90eae12d002a1a9f5d8048ae972d033e913fd3aba8c39fbf51102d5e24c98aeb5cf8b0d37fb7
diff --git a/dev-scheme/termite/metadata.xml b/dev-scheme/termite/metadata.xml
new file mode 100644
index 000000000000..e2da284ad43b
--- /dev/null
+++ b/dev-scheme/termite/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">Termite Scheme is a variant of Scheme intended for distributed computing.
+ It offers a simple and powerful concurrency model, inspired by the Erlang
+ programming language, which is based on a message-passing model of
+ concurrency.</longdescription>
+ <upstream>
+ <remote-id type="google-code">termite</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/termite/termite-0.15-r1.ebuild b/dev-scheme/termite/termite-0.15-r1.ebuild
new file mode 100644
index 000000000000..9fca8b50295b
--- /dev/null
+++ b/dev-scheme/termite/termite-0.15-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Erlang-style concurrency for Gambit Scheme"
+HOMEPAGE="https://code.google.com/p/termite/"
+SRC_URI="https://termite.googlecode.com/files/${PN}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-scheme/gambit"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_install() {
+ dobin tsi
+ dodoc README CHANGELOG
+
+ insinto /usr/$(get_libdir)/${PN}/
+ doins *.scm
+ doins -r otp
+
+ insinto /usr/share/${PN}
+ doins -r examples test benchmarks
+}
diff --git a/dev-scheme/tinyscheme/Manifest b/dev-scheme/tinyscheme/Manifest
new file mode 100644
index 000000000000..c5bf6a1b808f
--- /dev/null
+++ b/dev-scheme/tinyscheme/Manifest
@@ -0,0 +1,6 @@
+AUX tinyscheme-1.41-makefile.patch 1152 SHA256 e86db51335a6e8cbc0e673a7cafadbbc7526edaa596e9d4912d9c3fd84a1e558 SHA512 e7ff9a2cc45f1f7f07df3619bf48b2d14c4adf39c452786e4aa0ebb134264f0111f001296e617b6511cd8f28ee3dbdc9f90b5922540aafd91becc358c5de98da WHIRLPOOL 727e4dc20119e06198ab34dd65afb244f0f9c2c0489504fbb1f8f03498cb01d7342ab4c261273cc92f93354a53bd4023f43c46859fca194b5c8d82c3d0e9c519
+DIST tinyscheme-1.41.tar.gz 61761 SHA256 eac0103494c755192b9e8f10454d9f98f2bbd4d352e046f7b253439a3f991999 SHA512 a9c1c9cd7a11bf31e0f8ac813ebd6e731cb56b9526fd14d343d7f8c479a8e1b561b744b3f522512adc023cacd1acbf52aa18bf5d8db68f767971660305b79b0f WHIRLPOOL 4df1f6f80a03c1dae73cd0e39fead9d454c41be536c4a9ec63da80ab31e5712bae0f8a2e8a58154edcc4d595129a11399f65e59fe9f0524b7669912ce16825cf
+EBUILD tinyscheme-1.41.ebuild 1383 SHA256 bd2dd0444a3ecb5f083110cfae71a9ecb2e82a90a8817e4c1681994265ffe9a4 SHA512 e0fb286733b75e80ef450267a9a268814ac501c85516dc59071483bfb119825a36b7ab124d9a82778446a50bf64684fdfac1c4cc2d2f19e71a59afe73b3dad4c WHIRLPOOL ec10dc56c5ff66525938653b7f2c6af4f290e123f89d765eee9d0354660032a779643b5c204d7e2fae8e8b13f0ffd8f7e8b5aa4be8214fe2f5b54ca76a2d8a5a
+MISC ChangeLog 2477 SHA256 27d18c4d7f9312f6510f09855839cdef32982cf0371b403589c400b109197148 SHA512 56d6c61aa59842e198a0f6e356e61b7f03efd7501ce1f375b076bb57df699b75187bd074d5b6b8414ede92cdf892b7754a3e15f4a4a9ce9a56a4935b9381150e WHIRLPOOL 61e774fc1271929d0c631cfb7dcebcdb810bba7246aa30993be404fd7f4f998115bb57488c173c52e47c7b96f3a146bd0e0cde0acca54be6efb463d060bc1c62
+MISC ChangeLog-2015 3160 SHA256 ba3408959ceeee471d74a7be1a2a3562fa8c3fabb2e093ad2a09ea207075709f SHA512 b15791a77b0c8a26c3d962f28cc2ed4349933bf9e489179d69ccd2cff82a9653ed3f642d4b427780984bc46b72fa11e5a85c5b076c67b02fb7c9e5249ec12000 WHIRLPOOL 8f4acf421578ca74976cd75e58a66a8eb74b7356056afea4ea4a28309c1b849ab94c73056484588cfe58e4166188314c7eefcc76f511189eceede0ed3115c31d
+MISC metadata.xml 867 SHA256 2eb3b1cb45f46c9fd883eee20639bb8ce80b8c16aaf4a3b7d7149d91889f5f85 SHA512 42f4d045a180c0000df235d368602cf0af1c0b95de53c1bfd4b32089a641d6633d1ac2a713de1a1de09243b479c9e4bf7561b1d664c589c483bfa9b2e865b1fc WHIRLPOOL 00acece13827152891cff2a0d65a8ef22202c6b1bed49c7fc94776d49b91702ddd4d94ca8139155a9ab8eea49ec5d39e04d7e2e6003979b8759e5ae7bced91f6
diff --git a/dev-scheme/tinyscheme/files/tinyscheme-1.41-makefile.patch b/dev-scheme/tinyscheme/files/tinyscheme-1.41-makefile.patch
new file mode 100644
index 000000000000..69fccb5e537a
--- /dev/null
+++ b/dev-scheme/tinyscheme/files/tinyscheme-1.41-makefile.patch
@@ -0,0 +1,50 @@
+diff -ru a/makefile b/makefile
+--- a/makefile 2013-04-14 20:08:33.000000000 +0000
++++ b/makefile 2013-12-11 11:59:58.688782748 +0000
+@@ -18,8 +18,7 @@
+ #AR= echo
+
+ # Unix, generally
+-CC = gcc -fpic -pedantic
+-DEBUG=-g -Wall -Wno-char-subscripts -O
++#CC = $(CC)
+ Osuf=o
+ SOsuf=so
+ LIBsuf=a
+@@ -27,12 +26,11 @@
+ LIBPREFIX=lib
+ OUT = -o $@
+ RM= -rm -f
+-AR= ar crs
++#AR= $(AR)
++ARFLAGS = crs
+
+ # Linux
+-LD = gcc
+-LDFLAGS = -shared
+-DEBUG=-g -Wno-char-subscripts -O
++#LD = $(CC)
+ SYS_LIBS= -ldl -lm
+ PLATFORM_FEATURES= -DSUN_DL=1
+
+@@ -71,16 +69,16 @@
+ all: $(LIBTARGET) $(STATICLIBTARGET) scheme$(EXE_EXT)
+
+ %.$(Osuf): %.c
+- $(CC) -I. -c $(DEBUG) $(FEATURES) $(DL_FLAGS) $<
++ $(CC) -fpic $(CFLAGS) -I. -c $(FEATURES) $(DL_FLAGS) $<
+
+ $(LIBTARGET): $(OBJS)
+- $(LD) $(LDFLAGS) $(OUT) $(OBJS) $(SYS_LIBS)
++ $(CC) -shared $(LDFLAGS) -Wl,-soname=$@ -o $@ $(OUT) $(OBJS) $(SYS_LIBS)
+
+ scheme$(EXE_EXT): $(OBJS)
+- $(CC) -o $@ $(DEBUG) $(OBJS) $(SYS_LIBS)
++ $(CC) $(LDFLAGS) -o $@ $(OBJS) $(SYS_LIBS)
+
+ $(STATICLIBTARGET): $(OBJS)
+- $(AR) $@ $(OBJS)
++ $(AR) $(ARFLAGS) $@ $(OBJS)
+
+ $(OBJS): scheme.h scheme-private.h opdefines.h
+ dynload.$(Osuf): dynload.h
diff --git a/dev-scheme/tinyscheme/metadata.xml b/dev-scheme/tinyscheme/metadata.xml
new file mode 100644
index 000000000000..82f95a75d483
--- /dev/null
+++ b/dev-scheme/tinyscheme/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">
+TinyScheme is a lightweight Scheme interpreter that implements as large a subset of R5RS as was possible without getting very large and complicated. It is meant to be used as an embedded scripting interpreter for other programs. As such, it does not offer IDEs or extensive toolkits although it does sport a small top-level loop, included conditionally. A lot of functionality in TinyScheme is included conditionally, to allow developers freedom in balancing features and footprint.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">tinyscheme</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild b/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild
new file mode 100644
index 000000000000..4819bc573162
--- /dev/null
+++ b/dev-scheme/tinyscheme/tinyscheme-1.41.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit flag-o-matic multilib
+
+DESCRIPTION="Lightweight scheme interpreter"
+HOMEPAGE="http://tinyscheme.sourceforge.net"
+SRC_URI="mirror://sourceforge/tinyscheme/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+#KEYWORDS="~amd64 ~ppc ~x86 ~ppc-macos ~x64-macos"
+KEYWORDS="amd64 ppc x86"
+IUSE="static-libs"
+
+DEPEND=""
+RDEPEND=""
+
+src_prepare() {
+
+ epatch "${FILESDIR}"/${P}-makefile.patch
+
+ if [[ ${CHOST} == *-darwin* ]] ; then
+ append-flags -DOSX
+ sed -i \
+ -e 's/SOsuf=so/SOsuf=dylib/' \
+ -e "s|-Wl,-soname=|-Wl,-install_name=${EPREFIX}/usr/lib/|" \
+ makefile || die
+ fi
+}
+
+src_compile() {
+ emake LDFLAGS="${LDFLAGS}"\
+ AR=$(tc-getAR) CC=$(tc-getCC)
+}
+
+src_install() {
+
+ local tslib=libtinyscheme$(get_libname)
+ local tslibx=libtinyscheme$(get_libname ${PV})
+
+ newbin scheme ${PN}
+
+ newlib.so ${tslib} ${tslibx}
+ dosym ${tslibx} /usr/$(get_libdir)/${tslib}
+ dodoc Manual.txt || die "dodoc failed"
+
+ if use static-libs; then
+ dolib.a libtinyscheme.a
+ fi
+
+ # Bug 328967: dev-scheme/tinyscheme-1.39-r1 doesn't install header file
+ insinto /usr/include/
+ newins scheme.h tinyscheme.h
+
+ local INIT_DIR=/usr/share/${PN}/
+ insinto ${INIT_DIR}
+ doins init.scm
+ dodir /etc/env.d/ && echo "TINYSCHEMEINIT=\"${EPREFIX}${INIT_DIR}init.scm\"" > "${ED}"/etc/env.d/50tinyscheme
+}
diff --git a/dev-scheme/ypsilon/Manifest b/dev-scheme/ypsilon/Manifest
new file mode 100644
index 000000000000..69c65ed0f08e
--- /dev/null
+++ b/dev-scheme/ypsilon/Manifest
@@ -0,0 +1,6 @@
+AUX ypsilon-0.9.6_p3-asneeded.patch 353 SHA256 95d9fd6aa825c82e0b32a0507a9ef725edfa7aa2484ee06a84f40748783fc6fb SHA512 12709409fc4663bc945a8bb182c0c0155d37c85b739adb99c9ca7ff31fdebbbe8e67b8fa3e0a98e93b01d9d5aa2f47db1630b0c57d3b1a0e462bddb92fa604e2 WHIRLPOOL 0daaa6bb25f4847c9d6a6407adeecc4bb97a38329076ac689d5a59d8ce9b994d907365c0285f227b461ff6920c8282551320e30510b3a92d0ff2e726bd802f8e
+DIST ypsilon-0.9.6.update3.tar.gz 4555843 SHA256 2ca3c901dc3f6bca857a94a9d991d14ecc12727d2833694f0e4f5aa1a8a4064d SHA512 9ea5e3e70481c538bcaf671feb7f764015fb44702bcec4e2873007e065bf48d7d9b0cfc8f9dcc51e0083b0bf5296fd8ac40a1f851d76019a18b21fa7e292ee89 WHIRLPOOL ab3f341a27b00f0f8d688adfe17c66a38125c2e4a4a62d622070299283cd27526d6a41c0e5fd61a85e38a0c0aac0e142b0597e1a7475d5d9b060634de315db0a
+EBUILD ypsilon-0.9.6_p3.ebuild 863 SHA256 5a00222f960f55ed8f8651d754daeb2d3661907df783d05a95d16ce0cf8549e1 SHA512 914f4904c6b6d9421aafedcd3c932a6dcc9f0884f8d70feb37be9981c9791896e6274e70f201ee08c5736fd3df66f5d5740a823669ff98b90d12bd251170edda WHIRLPOOL b39a906d6cf2eedf67bede5b1acabf42a5cf3fe2b68bb22f793fdbeba424255a5d7f456e2e065d8019dfa170779eeaf65c50aa3f04586445cb1761565a9e4870
+MISC ChangeLog 2801 SHA256 c17693672b7c03643207d34cea581c4ac44424828a1467b9dc57d7693842b433 SHA512 9c577f52c091767b4dbcd46c072c80df8a52d0c2e3a7c6c16d579a015ac84cf490a8a9e8c9eda5dba4965215ccae2c30a8ea11316efbdb8d9f7c0fe2ce79ef7f WHIRLPOOL d72670dedb380dbfc8767f21d4b16ead1da2c96262290cbe2c933ebd945dcb10e322bfdcec7b6ccb86566f9cdc56690509b6c45541a68abc201477a7c9c2ad8e
+MISC ChangeLog-2015 778 SHA256 ce55f07752514ac472588ee15cbfd9fcb1dca97a96e55ecd7839b1c55b268596 SHA512 b4a3228a2ceb3f604a933786e65cc74d897a6a4073df8820d12a42cd4d2b8064097df7c2a5d846d78949827cc90e00002759310b950c8ed82f909876008ddff1 WHIRLPOOL 74d6f9cec8861d9c60516acf5177d87fb49f65e254cb97e19794eb69823d9cbbe0698dfd0256700445dbf126bb164617b0e127c49bfcce166e76636be0fd6a1e
+MISC metadata.xml 486 SHA256 88317c2ae0fdbc2936b6ef2bf6e81d2c5ada71035ab5d828915392913c2b88f4 SHA512 5ad24cb19a09eba414c8099f9300eb81b254797641e6234e2819e10d8fc52066d6bf75e639f71a5bf8bd9e10178cf56342a129401ceec31689bea4b82bc28eb9 WHIRLPOOL 4a2be47acfbde69854ae20d727561fba3120f655cd44ac4e9e5ef012a6f5be00e8fda50a6a5603384d5f2d9bf8103291b39f512d357fd04615dde18b415ec42b
diff --git a/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch
new file mode 100644
index 000000000000..4769fce6c25c
--- /dev/null
+++ b/dev-scheme/ypsilon/files/ypsilon-0.9.6_p3-asneeded.patch
@@ -0,0 +1,11 @@
+--- ypsilon-0.9.6.update3.orig/Makefile 2008-12-23 09:56:02.000000000 +0100
++++ ypsilon-0.9.6.update3/Makefile 2009-10-21 18:14:37.613881129 +0200
+@@ -126,7 +126,7 @@
+ @mkdir -p -m755 $(HOME)/.ypsilon
+
+ $(PROG): $(OBJS)
+- $(CXX) $(LDFLAGS) $(LDLIBS) -o $@ $^
++ $(CXX) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+
+ vm1.s: vm1.cpp
+ $(CXX) $(CXXFLAGS) $(CPPFLAGS) \
diff --git a/dev-scheme/ypsilon/metadata.xml b/dev-scheme/ypsilon/metadata.xml
new file mode 100644
index 000000000000..c77deb420372
--- /dev/null
+++ b/dev-scheme/ypsilon/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>scheme@gentoo.org</email>
+ <name>Gentoo Scheme Project</name>
+ </maintainer>
+ <longdescription lang="en">Ypsilon is the implementation of Scheme Programming Language, which conforms
+ to the latest standard R6RS.</longdescription>
+ <upstream>
+ <remote-id type="google-code">ypsilon</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild b/dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild
new file mode 100644
index 000000000000..39a0e85c9e07
--- /dev/null
+++ b/dev-scheme/ypsilon/ypsilon-0.9.6_p3.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+EAPI=5
+
+inherit eutils flag-o-matic toolchain-funcs
+
+MY_P="${P/_p/.update}"
+DESCRIPTION="R6RS-compliant Scheme implementation for real-time applications"
+HOMEPAGE="https://code.google.com/p/ypsilon/"
+SRC_URI="https://ypsilon.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="examples threads"
+
+DEPEND="app-arch/cpio"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-asneeded.patch
+}
+
+src_compile() {
+ use threads && append-flags "-pthread"
+
+ emake PREFIX="/usr" CXX="$(tc-getCXX)" \
+ CXXFLAGS="${CXXFLAGS}" LDFLAGS="$LDFLAGS"
+}
+
+src_install() {
+ emake PREFIX="/usr" DESTDIR="${D}" install
+ if use examples; then
+ insinto /usr/share/doc/${PF}/examples
+ doins example/*
+ fi
+}