summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatti Bickel <mabi@gentoo.org>2008-10-22 22:07:20 +0000
committerMatti Bickel <mabi@gentoo.org>2008-10-22 22:07:20 +0000
commit30e77b1f35c6e730e88456f5269bda430437e5aa (patch)
tree59a97c6a321bdffcdbd7cd624ba9a7a18275a889 /dev-lang
parentBump to 0.24.1, updated icons and translations. (diff)
downloadgentoo-2-30e77b1f35c6e730e88456f5269bda430437e5aa.tar.gz
gentoo-2-30e77b1f35c6e730e88456f5269bda430437e5aa.tar.bz2
gentoo-2-30e77b1f35c6e730e88456f5269bda430437e5aa.zip
initial rev
(Portage version: 2.2_rc12/cvs/Linux 2.6.23-gentoo-r3-20080120 ppc)
Diffstat (limited to 'dev-lang')
-rw-r--r--dev-lang/luarocks/ChangeLog11
-rw-r--r--dev-lang/luarocks/Manifest4
-rw-r--r--dev-lang/luarocks/luarocks-1.0.ebuild49
-rw-r--r--dev-lang/luarocks/metadata.xml14
4 files changed, 78 insertions, 0 deletions
diff --git a/dev-lang/luarocks/ChangeLog b/dev-lang/luarocks/ChangeLog
new file mode 100644
index 000000000000..eda028c3670e
--- /dev/null
+++ b/dev-lang/luarocks/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for dev-lang/luarocks
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/luarocks/ChangeLog,v 1.1 2008/10/22 22:07:20 mabi Exp $
+
+*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-lang/luarocks/Manifest b/dev-lang/luarocks/Manifest
new file mode 100644
index 000000000000..da32d3fd9cfe
--- /dev/null
+++ b/dev-lang/luarocks/Manifest
@@ -0,0 +1,4 @@
+DIST luarocks-1.0.tar.gz 50339 RMD160 b387194c589a9df4c4ffa40c880f6a7272985eed SHA1 96223c3da6257e5370d031221279b1c89731baef SHA256 7177cd32c55214ffd0c3543c1350b4e5f3908e81308f65c573fd5b03dc2d711d
+EBUILD luarocks-1.0.ebuild 1168 RMD160 9ae11142958a72e8774a6a9ccd35bb6681ee08c7 SHA1 ab5363ea9f387e293a56e95cde58c71fc20d88fb SHA256 3965fed5e82a17acf32e696ce93cd8b78e4eb1027529e9f6ad1239933fb940d0
+MISC ChangeLog 323 RMD160 5eeb68bc0068c16e8718b5325e882e0962e56d8f SHA1 3faa4c10f7f22ca027cb636a18e217c61ce65fde SHA256 921269136f67245f9d46cbe5e9f942cbc48619ada7e5661165ffd4d9319b5666
+MISC metadata.xml 464 RMD160 038e525f840f0ad2ae60a3c29224acd0b9d5150e SHA1 c85d9c1b59b360ae4c3eff1a2d79534906888bd4 SHA256 8f484593e1d7722d84becdec23ed2f3226fbf3e33f9a47f5ddeb900eeecbcddc
diff --git a/dev-lang/luarocks/luarocks-1.0.ebuild b/dev-lang/luarocks/luarocks-1.0.ebuild
new file mode 100644
index 000000000000..57ff169081f2
--- /dev/null
+++ b/dev-lang/luarocks/luarocks-1.0.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/luarocks/luarocks-1.0.ebuild,v 1.1 2008/10/22 22:07:20 mabi 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-lang/luarocks/metadata.xml b/dev-lang/luarocks/metadata.xml
new file mode 100644
index 000000000000..d2544577928f
--- /dev/null
+++ b/dev-lang/luarocks/metadata.xml
@@ -0,0 +1,14 @@
+<?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>
+<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>