diff options
author | Ali Polatel <hawking@gentoo.org> | 2008-08-21 17:56:10 +0300 |
---|---|---|
committer | Ali Polatel <hawking@gentoo.org> | 2008-08-21 17:56:10 +0300 |
commit | 52dc8540d9f6b61cb63e78cfa102ce1db0b1788e (patch) | |
tree | 39097eaaac1d7a09d15b37f9610bc873f420671f /dev-lua | |
parent | Added dev-lua/luabit (diff) | |
download | hawking-52dc8540d9f6b61cb63e78cfa102ce1db0b1788e.tar.gz hawking-52dc8540d9f6b61cb63e78cfa102ce1db0b1788e.tar.bz2 hawking-52dc8540d9f6b61cb63e78cfa102ce1db0b1788e.zip |
Added dev-lua/luaexpat
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/luaexpat/ChangeLog | 9 | ||||
-rw-r--r-- | dev-lua/luaexpat/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/luaexpat/luaexpat-1.1.0.ebuild | 46 |
3 files changed, 57 insertions, 0 deletions
diff --git a/dev-lua/luaexpat/ChangeLog b/dev-lua/luaexpat/ChangeLog new file mode 100644 index 0000000..c734198 --- /dev/null +++ b/dev-lua/luaexpat/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-lua/luaexpat +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*luaexpat-1.1.0 (21 Aug 2008) + + 21 Aug 2008; Ali Polatel <hawking@gentoo.org> +luaexpat-1.1.0.ebuild: + Initial ebuild + diff --git a/dev-lua/luaexpat/Manifest b/dev-lua/luaexpat/Manifest new file mode 100644 index 0000000..19aab11 --- /dev/null +++ b/dev-lua/luaexpat/Manifest @@ -0,0 +1,2 @@ +DIST luaexpat-1.1.0.tar.gz 27907 RMD160 f661c0e7f22363f51862187e96306498addea9d9 SHA1 ea359bdbd346ee378c47179a17ac3ee410be5c9d SHA256 9d709ddc606630f9b9dc3f3aafcb2a7c1fcb2675000c09978d8a37974e74effd +EBUILD luaexpat-1.1.0.ebuild 857 RMD160 b8364809b384fdcd6136a36df8d1dfb9489e77f7 SHA1 e69d38c653cc3b9b35d96e9e15fcc0ff5edad4f8 SHA256 4ccbe42b881e7eff725f54e6d4075b947587f089e41c9582c78f8e84335f78bc diff --git a/dev-lua/luaexpat/luaexpat-1.1.0.ebuild b/dev-lua/luaexpat/luaexpat-1.1.0.ebuild new file mode 100644 index 0000000..b386d9e --- /dev/null +++ b/dev-lua/luaexpat/luaexpat-1.1.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit multilib + +DESCRIPTION="A SAX XML parser based on the Expat library." +HOMEPAGE="http://www.keplerproject.org/luaexpat/i" +SRC_URI="http://luaforge.net/frs/download.php/2469/${P}.tar.gz" + +LICENSE="" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-lang/lua + >=dev-libs/expat-2.0.0" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/${P%.*}" + +src_unpack() { + unpack ${A} + cd "${S}" + + local luaver= + luaver="$(lua -v 2>&1| cut -d' ' -f2)" + luaver="${luaver%.*}" + + sed -i \ + -e "s:/usr/local/lib:\"${D}\"/usr/$(get_libdir):" \ + -e "s:/usr/local/share:\"${D}\"/usr/share:" \ + -e "s:usr/local:usr:" \ + -e "s:\(LUA_VERSION_NUM=\).*:\1 ${luaver}0:" \ + -e "s:5.0:${luaver}:" \ + -e "s:-O2:-fPIC ${CFLAGS}:" \ + config || die "sed in config failed" +} + +src_compile() { + emake || die "emake failed" +} + +src_install() { + emake install || die "emake install failed" +} |