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