From: | "Dirkjan Ochtman (djc)" <djc@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lua/luaexpat: luaexpat-1.2.0-r1.ebuild ChangeLog |
Date: | Thu, 01 Mar 2012 12:51:30 |
Message-Id: | 20120301125119.4DAE82004B@flycatcher.gentoo.org |
1 | djc 12/03/01 12:51:19 |
2 | |
3 | Modified: ChangeLog |
4 | Added: luaexpat-1.2.0-r1.ebuild |
5 | Log: |
6 | Respect LDFLAGS (bug 336770), bumped EAPI. |
7 | |
8 | (Portage version: 2.1.10.49/cvs/Linux x86_64) |
9 | |
10 | Revision Changes Path |
11 | 1.5 dev-lua/luaexpat/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaexpat/ChangeLog?rev=1.5&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaexpat/ChangeLog?rev=1.5&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaexpat/ChangeLog?r1=1.4&r2=1.5 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/ChangeLog,v |
20 | retrieving revision 1.4 |
21 | retrieving revision 1.5 |
22 | diff -u -r1.4 -r1.5 |
23 | --- ChangeLog 24 Jun 2011 20:12:18 -0000 1.4 |
24 | +++ ChangeLog 1 Mar 2012 12:51:19 -0000 1.5 |
25 | @@ -1,6 +1,12 @@ |
26 | # ChangeLog for dev-lua/luaexpat |
27 | -# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/ChangeLog,v 1.4 2011/06/24 20:12:18 djc Exp $ |
29 | +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/ChangeLog,v 1.5 2012/03/01 12:51:19 djc Exp $ |
31 | + |
32 | +*luaexpat-1.2.0-r1 (01 Mar 2012) |
33 | + |
34 | + 01 Mar 2012; Dirkjan Ochtman <djc@g.o> |
35 | + +files/1.2.0-destdir-ldflags.patch, +luaexpat-1.2.0-r1.ebuild: |
36 | + Respect LDFLAGS (bug 336770), bumped EAPI. |
37 | |
38 | 24 Jun 2011; Dirkjan Ochtman <djc@g.o> -luaexpat-1.1.ebuild: |
39 | Remove vulnerable old version. |
40 | |
41 | |
42 | |
43 | 1.1 dev-lua/luaexpat/luaexpat-1.2.0-r1.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaexpat/luaexpat-1.2.0-r1.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaexpat/luaexpat-1.2.0-r1.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: luaexpat-1.2.0-r1.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2012 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/luaexpat-1.2.0-r1.ebuild,v 1.1 2012/03/01 12:51:18 djc Exp $ |
53 | |
54 | EAPI=4 |
55 | |
56 | inherit multilib toolchain-funcs flag-o-matic eutils |
57 | |
58 | DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library." |
59 | HOMEPAGE="http://www.keplerproject.org/luaexpat/" |
60 | SRC_URI="http://matthewwild.co.uk/projects/${PN}/${P}.tar.gz" |
61 | |
62 | LICENSE="MIT" |
63 | SLOT="0" |
64 | KEYWORDS="~amd64 ~x86" |
65 | IUSE="" |
66 | |
67 | RDEPEND=">=dev-lang/lua-5.1[deprecated] |
68 | dev-libs/expat" |
69 | DEPEND="${RDEPEND} |
70 | dev-util/pkgconfig" |
71 | |
72 | src_prepare() { |
73 | sed -i -e "s#^LUA_LIBDIR=.*#LUA_LIBDIR=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/config" |
74 | sed -i -e "s#^LUA_DIR=.*#LUA_DIR=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/config" |
75 | sed -i -e "s#^LUA_INC=.*#LUA_INC=$(pkg-config --variable INSTALL_INC lua)#" "${S}/config" |
76 | sed -i -e "s#^EXPAT_INC=.*#EXPAT_INC=/usr/include#" "${S}/config" |
77 | sed -i -e "s#^LUA_VERSION_NUM=.*#LUA_VERSION_NUM=501#" "${S}/config" |
78 | epatch "${FILESDIR}/${PV}-destdir-ldflags.patch" |
79 | } |
80 | |
81 | src_compile() { |
82 | append-flags -fPIC |
83 | emake \ |
84 | CFLAGS="${CFLAGS}" \ |
85 | LDFLAGS="${LDFLAGS}" \ |
86 | CC="$(tc-getCC)" \ |
87 | LD="$(tc-getCC) -shared" |
88 | } |
89 | |
90 | src_install() { |
91 | make DESTDIR="${D}" install |
92 | dodoc README |
93 | dohtml -r doc/* |
94 | } |