Gentoo Archives: gentoo-commits

From: "Diego Petteno (flameeyes)" <flameeyes@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/luajit: luajit-2.0.0_beta8_p1.ebuild ChangeLog
Date: Sun, 30 Oct 2011 21:22:07
Message-Id: 20111030212157.E584E2004B@flycatcher.gentoo.org
1 flameeyes 11/10/30 21:21:57
2
3 Modified: ChangeLog
4 Added: luajit-2.0.0_beta8_p1.ebuild
5 Log:
6 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.
7
8 (Portage version: 2.2.0_alpha71/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.8 dev-lang/luajit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?rev=1.8&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?rev=1.8&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/ChangeLog?r1=1.7&r2=1.8
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v
20 retrieving revision 1.7
21 retrieving revision 1.8
22 diff -u -r1.7 -r1.8
23 --- ChangeLog 7 May 2011 11:06:00 -0000 1.7
24 +++ ChangeLog 30 Oct 2011 21:21:57 -0000 1.8
25 @@ -1,6 +1,15 @@
26 # ChangeLog for dev-lang/luajit
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.7 2011/05/07 11:06:00 rafaelmartins Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/ChangeLog,v 1.8 2011/10/30 21:21:57 flameeyes Exp $
30 +
31 +*luajit-2.0.0_beta8_p1 (30 Oct 2011)
32 +
33 + 30 Oct 2011; Diego E. Pettenò <flameeyes@g.o>
34 + +luajit-2.0.0_beta8_p1.ebuild, +files/LuaJIT-2.0.0-beta8-gentoo.patch:
35 + As discussed with Rafael: version bump with a twist: cleanup versioning so
36 + that it's more reliable. Consider this experimental as it breaks compatibility
37 + with about everything, and it might just be dropped if upstream takes a
38 + different road.
39
40 *luajit-2.0.0_beta7 (07 May 2011)
41
42
43
44
45 1.1 dev-lang/luajit/luajit-2.0.0_beta8_p1.ebuild
46
47 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta8_p1.ebuild?rev=1.1&view=markup
48 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta8_p1.ebuild?rev=1.1&content-type=text/plain
49
50 Index: luajit-2.0.0_beta8_p1.ebuild
51 ===================================================================
52 # Copyright 1999-2011 Gentoo Foundation
53 # Distributed under the terms of the GNU General Public License v2
54 # $Header: /var/cvsroot/gentoo-x86/dev-lang/luajit/luajit-2.0.0_beta8_p1.ebuild,v 1.1 2011/10/30 21:21:57 flameeyes Exp $
55
56 EAPI="4"
57
58 inherit eutils multilib pax-utils versionator toolchain-funcs
59
60 MY_P="LuaJIT-$(get_version_component_range 1-3)-$(get_version_component_range 4)"
61 if [[ $(get_version_component_range 5) != "" ]]; then
62 HOTFIX="$(get_version_component_range 4-5)"
63 HOTFIX="${HOTFIX/_p/_hotfix}.patch"
64 fi
65
66 DESCRIPTION="Just-In-Time Compiler for the Lua programming language"
67 HOMEPAGE="http://luajit.org/"
68 SRC_URI="http://luajit.org/download/${MY_P}.tar.gz
69 ${HOTFIX:+http://luajit.org/download/${HOTFIX}}"
70
71 LICENSE="MIT"
72 # this should probably be pkgmoved to 2.0 for sake of consistency.
73 SLOT="2"
74 KEYWORDS="~amd64 ~x86"
75 IUSE=""
76
77 S="${WORKDIR}/${MY_P}"
78
79 src_prepare(){
80 if [[ -n ${HOTFIX} ]]; then
81 epatch "${DISTDIR}/${HOTFIX}"
82 fi
83
84 epatch "${FILESDIR}"/${MY_P}-gentoo.patch
85 }
86
87 src_compile() {
88 emake \
89 DESTDIR="${D}" \
90 HOST_CC="$(tc-getBUILD_CC)" \
91 STATIC_CC="$(tc-getCC)" \
92 DYNAMIC_CC="$(tc-getCC) -fPIC" \
93 TARGET_LD="$(tc-getCC)" \
94 TARGET_AR="$(tc-getAR) rcus" \
95 TARGET_STRIP="true" \
96 LDCONFIG="true" \
97 LIBDIR="$(get_libdir)"
98 }
99
100 src_install(){
101 emake install \
102 DESTDIR="${D}" \
103 HOST_CC="$(tc-getBUILD_CC)" \
104 STATIC_CC="$(tc-getCC)" \
105 DYNAMIC_CC="$(tc-getCC) -fPIC" \
106 TARGET_LD="$(tc-getCC)" \
107 TARGET_AR="$(tc-getAR) rcus" \
108 TARGET_STRIP="true" \
109 LDCONFIG="true" \
110 LIBDIR="$(get_libdir)"
111
112 pax-mark m "${D}usr/bin/luajit-2.0"
113
114 cd "${S}"/doc
115 dohtml -r *
116 }