1 |
mabi 10/02/23 12:19:35 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lua-5.1.4-r5.ebuild |
5 |
Log: |
6 |
add upstream patches |
7 |
(Portage version: 2.1.7.16/cvs/Linux i686) |
8 |
|
9 |
Revision Changes Path |
10 |
1.145 dev-lang/lua/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.145&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.145&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/ChangeLog?r1=1.144&r2=1.145 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v |
19 |
retrieving revision 1.144 |
20 |
retrieving revision 1.145 |
21 |
diff -u -r1.144 -r1.145 |
22 |
--- ChangeLog 10 Jan 2010 18:27:53 -0000 1.144 |
23 |
+++ ChangeLog 23 Feb 2010 12:19:34 -0000 1.145 |
24 |
@@ -1,6 +1,13 @@ |
25 |
# ChangeLog for dev-lang/lua |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.144 2010/01/10 18:27:53 nixnut Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.145 2010/02/23 12:19:34 mabi Exp $ |
29 |
+ |
30 |
+*lua-5.1.4-r5 (23 Feb 2010) |
31 |
+ |
32 |
+ 23 Feb 2010; <mabi@g.o> |
33 |
+ +files/5.1.4/03_all_debug_getfenv.upstream.patch, +lua-5.1.4-r5.ebuild, |
34 |
+ +files/5.1.4/04_all_gc_performance.upstream.patch: |
35 |
+ add upstream patches |
36 |
|
37 |
10 Jan 2010; nixnut <nixnut@g.o> lua-5.1.4-r4.ebuild: |
38 |
ppc stable #295134 |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/lua/lua-5.1.4-r5.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/lua-5.1.4-r5.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-lang/lua/lua-5.1.4-r5.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: lua-5.1.4-r5.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2010 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/lua-5.1.4-r5.ebuild,v 1.1 2010/02/23 12:19:34 mabi Exp $ |
52 |
|
53 |
EAPI="1" |
54 |
|
55 |
inherit eutils multilib portability toolchain-funcs 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 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~x86-fbsd" |
64 |
IUSE="+deprecated emacs readline static" |
65 |
|
66 |
DEPEND="readline? ( sys-libs/readline )" |
67 |
RDEPEND="${DEPEND}" |
68 |
PDEPEND="emacs? ( app-emacs/lua-mode )" |
69 |
|
70 |
src_unpack() { |
71 |
local PATCH_PV=$(get_version_component_range 1-2) |
72 |
unpack ${A} |
73 |
cd "${S}" |
74 |
|
75 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.patch |
76 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-module_paths.patch |
77 |
|
78 |
EPATCH_SOURCE="${FILESDIR}/${PV}" EPATCH_SUFFIX="upstream.patch" epatch |
79 |
|
80 |
# correct lua versioning |
81 |
sed -i -e 's/\(LIB_VERSION = \)6:1:1/\16:4:1/' src/Makefile |
82 |
|
83 |
sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html |
84 |
|
85 |
if ! use deprecated ; then |
86 |
epatch "${FILESDIR}"/${P}-deprecated.patch |
87 |
epatch "${FILESDIR}"/${P}-test.patch |
88 |
fi |
89 |
|
90 |
if ! use readline ; then |
91 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-readline.patch |
92 |
fi |
93 |
|
94 |
# Using dynamic linked lua is not recommended upstream for performance |
95 |
# reasons. http://article.gmane.org/gmane.comp.lang.lua.general/18519 |
96 |
# Mainly, this is of concern if your arch is poor with GPRs, like x86 |
97 |
# Not that this only affects the interpreter binary (named lua), not the lua |
98 |
# compiler (built statically) nor the lua libraries (both shared and static |
99 |
# are installed) |
100 |
if use static ; then |
101 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make_static-r1.patch |
102 |
fi |
103 |
|
104 |
# We want packages to find our things... |
105 |
sed -i \ |
106 |
-e 's:/usr/local:/usr:' \ |
107 |
-e "s:/\<lib\>:/$(get_libdir):g" \ |
108 |
etc/lua.pc |
109 |
} |
110 |
|
111 |
src_compile() { |
112 |
tc-export CC |
113 |
myflags= |
114 |
# what to link to liblua |
115 |
liblibs="-lm" |
116 |
liblibs="${liblibs} $(dlopen_lib)" |
117 |
|
118 |
# what to link to the executables |
119 |
mylibs= |
120 |
if use readline; then |
121 |
mylibs="-lreadline" |
122 |
fi |
123 |
|
124 |
cd src |
125 |
emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \ |
126 |
RPATH="${ROOT}/usr/$(get_libdir)/" \ |
127 |
LUA_LIBS="${mylibs}" \ |
128 |
LIB_LIBS="${liblibs}" \ |
129 |
V=${PV} \ |
130 |
gentoo_all || die "emake failed" |
131 |
|
132 |
mv lua_test ../test/lua.static |
133 |
} |
134 |
|
135 |
src_install() { |
136 |
emake INSTALL_TOP="${D}/usr/" INSTALL_LIB="${D}/usr/$(get_libdir)/" \ |
137 |
V=${PV} gentoo_install \ |
138 |
|| die "emake install gentoo_install failed" |
139 |
|
140 |
dodoc HISTORY README |
141 |
dohtml doc/*.html doc/*.gif |
142 |
|
143 |
insinto /usr/share/pixmaps |
144 |
doins etc/lua.ico |
145 |
insinto /usr/$(get_libdir)/pkgconfig |
146 |
doins etc/lua.pc |
147 |
|
148 |
doman doc/lua.1 doc/luac.1 |
149 |
} |
150 |
|
151 |
src_test() { |
152 |
local positive="bisect cf echo env factorial fib fibfor hello printf sieve |
153 |
sort trace-calls trace-globals" |
154 |
local negative="readonly" |
155 |
local test |
156 |
|
157 |
cd "${S}" |
158 |
for test in ${positive}; do |
159 |
test/lua.static test/${test}.lua || die "test $test failed" |
160 |
done |
161 |
|
162 |
for test in ${negative}; do |
163 |
test/lua.static test/${test}.lua && die "test $test failed" |
164 |
done |
165 |
} |