From: | "Rafael Martins (rafaelmartins)" <rafaelmartins@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lua/luarocks: metadata.xml ChangeLog luarocks-1.0.ebuild |
Date: | Fri, 05 Nov 2010 22:13:29 |
Message-Id: | 20101105221324.2639320051@flycatcher.gentoo.org |
1 | rafaelmartins 10/11/05 22:13:24 |
2 | |
3 | Added: metadata.xml ChangeLog luarocks-1.0.ebuild |
4 | Log: |
5 | Moved from dev-lang to dev-lua. Added myself to metadata.xml. |
6 | |
7 | (Portage version: 2.2.0_alpha3/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.1 dev-lua/luarocks/metadata.xml |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/metadata.xml?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/metadata.xml?rev=1.1&content-type=text/plain |
14 | |
15 | Index: metadata.xml |
16 | =================================================================== |
17 | <?xml version="1.0" encoding="UTF-8"?> |
18 | <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
19 | <pkgmetadata> |
20 | <herd>no-herd</herd> |
21 | <maintainer> |
22 | <email>mabi@g.o</email> |
23 | </maintainer> |
24 | <maintainer> |
25 | <email>rafaelmartins@g.o</email> |
26 | </maintainer> |
27 | <use> |
28 | <flag name='curl'>Uses <pkg>net-misc/curl</pkg> for fetching lua |
29 | packages instead of <pkg>net-misc/wget</pkg>.</flag> |
30 | <flag name='openssl'>Uses <pkg>dev-libs/openssl</pkg> for verifying lua |
31 | packages instead of md5sum.</flag> |
32 | </use> |
33 | </pkgmetadata> |
34 | |
35 | |
36 | |
37 | 1.1 dev-lua/luarocks/ChangeLog |
38 | |
39 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/ChangeLog?rev=1.1&view=markup |
40 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/ChangeLog?rev=1.1&content-type=text/plain |
41 | |
42 | Index: ChangeLog |
43 | =================================================================== |
44 | # ChangeLog for dev-lua/luarocks |
45 | # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
46 | # $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.1 2010/11/05 22:13:24 rafaelmartins Exp $ |
47 | |
48 | 05 Nov 2010; Rafael G. Martins <rafaelmartins@g.o> |
49 | +luarocks-1.0.ebuild, +metadata.xml: |
50 | Moved from dev-lang to dev-lua. Added myself to metadata.xml. |
51 | |
52 | *luarocks-1.0 (22 Oct 2008) |
53 | |
54 | 22 Oct 2008; Matti Bickel <mabi@g.o> +metadata.xml, |
55 | +luarocks-1.0.ebuild: |
56 | initial version. Thanks to A.S. Bradbury (asb@××××××××××.org) for the |
57 | original ebuild |
58 | |
59 | |
60 | |
61 | |
62 | 1.1 dev-lua/luarocks/luarocks-1.0.ebuild |
63 | |
64 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/luarocks-1.0.ebuild?rev=1.1&view=markup |
65 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/luarocks-1.0.ebuild?rev=1.1&content-type=text/plain |
66 | |
67 | Index: luarocks-1.0.ebuild |
68 | =================================================================== |
69 | # Copyright 1999-2010 Gentoo Foundation |
70 | # Distributed under the terms of the GNU General Public License v2 |
71 | # $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/luarocks-1.0.ebuild,v 1.1 2010/11/05 22:13:24 rafaelmartins Exp $ |
72 | |
73 | inherit eutils |
74 | |
75 | DESCRIPTION="A deployment and management system for Lua modules" |
76 | HOMEPAGE="http://www.luarocks.org" |
77 | SRC_URI="http://luaforge.net/frs/download.php/3727/${P}.tar.gz" |
78 | |
79 | LICENSE="MIT" |
80 | SLOT="0" |
81 | KEYWORDS="~x86 ~amd64 ~ppc" |
82 | IUSE="curl openssl" |
83 | |
84 | DEPEND="dev-lang/lua |
85 | curl? ( net-misc/curl ) |
86 | openssl? ( dev-libs/openssl )" |
87 | RDEPEND="${DEPEND} |
88 | app-arch/unzip" |
89 | |
90 | src_compile() { |
91 | USE_MD5="md5sum" |
92 | USE_FETCH="wget" |
93 | use openssl && USE_MD5="openssl" |
94 | use curl && USE_FETCH="curl" |
95 | |
96 | # econf doesn't work b/c it passes variables the custom configure can't |
97 | # handle |
98 | ./configure \ |
99 | --prefix=/usr \ |
100 | --scripts-dir=/usr/bin \ |
101 | --with-lua=/usr \ |
102 | --with-lua-lib=/usr/$(get_libdir) \ |
103 | --rocks-tree=/usr/lib/lua/luarocks \ |
104 | --with-downloader=$USE_FETCH \ |
105 | --with-md5-checker=$USE_MD5 \ |
106 | --force-config || die "configure failed" |
107 | emake DESTDIR="${D}" || die "make failed" |
108 | } |
109 | |
110 | src_install() { |
111 | emake DESTDIR="${D}" install || die "einstall" |
112 | } |
113 | |
114 | pkg_preinst() { |
115 | find "${D}" -type f | xargs sed -i -e "s:${D}::g" || die "sed failed" |
116 | } |