summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2014-06-15 13:38:03 +0000
committerMichał Górny <mgorny@gentoo.org>2014-06-15 13:38:03 +0000
commit05368a77ea2e3b2f3d3d0d94fe7ba07bcd7badc2 (patch)
tree387d398ead4ccca35c3113901f13f3808e1e6b01 /dev-lua/luaexpat
parentEnable multilib support, required by media-libs/libquvi-scripts. (diff)
downloadgentoo-2-05368a77ea2e3b2f3d3d0d94fe7ba07bcd7badc2.tar.gz
gentoo-2-05368a77ea2e3b2f3d3d0d94fe7ba07bcd7badc2.tar.bz2
gentoo-2-05368a77ea2e3b2f3d3d0d94fe7ba07bcd7badc2.zip
Enable multilib support, required by media-libs/libquvi-scripts.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key EFB4464E!)
Diffstat (limited to 'dev-lua/luaexpat')
-rw-r--r--dev-lua/luaexpat/ChangeLog7
-rw-r--r--dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild52
2 files changed, 58 insertions, 1 deletions
diff --git a/dev-lua/luaexpat/ChangeLog b/dev-lua/luaexpat/ChangeLog
index e683ea489a42..c715d76d4185 100644
--- a/dev-lua/luaexpat/ChangeLog
+++ b/dev-lua/luaexpat/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-lua/luaexpat
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/ChangeLog,v 1.15 2014/04/17 00:15:38 zx2c4 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/ChangeLog,v 1.16 2014/06/15 13:38:03 mgorny Exp $
+
+*luaexpat-1.3.0-r1 (15 Jun 2014)
+
+ 15 Jun 2014; Michał Górny <mgorny@gentoo.org> +luaexpat-1.3.0-r1.ebuild:
+ Enable multilib support, required by media-libs/libquvi-scripts.
*luaexpat-1.3.0 (17 Apr 2014)
diff --git a/dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild b/dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild
new file mode 100644
index 000000000000..a6dfd9555fc2
--- /dev/null
+++ b/dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaexpat/luaexpat-1.3.0-r1.ebuild,v 1.1 2014/06/15 13:38:03 mgorny Exp $
+
+EAPI=5
+
+inherit multilib toolchain-funcs flag-o-matic eutils multilib-minimal
+
+DESCRIPTION="LuaExpat is a SAX XML parser based on the Expat library"
+HOMEPAGE="http://www.keplerproject.org/luaexpat/"
+SRC_URI="http://matthewwild.co.uk/projects/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1[deprecated,${MULTILIB_USEDEP}]
+ dev-libs/expat[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig[${MULTILIB_USEDEP}]"
+
+src_prepare() {
+ multilib_copy_sources
+
+ append-flags -fPIC
+}
+
+multilib_src_compile() {
+ emake \
+ CFLAGS="${CFLAGS}" \
+ LDFLAGS="${LDFLAGS}" \
+ CC="$(tc-getCC)" \
+ LD="$(tc-getCC) -shared" \
+ LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
+ LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
+ LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)"
+}
+
+multilib_src_install() {
+ emake \
+ DESTDIR="${D}" \
+ LUA_LDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_LMOD lua)" \
+ LUA_CDIR="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)" \
+ LUA_INC="-I$($(tc-getPKG_CONFIG) --variable INSTALL_INC lua)" \
+ install
+}
+
+multilib_src_install_all() {
+ dodoc README
+ dohtml -r doc/*
+}