diff options
Diffstat (limited to 'dev-lua/luaevent/luaevent-0.4.1.ebuild')
-rw-r--r-- | dev-lua/luaevent/luaevent-0.4.1.ebuild | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/dev-lua/luaevent/luaevent-0.4.1.ebuild b/dev-lua/luaevent/luaevent-0.4.1.ebuild new file mode 100644 index 000000000000..9b6e56bb0b9e --- /dev/null +++ b/dev-lua/luaevent/luaevent-0.4.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent/luaevent-0.4.1.ebuild,v 1.1 2012/08/13 14:34:52 blueness Exp $ + +EAPI="4" + +inherit toolchain-funcs + +DESCRIPTION="libevent bindings for Lua" +HOMEPAGE="http://luaforge.net/projects/luaevent http://repo.or.cz/w/luaevent.git" +SRC_URI="http://dev.gentoo.org/~blueness/luaevent/${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} + virtual/pkgconfig" + +src_prepare() { + sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \ + || die "sed failed" + sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \ + || die "sed failed" + sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \ + || die "sed failed" + sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \ + || die "sed failed" + sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \ + || die "sed failed" + sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \ + || die "sed failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "Install failed" +} |