diff options
author | Marijn Schouten <hkbst@gentoo.org> | 2007-06-06 16:28:00 +0000 |
---|---|---|
committer | Marijn Schouten <hkbst@gentoo.org> | 2007-06-06 16:28:00 +0000 |
commit | 3212f988b8e73d0a55fb02bf4432c4dc0580cf85 (patch) | |
tree | 21ec001d0a2be182b6fb169313573adfd8f6674f /dev-scheme/slib | |
parent | Move xulrunner USE from local to global. (diff) | |
download | historical-3212f988b8e73d0a55fb02bf4432c4dc0580cf85.tar.gz historical-3212f988b8e73d0a55fb02bf4432c4dc0580cf85.tar.bz2 historical-3212f988b8e73d0a55fb02bf4432c4dc0580cf85.zip |
switch to using slib's own makefile; add slib support for six implementations
Package-Manager: portage-2.1.2.9
Diffstat (limited to 'dev-scheme/slib')
-rw-r--r-- | dev-scheme/slib/ChangeLog | 8 | ||||
-rw-r--r-- | dev-scheme/slib/Manifest | 19 | ||||
-rw-r--r-- | dev-scheme/slib/files/Makefile.patch | 10 | ||||
-rw-r--r-- | dev-scheme/slib/files/digest-slib-3.1.4-r3 | 3 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.1.4-r3.ebuild | 130 |
5 files changed, 165 insertions, 5 deletions
diff --git a/dev-scheme/slib/ChangeLog b/dev-scheme/slib/ChangeLog index 3c3540fcd1f9..07157664f674 100644 --- a/dev-scheme/slib/ChangeLog +++ b/dev-scheme/slib/ChangeLog @@ -1,6 +1,12 @@ # 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.30 2007/05/29 14:04:41 hkbst Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.31 2007/06/06 16:28:00 hkbst Exp $ + +*slib-3.1.4-r3 (06 Jun 2007) + + 06 Jun 2007; Marijn Schouten <hkBst@gentoo.org> +files/Makefile.patch, + +slib-3.1.4-r3.ebuild: + switch to using slib's own makefile; add slib support for six implementations 29 May 2007; Marijn Schouten <hkBst@gentoo.org> slib-3.1.4-r2.ebuild: add bash magic to increase extensibility diff --git a/dev-scheme/slib/Manifest b/dev-scheme/slib/Manifest index e8dea304c747..b1b50d6c5575 100644 --- a/dev-scheme/slib/Manifest +++ b/dev-scheme/slib/Manifest @@ -1,3 +1,7 @@ +AUX Makefile.patch 346 RMD160 2d599045345d2059ef38d7fd47e6e66887c43d80 SHA1 00d39d217c7e9321f8dd651ed1637f3f28cbba44 SHA256 a8af77683dac7c0974249e036ddfe7ca4810f36bbdd7dbabf97a2a16f5042726 +MD5 330e02c5ddd9971eaee3b0f4cf649d03 files/Makefile.patch 346 +RMD160 2d599045345d2059ef38d7fd47e6e66887c43d80 files/Makefile.patch 346 +SHA256 a8af77683dac7c0974249e036ddfe7ca4810f36bbdd7dbabf97a2a16f5042726 files/Makefile.patch 346 DIST slib2d2.zip 627968 RMD160 8262a74e7ff8d7e20ad08fcf63f77fd619996aaa SHA1 74df5b1d45d9e4f24521ddd687210c1964d2b483 SHA256 4f60fd2fd55386605f7ca05d698bb628e94c2e301b711e02c1691c75b1bfac1a DIST slib2d5.zip 777067 RMD160 74038cbc95f7ad6e9e7ef35923cf9c28520cabbe SHA1 a04f554e16a307ba43de72712a196ebb4e12a331 SHA256 16ac5b97ee056a2787033cfafe2d9b087eca89c2a5cde6fa229898b1b972081a DIST slib2d6.zip 793668 RMD160 f1520a98646675a10a0d17853cbbf7bf03d3f3df SHA1 402f7997a3d7ee72fa5c356487daef8420162338 SHA256 88ab2636b40f50e933696981b8a49b245ddee1addd111f0e1921d19d2ca14de5 @@ -27,10 +31,14 @@ EBUILD slib-3.1.4-r2.ebuild 2100 RMD160 3f891982553652e429b85cf94a9f8dc27911afe6 MD5 76c3c9e0163e0e2851133612b638a7cd slib-3.1.4-r2.ebuild 2100 RMD160 3f891982553652e429b85cf94a9f8dc27911afe6 slib-3.1.4-r2.ebuild 2100 SHA256 43f956c9b0012b80c65e4e42bd88bd8e5a512ff1dff3ad4672e23026ac7ea9fe slib-3.1.4-r2.ebuild 2100 -MISC ChangeLog 5833 RMD160 1cc4deb58e9913acc815d6725f9ca08233facd75 SHA1 1212992072d6e1a7e975ebbc6b2b9132ac3b780c SHA256 3f4610f6801b7786b0c84b7ade53e620d02b7e5c2a430beec79014ed0da4a1f5 -MD5 aa4323dada48938fbe89494a91b5022c ChangeLog 5833 -RMD160 1cc4deb58e9913acc815d6725f9ca08233facd75 ChangeLog 5833 -SHA256 3f4610f6801b7786b0c84b7ade53e620d02b7e5c2a430beec79014ed0da4a1f5 ChangeLog 5833 +EBUILD slib-3.1.4-r3.ebuild 3686 RMD160 31c57f5802b6e771ad1b96a71e06c7476d328f7c SHA1 abaf147eb3d5d8d37ca9ae97ea7bbce608fa4608 SHA256 fb4f03f18dc14b31760126aae0724a400959788a2820fdb3cbdf859f5a97158c +MD5 56282e0511cc23ee7397b0e4207f9f8d slib-3.1.4-r3.ebuild 3686 +RMD160 31c57f5802b6e771ad1b96a71e06c7476d328f7c slib-3.1.4-r3.ebuild 3686 +SHA256 fb4f03f18dc14b31760126aae0724a400959788a2820fdb3cbdf859f5a97158c slib-3.1.4-r3.ebuild 3686 +MISC ChangeLog 6042 RMD160 f0ba8895f83e07ed42492dafb341f0fda91fea39 SHA1 5a8c9ae171d8ea5bb84018d01a0b532f8cffd7a5 SHA256 07543ead1ac3bc6ff83e6b5af238dd6c64c1fe7416df98b3336f7849a486131b +MD5 c7c71a0a4f08bce9ddd774df5392af29 ChangeLog 6042 +RMD160 f0ba8895f83e07ed42492dafb341f0fda91fea39 ChangeLog 6042 +SHA256 07543ead1ac3bc6ff83e6b5af238dd6c64c1fe7416df98b3336f7849a486131b ChangeLog 6042 MISC metadata.xml 398 RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 SHA1 c51deac0a50261fa887a2e2e9e2d35af40605496 SHA256 9f2719a4fba8cfe3430d7dbd7638dab8ab3b9dbbe20a1364544dc35ea5f8d75a MD5 b8e27e247b747f45efd6dd67f4a1dcb1 metadata.xml 398 RMD160 7fabdfdd6bbeac709b9571c0835ec15e588597b3 metadata.xml 398 @@ -53,3 +61,6 @@ SHA256 3b14bb4e98cb894ca3dcffee07eb32f31a83fa86deee561c699e04401e584161 files/di MD5 a1252a8dd656f70662da421b7ea68f84 files/digest-slib-3.1.4-r2 214 RMD160 cc8c0f4a36e9a51626b52c47d40424104360aaa7 files/digest-slib-3.1.4-r2 214 SHA256 be9684a7fb47a797ee2d2553918cdf4afe425c6992aa027327fcaef1620ba5f2 files/digest-slib-3.1.4-r2 214 +MD5 a1252a8dd656f70662da421b7ea68f84 files/digest-slib-3.1.4-r3 214 +RMD160 cc8c0f4a36e9a51626b52c47d40424104360aaa7 files/digest-slib-3.1.4-r3 214 +SHA256 be9684a7fb47a797ee2d2553918cdf4afe425c6992aa027327fcaef1620ba5f2 files/digest-slib-3.1.4-r3 214 diff --git a/dev-scheme/slib/files/Makefile.patch b/dev-scheme/slib/files/Makefile.patch new file mode 100644 index 000000000000..36fd556b3f8c --- /dev/null +++ b/dev-scheme/slib/files/Makefile.patch @@ -0,0 +1,10 @@ +--- Makefile.old 2007-06-02 13:35:00.000000000 +0200 ++++ Makefile 2007-06-02 13:39:41.000000000 +0200 +@@ -259,6 +259,7 @@ + info: installinfo + installinfo: $(infodir)slib.info + $(infodir)slib.info: slib.info ++ mkdir -p $(infodir) + cp -p slib.info $(infodir)slib.info + -install-info $(infodir)slib.info $(infodir)dir + -rm $(infodir)slib.info.gz diff --git a/dev-scheme/slib/files/digest-slib-3.1.4-r3 b/dev-scheme/slib/files/digest-slib-3.1.4-r3 new file mode 100644 index 000000000000..aba33066f8e0 --- /dev/null +++ b/dev-scheme/slib/files/digest-slib-3.1.4-r3 @@ -0,0 +1,3 @@ +MD5 b0df4089264fd248c9c4f6d2e074b9f6 slib3a4.zip 994885 +RMD160 2cd478889d462994d62363379e17e74a28b4ef8c slib3a4.zip 994885 +SHA256 d66d642c060d08f16aaca19fd2fd3040de22404eace80a36802cfe39cb5fb9b2 slib3a4.zip 994885 diff --git a/dev-scheme/slib/slib-3.1.4-r3.ebuild b/dev-scheme/slib/slib-3.1.4-r3.ebuild new file mode 100644 index 000000000000..4c45bb7c03db --- /dev/null +++ b/dev-scheme/slib/slib-3.1.4-r3.ebuild @@ -0,0 +1,130 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.1.4-r3.ebuild,v 1.1 2007/06/06 16:28:00 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} + + epatch ${FILESDIR}/Makefile.patch + + 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 + +# for dir in mandir infodir srcdir htmldir; do +# sed "s_\$(${dir})_\$(${dir})/_g" -i Makefile +# done + +# einstall || die "install failed" +# emake infodir="${D}/usr/share/info/" mandir="${D}/usr/share/doc/${P}/" infoz || die "infoz failed" +} + +src_compile() { + emake infoz || die "infoz failed" +} + +src_install() { + emake install || die "install failed" + + dodoc ANNOUNCE ChangeLog FAQ README + 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 elk gambit guile drscheme scm" + +pkg_config() { + for impl in ${IMPLEMENTATIONS}; do + install_slib dev-scheme/${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))\"" + 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}\"" + scm_install_command="scm -e \"${PROGRAM}\"" + drscheme_install_command="mzscheme -vme \"(begin $(make_load_expression DrScheme) ${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 $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 +} |