Gentoo Archives: gentoo-commits

From: "Matti Bickel (mabi)" <mabi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lang/lua: ChangeLog lua-5.1.3-r2.ebuild
Date: Thu, 15 May 2008 11:35:19
Message-Id: E1Jwbjw-0003D7-Vp@stork.gentoo.org
1 mabi 08/05/15 11:35:16
2
3 Modified: ChangeLog
4 Added: lua-5.1.3-r2.ebuild
5 Log:
6 bump including some serious crash fixes
7 (Portage version: 2.1.5_rc10)
8
9 Revision Changes Path
10 1.99 dev-lang/lua/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.99&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.99&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?r1=1.98&r2=1.99
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v
19 retrieving revision 1.98
20 retrieving revision 1.99
21 diff -u -r1.98 -r1.99
22 --- ChangeLog 21 Feb 2008 20:38:22 -0000 1.98
23 +++ ChangeLog 15 May 2008 11:35:16 -0000 1.99
24 @@ -1,6 +1,15 @@
25 # ChangeLog for dev-lang/lua
26 # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.98 2008/02/21 20:38:22 jer Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.99 2008/05/15 11:35:16 mabi Exp $
29 +
30 +*lua-5.1.3-r2 (15 May 2008)
31 +
32 + 15 May 2008; Matti Bickel <mabi@g.o>
33 + +files/5.1.3/05_validator.upstream.patch,
34 + +files/5.1.3/06_c_stack.upstream.patch,
35 + +files/5.1.3/07_validator2.upstream.patch,
36 + +files/5.1.3/08_code_injection.upstream.patch, +lua-5.1.3-r2.ebuild:
37 + bump including some serious crash fixes. see http://www.lua.org/bugs.html
38
39 21 Feb 2008; Jeroen Roovers <jer@g.o> lua-5.1.2-r2.ebuild:
40 Stable for HPPA (bug #210517).
41
42
43
44 1.1 dev-lang/lua/lua-5.1.3-r2.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/lua-5.1.3-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/lua-5.1.3-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: lua-5.1.3-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2008 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.3-r2.ebuild,v 1.1 2008/05/15 11:35:16 mabi Exp $
54
55 inherit eutils portability versionator
56
57 DESCRIPTION="A powerful light-weight programming language designed for extending applications"
58 HOMEPAGE="http://www.lua.org/"
59 SRC_URI="http://www.lua.org/ftp/${P}.tar.gz"
60
61 LICENSE="MIT"
62 SLOT="0"
63 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
64 IUSE="deprecated readline static"
65
66 DEPEND="readline? ( sys-libs/readline )"
67
68 src_unpack() {
69 local PATCH_PV=$(get_version_component_range 1-2)
70 unpack ${A}
71 cd "${S}"
72
73 epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make.patch
74 epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch
75
76 EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch
77
78 # correct lua versioning
79 sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:3:1/' src/Makefile
80
81 sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html
82
83 if ! use deprecated ; then
84 epatch "${FILESDIR}"/${P}-deprecated.patch
85 fi
86
87 if ! use readline ; then
88 epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch
89 fi
90
91 # Using dynamic linked lua is not recommended upstream for performance
92 # reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519
93 # Mainly, this is of concern if your arch is poor with GPRs, like x86
94 # Not that this only affects the interpreter binary (named lua), not the lua
95 # compiler (built statically) nor the lua libraries (both shared and static
96 # are installed)
97 if use static ; then
98 epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static.patch
99 fi
100
101 # We want packages to find our things...
102 sed -i -e 's:/usr/local:/usr:' etc/lua.pc
103 }
104
105 src_compile() {
106 myflags=
107 # what to link to liblua
108 liblibs="-lm"
109 mycflags="${mycflags} -DLUA_USE_LINUX"
110 liblibs="${liblibs} $(dlopen_lib)"
111
112 # what to link to the executables
113 mylibs=
114 if use readline; then
115 mylibs="-lreadline"
116 fi
117
118 cd src
119 emake CFLAGS="${mycflags} ${CFLAGS}" \
120 RPATH="/usr/$(get_libdir)/" \
121 LUA_LIBS="${mylibs}" \
122 LIB_LIBS="${liblibs}" \
123 V=${PV} \
124 gentoo_all || die "emake failed"
125
126 mv lua_test ../test/lua.static
127 }
128
129 src_install() {
130 emake INSTALL_TOP="${D}/usr/" INSTALL_LIB="${D}/usr/$(get_libdir)/" \
131 V=${PV} gentoo_install \
132 || die "emake install gentoo_install failed"
133
134 dodoc HISTORY README
135 dohtml doc/*.html doc/*.gif
136
137 insinto /usr/share/pixmaps
138 doins etc/lua.ico
139 insinto /usr/$(get_libdir)/pkgconfig
140 doins etc/lua.pc
141
142 doman doc/lua.1 doc/luac.1
143 }
144
145 src_test() {
146 local positive="bisect cf echo env factorial fib fibfor hello printf sieve
147 sort trace-calls trace-globals"
148 local negative="readonly"
149 local test
150
151 cd "${S}"
152 for test in ${positive}; do
153 test/lua.static test/${test}.lua &> /dev/null || die "test $test failed"
154 done
155
156 for test in ${negative}; do
157 test/lua.static test/${test}.lua &> /dev/null && die "test $test failed"
158 done
159 }
160
161
162
163 --
164 gentoo-commits@l.g.o mailing list