summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRafael Martins <rafaelmartins@gentoo.org>2010-11-05 22:13:24 +0000
committerRafael Martins <rafaelmartins@gentoo.org>2010-11-05 22:13:24 +0000
commit0d2dc19edcefa2d1d5e134034c26ef468aba305b (patch)
treec75a8521e7694d0d007e92ee8ea250bb97365727 /dev-lua/luarocks
parentVersion bump. Enable introspection support but disable related tests, they se... (diff)
downloadhistorical-0d2dc19edcefa2d1d5e134034c26ef468aba305b.tar.gz
historical-0d2dc19edcefa2d1d5e134034c26ef468aba305b.tar.bz2
historical-0d2dc19edcefa2d1d5e134034c26ef468aba305b.zip
Moved from dev-lang to dev-lua. Added myself to metadata.xml.
Package-Manager: portage-2.2.0_alpha3/cvs/Linux x86_64
Diffstat (limited to 'dev-lua/luarocks')
-rw-r--r--dev-lua/luarocks/ChangeLog15
-rw-r--r--dev-lua/luarocks/Manifest4
-rw-r--r--dev-lua/luarocks/luarocks-1.0.ebuild48
-rw-r--r--dev-lua/luarocks/metadata.xml17
4 files changed, 84 insertions, 0 deletions
diff --git a/dev-lua/luarocks/ChangeLog b/dev-lua/luarocks/ChangeLog
new file mode 100644
index 000000000000..9c5e3b096052
--- /dev/null
+++ b/dev-lua/luarocks/ChangeLog
@@ -0,0 +1,15 @@
+# ChangeLog for dev-lua/luarocks
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.1 2010/11/05 22:13:24 rafaelmartins Exp $
+
+ 05 Nov 2010; Rafael G. Martins <rafaelmartins@gentoo.org>
+ +luarocks-1.0.ebuild, +metadata.xml:
+ Moved from dev-lang to dev-lua. Added myself to metadata.xml.
+
+*luarocks-1.0 (22 Oct 2008)
+
+ 22 Oct 2008; Matti Bickel <mabi@gentoo.org> +metadata.xml,
+ +luarocks-1.0.ebuild:
+ initial version. Thanks to A.S. Bradbury (asb@asbradbury.org) for the
+ original ebuild
+
diff --git a/dev-lua/luarocks/Manifest b/dev-lua/luarocks/Manifest
new file mode 100644
index 000000000000..156b5dd4666a
--- /dev/null
+++ b/dev-lua/luarocks/Manifest
@@ -0,0 +1,4 @@
+DIST luarocks-1.0.tar.gz 50339 RMD160 b387194c589a9df4c4ffa40c880f6a7272985eed SHA1 96223c3da6257e5370d031221279b1c89731baef SHA256 7177cd32c55214ffd0c3543c1350b4e5f3908e81308f65c573fd5b03dc2d711d
+EBUILD luarocks-1.0.ebuild 1272 RMD160 1e4301906239c9f94383f35c07bb9445e60eeae7 SHA1 4d3361a8c767c4a9752273fa38a64daa4dde0d15 SHA256 28fd3acfd67ab862056c3efb22bf5494c6c20c916786d067bb1fb516676204d7
+MISC ChangeLog 581 RMD160 5f5201b268a7049a199747611432ba6419404d4e SHA1 1390069879f435c624da98c0bf54e092e81c8bcd SHA256 99454dc9f7d79f3627c2b9142add11d08bf4d520c4d827eda25beb43aa9b6736
+MISC metadata.xml 565 RMD160 6b8a03931fd3e8f32bedf5785ef39a79e4ef9227 SHA1 1910275ac567577e5bc22b79167adfe3f3a5004d SHA256 b5113a1514dc76f4b1d1adecd3f795962c1f5d52123653b8d929c4c3edf45080
diff --git a/dev-lua/luarocks/luarocks-1.0.ebuild b/dev-lua/luarocks/luarocks-1.0.ebuild
new file mode 100644
index 000000000000..921d396f39cb
--- /dev/null
+++ b/dev-lua/luarocks/luarocks-1.0.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/luarocks-1.0.ebuild,v 1.1 2010/11/05 22:13:24 rafaelmartins Exp $
+
+inherit eutils
+
+DESCRIPTION="A deployment and management system for Lua modules"
+HOMEPAGE="http://www.luarocks.org"
+SRC_URI="http://luaforge.net/frs/download.php/3727/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~x86 ~amd64 ~ppc"
+IUSE="curl openssl"
+
+DEPEND="dev-lang/lua
+ curl? ( net-misc/curl )
+ openssl? ( dev-libs/openssl )"
+RDEPEND="${DEPEND}
+ app-arch/unzip"
+
+src_compile() {
+ USE_MD5="md5sum"
+ USE_FETCH="wget"
+ use openssl && USE_MD5="openssl"
+ use curl && USE_FETCH="curl"
+
+ # econf doesn't work b/c it passes variables the custom configure can't
+ # handle
+ ./configure \
+ --prefix=/usr \
+ --scripts-dir=/usr/bin \
+ --with-lua=/usr \
+ --with-lua-lib=/usr/$(get_libdir) \
+ --rocks-tree=/usr/lib/lua/luarocks \
+ --with-downloader=$USE_FETCH \
+ --with-md5-checker=$USE_MD5 \
+ --force-config || die "configure failed"
+ emake DESTDIR="${D}" || die "make failed"
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "einstall"
+}
+
+pkg_preinst() {
+ find "${D}" -type f | xargs sed -i -e "s:${D}::g" || die "sed failed"
+}
diff --git a/dev-lua/luarocks/metadata.xml b/dev-lua/luarocks/metadata.xml
new file mode 100644
index 000000000000..82426290bd38
--- /dev/null
+++ b/dev-lua/luarocks/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>no-herd</herd>
+ <maintainer>
+ <email>mabi@gentoo.org</email>
+ </maintainer>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name='curl'>Uses <pkg>net-misc/curl</pkg> for fetching lua
+ packages instead of <pkg>net-misc/wget</pkg>.</flag>
+ <flag name='openssl'>Uses <pkg>dev-libs/openssl</pkg> for verifying lua
+ packages instead of md5sum.</flag>
+ </use>
+</pkgmetadata>