/[gentoo-x86]/dev-lua/luaevent/luaevent-0.3.1.ebuild
Gentoo

Contents of /dev-lua/luaevent/luaevent-0.3.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jan 20 21:13:12 2011 UTC (3 years, 8 months ago) by blueness
Branch: MAIN
Initial commit, bug #333097

(Portage version: 2.1.9.25/cvs/Linux x86_64)

1 # Copyright 1999-2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $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 $
4
5 EAPI=2
6
7 #inherit toolchain-funcs
8 inherit multilib toolchain-funcs flag-o-matic eutils
9
10 DESCRIPTION="libevent bindings for Lua"
11 HOMEPAGE="http://luaforge.net/projects/luaevent"
12 SRC_URI="http://dev.gentoo.org/~blueness/luaevent/${P}.tar.gz"
13
14 LICENSE="LGPL-2.1"
15 SLOT="0"
16 KEYWORDS="~amd64 ~x86"
17 IUSE=""
18
19 RDEPEND=">=dev-lang/lua-5.1
20 >=dev-libs/libevent-1.4"
21 DEPEND="${RDEPEND}
22 dev-util/pkgconfig"
23
24 src_prepare() {
25 sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile"
26 sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile"
27 sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile"
28 sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile"
29 sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile"
30 sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile"
31 }
32
33 src_install() {
34 emake DESTDIR="${D}" install || die "Install failed"
35 }

  ViewVC Help
Powered by ViewVC 1.1.20