Gentoo Archives: gentoo-commits

From: "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/luajit: luajit-2.0.1_p1-r1.ebuild ChangeLog luajit-2.0.1_p1.ebuild
Date: Fri, 31 May 2013 02:03:15
Message-Id: 20130531020309.9616F2171D@flycatcher.gentoo.org
1 rafaelmartins 13/05/31 02:03:09
2
3 Modified: ChangeLog
4 Added: luajit-2.0.1_p1-r1.ebuild
5 Removed: luajit-2.0.1_p1.ebuild
6 Log:
7 Fix bugs #471698 and #471596. Thanks to hasufell and mva
8
9 (Portage version: 2.2.0_alpha175/cvs/Linux x86_64, signed Manifest commit with key )
10
11 Revision Changes Path
12 1.14 dev-lang/luajit/ChangeLog
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?rev=1.14&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?rev=1.14&content-type=text/plain
16 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?r1=1.13&r2=1.14
17
18 Index: ChangeLog
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v
21 retrieving revision 1.13
22 retrieving revision 1.14
23 diff -u -r1.13 -r1.14
24 --- ChangeLog 28 May 2013 01:14:05 -0000 1.13
25 +++ ChangeLog 31 May 2013 02:03:09 -0000 1.14
26 @@ -1,6 +1,12 @@
27 # ChangeLog for dev-lang/luajit
28 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
29 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.13 2013/05/28 01:14:05 rafaelmartins Exp $
30 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.14 2013/05/31 02:03:09 rafaelmartins Exp $
31 +
32 +*luajit-2.0.1_p1-r1 (31 May 2013)
33 +
34 + 31 May 2013; Rafael G. Martins <rafaelmartins@g.o>
35 + +luajit-2.0.1_p1-r1.ebuild, -luajit-2.0.1_p1.ebuild:
36 + Fix bugs #471698 and #471596. Thanks to hasufell and mva
37
38 28 May 2013; Rafael G. Martins <rafaelmartins@g.o>
39 luajit-2.0.0_beta7.ebuild:
40
41
42
43 1.1 dev-lang/luajit/luajit-2.0.1_p1-r1.ebuild
44
45 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/luajit-2.0.1_p1-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/luajit-2.0.1_p1-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: luajit-2.0.1_p1-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2013 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.1_p1-r1.ebuild,v 1.1 2013/05/31 02:03:09 rafaelmartins Exp $
53
54 EAPI=5
55
56 inherit eutils multilib pax-utils versionator toolchain-funcs
57
58 MY_PV="$(get_version_component_range 1-3)"
59 MY_P="LuaJIT-${MY_PV}"
60 if [[ $(get_version_component_range 4) != "" ]]; then
61 HOTFIX="v${PV}"
62 HOTFIX="${HOTFIX/_p/_hotfix}.patch"
63 fi
64
65 DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
66 HOMEPAGE="http://luajit.org/"
67 SRC_URI="http://luajit.org/download/${MY_P}.tar.gz
68 ${HOTFIX:+http://luajit.org/download/${HOTFIX}}"
69
70 LICENSE="MIT"
71 # this should probably be pkgmoved to 2.0 for sake of consistency.
72 SLOT="2"
73 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
74 IUSE="lua52compat"
75
76 S="${WORKDIR}/${MY_P}"
77
78 src_prepare(){
79 if [[ -n ${HOTFIX} ]]; then
80 epatch "${DISTDIR}/${HOTFIX}"
81 fi
82 sed -i 's,PREFIX= /usr/local,PREFIX= /usr,' Makefile || die 'sed failed.'
83 sed -i 's,/lib,/'$(get_libdir)',' etc/${PN}.pc || die 'sed2 failed.'
84 }
85
86 src_compile() {
87 emake \
88 Q= \
89 PREFIX=/usr \
90 DESTDIR="${D}" \
91 HOST_CC="$(tc-getBUILD_CC)" \
92 STATIC_CC="$(tc-getCC)" \
93 DYNAMIC_CC="$(tc-getCC) -fPIC" \
94 TARGET_LD="$(tc-getCC)" \
95 TARGET_AR="$(tc-getAR) rcus" \
96 TARGET_STRIP="true" \
97 INSTALL_LIB="${D%/}/usr/$(get_libdir)" \
98 XCFLAGS="$(usex lua52compat "-DLUAJIT_ENABLE_LUA52COMPAT" "")"
99 }
100
101 src_install(){
102 emake install \
103 DESTDIR="${D}" \
104 HOST_CC="$(tc-getBUILD_CC)" \
105 STATIC_CC="$(tc-getCC)" \
106 DYNAMIC_CC="$(tc-getCC) -fPIC" \
107 TARGET_LD="$(tc-getCC)" \
108 TARGET_AR="$(tc-getAR) rcus" \
109 TARGET_STRIP="true" \
110 INSTALL_LIB="${D%/}/usr/$(get_libdir)"
111
112 pax-mark m "${ED}usr/bin/luajit-${MY_PV}"
113
114 cd "${S}"/doc
115 dohtml -r *
116 }