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