From: | "Diego Petteno (flameeyes)" <flameeyes@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-libs/luasocket: metadata.xml ChangeLog luasocket-2.0.2.ebuild |
Date: | Mon, 28 Sep 2009 10:54:32 |
Message-Id: | E1MsDsD-00067X-In@stork.gentoo.org |
1 | flameeyes 09/09/28 10:54:29 |
2 | |
3 | Added: metadata.xml ChangeLog luasocket-2.0.2.ebuild |
4 | Log: |
5 | Initial import of luasocket (needed for ekeyd); thanks to Pierre Guinoiseau in bug #239540 for the basic ebuild. |
6 | (Portage version: 2.2_rc42/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 dev-libs/luasocket/metadata.xml |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/metadata.xml?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/metadata.xml?rev=1.1&content-type=text/plain |
13 | |
14 | Index: metadata.xml |
15 | =================================================================== |
16 | <?xml version="1.0" encoding="UTF-8"?> |
17 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
18 | <pkgmetadata> |
19 | <herd>no-herd</herd> |
20 | <maintainer> |
21 | <email>flameeyes@g.o</email> |
22 | <description> |
23 | I need this for app-crypt/ekeyd, if you care about this for LUA, |
24 | or for any other reason, you're free to pick it up; please just |
25 | leave the unix socket support in, thanks! |
26 | </description> |
27 | </maintainer> |
28 | </pkgmetadata> |
29 | |
30 | |
31 | |
32 | 1.1 dev-libs/luasocket/ChangeLog |
33 | |
34 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/ChangeLog?rev=1.1&view=markup |
35 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/ChangeLog?rev=1.1&content-type=text/plain |
36 | |
37 | Index: ChangeLog |
38 | =================================================================== |
39 | # ChangeLog for dev-libs/luasocket |
40 | # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
41 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/luasocket/ChangeLog,v 1.1 2009/09/28 10:54:29 flameeyes Exp $ |
42 | |
43 | *luasocket-2.0.2 (28 Sep 2009) |
44 | |
45 | 28 Sep 2009; Diego E. Pettenò <flameeyes@g.o> |
46 | +luasocket-2.0.2.ebuild, +files/luasocket-2.0.2-unixsocket.patch, |
47 | +metadata.xml: |
48 | Initial import of luasocket (needed for ekeyd); thanks to Pierre |
49 | Guinoiseau in bug #239540 for the basic ebuild. |
50 | |
51 | |
52 | |
53 | |
54 | 1.1 dev-libs/luasocket/luasocket-2.0.2.ebuild |
55 | |
56 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/luasocket-2.0.2.ebuild?rev=1.1&view=markup |
57 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-libs/luasocket/luasocket-2.0.2.ebuild?rev=1.1&content-type=text/plain |
58 | |
59 | Index: luasocket-2.0.2.ebuild |
60 | =================================================================== |
61 | # Copyright 1999-2009 Gentoo Foundation |
62 | # Distributed under the terms of the GNU General Public License v2 |
63 | # $Header: /var/cvsroot/gentoo-x86/dev-libs/luasocket/luasocket-2.0.2.ebuild,v 1.1 2009/09/28 10:54:29 flameeyes Exp $ |
64 | |
65 | EAPI=2 |
66 | |
67 | inherit multilib toolchain-funcs flag-o-matic eutils |
68 | |
69 | DESCRIPTION="Networking support library for the Lua language." |
70 | HOMEPAGE="http://www.tecgraf.puc-rio.br/~diego/professional/luasocket/" |
71 | SRC_URI="http://luaforge.net/frs/download.php/2664/${P}.tar.gz" |
72 | |
73 | LICENSE="MIT" |
74 | SLOT="0" |
75 | KEYWORDS="~amd64 ~x86" |
76 | IUSE="debug" |
77 | |
78 | RDEPEND=">=dev-lang/lua-5.1[deprecated]" |
79 | DEPEND="${RDEPEND} |
80 | dev-util/pkgconfig" |
81 | |
82 | src_prepare() { |
83 | # Unix socket support is needed by app-crypt/ekeyd, but upstream |
84 | # does not seem to enable it by default. |
85 | epatch "${FILESDIR}"/${P}-unixsocket.patch |
86 | } |
87 | |
88 | src_compile() { |
89 | # We append flags here to avoid editing the config file |
90 | use debug && append-flags -DLUASOCKET_DEBUG |
91 | append-flags -fPIC |
92 | |
93 | emake \ |
94 | CFLAGS="${CFLAGS}" \ |
95 | LDFLAGS="${LDFLAGS}" \ |
96 | CC="$(tc-getCC)" \ |
97 | LD="$(tc-getCC) -shared" \ |
98 | || die |
99 | } |
100 | |
101 | src_install() { |
102 | emake install \ |
103 | INSTALL_TOP_SHARE="${D}/$(pkg-config --variable INSTALL_LMOD lua)" \ |
104 | INSTALL_TOP_LIB="${D}/$(pkg-config --variable INSTALL_CMOD lua | sed -e "s:lib/:$(get_libdir)/:")" \ |
105 | || die |
106 | |
107 | dodoc NEW README || die |
108 | dohtml doc/* || die |
109 | } |