[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-12-01 Thread Arthur Zamarin
commit: 95e4bacabc98f4e9f59dbabd666db6f620a08ad6
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec  1 20:56:53 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec  1 20:56:53 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95e4baca

dev-lua/luv: Keyword 1.45.0.0 ppc, #916309

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-lua/luv/luv-1.45.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.45.0.0.ebuild b/dev-lua/luv/luv-1.45.0.0.ebuild
index 307ba522d9fb..cc0ce4cbc780 100644
--- a/dev-lua/luv/luv-1.45.0.0.ebuild
+++ b/dev-lua/luv/luv-1.45.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~ppc ~ppc64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-10-19 Thread Sam James
commit: 3c6cf6afccd8ec7a2b3b236029263db070bd36e5
Author: Sam James  gentoo  org>
AuthorDate: Thu Oct 19 12:16:33 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Thu Oct 19 12:16:33 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3c6cf6af

dev-lua/luv: Stabilize 1.45.0.0 arm64, #915796

Signed-off-by: Sam James  gentoo.org>

 dev-lua/luv/luv-1.45.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.45.0.0.ebuild b/dev-lua/luv/luv-1.45.0.0.ebuild
index 6ac56eb16406..307ba522d9fb 100644
--- a/dev-lua/luv/luv-1.45.0.0.ebuild
+++ b/dev-lua/luv/luv-1.45.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-10-19 Thread Joonas Niilola
commit: bf08679cc88f5f26a541b421f77c9ca1e9a2e9f1
Author: Joonas Niilola  gentoo  org>
AuthorDate: Thu Oct 19 06:15:26 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Oct 19 06:15:26 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bf08679c

dev-lua/luv: Stabilize 1.45.0.0 amd64, #915796

Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/luv-1.45.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.45.0.0.ebuild b/dev-lua/luv/luv-1.45.0.0.ebuild
index 8d24ac375d6d..c71ec2137edc 100644
--- a/dev-lua/luv/luv-1.45.0.0.ebuild
+++ b/dev-lua/luv/luv-1.45.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-10-19 Thread Joonas Niilola
commit: dcd9096dd807b6aa6e2b43a70c863a8340b299e9
Author: Joonas Niilola  gentoo  org>
AuthorDate: Thu Oct 19 06:15:57 2023 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Oct 19 06:15:57 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcd9096d

dev-lua/luv: Stabilize 1.45.0.0 x86, #915796

Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/luv-1.45.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.45.0.0.ebuild b/dev-lua/luv/luv-1.45.0.0.ebuild
index c71ec2137edc..6ac56eb16406 100644
--- a/dev-lua/luv/luv-1.45.0.0.ebuild
+++ b/dev-lua/luv/luv-1.45.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~ppc64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-09-10 Thread Sam James
commit: 7bf83654350af110e595e6a392981dcedfc7a216
Author: Brahmajit Das  gmail  com>
AuthorDate: Sun Sep 10 12:55:45 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Sep 11 00:53:40 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7bf83654

dev-lua/luv: add 1.45.0.0

Needed for new neovim.

Bug: https://bugs.gentoo.org/913912
Signed-off-by: Brahmajit Das  gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/32709
Signed-off-by: Sam James  gentoo.org>

 dev-lua/luv/Manifest|  1 +
 dev-lua/luv/luv-1.45.0.0.ebuild | 86 +
 2 files changed, 87 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 1c197e845855..05e4070c4e16 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,3 @@
 DIST luv-1.44.2.0.tar.gz 124180 BLAKE2B 
0a46ffccd67bf04fb60c7aa3685fef328da1323437640a04b36748680aaf4074300097c53206915d8a1133defc61a359cd88062f1661899dfa8c394c183f0d0d
 SHA512 
0744590de941ec67e23e04811ed28de5e5ed8b6dd0d45e52e8e0efe0551d007f28cdada8e0d69e0d59bd37d4026102271a8ef977b12cfac1e84f6c8b57e6adce
+DIST luv-1.45.0.0.tar.gz 130334 BLAKE2B 
f22f6705204db567de7943707b499897fbd51cf33c6bc571612e0682f3b6022d6dd56606df0ff850e72bde398f00c4db00c026f1b8de5182458b39095716cbd7
 SHA512 
50460573377bc9386a90aa75f7d4938571b04f74ca6f63e32fa2b2f8951e799465abb78b4270f22be511c4d328ce582c38ec3e3da1061310fcfee630b647854d
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/luv-1.45.0.0.ebuild b/dev-lua/luv/luv-1.45.0.0.ebuild
new file mode 100644
index ..8d24ac375d6d
--- /dev/null
+++ b/dev-lua/luv/luv-1.45.0.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2019-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit cmake flag-o-matic lua-single unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.10"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86 ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-$(ver_cut 1-2):="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.43.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+# This could in theory be multi-impl (and we have an ebuild in git history,
+# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
+# app-editors/neovim, actually links against luv instead of trying to load it
+# as a module. We could probably implement some sort of a hack for this
+# - but given how messy it would be, don't bother unless someone actually 
requests
+# luv multi-impl support.
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   append-ldflags "-undefined dynamic_lookup"
+   fi
+
+   cmake_src_configure
+}
+
+src_test() {
+   # We need to copy the library back so that the tests see it
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${ELUA} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/files/, dev-lua/luv/

2023-09-04 Thread Andreas Sturmlechner
commit: aa0516fc4011e1134e6bf46aa46410f149748b62
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Mon Sep  4 18:13:30 2023 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Mon Sep  4 18:54:09 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aa0516fc

dev-lua/luv: drop 1.36.0.0, 1.43.0.0

Signed-off-by: Andreas Sturmlechner  gentoo.org>

 dev-lua/luv/Manifest   |  2 -
 .../luv/files/luv-1.32.0.0-cmake_lua_version.patch | 11 ---
 dev-lua/luv/luv-1.36.0.0.ebuild| 86 --
 dev-lua/luv/luv-1.43.0.0.ebuild| 86 --
 4 files changed, 185 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 9ce5a28f6deb..1c197e845855 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,4 +1,2 @@
-DIST luv-1.36.0.0.tar.gz 107196 BLAKE2B 
31a02c3e928559037355186810187299a3cb1420265a27756b0613781621c78c18edc272072cc29c46336787b040453cc9a06195264c0a72a985e49c48202022
 SHA512 
3119c1450a8317725d59cc1ab6afccfbde752b0c32b38909dfdd31bf88ea0751920dc68750da52cf17a6430637cf1094f4d5500e4c50d1145eca48bb12728ba1
-DIST luv-1.43.0.0.tar.gz 122337 BLAKE2B 
435334d869487de38215ce9b551f586d4017c7f83497bc90637fc8acb8e63d1c36f6678a3f2c4d5b24b76fd904b2fa8c364a31bc1bd544416f60f2b8290903d3
 SHA512 
f51d9b3c733dd5617fca49534fdd77dbb6a3d6f58263f453db8dcde21679f4a471e15d6f5b05bcb22a2552455df8beb238d33b0999306bf2a5ad6755da4044ff
 DIST luv-1.44.2.0.tar.gz 124180 BLAKE2B 
0a46ffccd67bf04fb60c7aa3685fef328da1323437640a04b36748680aaf4074300097c53206915d8a1133defc61a359cd88062f1661899dfa8c394c183f0d0d
 SHA512 
0744590de941ec67e23e04811ed28de5e5ed8b6dd0d45e52e8e0efe0551d007f28cdada8e0d69e0d59bd37d4026102271a8ef977b12cfac1e84f6c8b57e6adce
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch 
b/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch
deleted file mode 100644
index 84af757d248b..
--- a/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch
+++ /dev/null
@@ -1,11 +0,0 @@
 a/CMakeLists.txt
-+++ b/CMakeLists.txt
-@@ -107,7 +107,7 @@
-   include_directories(${LUAJIT_INCLUDE_DIR})
-   link_directories(${LUAJIT_LIBRARIES})
- else (USE_LUAJIT)
--  find_package(Lua REQUIRED)
-+  find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
-   include_directories(${LUA_INCLUDE_DIR})
- endif (USE_LUAJIT)
- 

diff --git a/dev-lua/luv/luv-1.36.0.0.ebuild b/dev-lua/luv/luv-1.36.0.0.ebuild
deleted file mode 100644
index 676af8b3f60e..
--- a/dev-lua/luv/luv-1.36.0.0.ebuild
+++ /dev/null
@@ -1,86 +0,0 @@
-# Copyright 2019-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit cmake flag-o-matic lua-single unpacker
-
-# e.g. MY_PV = a.b.c-d
-MY_PV="$(ver_rs 3 -)"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-
-LUA_COMPAT_PV="0.10"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
-"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~x64-macos"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="${LUA_DEPS}
-   >=dev-libs/libuv-1.32.0:="
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
-)
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake_src_prepare
-}
-
-# This could in theory be multi-impl (and we have an ebuild in git history,
-# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
-# app-editors/neovim, actually links against luv instead of trying to load it
-# as a module. We could probably implement some sort of a hack for this
-# - but given how messy it would be, don't bother unless someone actually 
requests
-# luv multi-impl support.
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
-
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_SHARED_LIBUV=ON
-   )
-   if [[ ${ELUA} == luajit ]]; then
-   

[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2023-04-08 Thread Luca Barbato
commit: 1afca29df08c03a296935b30b9c0b4607dbbe631
Author: Luca Barbato  gentoo  org>
AuthorDate: Sat Apr  8 13:34:25 2023 +
Commit: Luca Barbato  gentoo  org>
CommitDate: Sat Apr  8 13:41:45 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1afca29d

dev-lua/luv: keyword 1.44.2.0 for ~ppc64

Signed-off-by: Luca Barbato  gentoo.org>

 dev-lua/luv/luv-1.44.2.0.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lua/luv/luv-1.44.2.0.ebuild b/dev-lua/luv/luv-1.44.2.0.ebuild
index fea9d7538325..307ba522d9fb 100644
--- a/dev-lua/luv/luv-1.44.2.0.ebuild
+++ b/dev-lua/luv/luv-1.44.2.0.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2019-2022 Gentoo Authors
+# Copyright 2019-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~riscv x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~ppc64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-12-02 Thread Arthur Zamarin
commit: 17eece4d399535a46be4082962430ee4a4bd4374
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec  2 12:00:51 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec  2 12:00:51 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=17eece4d

dev-lua/luv: Stabilize 1.44.2.0 x86, #879961

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-lua/luv/luv-1.44.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.44.2.0.ebuild b/dev-lua/luv/luv-1.44.2.0.ebuild
index e06521727af7..fea9d7538325 100644
--- a/dev-lua/luv/luv-1.44.2.0.ebuild
+++ b/dev-lua/luv/luv-1.44.2.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-11-07 Thread Jakov Smolić
commit: 550c85d47ce40b88c60fd4b757dc5320b92bca0a
Author: Jakov Smolić  gentoo  org>
AuthorDate: Tue Nov  8 04:54:16 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Tue Nov  8 04:54:16 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=550c85d4

dev-lua/luv: Stabilize 1.44.2.0 amd64, #879961

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-lua/luv/luv-1.44.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.44.2.0.ebuild b/dev-lua/luv/luv-1.44.2.0.ebuild
index 342ec1bd595e..e06521727af7 100644
--- a/dev-lua/luv/luv-1.44.2.0.ebuild
+++ b/dev-lua/luv/luv-1.44.2.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~riscv ~x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-11-07 Thread Arthur Zamarin
commit: 23d13f1d0c31d48985a86b48fdd47cb4078b14d3
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Mon Nov  7 17:26:33 2022 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Mon Nov  7 17:26:52 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23d13f1d

dev-lua/luv: Stabilize 1.44.2.0 arm64, #879961

Signed-off-by: Arthur Zamarin  gentoo.org>

 dev-lua/luv/luv-1.44.2.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.44.2.0.ebuild b/dev-lua/luv/luv-1.44.2.0.ebuild
index 44e933cb5b2b..342ec1bd595e 100644
--- a/dev-lua/luv/luv-1.44.2.0.ebuild
+++ b/dev-lua/luv/luv-1.44.2.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-09-30 Thread Sam James
commit: 5585578e9959d72df22cd6572d6434a6dae1bcc1
Author: Sam James  gentoo  org>
AuthorDate: Sat Oct  1 01:29:14 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Oct  1 01:29:32 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5585578e

dev-lua/luv: add 1.44.2.0

Signed-off-by: Sam James  gentoo.org>

 dev-lua/luv/Manifest|  1 +
 dev-lua/luv/luv-1.44.2.0.ebuild | 86 +
 2 files changed, 87 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 51e54f591dde..9ce5a28f6deb 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,3 +1,4 @@
 DIST luv-1.36.0.0.tar.gz 107196 BLAKE2B 
31a02c3e928559037355186810187299a3cb1420265a27756b0613781621c78c18edc272072cc29c46336787b040453cc9a06195264c0a72a985e49c48202022
 SHA512 
3119c1450a8317725d59cc1ab6afccfbde752b0c32b38909dfdd31bf88ea0751920dc68750da52cf17a6430637cf1094f4d5500e4c50d1145eca48bb12728ba1
 DIST luv-1.43.0.0.tar.gz 122337 BLAKE2B 
435334d869487de38215ce9b551f586d4017c7f83497bc90637fc8acb8e63d1c36f6678a3f2c4d5b24b76fd904b2fa8c364a31bc1bd544416f60f2b8290903d3
 SHA512 
f51d9b3c733dd5617fca49534fdd77dbb6a3d6f58263f453db8dcde21679f4a471e15d6f5b05bcb22a2552455df8beb238d33b0999306bf2a5ad6755da4044ff
+DIST luv-1.44.2.0.tar.gz 124180 BLAKE2B 
0a46ffccd67bf04fb60c7aa3685fef328da1323437640a04b36748680aaf4074300097c53206915d8a1133defc61a359cd88062f1661899dfa8c394c183f0d0d
 SHA512 
0744590de941ec67e23e04811ed28de5e5ed8b6dd0d45e52e8e0efe0551d007f28cdada8e0d69e0d59bd37d4026102271a8ef977b12cfac1e84f6c8b57e6adce
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/luv-1.44.2.0.ebuild b/dev-lua/luv/luv-1.44.2.0.ebuild
new file mode 100644
index ..44e933cb5b2b
--- /dev/null
+++ b/dev-lua/luv/luv-1.44.2.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit cmake flag-o-matic lua-single unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.10"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-$(ver_cut 1-2):="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.43.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+# This could in theory be multi-impl (and we have an ebuild in git history,
+# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
+# app-editors/neovim, actually links against luv instead of trying to load it
+# as a module. We could probably implement some sort of a hack for this
+# - but given how messy it would be, don't bother unless someone actually 
requests
+# luv multi-impl support.
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   append-ldflags "-undefined dynamic_lookup"
+   fi
+
+   cmake_src_configure
+}
+
+src_test() {
+   # We need to copy the library back so that the tests see it
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${ELUA} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-07-15 Thread Sam James
commit: 05d64c565175605004a5e04e53810869acf0820f
Author: Sam James  gentoo  org>
AuthorDate: Fri Jul 15 07:40:03 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Jul 15 07:40:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05d64c56

dev-lua/luv: Stabilize 1.43.0.0 arm64, #857978

Signed-off-by: Sam James  gentoo.org>

 dev-lua/luv/luv-1.43.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.43.0.0.ebuild b/dev-lua/luv/luv-1.43.0.0.ebuild
index c54805a8ba66..ecf9d1005400 100644
--- a/dev-lua/luv/luv-1.43.0.0.ebuild
+++ b/dev-lua/luv/luv-1.43.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~x64-macos"
+KEYWORDS="amd64 ~arm arm64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-03-31 Thread Jakov Smolić
commit: 4ca2f3d9f3f072f8743c032ad0c8430debc41a51
Author: Jakov Smolić  gentoo  org>
AuthorDate: Thu Mar 31 18:44:49 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Mar 31 18:44:49 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ca2f3d9

dev-lua/luv: Stabilize 1.43.0.0 x86, #834128

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-lua/luv/luv-1.43.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.43.0.0.ebuild b/dev-lua/luv/luv-1.43.0.0.ebuild
index 1e4e53ced722..c54805a8ba66 100644
--- a/dev-lua/luv/luv-1.43.0.0.ebuild
+++ b/dev-lua/luv/luv-1.43.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2022-03-31 Thread Jakov Smolić
commit: 8614e9920509c0f8377144426109dc5f8fad246d
Author: Jakov Smolić  gentoo  org>
AuthorDate: Thu Mar 31 18:44:34 2022 +
Commit: Jakov Smolić  gentoo  org>
CommitDate: Thu Mar 31 18:44:34 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8614e992

dev-lua/luv: Stabilize 1.43.0.0 amd64, #834128

Signed-off-by: Jakov Smolić  gentoo.org>

 dev-lua/luv/luv-1.43.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.43.0.0.ebuild b/dev-lua/luv/luv-1.43.0.0.ebuild
index 9c3fb9018539..1e4e53ced722 100644
--- a/dev-lua/luv/luv-1.43.0.0.ebuild
+++ b/dev-lua/luv/luv-1.43.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/, dev-lua/luv/files/

2022-02-25 Thread Sam James
commit: d66b15988f972338e72ffd7c1c538d55416dcfba
Author: Sam James  gentoo  org>
AuthorDate: Sat Feb 26 03:13:34 2022 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Feb 26 03:43:03 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d66b1598

dev-lua/luv: add 1.43.0.0

Closes: https://bugs.gentoo.org/834057
Signed-off-by: Sam James  gentoo.org>

 dev-lua/luv/Manifest   |  1 +
 .../luv/files/luv-1.43.0.0-cmake_lua_version.patch | 13 
 dev-lua/luv/luv-1.43.0.0.ebuild| 86 ++
 3 files changed, 100 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 338dcf0a606b..51e54f591dde 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,3 @@
 DIST luv-1.36.0.0.tar.gz 107196 BLAKE2B 
31a02c3e928559037355186810187299a3cb1420265a27756b0613781621c78c18edc272072cc29c46336787b040453cc9a06195264c0a72a985e49c48202022
 SHA512 
3119c1450a8317725d59cc1ab6afccfbde752b0c32b38909dfdd31bf88ea0751920dc68750da52cf17a6430637cf1094f4d5500e4c50d1145eca48bb12728ba1
+DIST luv-1.43.0.0.tar.gz 122337 BLAKE2B 
435334d869487de38215ce9b551f586d4017c7f83497bc90637fc8acb8e63d1c36f6678a3f2c4d5b24b76fd904b2fa8c364a31bc1bd544416f60f2b8290903d3
 SHA512 
f51d9b3c733dd5617fca49534fdd77dbb6a3d6f58263f453db8dcde21679f4a471e15d6f5b05bcb22a2552455df8beb238d33b0999306bf2a5ad6755da4044ff
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/files/luv-1.43.0.0-cmake_lua_version.patch 
b/dev-lua/luv/files/luv-1.43.0.0-cmake_lua_version.patch
new file mode 100644
index ..d9c324935b91
--- /dev/null
+++ b/dev-lua/luv/files/luv-1.43.0.0-cmake_lua_version.patch
@@ -0,0 +1,13 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 78c0345..853ba90 100644
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -140,7 +140,7 @@ else (LUA)
+   if (WIN32)
+ find_package(Lua REQUIRED)
+   else()
+-find_package(Lua)
++find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
+   endif()
+   if(NOT LUA_INCLUDE_DIR)
+ message( FATAL_ERROR "Failed to find Lua headers. Variable 
`LUA_INCLUDE_DIR' expected to be defined.")

diff --git a/dev-lua/luv/luv-1.43.0.0.ebuild b/dev-lua/luv/luv-1.43.0.0.ebuild
new file mode 100644
index ..9c3fb9018539
--- /dev/null
+++ b/dev-lua/luv/luv-1.43.0.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2019-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit cmake flag-o-matic lua-single unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.10"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86 ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-1.32.0:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.43.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+# This could in theory be multi-impl (and we have an ebuild in git history,
+# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
+# app-editors/neovim, actually links against luv instead of trying to load it
+# as a module. We could probably implement some sort of a hack for this
+# - but given how messy it would be, don't bother unless someone actually 
requests
+# luv multi-impl support.
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   if [[ 

[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2021-10-11 Thread Yixun Lan
commit: 4f54eaef4bbc986e2d3e083e8445f501ba6a8f9c
Author: Yongxiang Liang  gmail  com>
AuthorDate: Sun Oct 10 15:11:03 2021 +
Commit: Yixun Lan  gentoo  org>
CommitDate: Mon Oct 11 13:46:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4f54eaef

dev-lua/luv: keyword ~riscv

Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Yongxiang Liang  gmail.com>
Signed-off-by: Yixun Lan  gentoo.org>

 dev-lua/luv/luv-1.36.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.36.0.0.ebuild b/dev-lua/luv/luv-1.36.0.0.ebuild
index 74f83948638..676af8b3f60 100644
--- a/dev-lua/luv/luv-1.36.0.0.ebuild
+++ b/dev-lua/luv/luv-1.36.0.0.ebuild
@@ -22,7 +22,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86 ~x64-macos"
+KEYWORDS="amd64 ~arm ~arm64 ~riscv x86 ~x64-macos"
 IUSE="test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2021-03-16 Thread Conrad Kostecki
commit: 0fcd949585f8db374d625da087f971fa1f8bffe7
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Tue Mar 16 17:26:58 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Tue Mar 16 17:28:44 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fcd9495

dev-lua/luv: drop old version

Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/luv/Manifest |  1 -
 dev-lua/luv/luv-1.32.0.0-r102.ebuild | 82 
 2 files changed, 83 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 41bb93c952b..338dcf0a606 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,3 +1,2 @@
-DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
 DIST luv-1.36.0.0.tar.gz 107196 BLAKE2B 
31a02c3e928559037355186810187299a3cb1420265a27756b0613781621c78c18edc272072cc29c46336787b040453cc9a06195264c0a72a985e49c48202022
 SHA512 
3119c1450a8317725d59cc1ab6afccfbde752b0c32b38909dfdd31bf88ea0751920dc68750da52cf17a6430637cf1094f4d5500e4c50d1145eca48bb12728ba1
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/luv-1.32.0.0-r102.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r102.ebuild
deleted file mode 100644
index ee469f396b9..000
--- a/dev-lua/luv/luv-1.32.0.0-r102.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 2019-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..4} luajit )
-
-inherit cmake lua-single unpacker
-
-# e.g. MY_PV = a.b.c-d
-MY_PV="$(ver_rs 3 -)"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-
-LUA_COMPAT_PV="0.10"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
-"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="${LUA_DEPS}
-   >=dev-libs/libuv-1.32.0:="
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
-)
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake_src_prepare
-}
-
-# This could in theory be multi-impl (and we have an ebuild in git history,
-# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
-# app-editors/neovim, actually links against luv instead of trying to load it
-# as a module. We could probably implement some sort of a hack for this
-# - but given how messy it would be, don't bother unless someone actually 
requests
-# luv multi-impl support.
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
-
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_SHARED_LIBUV=ON
-   )
-   if [[ ${ELUA} == luajit ]]; then
-   mycmakeargs+=(
-   -DWITH_LUA_ENGINE=LuaJIT
-   )
-   else
-   mycmakeargs+=(
-   -DWITH_LUA_ENGINE=Lua
-   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
-   )
-   fi
-
-   cmake_src_configure
-}
-
-src_test() {
-   # We need to copy the library back so that the tests see it
-   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
-   ${ELUA} "tests/run.lua" || die "Tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2021-03-16 Thread Conrad Kostecki
commit: f476343466c7d03f3aa49e3c2078e5fca9006e49
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Tue Mar 16 17:23:56 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Tue Mar 16 17:28:43 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4763434

dev-lua/luv: update metadata.xml

Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/luv/metadata.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/metadata.xml b/dev-lua/luv/metadata.xml
index d48a9a305da..63b1acc6856 100644
--- a/dev-lua/luv/metadata.xml
+++ b/dev-lua/luv/metadata.xml
@@ -3,7 +3,7 @@
 


-   libuv bindings for luajit and lua 5.1/ 5.2/ 5.3.
+   libuv bindings for luajit and lua 5.1/ 5.2/ 5.3/ 5.4.
 
This library makes libuv available to lua scripts. It was made 
for the
luvit project but should usable from nearly any lua project.



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2021-03-09 Thread Aaron Bauman
commit: 1749aae9b0f5dde83dcd49a4c397ac7ba2288e95
Author: Aaron Bauman  gentoo  org>
AuthorDate: Tue Mar  9 16:21:27 2021 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Tue Mar  9 16:21:27 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1749aae9

dev-lua/luv: bump to 1.36.0.0; fix build on Darwin; keyword x64-macos

Suggested-by: Sam James  gentoo.org>
Signed-off-by: Aaron Bauman  gentoo.org>

 dev-lua/luv/Manifest|  1 +
 dev-lua/luv/luv-1.36.0.0.ebuild | 86 +
 2 files changed, 87 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index d5445635f8b..41bb93c952b 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,3 @@
 DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
+DIST luv-1.36.0.0.tar.gz 107196 BLAKE2B 
31a02c3e928559037355186810187299a3cb1420265a27756b0613781621c78c18edc272072cc29c46336787b040453cc9a06195264c0a72a985e49c48202022
 SHA512 
3119c1450a8317725d59cc1ab6afccfbde752b0c32b38909dfdd31bf88ea0751920dc68750da52cf17a6430637cf1094f4d5500e4c50d1145eca48bb12728ba1
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d

diff --git a/dev-lua/luv/luv-1.36.0.0.ebuild b/dev-lua/luv/luv-1.36.0.0.ebuild
new file mode 100644
index 000..74f83948638
--- /dev/null
+++ b/dev-lua/luv/luv-1.36.0.0.ebuild
@@ -0,0 +1,86 @@
+# Copyright 2019-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit cmake flag-o-matic lua-single unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.10"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="amd64 ~arm ~arm64 x86 ~x64-macos"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-1.32.0:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+# This could in theory be multi-impl (and we have an ebuild in git history,
+# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
+# app-editors/neovim, actually links against luv instead of trying to load it
+# as a module. We could probably implement some sort of a hack for this
+# - but given how messy it would be, don't bother unless someone actually 
requests
+# luv multi-impl support.
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   append-ldflags "-undefined dynamic_lookup"
+   fi
+
+   cmake_src_configure
+}
+
+src_test() {
+   # We need to copy the library back so that the tests see it
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${ELUA} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2021-01-25 Thread Marek Szuba
commit: 515f05e2f4b4220cca2d02ce7d820ec4f066814b
Author: Marek Szuba  gentoo  org>
AuthorDate: Mon Jan 25 14:34:15 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Mon Jan 25 17:37:59 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=515f05e2

dev-lua/luv: remove old

Signed-off-by: Marek Szuba  gentoo.org>

 dev-lua/luv/Manifest|  1 -
 dev-lua/luv/luv-1.32.0.0.ebuild | 61 -
 2 files changed, 62 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 0aa57f799cf..d5445635f8b 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,3 +1,2 @@
 DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
 DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d
-DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.32.0.0.ebuild b/dev-lua/luv/luv-1.32.0.0.ebuild
deleted file mode 100644
index 3d5ee15c180..000
--- a/dev-lua/luv/luv-1.32.0.0.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake unpacker
-
-# e.g. MY_PV = a.b.c-d
-MY_PV="$(ver_rs 3 -)"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-
-LUA_COMPAT_PV="0.7"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
-"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 x86"
-IUSE="luajit test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="
-   >=dev-libs/libuv-1.32.0:=
-   luajit? ( dev-lang/luajit:2 )
-   !luajit? ( dev-lang/lua:0 )
-"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake_src_prepare
-}
-
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
-   -DWITH_SHARED_LIBUV=ON
-   )
-   cmake_src_configure
-}
-
-src_test() {
-   local elua="$(usex luajit luajit lua)"
-   # We need to copy the library back so that the tests see it
-   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
-   ${elua} "tests/run.lua" || die "Tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2020-12-22 Thread Marek Szuba
commit: a01ac96b8f18c783c97ab7a25b9c5914f1250077
Author: Marek Szuba  gentoo  org>
AuthorDate: Tue Dec 22 14:24:25 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Tue Dec 22 15:08:04 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a01ac96b

dev-lua/luv: go back to single-impl mode

The only revdep currently in the tree, app-editors/neovim, actually links
against luv instead of loading it as a module. Between that and upstream
not actually supporting multi-impl installations, why bother.

Signed-off-by: Marek Szuba  gentoo.org>

 ...32.0.0-r101.ebuild => luv-1.32.0.0-r102.ebuild} | 51 +-
 1 file changed, 10 insertions(+), 41 deletions(-)

diff --git a/dev-lua/luv/luv-1.32.0.0-r101.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r102.ebuild
similarity index 56%
rename from dev-lua/luv/luv-1.32.0.0-r101.ebuild
rename to dev-lua/luv/luv-1.32.0.0-r102.ebuild
index f45e0eee282..7b4e0feb5b7 100644
--- a/dev-lua/luv/luv-1.32.0.0-r101.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0-r102.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..4} luajit )
 
-inherit cmake lua unpacker
+inherit cmake lua-single unpacker
 
 # e.g. MY_PV = a.b.c-d
 MY_PV="$(ver_rs 3 -)"
@@ -46,11 +46,16 @@ src_prepare() {
cmake_src_prepare
 }
 
-lua_src_configure() {
+# This could in theory be multi-impl (and we have an ebuild in git history,
+# 1.32.0.0-r101, which implements it) - the only revdep currently in the tree,
+# app-editors/neovim, actually links against luv instead of trying to load it
+# as a module. We could probably implement some sort of a hack for this
+# - but given how messy it would be, don't bother unless someone actually 
requests
+# luv multi-impl support.
+src_configure() {
lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
 
local mycmakeargs=(
-   -DINSTALL_LIB_DIR="$(lua_get_cmod_dir)"
-DBUILD_MODULE=OFF
-DLUA_BUILD_TYPE=System
-DLUA_COMPAT53_DIR="${lua_compat_dir}"
@@ -70,44 +75,8 @@ lua_src_configure() {
cmake_src_configure
 }
 
-lua_src_test() {
-   # We need to copy the implementation-specific library back so that the 
tests see it
-   rm -f ./luv.so
+src_test() {
+   # We need to copy the library back so that the tests see it
ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
${ELUA} "tests/run.lua" || die "Tests failed"
 }
-
-lua_src_install() {
-   cmake_src_install
-   mkdir -p "${ED}"/usr/$(get_libdir)/pkgconfig && \
-   mv "${ED}$(lua_get_cmod_dir)"/pkgconfig/libluv.pc \
-   "${ED}"/usr/$(get_libdir)/pkgconfig/libluv-${ELUA}.pc || \
-   die "Failed make pkgconfig file for ${ELUA} implementation-specific"
-   rmdir "${ED}$(lua_get_cmod_dir)"/pkgconfig || die
-}
-
-src_configure() {
-   lua_foreach_impl lua_src_configure
-}
-
-src_compile() {
-   lua_foreach_impl cmake_src_compile
-}
-
-src_test() {
-   lua_foreach_impl lua_src_test
-}
-
-src_install() {
-   lua_foreach_impl lua_src_install
-}
-
-pkg_postinst() {
-   ewarn "Please note that in order to properly support multiple Lua 
implementations,"
-   ewarn "this ebuild of ${PN} installs its library files into 
implementation-specific"
-   ewarn "module directories, as well as multiple .pc files named after 
implementations"
-   ewarn "(e.g. 'libluv-lua5.3.pc'). Since upstream by default only 
supports a single"
-   ewarn "Lua implementation at a time and thus only provides a single, 
unversioned"
-   ewarn ".pc file, projects depending on ${PN} might require changes in 
order to"
-   ewarn "support the multi-implementation approach."
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2020-11-16 Thread Marek Szuba
commit: f4089f156d8be47af0895927135a817f22209031
Author: Marek Szuba  gentoo  org>
AuthorDate: Mon Nov 16 15:01:07 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Mon Nov 16 15:01:51 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4089f15

dev-lua/luv-1.32.0.0-r101: support lua5-4

Signed-off-by: Marek Szuba  gentoo.org>

 dev-lua/luv/luv-1.32.0.0-r101.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.32.0.0-r101.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
index ce6b238a718..f45e0eee282 100644
--- a/dev-lua/luv/luv-1.32.0.0-r101.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=7
 
-LUA_COMPAT=( lua5-{1..3} luajit )
+LUA_COMPAT=( lua5-{1..4} luajit )
 
 inherit cmake lua unpacker
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2020-11-16 Thread Marek Szuba
commit: 89bcfabb327aaccb162614fc20c753fc6460e95d
Author: Marek Szuba  gentoo  org>
AuthorDate: Mon Nov 16 12:46:10 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Mon Nov 16 13:18:41 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89bcfabb

dev-lua/luv-1.32.0.0-r101: bump lua-compat-5.3 version to 0.10

With this version, luv builds and tests fine for lua5.4 - as well as all
the previously supported implementations, of course.

Signed-off-by: Marek Szuba  gentoo.org>

 dev-lua/luv/Manifest | 1 +
 dev-lua/luv/luv-1.32.0.0-r101.ebuild | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 291426571d2..0aa57f799cf 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,3 @@
 DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
+DIST luv-lua-compat-0.10.tar.gz 53695 BLAKE2B 
e570aedb23b8ed7ca38c4316ffab25b93a0f9f6f0fae79af563ca8a81dd6453ac273e1f9e70674c484a2dec68749e7d53a1c1736a72616c210b8e38a31b3f191
 SHA512 
f7f39085f4f6b16095f41e635b4c5477b3dab5e42b5b65a9d522941a3807ea521d4a27a77293a3c9d0ecea78a1f6c2a2497394b2d220f4d7d65e23510563d46d
 DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.32.0.0-r101.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
index 57253364377..ce6b238a718 100644
--- a/dev-lua/luv/luv-1.32.0.0-r101.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
@@ -14,7 +14,7 @@ MY_P="${PN}-${MY_PV}"
 DESCRIPTION="Bare libuv bindings for lua"
 HOMEPAGE="https://github.com/luvit/luv;
 
-LUA_COMPAT_PV="0.7"
+LUA_COMPAT_PV="0.10"
 SRC_URI="
https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz

https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2020-11-13 Thread Marek Szuba
commit: 3d7a21155571a2bf2a36df0ef1aeb527782f5d6a
Author: Marek Szuba  gentoo  org>
AuthorDate: Fri Nov 13 23:06:07 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Fri Nov 13 23:08:36 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3d7a2115

dev-lua/luv: remove the lua-single prototype

Signed-off-by: Marek Szuba  gentoo.org>

 dev-lua/luv/luv-1.32.0.0-r100.ebuild | 79 
 1 file changed, 79 deletions(-)

diff --git a/dev-lua/luv/luv-1.32.0.0-r100.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r100.ebuild
deleted file mode 100644
index 793fb2104a0..000
--- a/dev-lua/luv/luv-1.32.0.0-r100.ebuild
+++ /dev/null
@@ -1,79 +0,0 @@
-# Copyright 2019-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..3} luajit )
-
-inherit cmake lua-single unpacker
-
-# e.g. MY_PV = a.b.c-d
-MY_PV="$(ver_rs 3 -)"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-
-LUA_COMPAT_PV="0.7"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
-"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
-IUSE="test"
-RESTRICT="!test? ( test )"
-
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="${LUA_DEPS}
-   >=dev-libs/libuv-1.32.0:="
-RDEPEND="${DEPEND}"
-
-PATCHES=(
-   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
-)
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake_src_prepare
-}
-
-# TODO: try to make this multi-impl. Will need at least:
-#  - per-implementation install dirs for headers and the library
-#  - versioned .pc files (which may or may not break revdeps)
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
-
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_SHARED_LIBUV=ON
-   )
-   if [[ ${ELUA} == luajit ]]; then
-   mycmakeargs+=(
-   -DWITH_LUA_ENGINE=LuaJIT
-   )
-   else
-   mycmakeargs+=(
-   -DWITH_LUA_ENGINE=Lua
-   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
-   )
-   fi
-
-   cmake_src_configure
-}
-
-src_test() {
-   # We need to copy the library back so that the tests see it
-   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
-   ${ELUA} "tests/run.lua" || die "Tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2020-10-15 Thread Marek Szuba
commit: f12b6a56bef830507569b5c1a54baf234b861fa1
Author: Marek Szuba  gentoo  org>
AuthorDate: Thu Oct 15 12:01:33 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Thu Oct 15 12:05:11 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f12b6a56

dev-lua/luv: support multiple Lua implementations

Will likely need changes to revdeps.

Signed-off-by: Marek Szuba  gentoo.org>

 dev-lua/luv/luv-1.32.0.0-r101.ebuild | 113 +++
 1 file changed, 113 insertions(+)

diff --git a/dev-lua/luv/luv-1.32.0.0-r101.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
new file mode 100644
index 000..57253364377
--- /dev/null
+++ b/dev-lua/luv/luv-1.32.0.0-r101.ebuild
@@ -0,0 +1,113 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit cmake lua unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.7"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-1.32.0:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+lua_src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DINSTALL_LIB_DIR="$(lua_get_cmod_dir)"
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   cmake_src_configure
+}
+
+lua_src_test() {
+   # We need to copy the implementation-specific library back so that the 
tests see it
+   rm -f ./luv.so
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${ELUA} "tests/run.lua" || die "Tests failed"
+}
+
+lua_src_install() {
+   cmake_src_install
+   mkdir -p "${ED}"/usr/$(get_libdir)/pkgconfig && \
+   mv "${ED}$(lua_get_cmod_dir)"/pkgconfig/libluv.pc \
+   "${ED}"/usr/$(get_libdir)/pkgconfig/libluv-${ELUA}.pc || \
+   die "Failed make pkgconfig file for ${ELUA} implementation-specific"
+   rmdir "${ED}$(lua_get_cmod_dir)"/pkgconfig || die
+}
+
+src_configure() {
+   lua_foreach_impl lua_src_configure
+}
+
+src_compile() {
+   lua_foreach_impl cmake_src_compile
+}
+
+src_test() {
+   lua_foreach_impl lua_src_test
+}
+
+src_install() {
+   lua_foreach_impl lua_src_install
+}
+
+pkg_postinst() {
+   ewarn "Please note that in order to properly support multiple Lua 
implementations,"
+   ewarn "this ebuild of ${PN} installs its library files into 
implementation-specific"
+   ewarn "module directories, as well as multiple .pc files named after 
implementations"
+   ewarn "(e.g. 'libluv-lua5.3.pc'). Since upstream by default only 
supports a single"
+   ewarn "Lua implementation at a time and thus only provides a single, 
unversioned"
+   ewarn ".pc file, projects depending on ${PN} might require changes in 
order to"
+   ewarn "support the multi-implementation approach."
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/files/, dev-lua/luv/

2020-10-13 Thread Marek Szuba
commit: 40ae837172c06f2e9532db2b7ee570b966e4e6fb
Author: Marek Szuba  gentoo  org>
AuthorDate: Tue Oct 13 13:04:28 2020 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Tue Oct 13 16:47:27 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40ae8371

dev-lua/luv: migrate to lua-single.eclass

In theory this should be multi-impl but upstream does not directly support
it, in particular their pkgconfig files do not include the Lua ABI
version in their names. For now just keep it simple i.e. stick with the
old behaviour of only supporting one implementation at a time.

Signed-off-by: Marek Szuba  gentoo.org>

 .../luv/files/luv-1.32.0.0-cmake_lua_version.patch | 11 +++
 dev-lua/luv/luv-1.32.0.0-r100.ebuild   | 79 ++
 2 files changed, 90 insertions(+)

diff --git a/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch 
b/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch
new file mode 100644
index 000..84af757d248
--- /dev/null
+++ b/dev-lua/luv/files/luv-1.32.0.0-cmake_lua_version.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt
 b/CMakeLists.txt
+@@ -107,7 +107,7 @@
+   include_directories(${LUAJIT_INCLUDE_DIR})
+   link_directories(${LUAJIT_LIBRARIES})
+ else (USE_LUAJIT)
+-  find_package(Lua REQUIRED)
++  find_package(Lua ${LUA_VERSION} EXACT REQUIRED)
+   include_directories(${LUA_INCLUDE_DIR})
+ endif (USE_LUAJIT)
+ 

diff --git a/dev-lua/luv/luv-1.32.0.0-r100.ebuild 
b/dev-lua/luv/luv-1.32.0.0-r100.ebuild
new file mode 100644
index 000..793fb2104a0
--- /dev/null
+++ b/dev-lua/luv/luv-1.32.0.0-r100.ebuild
@@ -0,0 +1,79 @@
+# Copyright 2019-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..3} luajit )
+
+inherit cmake lua-single unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.7"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="test"
+RESTRICT="!test? ( test )"
+
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="${LUA_DEPS}
+   >=dev-libs/libuv-1.32.0:="
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.32.0.0-cmake_lua_version.patch
+)
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake_src_prepare
+}
+
+# TODO: try to make this multi-impl. Will need at least:
+#  - per-implementation install dirs for headers and the library
+#  - versioned .pc files (which may or may not break revdeps)
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_SHARED_LIBUV=ON
+   )
+   if [[ ${ELUA} == luajit ]]; then
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=LuaJIT
+   )
+   else
+   mycmakeargs+=(
+   -DWITH_LUA_ENGINE=Lua
+   -DLUA_VERSION=$(ver_cut 1-2 $(lua_get_version))
+   )
+   fi
+
+   cmake_src_configure
+}
+
+src_test() {
+   # We need to copy the library back so that the tests see it
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${ELUA} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-12-29 Thread Mikle Kolyada
commit: 634b17046b7109bac04d10958a3a8a31a88f090b
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Dec 29 09:20:21 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Dec 29 09:20:21 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=634b1704

dev-lua/luv: mark stable

Package-Manager: Portage-2.3.79, Repoman-2.3.16
Signed-off-by: Mikle Kolyada  gentoo.org>

 dev-lua/luv/luv-1.32.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.32.0.0.ebuild b/dev-lua/luv/luv-1.32.0.0.ebuild
index 5333e5fd0ac..41098ce6bbc 100644
--- a/dev-lua/luv/luv-1.32.0.0.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0.ebuild
@@ -20,7 +20,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+KEYWORDS="amd64 ~arm ~arm64 x86"
 IUSE="luajit test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-11-03 Thread Joonas Niilola
commit: 6cc69169c28f37e7a706d7e875a78636630f8cd0
Author: Joonas Niilola  gentoo  org>
AuthorDate: Mon Nov  4 03:55:34 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Mon Nov  4 03:55:34 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6cc69169

dev-lua/luv: add ~arm64 for 1.32.0

Tested-by: Roy Bamford  gentoo.org>
Closes: https://bugs.gentoo.org/695024
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/luv-1.32.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.32.0.0.ebuild b/dev-lua/luv/luv-1.32.0.0.ebuild
index b684cb17f6b..5333e5fd0ac 100644
--- a/dev-lua/luv/luv-1.32.0.0.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0.ebuild
@@ -20,7 +20,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~arm ~x86"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
 IUSE="luajit test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-11-03 Thread Mikle Kolyada
commit: 3a345648ac35aa10f6761474246671a55ce253c2
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Nov  3 14:01:38 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Nov  3 14:01:54 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3a345648

dev-lua/luv: Add ~arm keyword wrt bug #695024

Package-Manager: Portage-2.3.76, Repoman-2.3.16
RepoMan-Options: --include-arches="arm"
Signed-off-by: Mikle Kolyada  gentoo.org>

 dev-lua/luv/luv-1.32.0.0.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/luv/luv-1.32.0.0.ebuild b/dev-lua/luv/luv-1.32.0.0.ebuild
index 7b036e6da7f..b684cb17f6b 100644
--- a/dev-lua/luv/luv-1.32.0.0.ebuild
+++ b/dev-lua/luv/luv-1.32.0.0.ebuild
@@ -20,7 +20,7 @@ SRC_URI="
 
 LICENSE="Apache-2.0 MIT"
 SLOT="0"
-KEYWORDS="~amd64 ~x86"
+KEYWORDS="~amd64 ~arm ~x86"
 IUSE="luajit test"
 RESTRICT="!test? ( test )"
 



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-10-31 Thread Joonas Niilola
commit: 35028a7c03f8cb673c5123e61a00fc6bb68d2dcc
Author: Bernardo Meurer  gmail  com>
AuthorDate: Mon Oct 28 05:24:12 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Oct 31 15:45:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35028a7c

dev-lua/luv: bump 1.32.0.0

Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/Manifest|  1 +
 dev-lua/luv/luv-1.32.0.0.ebuild | 61 +
 2 files changed, 62 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index c1c8d348e6b..9ae02938e73 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,3 @@
 DIST luv-1.30.1.1.tar.gz 88948 BLAKE2B 
8b6da2ac0c63222a508f9f37b6a724edab21285f21ff1fa95fe334ae800bf76a49114e41531d7584bc8ce171e4c373167cb713cf70bef6ac2c822b88398bbe17
 SHA512 
c9001cbea2f58a867b6ddf11ac54d16bfaa15f37f3453758d303c58b960177c7c1a65e8c5636ce07161711c898af7dfda0ed9cb4cfb8d7d6430b3843fd0acfa2
+DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
 DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.32.0.0.ebuild b/dev-lua/luv/luv-1.32.0.0.ebuild
new file mode 100644
index 000..7b036e6da7f
--- /dev/null
+++ b/dev-lua/luv/luv-1.32.0.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.7"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="
+   >=dev-libs/libuv-1.32.0:=
+   luajit? ( dev-lang/luajit:2 )
+   !luajit? ( dev-lang/lua:0 )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake-utils_src_prepare
+}
+
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
+   -DWITH_SHARED_LIBUV=ON
+   )
+   cmake-utils_src_configure
+}
+
+src_test() {
+   local elua="$(usex luajit luajit lua)"
+   # We need to copy the library back so that the tests see it
+   ln -s "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to symlink 
library for tests"
+   ${elua} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-10-31 Thread Joonas Niilola
commit: a899bcd18b6bfafd563e735e17b33b9764eb9588
Author: Bernardo Meurer  gmail  com>
AuthorDate: Mon Oct 28 05:24:36 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Oct 31 15:45:45 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a899bcd1

dev-lua/luv: yank 1.30.1.1

Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/13475
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/Manifest|  1 -
 dev-lua/luv/luv-1.30.1.1.ebuild | 61 -
 2 files changed, 62 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 9ae02938e73..291426571d2 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,3 +1,2 @@
-DIST luv-1.30.1.1.tar.gz 88948 BLAKE2B 
8b6da2ac0c63222a508f9f37b6a724edab21285f21ff1fa95fe334ae800bf76a49114e41531d7584bc8ce171e4c373167cb713cf70bef6ac2c822b88398bbe17
 SHA512 
c9001cbea2f58a867b6ddf11ac54d16bfaa15f37f3453758d303c58b960177c7c1a65e8c5636ce07161711c898af7dfda0ed9cb4cfb8d7d6430b3843fd0acfa2
 DIST luv-1.32.0.0.tar.gz 91349 BLAKE2B 
e4a90b3241e2fe650f62e34439ed75f9ba53168d6bd96b8685fc5600d6f9cbb1bb598a7d40d918ab9123cf4bad99f872a79d0664056d35caba52d1eda9046020
 SHA512 
7db52afc1ca79052e349be7a37deb67066ee9005f8d7f7d0dae62bd83a93b4140103ee6dddeca2e02a3fc37b3880a5c18904429886af1d441f8de0cfabf5bd8c
 DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.30.1.1.ebuild b/dev-lua/luv/luv-1.30.1.1.ebuild
deleted file mode 100644
index 1309efa30fe..000
--- a/dev-lua/luv/luv-1.30.1.1.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake-utils unpacker
-
-# e.g. MY_PV = a.b.c-d
-MY_PV="$(ver_rs 3 -)"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-
-LUA_COMPAT_PV="0.7"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
-"
-
-LICENSE="Apache-2.0 MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="luajit test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="
-   dev-libs/libuv:=
-   luajit? ( dev-lang/luajit:2 )
-   !luajit? ( dev-lang/lua:0 )
-"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake-utils_src_prepare
-}
-
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
-   -DWITH_SHARED_LIBUV=ON
-   )
-   cmake-utils_src_configure
-}
-
-src_test() {
-   local elua="$(usex luajit luajit lua)"
-   # We need to copy the library back so that the tests see it
-   cp "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to copy library 
for tests"
-   ${elua} "tests/run.lua" || die "Tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-09-19 Thread Joonas Niilola
commit: b717698212fa65ab2aea4300a41aabd257c7e05a
Author: Bernardo Meurer  standard  ai>
AuthorDate: Wed Sep 18 22:32:19 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Sep 19 12:46:38 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7176982

dev-lua/luv: bump 1.30.1.1

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/Manifest|  2 ++
 dev-lua/luv/luv-1.30.1.1.ebuild | 61 +
 2 files changed, 63 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 671bdf23131..1802df308f0 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,4 @@
+DIST luv-1.30.1.1.tar.gz 88948 BLAKE2B 
8b6da2ac0c63222a508f9f37b6a724edab21285f21ff1fa95fe334ae800bf76a49114e41531d7584bc8ce171e4c373167cb713cf70bef6ac2c822b88398bbe17
 SHA512 
c9001cbea2f58a867b6ddf11ac54d16bfaa15f37f3453758d303c58b960177c7c1a65e8c5636ce07161711c898af7dfda0ed9cb4cfb8d7d6430b3843fd0acfa2
 DIST luv-1.30.1_p0.tar.gz 88560 BLAKE2B 
9eb32f4e13921899a80dfba143508d26ef0bee3ce0186b62b31ee9da508aa434ac01dcdbd5654f03fd18798791b71e310739e2d9a879f03bf6c48475cc6e0b46
 SHA512 
c7f613e72d5e5e93035597fcb6a3868d60e61811d4858ced1c2087f31ed0720c11fe436af51d6626c0d77ed448989520b220d6a150b49f6ec0fe557472dd66c7
 DIST luv-lua-compat-1.30.1_p0.tar.gz 51418 BLAKE2B 
1d04684e6b6d850bdf6bd3165a90c6a08bd93b757d91e387da152bcb3fc4756db5c16f3cc12ecf33bcdd647742c7923cc2e72627beb5527c5e9dfbfd63c147ba
 SHA512 
60ec9ecfc4e4ad47b6a8189ffb1e7c83fe8b9e9df13cb91bf33725905ab72bff3d3009e8ad04fb73fd7255facdbb8279f20bfd160aee89b12c25431786eaca14
+DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.30.1.1.ebuild b/dev-lua/luv/luv-1.30.1.1.ebuild
new file mode 100644
index 000..1309efa30fe
--- /dev/null
+++ b/dev-lua/luv/luv-1.30.1.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils unpacker
+
+# e.g. MY_PV = a.b.c-d
+MY_PV="$(ver_rs 3 -)"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+
+LUA_COMPAT_PV="0.7"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/v${LUA_COMPAT_PV}.tar.gz
 -> ${PN}-lua-compat-${LUA_COMPAT_PV}.tar.gz
+"
+
+LICENSE="Apache-2.0 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit test"
+RESTRICT="!test? ( test )"
+
+BDEPEND="virtual/pkgconfig"
+DEPEND="
+   dev-libs/libuv:=
+   luajit? ( dev-lang/luajit:2 )
+   !luajit? ( dev-lang/lua:0 )
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake-utils_src_prepare
+}
+
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_PV}"
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
+   -DWITH_SHARED_LIBUV=ON
+   )
+   cmake-utils_src_configure
+}
+
+src_test() {
+   local elua="$(usex luajit luajit lua)"
+   # We need to copy the library back so that the tests see it
+   cp "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to copy library 
for tests"
+   ${elua} "tests/run.lua" || die "Tests failed"
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-09-19 Thread Joonas Niilola
commit: 114da9636427cc1bbda35e8eef047e6158afe93e
Author: Bernardo Meurer  standard  ai>
AuthorDate: Wed Sep 18 22:33:11 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Sep 19 12:46:39 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=114da963

dev-lua/luv: yank 1.30.1_p0

Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/12966
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/Manifest |  2 --
 dev-lua/luv/luv-1.30.1_p0.ebuild | 61 
 2 files changed, 63 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 1802df308f0..c1c8d348e6b 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,4 +1,2 @@
 DIST luv-1.30.1.1.tar.gz 88948 BLAKE2B 
8b6da2ac0c63222a508f9f37b6a724edab21285f21ff1fa95fe334ae800bf76a49114e41531d7584bc8ce171e4c373167cb713cf70bef6ac2c822b88398bbe17
 SHA512 
c9001cbea2f58a867b6ddf11ac54d16bfaa15f37f3453758d303c58b960177c7c1a65e8c5636ce07161711c898af7dfda0ed9cb4cfb8d7d6430b3843fd0acfa2
-DIST luv-1.30.1_p0.tar.gz 88560 BLAKE2B 
9eb32f4e13921899a80dfba143508d26ef0bee3ce0186b62b31ee9da508aa434ac01dcdbd5654f03fd18798791b71e310739e2d9a879f03bf6c48475cc6e0b46
 SHA512 
c7f613e72d5e5e93035597fcb6a3868d60e61811d4858ced1c2087f31ed0720c11fe436af51d6626c0d77ed448989520b220d6a150b49f6ec0fe557472dd66c7
-DIST luv-lua-compat-1.30.1_p0.tar.gz 51418 BLAKE2B 
1d04684e6b6d850bdf6bd3165a90c6a08bd93b757d91e387da152bcb3fc4756db5c16f3cc12ecf33bcdd647742c7923cc2e72627beb5527c5e9dfbfd63c147ba
 SHA512 
60ec9ecfc4e4ad47b6a8189ffb1e7c83fe8b9e9df13cb91bf33725905ab72bff3d3009e8ad04fb73fd7255facdbb8279f20bfd160aee89b12c25431786eaca14
 DIST luv-lua-compat-0.7.tar.gz 51383 BLAKE2B 
ae86f314de971fcd7d8706009d59d684c035fb661ecf392c581a3c317cc1a396321ef7af0418d8f23151c52c66613a0749e8fa9ac889a183c2ffe749091dae35
 SHA512 
665ece98422a105b818cffd96eea5788696fbb854d2ba41d2d387e8bd25c1fa9de601468e55e22e9e749979a66d4d2e0f7dfd656e5bf27b489d37bb07c96f48d

diff --git a/dev-lua/luv/luv-1.30.1_p0.ebuild b/dev-lua/luv/luv-1.30.1_p0.ebuild
deleted file mode 100644
index 502da31838e..000
--- a/dev-lua/luv/luv-1.30.1_p0.ebuild
+++ /dev/null
@@ -1,61 +0,0 @@
-# Copyright 2019 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit cmake-utils unpacker
-
-MY_PV="${PV/_p/-}"
-MY_P="${PN}-${MY_PV}"
-
-DESCRIPTION="Bare libuv bindings for lua"
-HOMEPAGE="https://github.com/luvit/luv;
-# XXX: Remember to check this hash between bumps!
-# https://github.com/luvit/luv/tree/master/deps
-LUA_COMPAT_HASH="daebe77a2f498817713df37f0bb316db1d8f"
-SRC_URI="
-   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/${LUA_COMPAT_HASH}.tar.gz
 -> ${PN}-lua-compat-${PV}.tar.gz
-"
-
-LICENSE="Apache-2.0"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="luajit test"
-RESTRICT="!test? ( test )"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="
-   dev-libs/libuv:=
-   luajit? ( dev-lang/luajit:2 )
-   !luajit? ( dev-lang/lua:0 )
-"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-src_prepare() {
-   # Fix libdir
-   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
-   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
-   cmake-utils_src_prepare
-}
-
-src_configure() {
-   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_HASH}"
-   local mycmakeargs=(
-   -DBUILD_MODULE=OFF
-   -DLUA_BUILD_TYPE=System
-   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
-   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
-   -DWITH_SHARED_LIBUV=ON
-   )
-   cmake-utils_src_configure
-}
-
-src_test() {
-   local elua="$(usex luajit luajit lua)"
-   # We need to copy the library back so that the tests see it
-   cp "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to copy library 
for tests"
-   ${elua} "tests/run.lua" || die "Tests failed"
-}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-09-17 Thread Michał Górny
commit: 10339d0ae4fe3153ea63c90f98210d5e21d03a12
Author: Bernardo Meurer  standard  ai>
AuthorDate: Tue Sep 17 17:51:21 2019 +
Commit: Michał Górny  gentoo  org>
CommitDate: Tue Sep 17 19:31:08 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=10339d0a

dev-lua/luv: use tar.gz instead of zip

Closes: https://bugs.gentoo.org/694630
Package-Manager: Portage-2.3.76, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/12953
Signed-off-by: Michał Górny  gentoo.org>

 dev-lua/luv/Manifest | 2 +-
 dev-lua/luv/luv-1.30.1_p0.ebuild | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
index 0b154193b78..671bdf23131 100644
--- a/dev-lua/luv/Manifest
+++ b/dev-lua/luv/Manifest
@@ -1,2 +1,2 @@
 DIST luv-1.30.1_p0.tar.gz 88560 BLAKE2B 
9eb32f4e13921899a80dfba143508d26ef0bee3ce0186b62b31ee9da508aa434ac01dcdbd5654f03fd18798791b71e310739e2d9a879f03bf6c48475cc6e0b46
 SHA512 
c7f613e72d5e5e93035597fcb6a3868d60e61811d4858ced1c2087f31ed0720c11fe436af51d6626c0d77ed448989520b220d6a150b49f6ec0fe557472dd66c7
-DIST luv-lua-compat-1.30.1_p0.zip 62515 BLAKE2B 
173dbe43a1f1f4e440c1e40b0a0b22b4ca580568e754a44fbcf57370a53340ebe247de18ae8e98e68cf0f85ae2fa6ec41d5acfb9a433e4bdc717a1e80a2480b6
 SHA512 
7e66b059aecdb4de630fd305fdcc439cccac94b44101c8b74d61f0f40a1e01e8e68c811a96bddcf5bb0ae09f369d9524f0ec9b009e31d89aef2a1115becba056
+DIST luv-lua-compat-1.30.1_p0.tar.gz 51418 BLAKE2B 
1d04684e6b6d850bdf6bd3165a90c6a08bd93b757d91e387da152bcb3fc4756db5c16f3cc12ecf33bcdd647742c7923cc2e72627beb5527c5e9dfbfd63c147ba
 SHA512 
60ec9ecfc4e4ad47b6a8189ffb1e7c83fe8b9e9df13cb91bf33725905ab72bff3d3009e8ad04fb73fd7255facdbb8279f20bfd160aee89b12c25431786eaca14

diff --git a/dev-lua/luv/luv-1.30.1_p0.ebuild b/dev-lua/luv/luv-1.30.1_p0.ebuild
index 70dc438f362..502da31838e 100644
--- a/dev-lua/luv/luv-1.30.1_p0.ebuild
+++ b/dev-lua/luv/luv-1.30.1_p0.ebuild
@@ -15,13 +15,14 @@ HOMEPAGE="https://github.com/luvit/luv;
 LUA_COMPAT_HASH="daebe77a2f498817713df37f0bb316db1d8f"
 SRC_URI="
https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
-   
https://github.com/keplerproject/lua-compat-5.3/archive/${LUA_COMPAT_HASH}.zip 
-> ${PN}-lua-compat-${PV}.zip
+   
https://github.com/keplerproject/lua-compat-5.3/archive/${LUA_COMPAT_HASH}.tar.gz
 -> ${PN}-lua-compat-${PV}.tar.gz
 "
 
 LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="luajit test"
+RESTRICT="!test? ( test )"
 
 BDEPEND="virtual/pkgconfig"
 DEPEND="



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-09-07 Thread Joonas Niilola
commit: 14d7c3ce2e2f08f5c52cf5457c172ffbc7f4088c
Author: Bernardo Meurer  standard  ai>
AuthorDate: Fri Sep  6 21:36:43 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Sep  7 19:42:38 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=14d7c3ce

dev-lua/luv: Fix lack of dev-lang/lua in DEPEND

Closes: https://bugs.gentoo.org/693614
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/12879
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/luv-1.30.1_p0.ebuild | 12 +---
 1 file changed, 5 insertions(+), 7 deletions(-)

diff --git a/dev-lua/luv/luv-1.30.1_p0.ebuild b/dev-lua/luv/luv-1.30.1_p0.ebuild
index 50c64f2bb52..70dc438f362 100644
--- a/dev-lua/luv/luv-1.30.1_p0.ebuild
+++ b/dev-lua/luv/luv-1.30.1_p0.ebuild
@@ -23,14 +23,12 @@ SLOT="0"
 KEYWORDS="~amd64 ~x86"
 IUSE="luajit test"
 
-BDEPEND="
-   virtual/pkgconfig
-   test? (
-   luajit? ( dev-lang/luajit:2 )
-   !luajit? ( dev-lang/lua:0 )
-   )
+BDEPEND="virtual/pkgconfig"
+DEPEND="
+   dev-libs/libuv:=
+   luajit? ( dev-lang/luajit:2 )
+   !luajit? ( dev-lang/lua:0 )
 "
-DEPEND="dev-libs/libuv:="
 RDEPEND="${DEPEND}"
 
 S="${WORKDIR}/${MY_P}"



[gentoo-commits] repo/gentoo:master commit in: dev-lua/luv/

2019-09-05 Thread Joonas Niilola
commit: 9189264db54c0f6a85adfcf5c055d5d5752fda82
Author: Bernardo Meurer  standard  ai>
AuthorDate: Thu Sep  5 08:15:50 2019 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Thu Sep  5 18:45:03 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9189264d

dev-libs/libluv: new package (1.30.1_p0)

Bare libuv bindings for lua

Closes: https://bugs.gentoo.org/691878
Package-Manager: Portage-2.3.75, Repoman-2.3.17
Signed-off-by: Bernardo Meurer  standard.ai>
Closes: https://github.com/gentoo/gentoo/pull/12864
Signed-off-by: Joonas Niilola  gentoo.org>

 dev-lua/luv/Manifest |  2 ++
 dev-lua/luv/luv-1.30.1_p0.ebuild | 62 
 dev-lua/luv/metadata.xml | 21 ++
 3 files changed, 85 insertions(+)

diff --git a/dev-lua/luv/Manifest b/dev-lua/luv/Manifest
new file mode 100644
index 000..0b154193b78
--- /dev/null
+++ b/dev-lua/luv/Manifest
@@ -0,0 +1,2 @@
+DIST luv-1.30.1_p0.tar.gz 88560 BLAKE2B 
9eb32f4e13921899a80dfba143508d26ef0bee3ce0186b62b31ee9da508aa434ac01dcdbd5654f03fd18798791b71e310739e2d9a879f03bf6c48475cc6e0b46
 SHA512 
c7f613e72d5e5e93035597fcb6a3868d60e61811d4858ced1c2087f31ed0720c11fe436af51d6626c0d77ed448989520b220d6a150b49f6ec0fe557472dd66c7
+DIST luv-lua-compat-1.30.1_p0.zip 62515 BLAKE2B 
173dbe43a1f1f4e440c1e40b0a0b22b4ca580568e754a44fbcf57370a53340ebe247de18ae8e98e68cf0f85ae2fa6ec41d5acfb9a433e4bdc717a1e80a2480b6
 SHA512 
7e66b059aecdb4de630fd305fdcc439cccac94b44101c8b74d61f0f40a1e01e8e68c811a96bddcf5bb0ae09f369d9524f0ec9b009e31d89aef2a1115becba056

diff --git a/dev-lua/luv/luv-1.30.1_p0.ebuild b/dev-lua/luv/luv-1.30.1_p0.ebuild
new file mode 100644
index 000..50c64f2bb52
--- /dev/null
+++ b/dev-lua/luv/luv-1.30.1_p0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit cmake-utils unpacker
+
+MY_PV="${PV/_p/-}"
+MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Bare libuv bindings for lua"
+HOMEPAGE="https://github.com/luvit/luv;
+# XXX: Remember to check this hash between bumps!
+# https://github.com/luvit/luv/tree/master/deps
+LUA_COMPAT_HASH="daebe77a2f498817713df37f0bb316db1d8f"
+SRC_URI="
+   https://github.com/luvit/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz
+   
https://github.com/keplerproject/lua-compat-5.3/archive/${LUA_COMPAT_HASH}.zip 
-> ${PN}-lua-compat-${PV}.zip
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="luajit test"
+
+BDEPEND="
+   virtual/pkgconfig
+   test? (
+   luajit? ( dev-lang/luajit:2 )
+   !luajit? ( dev-lang/lua:0 )
+   )
+"
+DEPEND="dev-libs/libuv:="
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+src_prepare() {
+   # Fix libdir
+   # Match '/lib/' and '/lib"' without capturing / or ", replacing with 
libdir
+   sed -i -r "s/\/lib(\"|\/)/\/$(get_libdir)\1/g" CMakeLists.txt || die 
"Failed to sed CMakeLists.txt"
+   cmake-utils_src_prepare
+}
+
+src_configure() {
+   lua_compat_dir="${WORKDIR}/lua-compat-5.3-${LUA_COMPAT_HASH}"
+   local mycmakeargs=(
+   -DBUILD_MODULE=OFF
+   -DLUA_BUILD_TYPE=System
+   -DLUA_COMPAT53_DIR="${lua_compat_dir}"
+   -DWITH_LUA_ENGINE=$(usex luajit LuaJIT Lua)
+   -DWITH_SHARED_LIBUV=ON
+   )
+   cmake-utils_src_configure
+}
+
+src_test() {
+   local elua="$(usex luajit luajit lua)"
+   # We need to copy the library back so that the tests see it
+   cp "${BUILD_DIR}/libluv.so" "./luv.so" || die "Failed to copy library 
for tests"
+   ${elua} "tests/run.lua" || die "Tests failed"
+}

diff --git a/dev-lua/luv/metadata.xml b/dev-lua/luv/metadata.xml
new file mode 100644
index 000..b860177b333
--- /dev/null
+++ b/dev-lua/luv/metadata.xml
@@ -0,0 +1,21 @@
+
+http://www.gentoo.org/dtd/metadata.dtd;>
+
+   
+   berna...@standard.ai
+   Bernardo Meurer
+   
+   
+   proxy-ma...@gentoo.org
+   Gentoo Proxy Maintainers Project
+   
+   
+   libuv bindings for luajit and lua 5.1/ 5.2/ 5.3.
+
+   This library makes libuv available to lua scripts. It was made 
for the
+   luvit project but should usable from nearly any lua project.
+   
+   
+   luvit/luv
+   
+