--- scm-5.5.5.ebuild.orig 2010-03-12 22:06:28.000000000 +0100 +++ scm-5.5.5.ebuild 2010-03-13 00:22:48.000000000 +0100 @@ -1,4 +1,4 @@ -# Copyright 1999-2009 Gentoo Foundation +# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-scheme/scm/scm-5.5.5.ebuild,v 1.1 2009/02/02 22:19:35 hkbst Exp $ @@ -7,15 +7,14 @@ #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="Scheme implementation from author of slib" -SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip" HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SCM" +SRC_URI="http://swiss.csail.mit.edu/ftpdir/scm/${MY_P}.zip" -SLOT="0" LICENSE="LGPL-3" +SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="" @@ -24,24 +23,22 @@ DEPEND="app-arch/unzip >=dev-scheme/slib-3.1.5" -src_unpack() { - unpack ${A}; cd "${S}" - -# cp Makefile Makefile.old +S=${WORKDIR}/${PN} - sed "s#local/##" -i Makefile +src_unpack() { + unpack ${A} + cd "${S}" -# diff -u Makefile.old Makefile + sed -i -e "s#local/##" \ + -e '/strip .*/d' \ + Makefile || die } src_compile() { - einfo "Making scmlit" #parallel make fails sometimes emake -j1 scmlit || die - einfo "Creating script to build scm" echo "srcdir=/usr/share/scm/" > srcdir.mk ./build --compiler-options="${CFLAGS}" --linker-options="${LDFLAGS}" -F macro -F inexact &> _compile.sh || die - einfo "Building scm" sh _compile.sh || die }