diff options
-rw-r--r-- | dev-scheme/slib/ChangeLog | 9 | ||||
-rw-r--r-- | dev-scheme/slib/Manifest | 16 | ||||
-rw-r--r-- | dev-scheme/slib/files/digest-slib-3.1.5 | 3 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.1.5.ebuild | 132 |
4 files changed, 154 insertions, 6 deletions
diff --git a/dev-scheme/slib/ChangeLog b/dev-scheme/slib/ChangeLog index 9c2a439603f5..d53e8bef24ea 100644 --- a/dev-scheme/slib/ChangeLog +++ b/dev-scheme/slib/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-scheme/slib -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.33 2007/09/07 15:18:06 hkbst Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.34 2008/01/18 12:50:22 hkbst Exp $ + +*slib-3.1.5 (18 Jan 2008) + + 18 Jan 2008; Marijn Schouten <hkBst@gentoo.org> +slib-3.1.5.ebuild: + bump *slib-3.1.4-r4 (07 Sep 2007) diff --git a/dev-scheme/slib/Manifest b/dev-scheme/slib/Manifest index 29b68fdebd71..7fecbe27a0fb 100644 --- a/dev-scheme/slib/Manifest +++ b/dev-scheme/slib/Manifest @@ -7,6 +7,7 @@ DIST slib2d5.zip 777067 RMD160 74038cbc95f7ad6e9e7ef35923cf9c28520cabbe SHA1 a04 DIST slib2d6.zip 793668 RMD160 f1520a98646675a10a0d17853cbbf7bf03d3f3df SHA1 402f7997a3d7ee72fa5c356487daef8420162338 SHA256 88ab2636b40f50e933696981b8a49b245ddee1addd111f0e1921d19d2ca14de5 DIST slib3a1.zip 861953 RMD160 9058c89d0da0231bdf06be084e316fb73f456f28 SHA1 8cedb61df26094060bd2f691ded7d03004238e06 SHA256 8a41bb6c726a2ff79579289ce20dc085171100050466f8ec7aa4ecd3348f3ae0 DIST slib3a4.zip 994885 RMD160 2cd478889d462994d62363379e17e74a28b4ef8c SHA1 5e358cab8a58202bab3eae9ce4c04dda41bf37a5 SHA256 d66d642c060d08f16aaca19fd2fd3040de22404eace80a36802cfe39cb5fb9b2 +DIST slib3a5.zip 1055491 RMD160 1d0e487bde6ecbd4aaa878b56abb25086bbc36aa SHA1 d041f174ee1b4492c69e02da2c2cb4c5320ab80c SHA256 3c4fbfc08de9220f456ed1cd58ca0fb49b4a8cdd4d03697fbea11d9407a16e30 EBUILD slib-2.4.2.ebuild 868 RMD160 a58a2ca90ee512d92032559c703751c08f086042 SHA1 ab6e92f20645dec729de0999e6b6eec4b84d890c SHA256 ce9a2a8fee98092835e4fa0b21515c87710850edce2b3149b6c6fbba79dea05e MD5 f24df1276d542425cbf3696107246bd0 slib-2.4.2.ebuild 868 RMD160 a58a2ca90ee512d92032559c703751c08f086042 slib-2.4.2.ebuild 868 @@ -39,10 +40,14 @@ EBUILD slib-3.1.4-r4.ebuild 4087 RMD160 1119ebfe52bf03be2f42f8bff28c0ec8a8afd730 MD5 36cce411f541a5af91fdd0d41470304c slib-3.1.4-r4.ebuild 4087 RMD160 1119ebfe52bf03be2f42f8bff28c0ec8a8afd730 slib-3.1.4-r4.ebuild 4087 SHA256 63854378c4029ddc4838078fa7090ed20eb45e4727a6df4cf1a99f5b09a1ba7a slib-3.1.4-r4.ebuild 4087 -MISC ChangeLog 6296 RMD160 64496907d046d08be058aca984dfa0353a1772dc SHA1 25af91a48583e78214a29a17c5eb21582f82f989 SHA256 3e9e4e40a047f93996f3f7f2fe49754ddd8d88db6ef8ff4847d25586e997e320 -MD5 85d98d172417de06564c8a2f70b8dc18 ChangeLog 6296 -RMD160 64496907d046d08be058aca984dfa0353a1772dc ChangeLog 6296 -SHA256 3e9e4e40a047f93996f3f7f2fe49754ddd8d88db6ef8ff4847d25586e997e320 ChangeLog 6296 +EBUILD slib-3.1.5.ebuild 3874 RMD160 18658e5cd11b88ff5d7948619277b442f60e3b21 SHA1 36a309e4c774c21c6d1ac533e80bdece0bbedf77 SHA256 976832b8cdbb859ccb798c181b16fce912f831a0a4e73b6f530c7dddac1f4821 +MD5 b754202a164a7b1dde686fdcd7722e24 slib-3.1.5.ebuild 3874 +RMD160 18658e5cd11b88ff5d7948619277b442f60e3b21 slib-3.1.5.ebuild 3874 +SHA256 976832b8cdbb859ccb798c181b16fce912f831a0a4e73b6f530c7dddac1f4821 slib-3.1.5.ebuild 3874 +MISC ChangeLog 6401 RMD160 9367bcc4b264e91798264d2806c8b8d137f6944c SHA1 2e0cba15c73a1aff6cc340d6539cfcfe62efa192 SHA256 cae42c06ed580a0e2dde6ec093f42798fa01388a55ab40ea1fa93ab01eac40bd +MD5 e45add50f964e3323e6c32d79e07fccc ChangeLog 6401 +RMD160 9367bcc4b264e91798264d2806c8b8d137f6944c ChangeLog 6401 +SHA256 cae42c06ed580a0e2dde6ec093f42798fa01388a55ab40ea1fa93ab01eac40bd ChangeLog 6401 MISC metadata.xml 398 RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 SHA1 c51deac0a50261fa887a2e2e9e2d35af40605496 SHA256 9f2719a4fba8cfe3430d7dbd7638dab8ab3b9dbbe20a1364544dc35ea5f8d75a MD5 b8e27e247b747f45efd6dd67f4a1dcb1 metadata.xml 398 RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 metadata.xml 398 @@ -71,3 +76,6 @@ SHA256 be9684a7fb47a797ee2d2553918cdf4afe425c6992aa027327fcaef1620ba5f2 files/di MD5 a1252a8dd656f70662da421b7ea68f84 files/digest-slib-3.1.4-r4 214 RMD160 cc8c0f4a36e9a51626b52c47d40424104360aaa7 files/digest-slib-3.1.4-r4 214 SHA256 be9684a7fb47a797ee2d2553918cdf4afe425c6992aa027327fcaef1620ba5f2 files/digest-slib-3.1.4-r4 214 +MD5 853959c6a1d90d988d0bf1ce8cec71c7 files/digest-slib-3.1.5 217 +RMD160 842828dbb6c7999d660ea9bb44e814cf1b14b1d9 files/digest-slib-3.1.5 217 +SHA256 453892bffa62010c185046d9d1ef19a5728246e80463c65e9b0a0a6de7cc4973 files/digest-slib-3.1.5 217 diff --git a/dev-scheme/slib/files/digest-slib-3.1.5 b/dev-scheme/slib/files/digest-slib-3.1.5 new file mode 100644 index 000000000000..ba0e1df5d567 --- /dev/null +++ b/dev-scheme/slib/files/digest-slib-3.1.5 @@ -0,0 +1,3 @@ +MD5 39274e6de82af2c97bdfc6c4cc125fb0 slib3a5.zip 1055491 +RMD160 1d0e487bde6ecbd4aaa878b56abb25086bbc36aa slib3a5.zip 1055491 +SHA256 3c4fbfc08de9220f456ed1cd58ca0fb49b4a8cdd4d03697fbea11d9407a16e30 slib3a5.zip 1055491 diff --git a/dev-scheme/slib/slib-3.1.5.ebuild b/dev-scheme/slib/slib-3.1.5.ebuild new file mode 100644 index 000000000000..63eecc6435ea --- /dev/null +++ b/dev-scheme/slib/slib-3.1.5.ebuild @@ -0,0 +1,132 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.1.5.ebuild,v 1.1 2008/01/18 12:50:22 hkbst Exp $ + +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 + +# sed 's_mkdir_mkdir -p_g' -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" +} + +src_install() { + emake infoz || die "infoz failed" + emake install || die "install failed" + + dodoc ANNOUNCE ChangeLog FAQ README + dodir /usr/share/gambit/ + more_install +} + +# maybe also do "make infoz" +_src_install() { + insinto ${INSTALL_DIR} #don't install directly into guile dir + doins *.scm + doins *.init + dodoc ANNOUNCE ChangeLog FAQ README + doinfo slib.info + 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}\"" + #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 +} |