| 1 |
jdhore |
1.7 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
blueness |
1.1 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
jdhore |
1.7 |
# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent/luaevent-0.3.1.ebuild,v 1.6 2011/08/24 19:27:22 maekke Exp $
|
| 4 |
blueness |
1.1 |
|
| 5 |
|
|
EAPI=2
|
| 6 |
|
|
|
| 7 |
blueness |
1.2 |
inherit toolchain-funcs
|
| 8 |
blueness |
1.1 |
|
| 9 |
|
|
DESCRIPTION="libevent bindings for Lua"
|
| 10 |
blueness |
1.3 |
HOMEPAGE="http://luaforge.net/projects/luaevent http://repo.or.cz/w/luaevent.git"
|
| 11 |
blueness |
1.1 |
SRC_URI="http://dev.gentoo.org/~blueness/luaevent/${P}.tar.gz"
|
| 12 |
|
|
|
| 13 |
|
|
LICENSE="LGPL-2.1"
|
| 14 |
|
|
SLOT="0"
|
| 15 |
maekke |
1.6 |
KEYWORDS="amd64 x86"
|
| 16 |
blueness |
1.1 |
IUSE=""
|
| 17 |
|
|
|
| 18 |
|
|
RDEPEND=">=dev-lang/lua-5.1
|
| 19 |
|
|
>=dev-libs/libevent-1.4"
|
| 20 |
|
|
DEPEND="${RDEPEND}
|
| 21 |
jdhore |
1.7 |
virtual/pkgconfig"
|
| 22 |
blueness |
1.1 |
|
| 23 |
|
|
src_prepare() {
|
| 24 |
blueness |
1.4 |
sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \
|
| 25 |
|
|
|| die "sed failed"
|
| 26 |
|
|
sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \
|
| 27 |
|
|
|| die "sed failed"
|
| 28 |
|
|
sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \
|
| 29 |
|
|
|| die "sed failed"
|
| 30 |
|
|
sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \
|
| 31 |
|
|
|| die "sed failed"
|
| 32 |
|
|
sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \
|
| 33 |
|
|
|| die "sed failed"
|
| 34 |
|
|
sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \
|
| 35 |
|
|
|| die "sed failed"
|
| 36 |
blueness |
1.1 |
}
|
| 37 |
|
|
|
| 38 |
|
|
src_install() {
|
| 39 |
|
|
emake DESTDIR="${D}" install || die "Install failed"
|
| 40 |
|
|
}
|