diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-scheme/scm |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-scheme/scm')
-rw-r--r-- | dev-scheme/scm/Manifest | 6 | ||||
-rw-r--r-- | dev-scheme/scm/files/scm-5.5.6-multiplefixes.patch | 81 | ||||
-rw-r--r-- | dev-scheme/scm/metadata.xml | 34 | ||||
-rw-r--r-- | dev-scheme/scm/scm-5.5.6-r3.ebuild | 167 |
4 files changed, 288 insertions, 0 deletions
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)" +} |