1 |
vapier 14/03/28 05:38:36 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: lua-5.1.5-r1.ebuild |
5 |
Log: |
6 |
Fix libdir setting in luaconf.h #493646 by Aleksey Kunitskiy. |
7 |
|
8 |
(Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key D2E96200) |
9 |
|
10 |
Revision Changes Path |
11 |
1.184 dev-lang/lua/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.184&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lua/ChangeLog?rev=1.184&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lua/ChangeLog?r1=1.183&r2=1.184 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v |
20 |
retrieving revision 1.183 |
21 |
retrieving revision 1.184 |
22 |
diff -u -r1.183 -r1.184 |
23 |
--- ChangeLog 26 May 2013 16:55:34 -0000 1.183 |
24 |
+++ ChangeLog 28 Mar 2014 05:38:36 -0000 1.184 |
25 |
@@ -1,6 +1,11 @@ |
26 |
# ChangeLog for dev-lang/lua |
27 |
-# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.183 2013/05/26 16:55:34 mabi Exp $ |
29 |
+# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/lua/ChangeLog,v 1.184 2014/03/28 05:38:36 vapier Exp $ |
31 |
+ |
32 |
+*lua-5.1.5-r1 (28 Mar 2014) |
33 |
+ |
34 |
+ 28 Mar 2014; Mike Frysinger <vapier@g.o> +lua-5.1.5-r1.ebuild: |
35 |
+ Fix libdir setting in luaconf.h #493646 by Aleksey Kunitskiy. |
36 |
|
37 |
26 May 2013; Matti Bickel <mabi@g.o> lua-5.2.1.ebuild: |
38 |
fix incorrect sed usage (bug #463416) |
39 |
|
40 |
|
41 |
|
42 |
1.1 dev-lang/lua/lua-5.1.5-r1.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lua/lua-5.1.5-r1.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/lua/lua-5.1.5-r1.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: lua-5.1.5-r1.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2014 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.5-r1.ebuild,v 1.1 2014/03/28 05:38:36 vapier Exp $ |
52 |
|
53 |
EAPI=4 |
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 ~amd64-fbsd ~x86-fbsd ~arm-linux ~x86-linux" |
64 |
IUSE="+deprecated emacs readline static" |
65 |
|
66 |
RDEPEND="readline? ( sys-libs/readline )" |
67 |
DEPEND="${RDEPEND} |
68 |
sys-devel/libtool" |
69 |
PDEPEND="emacs? ( app-emacs/lua-mode )" |
70 |
|
71 |
src_prepare() { |
72 |
local PATCH_PV=$(get_version_component_range 1-2) |
73 |
|
74 |
epatch "${FILESDIR}"/${PN}-${PATCH_PV}-make-r1.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:5:1/' src/Makefile |
81 |
|
82 |
sed -i -e 's:\(/README\)\("\):\1.gz\2:g' doc/readme.html |
83 |
|
84 |
if ! use deprecated ; then |
85 |
# patches from 5.1.4 still apply |
86 |
epatch "${FILESDIR}"/${PN}-5.1.4-deprecated.patch |
87 |
epatch "${FILESDIR}"/${PN}-5.1.4-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 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 |
# Note 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:'${EPREFIX}'/usr:' \ |
107 |
-e "s:\([/\"]\)\<lib\>:\1$(get_libdir):g" \ |
108 |
etc/lua.pc src/luaconf.h || die |
109 |
} |
110 |
|
111 |
# no need for a configure phase |
112 |
src_configure() { true; } |
113 |
|
114 |
src_compile() { |
115 |
tc-export CC |
116 |
myflags= |
117 |
# what to link to liblua |
118 |
liblibs="-lm" |
119 |
liblibs="${liblibs} $(dlopen_lib)" |
120 |
|
121 |
# what to link to the executables |
122 |
mylibs= |
123 |
if use readline; then |
124 |
mylibs="-lreadline" |
125 |
fi |
126 |
|
127 |
cd src |
128 |
emake CC="${CC}" CFLAGS="-DLUA_USE_LINUX ${CFLAGS}" \ |
129 |
RPATH="${EPREFIX}/usr/$(get_libdir)/" \ |
130 |
LUA_LIBS="${mylibs}" \ |
131 |
LIB_LIBS="${liblibs}" \ |
132 |
V=${PV} \ |
133 |
gentoo_all || die "emake failed" |
134 |
|
135 |
mv lua_test ../test/lua.static |
136 |
} |
137 |
|
138 |
src_install() { |
139 |
emake INSTALL_TOP="${ED}/usr" INSTALL_LIB="${ED}/usr/$(get_libdir)" \ |
140 |
V=${PV} gentoo_install \ |
141 |
|| die "emake install gentoo_install failed" |
142 |
|
143 |
dodoc HISTORY README |
144 |
dohtml doc/*.html doc/*.png doc/*.css doc/*.gif |
145 |
|
146 |
doicon etc/lua.ico |
147 |
insinto /usr/$(get_libdir)/pkgconfig |
148 |
doins etc/lua.pc |
149 |
|
150 |
doman doc/lua.1 doc/luac.1 |
151 |
} |
152 |
|
153 |
src_test() { |
154 |
local positive="bisect cf echo env factorial fib fibfor hello printf sieve |
155 |
sort trace-calls trace-globals" |
156 |
local negative="readonly" |
157 |
local test |
158 |
|
159 |
cd "${S}" |
160 |
for test in ${positive}; do |
161 |
test/lua.static test/${test}.lua || die "test $test failed" |
162 |
done |
163 |
|
164 |
for test in ${negative}; do |
165 |
test/lua.static test/${test}.lua && die "test $test failed" |
166 |
done |
167 |
} |