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