diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 13:49:04 -0700 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2015-08-08 17:38:18 -0700 |
commit | 56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch) | |
tree | 3f91093cdb475e565ae857f1c5a7fd339e2d781e /dev-scheme/slib | |
download | gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2 gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip |
proj/gentoo: Initial commit
This commit represents a new era for Gentoo:
Storing the gentoo-x86 tree in Git, as converted from CVS.
This commit is the start of the NEW history.
Any historical data is intended to be grafted onto this point.
Creation process:
1. Take final CVS checkout snapshot
2. Remove ALL ChangeLog* files
3. Transform all Manifests to thin
4. Remove empty Manifests
5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$
5.1. Do not touch files with -kb/-ko keyword flags.
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests
X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project
X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration
X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn
X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts
X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration
X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging
X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'dev-scheme/slib')
-rw-r--r-- | dev-scheme/slib/Manifest | 3 | ||||
-rw-r--r-- | dev-scheme/slib/metadata.xml | 9 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.1.5-r1.ebuild | 133 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.2.1.ebuild | 130 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.2.2.ebuild | 119 |
5 files changed, 394 insertions, 0 deletions
diff --git a/dev-scheme/slib/Manifest b/dev-scheme/slib/Manifest new file mode 100644 index 000000000000..ad2065a6c6ee --- /dev/null +++ b/dev-scheme/slib/Manifest @@ -0,0 +1,3 @@ +DIST slib-3b1.zip 1063227 SHA256 8e3ec24d51be03ebb7357ad9a2f3554056b86dafbc9e48d1d491aeda1efa566f +DIST slib-3b2.zip 1067021 SHA256 b1cb9c1b7c888e32918ebdd8fca80d9c875024b064bc6989e4700905873bcae8 +DIST slib3a5.zip 1055491 SHA256 3c4fbfc08de9220f456ed1cd58ca0fb49b4a8cdd4d03697fbea11d9407a16e30 diff --git a/dev-scheme/slib/metadata.xml b/dev-scheme/slib/metadata.xml new file mode 100644 index 000000000000..e2e83365222e --- /dev/null +++ b/dev-scheme/slib/metadata.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>scheme</herd> + <longdescription lang="en"> +SLIB is a portable scheme library meant to provide compatibiliy and +utility functions for all standard scheme implementations. + </longdescription> +</pkgmetadata> diff --git a/dev-scheme/slib/slib-3.1.5-r1.ebuild b/dev-scheme/slib/slib-3.1.5-r1.ebuild new file mode 100644 index 000000000000..d85c3024a8b2 --- /dev/null +++ b/dev-scheme/slib/slib-3.1.5-r1.ebuild @@ -0,0 +1,133 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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_mandir = $(prefix)man/_mandir = $(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" +} + +#tests are unmaintained upstream and have been removed for 3a6 +RESTRICT="test" +#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 DrScheme) ${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.1.ebuild b/dev-scheme/slib/slib-3.2.1.ebuild new file mode 100644 index 000000000000..43d8ae252e0a --- /dev/null +++ b/dev-scheme/slib/slib-3.2.1.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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..f821d58bab4a --- /dev/null +++ b/dev-scheme/slib/slib-3.2.2.ebuild @@ -0,0 +1,119 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +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/" + +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 +} + +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 +} |