Gentoo Archives: gentoo-commits

From: "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-lua/luaevent-prosody: metadata.xml ChangeLog luaevent-prosody-0.1.1.ebuild
Date: Fri, 05 Nov 2010 20:03:31
Message-Id: 20101105200327.A653720051@flycatcher.gentoo.org
1 rafaelmartins 10/11/05 20:03:27
2
3 Added: metadata.xml ChangeLog
4 luaevent-prosody-0.1.1.ebuild
5 Log:
6 Moved from dev-libs to dev-lua. Added myself to metadata.xml
7
8 (Portage version: 2.2.0_alpha3/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 dev-lua/luaevent-prosody/metadata.xml
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/metadata.xml?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/metadata.xml?rev=1.1&content-type=text/plain
15
16 Index: metadata.xml
17 ===================================================================
18 <?xml version="1.0" encoding="UTF-8"?>
19 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
20 <pkgmetadata>
21 <herd>no-herd</herd>
22 <maintainer>
23 <email>djc@g.o</email>
24 </maintainer>
25 <maintainer>
26 <email>rafaelmartins@g.o</email>
27 </maintainer>
28 </pkgmetadata>
29
30
31
32 1.1 dev-lua/luaevent-prosody/ChangeLog
33
34 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/ChangeLog?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/ChangeLog?rev=1.1&content-type=text/plain
36
37 Index: ChangeLog
38 ===================================================================
39 # ChangeLog for dev-lua/luaevent-prosody
40 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
41 # $Header: /var/cvsroot/gentoo-x86/dev-lua/luaevent-prosody/ChangeLog,v 1.1 2010/11/05 20:03:27 rafaelmartins Exp $
42
43 05 Nov 2010; Rafael G. Martins <rafaelmartins@g.o>
44 +luaevent-prosody-0.1.1.ebuild, +metadata.xml:
45 Moved from dev-libs to dev-lua. Added myself to metadata.xml
46
47 11 Aug 2010; Markos Chandras <hwoarang@g.o>
48 luaevent-prosody-0.1.1.ebuild:
49 Respect CC,CFLAGS,LDFLAGS. Bug #331849. Thanks to Diego E. 'Flameeyes'
50 Pettenò <flameeyes@g.o> for reporting
51
52 13 Jul 2010; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o>
53 metadata.xml:
54 Added missing herd tag to metadata.xml
55
56 *luaevent-prosody-0.1.1 (12 Jul 2010)
57
58 12 Jul 2010; Dirkjan Ochtman <djc@g.o>
59 +luaevent-prosody-0.1.1.ebuild, +metadata.xml:
60 Initial version (for net-im/prosody-0.7).
61
62
63
64
65 1.1 dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild
66
67 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild?rev=1.1&view=markup
68 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luaevent-prosody/luaevent-prosody-0.1.1.ebuild?rev=1.1&content-type=text/plain
69
70 Index: luaevent-prosody-0.1.1.ebuild
71 ===================================================================
72 # Copyright 1999-2010 Gentoo Foundation
73 # Distributed under the terms of the GNU General Public License v2
74 # $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 $
75
76 EAPI=2
77
78 inherit multilib toolchain-funcs flag-o-matic eutils
79
80 DESCRIPTION="libevent bindings for Lua (Prosody's fork)"
81 HOMEPAGE="http://code.matthewwild.co.uk/luaevent-prosody"
82 SRC_URI="http://matthewwild.co.uk/uploads/${P}.tar.gz"
83
84 LICENSE="LGPL-2.1"
85 SLOT="0"
86 KEYWORDS="~amd64 ~x86"
87 IUSE=""
88
89 RDEPEND=">=dev-lang/lua-5.1
90 >=dev-libs/libevent-1.4"
91 DEPEND="${RDEPEND}
92 dev-util/pkgconfig"
93
94 src_prepare() {
95 sed -i -e "s#^INSTALL_DIR_LUA=.*#INSTALL_DIR_LUA=$(pkg-config --variable INSTALL_LMOD lua)#" "${S}/Makefile"
96 sed -i -e "s#^INSTALL_DIR_BIN=.*#INSTALL_DIR_BIN=$(pkg-config --variable INSTALL_CMOD lua)#" "${S}/Makefile"
97 sed -i -e "s#^LUA_INC_DIR=.*#LUA_INC_DIR=$(pkg-config --variable INSTALL_INC lua)#" "${S}/Makefile"
98 sed -i -e "s#^LUA_LIB_DIR=.*#LUA_LIB_DIR=$(pkg-config --variable INSTALL_LIB lua)#" "${S}/Makefile"
99 sed -i -e "s#^LUA_LIB =.*#LUA_LIB=lua#" "${S}/Makefile"
100 }
101
102 src_compile() {
103 append-flags -fPIC -c
104 emake \
105 CFLAGS="${LDFLAGS} ${CFLAGS}" \
106 LDFLAGS="${LDFLAGS} -shared" \
107 CC="$(tc-getCC)" \
108 LD="$(tc-getCC) -shared" \
109 all \
110 || die
111 }
112
113 src_install() {
114 emake \
115 CFLAGS="${LDFLAGS} ${CFLAGS}" \
116 LDFLAGS="${LDFLAGS} -shared" \
117 CC="$(tc-getCC)" \
118 DESTDIR="${D}" install || die "Install failed"
119 }