summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Payno <vpayno+gentoo@gmail.com>2020-01-21 11:17:35 -0800
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-03-15 15:07:23 -0700
commit283c0468ca5928986661523ede3f8250f4e273a3 (patch)
treec108ab52df39c5b95e4b0a559a5bd60a634de07d /dev-lua/luarocks
parentsys-apps/firejail-lts: security cleanup (diff)
downloadgentoo-283c0468ca5928986661523ede3f8250f4e273a3.tar.gz
gentoo-283c0468ca5928986661523ede3f8250f4e273a3.tar.bz2
gentoo-283c0468ca5928986661523ede3f8250f4e273a3.zip
dev-lua/luarocks: version bump to 3.2.1
Signed-off-by: Victor Payno <vpayno+gentoo@gmail.com> Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'dev-lua/luarocks')
-rw-r--r--dev-lua/luarocks/Manifest1
-rw-r--r--dev-lua/luarocks/luarocks-3.2.1.ebuild35
-rw-r--r--dev-lua/luarocks/metadata.xml23
3 files changed, 52 insertions, 7 deletions
diff --git a/dev-lua/luarocks/Manifest b/dev-lua/luarocks/Manifest
index 185deea0ade1..0d8375a6e0dd 100644
--- a/dev-lua/luarocks/Manifest
+++ b/dev-lua/luarocks/Manifest
@@ -1 +1,2 @@
DIST luarocks-2.2.0.tar.gz 111549 BLAKE2B 214c1c03e03f95ca1acfc1fda863895c91c508221c615fe3ccc064e9adbcaa8549d24ff788141c0093259ca52578fadccfb3f6891209f86336c57937ac5ec32d SHA512 41f32e383263485758e64df661ecfbd744369035362755c64466f2c52a8740ed941b80cab3212222d7d24e4b1a7ed9ccb84fa66c8e458526056af0b06d97224f
+DIST luarocks-3.2.1.tar.gz 232149 BLAKE2B f8298ef054f50b8f70bf48748435a54f683ba8eef3113641e98b00e1aa872b95e75b36f0df96de7870d3576d3b9149dde8af1b68a3d7ceda86d3654dbad507c0 SHA512 9abf2c5477b9ab8e3caf485dd10fc154435b41efc13c7709f36a9182ccbd98d022738627f76901977a9b7c42ae61e5f139e78070d469094a7571910afbb747ff
diff --git a/dev-lua/luarocks/luarocks-3.2.1.ebuild b/dev-lua/luarocks/luarocks-3.2.1.ebuild
new file mode 100644
index 000000000000..9cade0befc8a
--- /dev/null
+++ b/dev-lua/luarocks/luarocks-3.2.1.ebuild
@@ -0,0 +1,35 @@
+# 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"
+}
diff --git a/dev-lua/luarocks/metadata.xml b/dev-lua/luarocks/metadata.xml
index eb1224dd6d97..4b6ecc153af0 100644
--- a/dev-lua/luarocks/metadata.xml
+++ b/dev-lua/luarocks/metadata.xml
@@ -1,11 +1,20 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
- <!-- maintainer-needed -->
- <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>
+ <maintainer type="person">
+ <email>vpayno+gentoo@gmail.com</email>
+ <name>Victor Payno</name>
+ </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>
+ <longdescription lang="en">
+ Package manager for Lua.
+ </longdescription>
+ <upstream>
+ <remote-id type="github">luarocks/luarocks</remote-id>
+ </upstream>
</pkgmetadata>