diff options
author | Matti Bickel <mabi@gentoo.org> | 2012-03-06 10:28:05 +0000 |
---|---|---|
committer | Matti Bickel <mabi@gentoo.org> | 2012-03-06 10:28:05 +0000 |
commit | 03d28aa3e545a5987d56ef8180d2832058a69141 (patch) | |
tree | 1cd7504f3ee28cd21d2e7450ca0d45147ab6e390 /dev-lua/luarocks | |
parent | Remove last bit of bad handling of static-libs, #407083 (diff) | |
download | gentoo-2-03d28aa3e545a5987d56ef8180d2832058a69141.tar.gz gentoo-2-03d28aa3e545a5987d56ef8180d2832058a69141.tar.bz2 gentoo-2-03d28aa3e545a5987d56ef8180d2832058a69141.zip |
version bump; also restrict make to -j1 b/c of bug #402005
(Portage version: 2.2.0_alpha90/cvs/Linux x86_64)
Diffstat (limited to 'dev-lua/luarocks')
-rw-r--r-- | dev-lua/luarocks/ChangeLog | 7 | ||||
-rw-r--r-- | dev-lua/luarocks/luarocks-2.0.8.ebuild | 53 |
2 files changed, 59 insertions, 1 deletions
diff --git a/dev-lua/luarocks/ChangeLog b/dev-lua/luarocks/ChangeLog index feaedf7ff987..7c49d73d2b00 100644 --- a/dev-lua/luarocks/ChangeLog +++ b/dev-lua/luarocks/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-lua/luarocks # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.2 2012/01/24 20:56:04 mabi Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/ChangeLog,v 1.3 2012/03/06 10:28:05 mabi Exp $ + +*luarocks-2.0.8 (06 Mar 2012) + + 06 Mar 2012; Matti Bickel <mabi@gentoo.org> +luarocks-2.0.8.ebuild: + version bump; also restrict make to -j1 b/c of bug #402005 *luarocks-2.0.7.1 (24 Jan 2012) diff --git a/dev-lua/luarocks/luarocks-2.0.8.ebuild b/dev-lua/luarocks/luarocks-2.0.8.ebuild new file mode 100644 index 000000000000..e82fb79f75bb --- /dev/null +++ b/dev-lua/luarocks/luarocks-2.0.8.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lua/luarocks/luarocks-2.0.8.ebuild,v 1.1 2012/03/06 10:28:05 mabi Exp $ + +EAPI=4 + +inherit eutils + +DESCRIPTION="A deployment and management system for Lua modules" +HOMEPAGE="http://www.luarocks.org" +SRC_URI="http://luarocks.org/releases/${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_configure() { + 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 \ + --with-lua-lib=/usr/$(get_libdir) \ + --rocks-tree=/usr/$(get_libdir)/lua/luarocks \ + --with-downloader=$USE_FETCH \ + --with-md5-checker=$USE_MD5 \ + --force-config || die "configure failed" +} + +src_compile() { + # -j1 b/c make tries to delete files it has yet to create (bug #402005) + emake DESTDIR="${D}" -j1 || die "make failed" +} + +src_install() { + # -j1 b/c otherwise it fails to find src/bin/luarocks + emake DESTDIR="${D}" -j1 install || die "einstall" +} + +pkg_preinst() { + find "${D}" -type f | xargs sed -i -e "s:${D}::g" || die "sed failed" +} |