From: | "Matti Bickel (mabi)" <mabi@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in dev-lua/luarocks: luarocks-2.0.12.ebuild ChangeLog luarocks-2.0.8-r1.ebuild |
Date: | Sun, 19 May 2013 22:08:47 |
Message-Id: | 20130519220841.2E3CB2171D@flycatcher.gentoo.org |
1 | mabi 13/05/19 22:08:41 |
2 | |
3 | Modified: ChangeLog |
4 | Added: luarocks-2.0.12.ebuild |
5 | Removed: luarocks-2.0.8-r1.ebuild |
6 | Log: |
7 | version bump |
8 | |
9 | (Portage version: 2.2.0_alpha168/cvs/Linux x86_64, signed Manifest commit with key 0x4849EC6C) |
10 | |
11 | Revision Changes Path |
12 | 1.6 dev-lua/luarocks/ChangeLog |
13 | |
14 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/ChangeLog?rev=1.6&view=markup |
15 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/ChangeLog?rev=1.6&content-type=text/plain |
16 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/ChangeLog?r1=1.5&r2=1.6 |
17 | |
18 | Index: ChangeLog |
19 | =================================================================== |
20 | RCS file: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v |
21 | retrieving revision 1.5 |
22 | retrieving revision 1.6 |
23 | diff -u -r1.5 -r1.6 |
24 | --- ChangeLog 19 May 2013 21:54:24 -0000 1.5 |
25 | +++ ChangeLog 19 May 2013 22:08:41 -0000 1.6 |
26 | @@ -1,6 +1,12 @@ |
27 | # ChangeLog for dev-lua/luarocks |
28 | # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 |
29 | -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.5 2013/05/19 21:54:24 mabi Exp $ |
30 | +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.6 2013/05/19 22:08:41 mabi Exp $ |
31 | + |
32 | +*luarocks-2.0.12 (19 May 2013) |
33 | + |
34 | + 19 May 2013; Matti Bickel <mabi@g.o> +luarocks-2.0.12.ebuild, |
35 | + -luarocks-2.0.8-r1.ebuild: |
36 | + version bump |
37 | |
38 | *luarocks-2.0.8-r1 (19 May 2013) |
39 | |
40 | |
41 | |
42 | |
43 | 1.1 dev-lua/luarocks/luarocks-2.0.12.ebuild |
44 | |
45 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/luarocks-2.0.12.ebuild?rev=1.1&view=markup |
46 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lua/luarocks/luarocks-2.0.12.ebuild?rev=1.1&content-type=text/plain |
47 | |
48 | Index: luarocks-2.0.12.ebuild |
49 | =================================================================== |
50 | # Copyright 1999-2013 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/luarocks-2.0.12.ebuild,v 1.1 2013/05/19 22:08:41 mabi Exp $ |
53 | |
54 | EAPI=4 |
55 | |
56 | inherit eutils multilib |
57 | |
58 | DESCRIPTION="A deployment and management system for Lua modules" |
59 | HOMEPAGE="http://www.luarocks.org" |
60 | SRC_URI="http://luarocks.org/releases/${P}.tar.gz" |
61 | |
62 | LICENSE="MIT" |
63 | SLOT="0" |
64 | KEYWORDS="~x86 ~amd64 ~ppc" |
65 | IUSE="curl openssl" |
66 | |
67 | DEPEND="dev-lang/lua |
68 | curl? ( net-misc/curl ) |
69 | openssl? ( dev-libs/openssl )" |
70 | RDEPEND="${DEPEND} |
71 | app-arch/unzip" |
72 | |
73 | src_configure() { |
74 | USE_MD5="md5sum" |
75 | USE_FETCH="wget" |
76 | use openssl && USE_MD5="openssl" |
77 | use curl && USE_FETCH="curl" |
78 | |
79 | # econf doesn't work b/c it passes variables the custom configure can't |
80 | # handle |
81 | ./configure \ |
82 | --prefix=/usr \ |
83 | --with-lua-lib=/usr/$(get_libdir) \ |
84 | --rocks-tree=/usr/$(get_libdir)/lua/luarocks \ |
85 | --with-downloader=$USE_FETCH \ |
86 | --with-md5-checker=$USE_MD5 \ |
87 | || die "configure failed" |
88 | } |
89 | |
90 | src_compile() { |
91 | # -j1 b/c make tries to delete files it has yet to create (bug #402005) |
92 | emake DESTDIR="${D}" -j1 || die "make failed" |
93 | } |
94 | |
95 | src_install() { |
96 | # -j1 b/c otherwise it fails to find src/bin/luarocks |
97 | emake DESTDIR="${D}" -j1 install || die "einstall" |
98 | } |
99 | |
100 | pkg_preinst() { |
101 | find "${D}" -type f | xargs sed -i -e "s:${D}::g" || die "sed failed" |
102 | } |