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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Sun Oct 30 21:21:57 2011 UTC (3 years ago) by flameeyes
Branch: MAIN
CVS Tags: HEAD
As discussed with Rafael: version bump with a twist: cleanup versioning so that it's more reliable. Consider this experimental as it breaks compatibility with about everything, and it might just be dropped if upstream takes a different road.

(Portage version: 2.2.0_alpha71/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_beta7.ebuild,v 1.1 2011/05/07 11:06:00 rafaelmartins Exp $
4
5 EAPI="4"
6
7 inherit eutils multilib pax-utils versionator toolchain-funcs
8
9 MY_P="LuaJIT-$(get_version_component_range 1-3)-$(get_version_component_range 4)"
10 if [[ $(get_version_component_range 5) != "" ]]; then
11 HOTFIX="$(get_version_component_range 4-5)"
12 HOTFIX="${HOTFIX/_p/_hotfix}.patch"
13 fi
14
15 DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
16 HOMEPAGE="http://luajit.org/"
17 SRC_URI="http://luajit.org/download/${MY_P}.tar.gz
18 ${HOTFIX:+http://luajit.org/download/${HOTFIX}}"
19
20 LICENSE="MIT"
21 # this should probably be pkgmoved to 2.0 for sake of consistency.
22 SLOT="2"
23 KEYWORDS="~amd64 ~x86"
24 IUSE=""
25
26 S="${WORKDIR}/${MY_P}"
27
28 src_prepare(){
29 if [[ -n ${HOTFIX} ]]; then
30 epatch "${DISTDIR}/${HOTFIX}"
31 fi
32
33 epatch "${FILESDIR}"/${MY_P}-gentoo.patch
34 }
35
36 src_compile() {
37 emake \
38 DESTDIR="${D}" \
39 HOST_CC="$(tc-getBUILD_CC)" \
40 STATIC_CC="$(tc-getCC)" \
41 DYNAMIC_CC="$(tc-getCC) -fPIC" \
42 TARGET_LD="$(tc-getCC)" \
43 TARGET_AR="$(tc-getAR) rcus" \
44 TARGET_STRIP="true" \
45 LDCONFIG="true" \
46 LIBDIR="$(get_libdir)"
47 }
48
49 src_install(){
50 emake install \
51 DESTDIR="${D}" \
52 HOST_CC="$(tc-getBUILD_CC)" \
53 STATIC_CC="$(tc-getCC)" \
54 DYNAMIC_CC="$(tc-getCC) -fPIC" \
55 TARGET_LD="$(tc-getCC)" \
56 TARGET_AR="$(tc-getAR) rcus" \
57 TARGET_STRIP="true" \
58 LDCONFIG="true" \
59 LIBDIR="$(get_libdir)"
60
61 pax-mark m "${D}usr/bin/luajit-2.0"
62
63 cd "${S}"/doc
64 dohtml -r *
65 }

  ViewVC Help
Powered by ViewVC 1.1.20