diff options
author | Vadim A. Misbakh-Soloviov <mva@mva.name> | 2012-04-23 12:16:18 +0700 |
---|---|---|
committer | Vadim A. Misbakh-Soloviov <mva@mva.name> | 2012-04-23 12:16:18 +0700 |
commit | 46ab7862e6db414458e3670277b0aa79316a509e (patch) | |
tree | 00d4f7a8795f65049cf9926e02132c72d0b7c023 /dev-lua/luaexpat | |
parent | fixed manifest, again :( (diff) | |
download | lua-46ab7862e6db414458e3670277b0aa79316a509e.tar.gz lua-46ab7862e6db414458e3670277b0aa79316a509e.tar.bz2 lua-46ab7862e6db414458e3670277b0aa79316a509e.zip |
bump!
(Portage version: 2.2.0_alpha100_p12/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-lua/luaexpat')
-rw-r--r-- | dev-lua/luaexpat/ChangeLog | 10 | ||||
-rw-r--r-- | dev-lua/luaexpat/files/luaexpat-9999-makefile.patch | 19 | ||||
-rw-r--r-- | dev-lua/luaexpat/luaexpat-9999.ebuild | 46 | ||||
-rw-r--r-- | dev-lua/luaexpat/metadata.xml | 14 |
4 files changed, 89 insertions, 0 deletions
diff --git a/dev-lua/luaexpat/ChangeLog b/dev-lua/luaexpat/ChangeLog new file mode 100644 index 0000000..96b6f35 --- /dev/null +++ b/dev-lua/luaexpat/ChangeLog @@ -0,0 +1,10 @@ +# ChangeLog for dev-lua/luaexpat +# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + +*luaexpat-9999 (24 Jul 2011) + + 24 Jul 2011; Misbakh-Soloviev Vadim A. (mva) <mva@mva.name> + +files/luaexpat-9999-makefile.patch, +luaexpat-9999.ebuild, +metadata.xml: + new lua pkgs && some admin utils + diff --git a/dev-lua/luaexpat/files/luaexpat-9999-makefile.patch b/dev-lua/luaexpat/files/luaexpat-9999-makefile.patch new file mode 100644 index 0000000..b503a4e --- /dev/null +++ b/dev-lua/luaexpat/files/luaexpat-9999-makefile.patch @@ -0,0 +1,19 @@ +--- makefile.old 2006-06-08 20:41:48.000000000 +0000 ++++ makefile 2009-10-26 14:19:08.000000000 +0000 +@@ -18,11 +18,11 @@ + $(CC) -c $(CFLAGS) -o $@ $(COMPAT_DIR)/compat-5.1.c + + install: +- mkdir -p $(LUA_LIBDIR) +- cp src/$(LIBNAME) $(LUA_LIBDIR) +- cd $(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so +- mkdir -p $(LUA_DIR)/$T +- cp src/$T/lom.lua $(LUA_DIR)/$T ++ mkdir -p $(DESTDIR)$(LUA_LIBDIR) ++ cp src/$(LIBNAME) $(DESTDIR)$(LUA_LIBDIR) ++ cd $(DESTDIR)$(LUA_LIBDIR); ln -f -s $(LIBNAME) $T.so ++ mkdir -p $(DESTDIR)$(LUA_DIR)/$T ++ cp src/$T/lom.lua $(DESTDIR)$(LUA_DIR)/$T + + clean: + rm -f src/$(LIBNAME) $(OBJS) diff --git a/dev-lua/luaexpat/luaexpat-9999.ebuild b/dev-lua/luaexpat/luaexpat-9999.ebuild new file mode 100644 index 0000000..48f9238 --- /dev/null +++ b/dev-lua/luaexpat/luaexpat-9999.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: This ebuild is from Lua overlay; Bumped by mva; $ + +EAPI="4" + +inherit multilib toolchain-funcs flag-o-matic mercurial eutils + +DESCRIPTION="XMPP client library written in Lua." +HOMEPAGE="http://code.mathewwild.co.uk/" +EHG_REPO_URI="http://code.matthewwild.co.uk/lua-expat/" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="" +IUSE="" + +RDEPEND=">=dev-lang/lua-5.1 + dev-libs/expat" +DEPEND="${RDEPEND} +dev-util/pkgconfig" + +src_prepare() { + sed -i -e "s#^LUA_LIBDIR=.*#LUA_LIBDIR=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/config" + sed -i -e "s#^LUA_DIR=.*#LUA_DIR=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/config" + sed -i -e "s#^LUA_INC=.*#LUA_INC=$(pkg-config --variable INSTALL_INC lua)#" "${S}/config" + sed -i -e "s#^EXPAT_INC=.*#EXPAT_INC=/usr/include#" "${S}/config" + sed -i -e "s#^LUA_VERSION_NUM=.*#LUA_VERSION_NUM=501#" "${S}/config" + epatch "${FILESDIR}/${P}-makefile.patch" +} + +src_compile() { + append-flags -fPIC + emake \ + CFLAGS="${CFLAGS}" \ + LDFLAGS="${LDFLAGS}" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC) -shared" \ + || die +} + +src_install() { + make DESTDIR="${D}" install || die "Install failed" + dodoc README || die + dohtml -r doc/* || die +} diff --git a/dev-lua/luaexpat/metadata.xml b/dev-lua/luaexpat/metadata.xml new file mode 100644 index 0000000..23da526 --- /dev/null +++ b/dev-lua/luaexpat/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<maintainer> + <email>mva@mva.name</email> + <description> + If you have any issues, please contact me, or try to find me in IRC on Freenode, OFTC or RusNet. + </description> + <name>Vadim A. Misbakh-Soloviov</name> +</maintainer> +<longdescription>FIXME</longdescription> +<use> +</use> +</pkgmetadata> |