# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ 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" IUSE="" DEPEND="dev-lang/lua" RDEPEND="${DEPEND} app-arch/unzip" src_compile() { ./configure --prefix="${D}"/usr --sysconfdir="${D}"/etc/luarocks \ --rocks-tree="${D}"/usr/local/lib/luarocks || die "configure failed" emake || die "make failed" } src_install() { einstall || die "einstall" } pkg_preinst() { find "${D}" -type f | xargs sed -i -e "s:${D}::g" || die "sed failed" }