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