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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.3 Revision 1.4
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent/luaevent-0.3.1.ebuild,v 1.3 2011/04/07 00:56:33 blueness Exp $ 3# $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent/luaevent-0.3.1.ebuild,v 1.4 2011/08/21 17:30:36 blueness Exp $
4 4
5EAPI=2 5EAPI=2
6 6
7inherit toolchain-funcs 7inherit toolchain-funcs
8 8
19 >=dev-libs/libevent-1.4" 19 >=dev-libs/libevent-1.4"
20DEPEND="${RDEPEND} 20DEPEND="${RDEPEND}
21 dev-util/pkgconfig" 21 dev-util/pkgconfig"
22 22
23src_prepare() { 23src_prepare() {
24 sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" 24 sed -i "s:^CFLAGS =:CFLAGS +=:" "${S}/Makefile" \
25 || die "sed failed"
25 sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" 26 sed -i "s:^LDFLAGS =:LDFLAGS +=:" "${S}/Makefile" \
27 || die "sed failed"
26 sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" 28 sed -i "/^LDFLAGS/a CC = $(tc-getCC)" "${S}/Makefile" \
29 || die "sed failed"
27 sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" 30 sed -i "s:^LUA_INC_DIR ?=.*:LUA_INC_DIR ?= $(pkg-config --variable INSTALL_INC lua):" "${S}/Makefile" \
31 || die "sed failed"
28 sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" 32 sed -i "s:^INSTALL_DIR_LUA ?=.*:INSTALL_DIR_LUA ?= $(pkg-config --variable INSTALL_LMOD lua):" "${S}/Makefile" \
33 || die "sed failed"
29 sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" 34 sed -i "s:^INSTALL_DIR_BIN ?=.*:INSTALL_DIR_BIN ?= $(pkg-config --variable INSTALL_CMOD lua):" "${S}/Makefile" \
35 || die "sed failed"
30} 36}
31 37
32src_install() { 38src_install() {
33 emake DESTDIR="${D}" install || die "Install failed" 39 emake DESTDIR="${D}" install || die "Install failed"
34} 40}

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20