diff options
author | Rafael Martins <rafaelmartins@gentoo.org> | 2010-11-05 20:03:27 +0000 |
---|---|---|
committer | Rafael Martins <rafaelmartins@gentoo.org> | 2010-11-05 20:03:27 +0000 |
commit | 7978f2b0c1a3658eea05dd9d95a8be5b5af934b2 (patch) | |
tree | f3468405ee5e2beece07035b4a99e0d36bd1cbeb /dev-lua | |
parent | Pin glib/gtk+ to slot 2. (diff) | |
download | gentoo-2-7978f2b0c1a3658eea05dd9d95a8be5b5af934b2.tar.gz gentoo-2-7978f2b0c1a3658eea05dd9d95a8be5b5af934b2.tar.bz2 gentoo-2-7978f2b0c1a3658eea05dd9d95a8be5b5af934b2.zip |
Moved from dev-libs to dev-lua. Added myself to metadata.xml
(Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/luaevent-prosody/ChangeLog | 23 | ||||
-rw-r--r-- | dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild | 48 | ||||
-rw-r--r-- | dev-lua/luaevent-prosody/metadata.xml | 11 |
3 files changed, 82 insertions, 0 deletions
diff --git a/dev-lua/luaevent-prosody/ChangeLog b/dev-lua/luaevent-prosody/ChangeLog new file mode 100644 index 000000000000..96a6f934ac28 --- /dev/null +++ b/dev-lua/luaevent-prosody/ChangeLog @@ -0,0 +1,23 @@ +# ChangeLog for dev-lua/luaevent-prosody +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent-prosody/ChangeLog,v 1.1 2010/11/05 20:03:27 rafaelmartins Exp $ + + 05 Nov 2010; Rafael G. Martins <rafaelmartins@gentoo.org> + +luaevent-prosody-0.1.1.ebuild, +metadata.xml: + Moved from dev-libs to dev-lua. Added myself to metadata.xml + + 11 Aug 2010; Markos Chandras <hwoarang@gentoo.org> + luaevent-prosody-0.1.1.ebuild: + Respect CC,CFLAGS,LDFLAGS. Bug #331849. Thanks to Diego E. 'Flameeyes' + Pettenò <flameeyes@gentoo.org> for reporting + + 13 Jul 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@gentoo.org> + metadata.xml: + Added missing herd tag to metadata.xml + +*luaevent-prosody-0.1.1 (12 Jul 2010) + + 12 Jul 2010; Dirkjan Ochtman <djc@gentoo.org> + +luaevent-prosody-0.1.1.ebuild, +metadata.xml: + Initial version (for net-im/prosody-0.7). + diff --git a/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild b/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild new file mode 100644 index 000000000000..f5ae00e3558b --- /dev/null +++ b/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2010 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild,v 1.1 2010/11/05 20:03:27 rafaelmartins Exp $ + +EAPI=2 + +inherit multilib toolchain-funcs flag-o-matic eutils + +DESCRIPTION="libevent bindings for Lua (Prosody's fork)" +HOMEPAGE="http://code.matthewwild.co.uk/luaevent-prosody" +SRC_URI="http://matthewwild.co.uk/uploads/${P}.tar.gz" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=dev-lang/lua-5.1 + >=dev-libs/libevent-1.4" +DEPEND="${RDEPEND} + dev-util/pkgconfig" + +src_prepare() { + sed -i -e "s#^INSTALL_DIR_LUA=.*#INSTALL_DIR_LUA=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile" + sed -i -e "s#^INSTALL_DIR_BIN=.*#INSTALL_DIR_BIN=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile" + sed -i -e "s#^LUA_INC_DIR=.*#LUA_INC_DIR=$(pkg-config --variable INSTALL_INC lua)#" "${S}/Makefile" + sed -i -e "s#^LUA_LIB_DIR=.*#LUA_LIB_DIR=$(pkg-config --variable INSTALL_LIB lua)#" "${S}/Makefile" + sed -i -e "s#^LUA_LIB =.*#LUA_LIB=lua#" "${S}/Makefile" +} + +src_compile() { + append-flags -fPIC -c + emake \ + CFLAGS="${LDFLAGS} ${CFLAGS}" \ + LDFLAGS="${LDFLAGS} -shared" \ + CC="$(tc-getCC)" \ + LD="$(tc-getCC) -shared" \ + all \ + || die +} + +src_install() { + emake \ + CFLAGS="${LDFLAGS} ${CFLAGS}" \ + LDFLAGS="${LDFLAGS} -shared" \ + CC="$(tc-getCC)" \ + DESTDIR="${D}" install || die "Install failed" +} diff --git a/dev-lua/luaevent-prosody/metadata.xml b/dev-lua/luaevent-prosody/metadata.xml new file mode 100644 index 000000000000..be02d466dcff --- /dev/null +++ b/dev-lua/luaevent-prosody/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>no-herd</herd> + <maintainer> + <email>djc@gentoo.org</email> + </maintainer> + <maintainer> + <email>rafaelmartins@gentoo.org</email> + </maintainer> +</pkgmetadata> |