diff options
author | Justin Lecher <jlec@gentoo.org> | 2010-11-14 16:11:56 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2010-11-14 16:11:56 +0000 |
commit | 0f4c58552a7b326c12522853f9214cc4af703219 (patch) | |
tree | 6ed7029d51df937354d7dae51286037b073b2063 /dev-scheme/slib | |
parent | Wrong EAPI (diff) | |
download | gentoo-2-0f4c58552a7b326c12522853f9214cc4af703219.tar.gz gentoo-2-0f4c58552a7b326c12522853f9214cc4af703219.tar.bz2 gentoo-2-0f4c58552a7b326c12522853f9214cc4af703219.zip |
Imported prefix changes
(Portage version: 2.2.0_alpha4/cvs/Linux x86_64)
Diffstat (limited to 'dev-scheme/slib')
-rw-r--r-- | dev-scheme/slib/ChangeLog | 5 | ||||
-rw-r--r-- | dev-scheme/slib/slib-3.2.2.ebuild | 34 |
2 files changed, 20 insertions, 19 deletions
diff --git a/dev-scheme/slib/ChangeLog b/dev-scheme/slib/ChangeLog index bf129f3f289c..61d480a08886 100644 --- a/dev-scheme/slib/ChangeLog +++ b/dev-scheme/slib/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for dev-scheme/slib # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.49 2010/01/06 20:26:52 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/ChangeLog,v 1.50 2010/11/14 16:11:56 jlec Exp $ + + 14 Nov 2010; Justin Lecher <jlec@gentoo.org> slib-3.2.2.ebuild: + Imported prefix changes 06 Jan 2010; Brent Baude <ranger@gentoo.org> slib-3.2.2.ebuild: Marking slib-3.2.2 ~ppc64 for bug 288172 diff --git a/dev-scheme/slib/slib-3.2.2.ebuild b/dev-scheme/slib/slib-3.2.2.ebuild index a6be2e602310..6813b698e1d9 100644 --- a/dev-scheme/slib/slib-3.2.2.ebuild +++ b/dev-scheme/slib/slib-3.2.2.ebuild @@ -1,6 +1,8 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.2.2.ebuild,v 1.2 2010/01/06 20:26:52 ranger Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-scheme/slib/slib-3.2.2.ebuild,v 1.3 2010/11/14 16:11:56 jlec Exp $ + +EAPI="3" inherit versionator eutils @@ -17,7 +19,7 @@ HOMEPAGE="http://swiss.csail.mit.edu/~jaffer/SLIB" SLOT="0" LICENSE="public-domain BSD" -KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86" +KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~x86-solaris" IUSE="" #test" #unzip for unpacking @@ -27,21 +29,17 @@ DEPEND="app-arch/unzip" 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 +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=/usr/share/slib/ >> $(bindir)slib:' -i Makefile + 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 () "/usr/share/gambit")):' -i gambit.init + sed 's:(lambda () "/usr/local/share/gambc/")):(lambda () "'"${EPREFIX}"'/usr/share/gambit")):' -i gambit.init || die } src_compile() { @@ -52,7 +50,7 @@ src_install() { emake infoz || die "infoz failed" emake install || die "install failed" - dodoc ANNOUNCE ChangeLog FAQ README + dodoc ANNOUNCE ChangeLog FAQ README || die dodir /usr/share/gambit/ more_install } @@ -60,11 +58,11 @@ src_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 + 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/* + dosbin installers/* || die } pkg_postinst() { @@ -81,7 +79,7 @@ pkg_config() { } make_load_expression() { - echo "(load \\\"${INSTALL_DIR}$1.init\\\")" + echo "(load \\\"${EPREFIX}${INSTALL_DIR}$1.init\\\")" } make_installers() @@ -113,7 +111,7 @@ 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}) +# echo running: $(cat "${EPREFIX}"/usr/sbin/${script}) $script else einfo "$1 not installed, not registering..." |