mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-23 18:38:08 -07:00
Signed-off-by: Victor Payno <vpayno+gentoo@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14406 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
36 lines
845 B
Bash
36 lines
845 B
Bash
# Copyright 1999-2020 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
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="~amd64 ~ppc ~x86"
|
|
IUSE=""
|
|
|
|
RDEPEND="dev-lang/lua:=
|
|
dev-libs/openssl:=
|
|
net-misc/curl"
|
|
BDEPEND="${RDEPEND}
|
|
virtual/pkgconfig"
|
|
DEPEND="${RDEPEND}"
|
|
|
|
src_configure() {
|
|
# econf doesn't work b/c it passes variables the custom configure can't
|
|
# handle
|
|
./configure \
|
|
--prefix="${EPRIFIX}/usr" \
|
|
--with-lua-lib="${EPRIFIX}/usr/$(get_libdir)" \
|
|
--rocks-tree="${EPRIFIX}/usr/$(get_libdir)/lua/luarocks" \
|
|
|| die "configure failed"
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
{ find "${D}" -type f -exec sed -i -e "s:${D}::g" {} \;; } || die "sed failed"
|
|
}
|