/[gentoo-x86]/dev-libs/luaexpat/luaexpat-1.1.ebuild
Gentoo

Contents of /dev-libs/luaexpat/luaexpat-1.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Fri Nov 5 20:48:22 2010 UTC (4 years ago) by rafaelmartins
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +1 -1 lines
FILE REMOVED
Moving dev-libs/luaexpat to dev-lua/luaexpat.

1 # Copyright 1999-2010 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-libs/luaexpat/luaexpat-1.1.ebuild,v 1.1 2010/01/02 12:10:38 djc Exp $
4
5 EAPI=2
6
7 inherit multilib toolchain-funcs flag-o-matic eutils
8
9 DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library."
10 HOMEPAGE="http://www.keplerproject.org/luaexpat/"
11 SRC_URI="http://luaforge.net/frs/download.php/2469/${P}.tar.gz"
12
13 LICENSE="MIT"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE=""
17
18 RDEPEND=">=dev-lang/lua-5.1[deprecated]
19 dev-libs/expat"
20 DEPEND="${RDEPEND}
21 dev-util/pkgconfig"
22
23 src_prepare() {
24 sed -i -e "s#^LUA_LIBDIR=.*#LUA_LIBDIR=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/config"
25 sed -i -e "s#^LUA_DIR=.*#LUA_DIR=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/config"
26 sed -i -e "s#^LUA_INC=.*#LUA_INC=$(pkg-config --variable INSTALL_INC lua)#" "${S}/config"
27 sed -i -e "s#^EXPAT_INC=.*#EXPAT_INC=/usr/include#" "${S}/config"
28 sed -i -e "s#^LUA_VERSION_NUM=.*#LUA_VERSION_NUM=501#" "${S}/config"
29 epatch "${FILESDIR}/${P}-makefile.patch"
30 }
31
32 src_compile() {
33 append-flags -fPIC
34 emake \
35 CFLAGS="${CFLAGS}" \
36 LDFLAGS="${LDFLAGS}" \
37 CC="$(tc-getCC)" \
38 LD="$(tc-getCC) -shared" \
39 || die
40 }
41
42 src_install() {
43 make DESTDIR="${D}" install || die "Install failed"
44 dodoc README || die
45 dohtml -r doc/* || die
46 }

  ViewVC Help
Powered by ViewVC 1.1.20