diff options
Diffstat (limited to 'dev-scheme')
-rw-r--r-- | dev-scheme/chicken/ChangeLog | 7 | ||||
-rw-r--r-- | dev-scheme/chicken/chicken-4.6.0.ebuild | 53 |
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-scheme/chicken/ChangeLog b/dev-scheme/chicken/ChangeLog index 282844ba2148..be88472484b9 100644 --- a/dev-scheme/chicken/ChangeLog +++ b/dev-scheme/chicken/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-scheme/chicken # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/chicken/ChangeLog,v 1.41 2010/06/07 19:21:59 pchrist Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/chicken/ChangeLog,v 1.42 2010/10/06 04:25:04 chiiph Exp $ + +*chicken-4.6.0 (06 Oct 2010) + + 06 Oct 2010; Tomas Touceda <chiiph@gentoo.org> +chicken-4.6.0.ebuild: + Version bump 07 Jun 2010; Panagiotis Christopoulos <pchrist@gentoo.org> chicken-4.5.0.ebuild, +files/chicken-4.5.0-r0-ARCH-to-zARCH-hack.patch: diff --git a/dev-scheme/chicken/chicken-4.6.0.ebuild b/dev-scheme/chicken/chicken-4.6.0.ebuild new file mode 100644 index 000000000000..0ed734fcc9aa --- /dev/null +++ b/dev-scheme/chicken/chicken-4.6.0.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/chicken/chicken-4.6.0.ebuild,v 1.1 2010/10/06 04:25:05 chiiph Exp $ + +EAPI="3" + +inherit eutils multilib + +DESCRIPTION="Chicken is a Scheme interpreter and native Scheme to C compiler" +HOMEPAGE="http://www.call-with-current-continuation.org/" +SRC_URI="http://code.call-cc.org/releases/4.6.0/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~ppc ~ppc64 ~x86" +IUSE="emacs" + +DEPEND="sys-apps/texinfo + emacs? ( virtual/emacs )" +RDEPEND="emacs? ( virtual/emacs app-emacs/scheme-complete )" + +src_prepare() { + #Because chicken's Upstream have a custom to use variables that also + #portage uses :( eg. $ARCH in this case + for f in defaults.make Makefile.bsd Makefile.cross-linux-mingw Makefile.cygwin \ + Makefile.linux Makefile.macosx Makefile.mingw-msys Makefile.solaris \ + rules.make + do + sed "s,ARCH,zARCH," -i ${f} || die "sed failed" + done + + sed "s,\$(PREFIX)/lib,\$(PREFIX)/$(get_libdir)," -i defaults.make || die "sed failed" + sed "s,\$(DATADIR)/doc,\$(SHAREDIR)/doc/${P}," -i defaults.make || die "sed failed" +} + +src_compile() { + OPTIONS="PLATFORM=linux PREFIX=/usr" + #upstream does not support parallel builds, bug 265881 + emake -j1 ${OPTIONS} C_COMPILER_OPTIMIZATION_OPTIONS="${CFLAGS}" \ + HOSTSYSTEM="${CBUILD}" || die "emake failed" +} + +# chicken's testsuite is not runnable before install +# upstream has been notified of the issue +RESTRICT=test + +src_install() { + # bug #283158 + emake -j1 ${OPTIONS} DESTDIR="${D}" HOSTSYSTEM="${CBUILD}" install || die + + rm "${D}"/usr/share/doc/${P}/LICENSE || die + dodoc NEWS || die +} |