diff options
author | Rafael Martins <rafaelmartins@gentoo.org> | 2010-11-07 02:27:11 +0000 |
---|---|---|
committer | Rafael Martins <rafaelmartins@gentoo.org> | 2010-11-07 02:27:11 +0000 |
commit | 30db69bced149d2f0a1842f85feb2bbb86319231 (patch) | |
tree | cbfcc1395f02bc82272438ac297231734b41d1f0 /dev-lang/luajit/luajit-2.0.0_beta5.ebuild | |
parent | Removed old ebuild without a fix needed for compilation (bug #329603) (diff) | |
download | historical-30db69bced149d2f0a1842f85feb2bbb86319231.tar.gz historical-30db69bced149d2f0a1842f85feb2bbb86319231.tar.bz2 historical-30db69bced149d2f0a1842f85feb2bbb86319231.zip |
Fixed multilib, DESTDIR and PREFIX paths for luajit:2
Package-Manager: portage-2.2.0_alpha3/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/luajit/luajit-2.0.0_beta5.ebuild')
-rw-r--r-- | dev-lang/luajit/luajit-2.0.0_beta5.ebuild | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/dev-lang/luajit/luajit-2.0.0_beta5.ebuild b/dev-lang/luajit/luajit-2.0.0_beta5.ebuild index fec060598425..33fd6186403f 100644 --- a/dev-lang/luajit/luajit-2.0.0_beta5.ebuild +++ b/dev-lang/luajit/luajit-2.0.0_beta5.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta5.ebuild,v 1.1 2010/10/13 01:37:39 rafaelmartins Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta5.ebuild,v 1.2 2010/11/07 02:27:11 rafaelmartins Exp $ EAPI="2" -inherit pax-utils +inherit eutils multilib pax-utils MY_P="LuaJIT-${PV/_/-}" @@ -21,11 +21,13 @@ S="${WORKDIR}/${MY_P}" src_prepare(){ # fixing prefix and version - sed -i -e "s#/usr/local#${D}/usr#" \ - -e "s/VERSION=.*/VERSION= ${PV}/" Makefile \ - || die "failed to fix prefix in Makefile" - sed -i -e 's#/usr/local/#/usr/#' src/luaconf.h \ - || die "failed to fix prefix in luaconf.h" + sed -i -e "s|/usr/local|/usr|" \ + -e "s|/lib|/$(get_libdir)|" \ + -e "s|VERSION=.*|VERSION= ${PV}|" \ + Makefile || die "failed to fix prefix in Makefile" + sed -i -e 's|/usr/local|/usr|' \ + -e "s|lib/|$(get_libdir)/|" \ + src/luaconf.h || die "failed to fix prefix in luaconf.h" # removing strip sed -i -e '/$(Q)$(TARGET_STRIP)/d' src/Makefile \ @@ -36,7 +38,7 @@ src_prepare(){ } src_install(){ - einstall + einstall DESTDIR="${D}" pax-mark m "${D}usr/bin/luajit-${PV}" dosym "luajit-${PV}" "/usr/bin/luajit-${SLOT}" } |