/[gentoo-x86]/dev-lang/luajit/luajit-2.0.0_beta7.ebuild
Gentoo

Contents of /dev-lang/luajit/luajit-2.0.0_beta7.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sat May 7 11:06:00 2011 UTC (3 years, 7 months ago) by rafaelmartins
Branch: MAIN
Version bump.

(Portage version: 2.2.0_alpha29/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta6.ebuild,v 1.1 2011/03/09 15:42:10 rafaelmartins Exp $
4
5 EAPI="2"
6
7 inherit eutils multilib pax-utils
8
9 MY_P="LuaJIT-${PV/_/-}"
10
11 DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
12 HOMEPAGE="http://luajit.org/"
13 SRC_URI="http://luajit.org/download/${MY_P}.tar.gz"
14
15 LICENSE="MIT"
16 SLOT="2"
17 KEYWORDS="~amd64 ~x86"
18 IUSE=""
19
20 S="${WORKDIR}/${MY_P}"
21
22 src_prepare(){
23 # fixing prefix and version
24 sed -i -e "s|/usr/local|/usr|" \
25 -e "s|/lib|/$(get_libdir)|" \
26 -e "s|VERSION=.*|VERSION= ${PV}|" \
27 Makefile || die "failed to fix prefix in Makefile"
28 sed -i -e 's|/usr/local|/usr|' \
29 -e "s|lib/|$(get_libdir)/|" \
30 src/luaconf.h || die "failed to fix prefix in luaconf.h"
31
32 # removing strip
33 sed -i -e '/$(Q)$(TARGET_STRIP)/d' src/Makefile \
34 || die "failed to remove forced strip"
35 }
36
37 src_install(){
38 einstall DESTDIR="${D}"
39 pax-mark m "${D}usr/bin/luajit-${PV}"
40 dosym "luajit-${PV}" "/usr/bin/luajit-${SLOT}"
41 }

  ViewVC Help
Powered by ViewVC 1.1.20