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

2023-08-05 Thread Conrad Kostecki
commit: 9dbbffe454427b75bfb4fdfb1003a6595b226546
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Aug  5 22:17:45 2023 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Aug  5 22:39:56 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9dbbffe4

dev-lua/LuaBitOp: fix QA ExcessiveLineLength

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild | 7 +--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
index 8b40be675529..0eb8c54f9112 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2022 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -86,7 +86,10 @@ lua_src_install() {
# we only want the major version (e.g. 5.1)
local luamv=${luav:0:3}
local file="lua/${luamv}/bit.so"
-   install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" 
"${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
+   install_name_tool \
+   -id "${EPREFIX}/usr/$(get_libdir)/${file}" \
+   "${ED}/usr/$(get_libdir)/${file}" \
+   || die "Failed to adjust install_name"
fi
 }
 



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

2021-10-11 Thread Conrad Kostecki
commit: f2d6b0683ab150dbc6ef3074a599be8b70f99a3b
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Mon Oct 11 18:22:21 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon Oct 11 18:22:35 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f2d6b068

dev-lua/LuaBitOp: drop old version

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 95 -
 1 file changed, 95 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
deleted file mode 100644
index 11bcdb422dd..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ /dev/null
@@ -1,95 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..2} luajit )
-
-inherit flag-o-matic lua toolchain-funcs
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-
-RDEPEND="${LUA_DEPS}"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-HTML_DOCS=( "doc/." )
-
-src_prepare() {
-   default
-
-   lua_copy_sources
-}
-
-lua_src_compile() {
-   pushd "${BUILD_DIR}" || die
-
-   local myemakeargs=(
-   "CC=$(tc-getCC)"
-   "CCOPT="
-   "INCLUDES=$(lua_get_CFLAGS)"
-   )
-
-   emake "${myemakeargs[@]}" all
-
-   popd
-}
-
-src_compile() {
-   if [[ $CHOST == *-darwin* ]] ; then
-   append-ldflags "-undefined dynamic_lookup"
-   fi
-   lua_foreach_impl lua_src_compile
-}
-
-lua_src_test() {
-   pushd "${BUILD_DIR}" || die
-
-   local mytests=(
-   "bitbench.lua"
-   "bittest.lua"
-   "md5test.lua"
-   "nsievebits.lua"
-   )
-
-   for mytest in ${mytests[@]}; do
-   LUA_CPATH="./?.so" ${ELUA} ${mytest}
-   done
-
-   popd
-}
-
-src_test() {
-   lua_foreach_impl lua_src_test
-}
-
-lua_src_install() {
-   pushd "${BUILD_DIR}" || die
-
-   mycmoddir="$(lua_get_cmod_dir)"
-   exeinto "${mycmoddir#$EPREFIX}"
-   doexe bit.so
-
-   popd
-
-   if [[ ${CHOST} == *-darwin* ]] ; then
-   local luav=$(lua_get_version)
-   # we only want the major version (e.g. 5.1)
-   local luamv=${luav:0:3}
-   local file="lua/${luamv}/bit.so"
-   install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" 
"${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
-   fi
-}
-
-src_install() {
-   lua_foreach_impl lua_src_install
-
-   einstalldocs
-}



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

2021-10-11 Thread Sam James
commit: d9f553e8028a5bc8be269f46938edad71e566ac7
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Mon Oct 11 14:55:12 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Mon Oct 11 15:17:06 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d9f553e8

dev-lua/LuaBitOp: stable 1.0.2-r103 for hppa, bug #814989

Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sam James  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index faad1b15e93..70ede4e1932 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 
~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

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

dev-lua/LuaBitOp: 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/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 99f1259bb78..faad1b15e93 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 ~riscv sparc x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-10-02 Thread Sam James
commit: c04336b7c99a7b0e2b7d9b5450d4a58ce0fdabf0
Author: Sam James  gentoo  org>
AuthorDate: Sun Oct  3 02:28:26 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Oct  3 02:28:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c04336b7

dev-lua/LuaBitOp: Stabilize 1.0.2-r103 arm64, #814989

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 0946e5038d8..99f1259bb78 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
+KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-10-01 Thread Sam James
commit: 3b4738386e9ae47bfed8708296da35ea03ac244b
Author: Sam James  gentoo  org>
AuthorDate: Fri Oct  1 23:41:51 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Fri Oct  1 23:41:51 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3b473838

dev-lua/LuaBitOp: Stabilize 1.0.2-r103 arm, #814989

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 1cdb16ea1be..0946e5038d8 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-09-27 Thread Agostino Sarubbo
commit: ca4c1cbaf0c6f808dfaea8c2a3a5797e4b17bb39
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Sep 27 06:57:20 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Sep 27 06:57:20 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca4c1cba

dev-lua/LuaBitOp: x86 stable wrt bug #814989

Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="x86"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 94ec2d4e984..1cdb16ea1be 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc ~x86 
~x64-macos"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-09-27 Thread Agostino Sarubbo
commit: fb4968fee9de8cf8294b3ae964a2ce0b5606487f
Author: Agostino Sarubbo  gentoo  org>
AuthorDate: Mon Sep 27 06:55:15 2021 +
Commit: Agostino Sarubbo  gentoo  org>
CommitDate: Mon Sep 27 06:55:15 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb4968fe

dev-lua/LuaBitOp: amd64 stable wrt bug #814989

Package-Manager: Portage-3.0.20, Repoman-3.0.3
RepoMan-Options: --include-arches="amd64"
Signed-off-by: Agostino Sarubbo  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 088fa499139..94ec2d4e984 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc ~x86 
~x64-macos"
+KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc ~x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-09-26 Thread Sam James
commit: 5abd1c53f5997697c5d73b24255d2bbffdf70667
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 26 17:51:14 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 26 17:51:14 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5abd1c53

dev-lua/LuaBitOp: Stabilize 1.0.2-r103 ppc64, #814989

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index a83c0c3647e..e06bdabffb0 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 sparc ~x86 
~x64-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 sparc ~x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-09-26 Thread Sam James
commit: 9c92d014659859f7886e75a61be1a69663c7c5af
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 26 17:51:11 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 26 17:51:11 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c92d014

dev-lua/LuaBitOp: Stabilize 1.0.2-r103 sparc, #814989

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index 8f4afd17034..a83c0c3647e 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 
~x64-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 sparc ~x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-09-26 Thread Sam James
commit: f1fe0b5e86584ab4664e178dc24ac1f967db7a43
Author: Sam James  gentoo  org>
AuthorDate: Sun Sep 26 17:51:45 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sun Sep 26 17:51:45 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f1fe0b5e

dev-lua/LuaBitOp: Stabilize 1.0.2-r103 ppc, #814989

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
index e06bdabffb0..088fa499139 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ppc64 sparc ~x86 
~x64-macos"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc ~x86 
~x64-macos"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 
 RDEPEND="${LUA_DEPS}"



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

2021-08-26 Thread Conrad Kostecki
commit: 885251cbb75698753fce75131bba913f54dffb2a
Author: Petr Vaněk  atlas  cz>
AuthorDate: Thu Aug 26 12:19:21 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Aug 26 19:44:34 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=885251cb

dev-lua/LuaBitOp: support lua5-3+

This revision bump applies patch generated from rspamd bundled library
in order to support lua-5.3 and lua-5.4.

Closes: https://github.com/gentoo/gentoo/pull/22109
Bug: https://bugs.gentoo.org/810335
Signed-off-by: Petr Vaněk  atlas.cz>
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild| 97 ++
 .../files/LuaBitOp-1.0.2-support-lua5-3+.patch | 78 +
 2 files changed, 175 insertions(+)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
new file mode 100644
index 000..8f4afd17034
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r103.ebuild
@@ -0,0 +1,97 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..4} luajit )
+
+inherit flag-o-matic lua toolchain-funcs
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org;
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 
~x64-macos"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+HTML_DOCS=( "doc/." )
+
+PATCHES=( "${FILESDIR}/${P}-support-lua5-3+.patch" )
+
+src_prepare() {
+   default
+
+   lua_copy_sources
+}
+
+lua_src_compile() {
+   pushd "${BUILD_DIR}" || die
+
+   local myemakeargs=(
+   "CC=$(tc-getCC)"
+   "CCOPT="
+   "INCLUDES=$(lua_get_CFLAGS)"
+   )
+
+   emake "${myemakeargs[@]}" all
+
+   popd
+}
+
+src_compile() {
+   if [[ $CHOST == *-darwin* ]] ; then
+   append-ldflags "-undefined dynamic_lookup"
+   fi
+   lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+   pushd "${BUILD_DIR}" || die
+
+   local mytests=(
+   "bitbench.lua"
+   "bittest.lua"
+   "md5test.lua"
+   "nsievebits.lua"
+   )
+
+   for mytest in ${mytests[@]}; do
+   LUA_CPATH="./?.so" ${ELUA} ${mytest}
+   done
+
+   popd
+}
+
+src_test() {
+   lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+   pushd "${BUILD_DIR}" || die
+
+   mycmoddir="$(lua_get_cmod_dir)"
+   exeinto "${mycmoddir#$EPREFIX}"
+   doexe bit.so
+
+   popd
+
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   local luav=$(lua_get_version)
+   # we only want the major version (e.g. 5.1)
+   local luamv=${luav:0:3}
+   local file="lua/${luamv}/bit.so"
+   install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" 
"${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
+   fi
+}
+
+src_install() {
+   lua_foreach_impl lua_src_install
+
+   einstalldocs
+}

diff --git a/dev-lua/LuaBitOp/files/LuaBitOp-1.0.2-support-lua5-3+.patch 
b/dev-lua/LuaBitOp/files/LuaBitOp-1.0.2-support-lua5-3+.patch
new file mode 100644
index 000..23c0d23a215
--- /dev/null
+++ b/dev-lua/LuaBitOp/files/LuaBitOp-1.0.2-support-lua5-3+.patch
@@ -0,0 +1,78 @@
+This patch is a result of diff between upstream and bundled library in rspamd
+
+https://github.com/rspamd/rspamd/blob/30298909543453ebe969878f1406ee76ad148494/contrib/lua-bit/bit.c
+
+diff --git a/bit.c b/bit.c
+index 690df7d3c..01326c99a 100644
+--- a/bit.c
 b/bit.c
+@@ -46,7 +46,7 @@ typedef uint32_t UBits;
+ 
+ typedef union {
+   lua_Number n;
+-#ifdef LUA_NUMBER_DOUBLE
++#if defined(LUA_NUMBER_DOUBLE) || defined(LUA_FLOAT_DOUBLE)
+   uint64_t b;
+ #else
+   UBits b;
+@@ -63,24 +63,25 @@ static UBits barg(lua_State *L, int idx)
+ #else
+   bn.n = luaL_checknumber(L, idx);
+ #endif
+-#if defined(LUA_NUMBER_DOUBLE)
++#if defined(LUA_NUMBER_DOUBLE) || defined(LUA_FLOAT_DOUBLE)
+   bn.n += 6755399441055744.0;  /* 2^52+2^51 */
+ #ifdef SWAPPED_DOUBLE
+   b = (UBits)(bn.b >> 32);
+ #else
+   b = (UBits)bn.b;
+ #endif
+-#elif defined(LUA_NUMBER_INT) || defined(LUA_NUMBER_LONG) || \
+-  defined(LUA_NUMBER_LONGLONG) || defined(LUA_NUMBER_LONG_LONG) || \
+-  defined(LUA_NUMBER_LLONG)
++#elif defined(LUA_NUMBER_INT)   || defined(LUA_INT_INT) || \
++  defined(LUA_NUMBER_LONG)  || defined(LUA_INT_LONG) || \
++  defined(LUA_NUMBER_LONGLONG)  || defined(LUA_INT_LONGLONG) || \
++  defined(LUA_NUMBER_LONG_LONG) || defined(LUA_NUMBER_LLONG)
+   if (sizeof(UBits) == sizeof(lua_Number))
+ b = bn.b;
+   else
+ b = (UBits)(SBits)bn.n;
+-#elif defined(LUA_NUMBER_FLOAT)
++#elif 

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

2021-08-26 Thread Conrad Kostecki
commit: 8246650c3298fe52e8db254c43ab67c5b9e20eab
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Thu Aug 26 18:02:19 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Thu Aug 26 18:02:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8246650c

dev-lua/LuaBitOp: drop unneeded test use flag

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 2 --
 1 file changed, 2 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index 619a4a26714..11bcdb422dd 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -14,9 +14,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 LICENSE="MIT"
 SLOT="0"
 KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
-IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
 
 RDEPEND="${LUA_DEPS}"
 DEPEND="${RDEPEND}"



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

2021-07-14 Thread Sergei Trofimovich
commit: 88a1016701c39479080e0c061dd878a77dcd3958
Author: Rolf Eike Beer  sf-mail  de>
AuthorDate: Wed Jul 14 15:59:02 2021 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Wed Jul 14 16:08:08 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=88a10167

dev-lua/LuaBitOp: stable 1.0.2-r102 for hppa, bug #783405

Package-Manager: Portage-3.0.20, Repoman-3.0.2
RepoMan-Options: --include-arches="hppa"
Signed-off-by: Rolf Eike Beer  sf-mail.de>
Signed-off-by: Sergei Trofimovich  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index e8eef6f58b4..ead9f367308 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
+KEYWORDS="~alpha amd64 arm ~arm64 hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
 IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 RESTRICT="!test? ( test )"



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

2021-04-17 Thread Conrad Kostecki
commit: a87ebb7086b9298ace24cce330161649a1bc97a4
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Apr 17 11:33:26 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Apr 17 11:33:26 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a87ebb70

dev-lua/LuaBitOp: add ~alpha ~ia64 keyword

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index 7aff8d1d405..e8eef6f58b4 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86 ~x64-macos"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ~mips ppc ppc64 sparc x86 
~x64-macos"
 IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 RESTRICT="!test? ( test )"



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

2021-03-09 Thread Aaron Bauman
commit: 845521d116e91e6ed9c0f048ef2744486e626b0a
Author: Aaron Bauman  gentoo  org>
AuthorDate: Tue Mar  9 18:54:29 2021 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Tue Mar  9 18:55:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=845521d1

dev-lua/LuaBitOp: fix build on Darwin; keyword ~x64-macos

Signed-off-by: Aaron Bauman  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 15 +--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index 617860f3937..7aff8d1d405 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -5,7 +5,7 @@ EAPI=7
 
 LUA_COMPAT=( lua5-{1..2} luajit )
 
-inherit lua toolchain-funcs
+inherit flag-o-matic lua toolchain-funcs
 
 DESCRIPTION="Bit Operations Library for the Lua Programming Language"
 HOMEPAGE="http://bitop.luajit.org;
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
+KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86 ~x64-macos"
 IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 RESTRICT="!test? ( test )"
@@ -45,6 +45,9 @@ lua_src_compile() {
 }
 
 src_compile() {
+   if [[ $CHOST == *-darwin* ]] ; then
+   append-ldflags "-undefined dynamic_lookup"
+   fi
lua_foreach_impl lua_src_compile
 }
 
@@ -77,6 +80,14 @@ lua_src_install() {
doexe bit.so
 
popd
+
+   if [[ ${CHOST} == *-darwin* ]] ; then
+   local luav=$(lua_get_version)
+   # we only want the major version (e.g. 5.1)
+   local luamv=${luav:0:3}
+   local file="lua/${luamv}/bit.so"
+   install_name_tool -id "${EPREFIX}/usr/$(get_libdir)/${file}" 
"${ED}/usr/$(get_libdir)/${file}" || die "Failed to adjust install_name"
+   fi
 }
 
 src_install() {



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

2021-01-27 Thread Conrad Kostecki
commit: a4ebbfb8f5290366c70a53c40e98184d99c76aee
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Wed Jan 27 19:01:29 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Wed Jan 27 19:40:32 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a4ebbfb8

dev-lua/LuaBitOp: drop old version

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild | 44 ---
 1 file changed, 44 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild
deleted file mode 100644
index 67165da21a3..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit toolchain-funcs multilib-minimal
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
-IUSE=""
-
-RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-src_prepare() {
-   multilib_copy_sources
-}
-
-multilib_src_compile()
-{
-   emake CC="$(tc-getCC)" INCLUDES= CCOPT=
-}
-
-multilib_src_test() {
-   # tests use native lua interpreter
-   multilib_is_native_abi && default
-}
-
-multilib_src_install()
-{
-   local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
-   exeinto "${instdir#${EPREFIX}}"
-   doexe bit.so
-}
-
-multilib_src_install_all() {
-   dodoc README
-   dohtml -r doc/.
-}



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

2021-01-27 Thread Conrad Kostecki
commit: 6587137fd764be29f9f79bc08433e4bad6036e8c
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Wed Jan 27 18:45:29 2021 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Wed Jan 27 18:45:57 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6587137f

dev-lua/LuaBitOp: fix prefix install

Closes: https://bugs.gentoo.org/762769
Package-Manager: Portage-3.0.14, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index 95c6241192d..617860f3937 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -72,7 +72,8 @@ src_test() {
 lua_src_install() {
pushd "${BUILD_DIR}" || die
 
-   exeinto $(lua_get_cmod_dir)
+   mycmoddir="$(lua_get_cmod_dir)"
+   exeinto "${mycmoddir#$EPREFIX}"
doexe bit.so
 
popd



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

2021-01-23 Thread Sam James
commit: 5402c01fd562d3bee884bbb925516d5a43ac6b0f
Author: Sam James  gentoo  org>
AuthorDate: Sat Jan 23 22:41:58 2021 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jan 23 22:42:19 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5402c01f

dev-lua/LuaBitOp: Stabilize 1.0.2-r102 sparc, #766528

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
index 6f1a19e6248..376a61cb0a3 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc x86"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 sparc x86"
 IUSE="test"
 REQUIRED_USE="${LUA_REQUIRED_USE}"
 RESTRICT="!test? ( test )"



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

2020-12-14 Thread Conrad Kostecki
commit: 1a2855749663d48825bfc3892755a6b14bf92159
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Mon Dec 14 17:25:07 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon Dec 14 17:57:39 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a285574

dev-lua/LuaBitOp: drop old version

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild | 88 -
 1 file changed, 88 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild
deleted file mode 100644
index 66c4e313149..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild
+++ /dev/null
@@ -1,88 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..2} )
-
-inherit lua multilib-minimal toolchain-funcs
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-RDEPEND="${LUA_DEPS}"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-HTML_DOCS=( "doc/." )
-
-src_prepare() {
-   default
-
-   lua_copy_sources
-   lua_foreach_impl multilib_copy_sources
-}
-
-lua_multilib_src_compile() {
-   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
-
-   local myemakeargs=(
-   "CC=$(tc-getCC)"
-   "CCOPT="
-   "INCLUDES=$(lua_get_CFLAGS)"
-   )
-
-   emake "${myemakeargs[@]}" all
-
-   popd
-}
-
-multilib_src_compile() {
-   lua_foreach_impl lua_multilib_src_compile
-}
-
-lua_multilib_src_test() {
-   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
-
-   local mytests=(
-   "bitbench.lua"
-   "bittest.lua"
-   "md5test.lua"
-   "nsievebits.lua"
-   )
-
-   for mytest in ${mytests[@]}; do
-   LUA_CPATH="./?.so" ${ELUA} ${mytest}
-   done
-
-   popd
-}
-
-multilib_src_test() {
-   multilib_is_native_abi && lua_foreach_impl lua_multilib_src_test
-}
-
-lua_multilib_src_install() {
-   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
-
-   exeinto $(lua_get_cmod_dir)
-   doexe bit.so
-
-   popd
-}
-
-multilib_src_install() {
-   lua_foreach_impl lua_multilib_src_install
-}
-
-multilib_src_install_all() {
-   einstalldocs
-}



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

2020-12-14 Thread Conrad Kostecki
commit: bb6472442703a84040740b6877a56bf7aea6942b
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Mon Dec 14 17:23:56 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Mon Dec 14 17:57:38 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb647244

dev-lua/LuaBitOp: add luajit (slotted)

Dropping also multilib, as no package, which depends on this package,
needs multilib.

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild | 85 +
 1 file changed, 85 insertions(+)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
new file mode 100644
index 000..2fd5a1f8e26
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r102.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..2} luajit )
+
+inherit lua toolchain-funcs
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org;
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+HTML_DOCS=( "doc/." )
+
+src_prepare() {
+   default
+
+   lua_copy_sources
+}
+
+lua_src_compile() {
+   pushd "${BUILD_DIR}" || die
+
+   local myemakeargs=(
+   "CC=$(tc-getCC)"
+   "CCOPT="
+   "INCLUDES=$(lua_get_CFLAGS)"
+   )
+
+   emake "${myemakeargs[@]}" all
+
+   popd
+}
+
+src_compile() {
+   lua_foreach_impl lua_src_compile
+}
+
+lua_src_test() {
+   pushd "${BUILD_DIR}" || die
+
+   local mytests=(
+   "bitbench.lua"
+   "bittest.lua"
+   "md5test.lua"
+   "nsievebits.lua"
+   )
+
+   for mytest in ${mytests[@]}; do
+   LUA_CPATH="./?.so" ${ELUA} ${mytest}
+   done
+
+   popd
+}
+
+src_test() {
+   lua_foreach_impl lua_src_test
+}
+
+lua_src_install() {
+   pushd "${BUILD_DIR}" || die
+
+   exeinto $(lua_get_cmod_dir)
+   doexe bit.so
+
+   popd
+}
+
+src_install() {
+   lua_foreach_impl lua_src_install
+
+   einstalldocs
+}



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

2020-11-29 Thread Conrad Kostecki
commit: d8070d3052303014b468f89f64a7338034093066
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Nov 29 15:49:47 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Nov 29 15:49:47 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8070d30

dev-lua/LuaBitOp: drop old version

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild | 84 -
 1 file changed, 84 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild
deleted file mode 100644
index c7fc464de59..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild
+++ /dev/null
@@ -1,84 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-LUA_COMPAT=( lua5-{1..2} )
-
-inherit lua multilib-minimal toolchain-funcs
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
-IUSE="test"
-REQUIRED_USE="${LUA_REQUIRED_USE}"
-RESTRICT="!test? ( test )"
-
-RDEPEND="${LUA_DEPS}"
-DEPEND="${RDEPEND}"
-BDEPEND="virtual/pkgconfig"
-
-HTML_DOCS=( "doc/." )
-
-src_prepare() {
-   default
-
-   multilib_copy_sources
-}
-
-lua_multilib_src_compile() {
-   # Clean project, to compile it for every lua slot
-   emake clean
-
-   local myemakeargs=(
-   "CC=$(tc-getCC)"
-   "CCOPT="
-   "INCLUDES=$(lua_get_CFLAGS)"
-   )
-
-   emake "${myemakeargs[@]}" all
-
-   # Copy module to match the choosen LUA implementation
-   cp "bit.so" "${S}/bit-${ELUA}.so" || die
-}
-
-multilib_src_compile() {
-   lua_foreach_impl lua_multilib_src_compile
-}
-
-lua_multilib_src_test() {
-   local mytests=(
-   "bitbench.lua"
-   "bittest.lua"
-   "md5test.lua"
-   "nsievebits.lua"
-   )
-
-   for mytest in ${mytests[@]}; do
-   LUA_CPATH="${S}/bit-${ELUA}.so" ${ELUA} ${mytest}
-   done
-}
-
-multilib_src_test() {
-   multilib_is_native_abi && lua_foreach_impl lua_multilib_src_test
-}
-
-lua_multilib_src_install() {
-   # Use correct module for the choosen LUA implementation
-   cp "${S}/bit-${ELUA}.so" "bit.so" || die
-
-   exeinto $(lua_get_cmod_dir)
-   doexe bit.so
-}
-
-multilib_src_install() {
-   lua_foreach_impl lua_multilib_src_install
-}
-
-multilib_src_install_all() {
-   einstalldocs
-}



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

2020-11-29 Thread Conrad Kostecki
commit: 9531ad5dc3f2bc8208b00a36e57584e740245705
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sun Nov 29 15:48:12 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun Nov 29 15:48:12 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9531ad5d

dev-lua/LuaBitOp: update ebuild

Updated ebuild not to use clean.

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild | 88 +
 1 file changed, 88 insertions(+)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild
new file mode 100644
index 000..66c4e313149
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r101.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..2} )
+
+inherit lua multilib-minimal toolchain-funcs
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org;
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+HTML_DOCS=( "doc/." )
+
+src_prepare() {
+   default
+
+   lua_copy_sources
+   lua_foreach_impl multilib_copy_sources
+}
+
+lua_multilib_src_compile() {
+   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
+
+   local myemakeargs=(
+   "CC=$(tc-getCC)"
+   "CCOPT="
+   "INCLUDES=$(lua_get_CFLAGS)"
+   )
+
+   emake "${myemakeargs[@]}" all
+
+   popd
+}
+
+multilib_src_compile() {
+   lua_foreach_impl lua_multilib_src_compile
+}
+
+lua_multilib_src_test() {
+   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
+
+   local mytests=(
+   "bitbench.lua"
+   "bittest.lua"
+   "md5test.lua"
+   "nsievebits.lua"
+   )
+
+   for mytest in ${mytests[@]}; do
+   LUA_CPATH="./?.so" ${ELUA} ${mytest}
+   done
+
+   popd
+}
+
+multilib_src_test() {
+   multilib_is_native_abi && lua_foreach_impl lua_multilib_src_test
+}
+
+lua_multilib_src_install() {
+   pushd "${WORKDIR}/${P}-${ELUA/./-}-${MULTILIB_ABI_FLAG}.${ABI}" || die
+
+   exeinto $(lua_get_cmod_dir)
+   doexe bit.so
+
+   popd
+}
+
+multilib_src_install() {
+   lua_foreach_impl lua_multilib_src_install
+}
+
+multilib_src_install_all() {
+   einstalldocs
+}



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

2020-11-28 Thread Conrad Kostecki
commit: 15fee9e739356e5c1248e2a932c105579e466c00
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Nov 28 23:28:40 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Nov 28 23:28:40 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=15fee9e7

dev-lua/LuaBitOp: drop old version

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild | 44 ---
 1 file changed, 44 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
deleted file mode 100644
index e56c2587e41..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
+++ /dev/null
@@ -1,44 +0,0 @@
-# Copyright 1999-2018 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit toolchain-funcs multilib-minimal
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
-IUSE=""
-
-RDEPEND=">=dev-lang/lua-5.1.5-r2:*[${MULTILIB_USEDEP}]"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-src_prepare() {
-   multilib_copy_sources
-}
-
-multilib_src_compile()
-{
-   emake CC="$(tc-getCC)" INCLUDES= CCOPT=
-}
-
-multilib_src_test() {
-   # tests use native lua interpreter
-   multilib_is_native_abi && default
-}
-
-multilib_src_install()
-{
-   local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
-   exeinto "${instdir#${EPREFIX}}"
-   doexe bit.so
-}
-
-multilib_src_install_all() {
-   dodoc README
-   dohtml -r doc/.
-}



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

2020-11-28 Thread Conrad Kostecki
commit: 13a998e3b45cb15be5b27f9fc4f5f09418a722fe
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Nov 28 22:34:21 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Nov 28 23:25:09 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13a998e3

dev-lua/LuaBitOp: drop old version

Dropping hppa to testing, so all old version can be removed.

Closes: https://bugs.gentoo.org/501164
Closes: https://bugs.gentoo.org/513886
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild | 43 ---
 dev-lua/LuaBitOp/LuaBitOp-1.0.2.ebuild| 32 
 dev-lua/LuaBitOp/Manifest |  1 -
 dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch | 13 
 4 files changed, 89 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
deleted file mode 100644
index e09c0248941..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.1-r1.ebuild
+++ /dev/null
@@ -1,43 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit eutils multilib toolchain-funcs
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="=dev-lang/lua-5.1*"
-RDEPEND="${DEPEND}"
-
-src_prepare()
-{
-   sed -i \
-   -e '/^CFLAGS.*=/s/=/ +=/' \
-   -e '/^CFLAGS/s/-O2 -fomit-frame-pointer //' \
-   Makefile || die "sed failed"
-   epatch "${FILESDIR}/${PN}-ldflags.patch"
-}
-
-src_compile()
-{
-   emake CC="$(tc-getCC)"
-}
-
-src_test()
-{
-   make test
-}
-
-src_install()
-{
-   exeinto /usr/$(get_libdir)/lua/5.1
-doexe bit.so
-   dohtml -r doc/*
-}

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2.ebuild
deleted file mode 100644
index 66d3e88a1af..000
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2.ebuild
+++ /dev/null
@@ -1,32 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="5"
-inherit toolchain-funcs
-
-DESCRIPTION="Bit Operations Library for the Lua Programming Language"
-HOMEPAGE="http://bitop.luajit.org;
-SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="amd64 ~arm hppa ~mips x86"
-IUSE=""
-
-RDEPEND="dev-lang/lua"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-src_compile()
-{
-   emake CC="$(tc-getCC)" INCLUDES= CCOPT=
-}
-
-src_install()
-{
-   exeinto "$(pkg-config --variable INSTALL_CMOD lua)"
-   doexe bit.so
-
-   dodoc README
-   dohtml -r doc/*
-}

diff --git a/dev-lua/LuaBitOp/Manifest b/dev-lua/LuaBitOp/Manifest
index 3a2561aa1e7..257d385c72f 100644
--- a/dev-lua/LuaBitOp/Manifest
+++ b/dev-lua/LuaBitOp/Manifest
@@ -1,2 +1 @@
-DIST LuaBitOp-1.0.1.tar.gz 22984 BLAKE2B 
f4c7517e92cb11e7486c8a18e029374a635fda9c368ce9d160485a32b3ad3e63046c1183924d8a432b07e58607867c0e937d7dade4857842456d15778adccc8c
 SHA512 
de326ba899b70ea01c41b02d26b1a5afd07bdeee5628be7cbeaa438452ac4343cab01494ac3e5e6758365de15c5cb9c211e17f2e4dd1e0e9258979d06018c71e
 DIST LuaBitOp-1.0.2.tar.gz 23127 BLAKE2B 
97b2ded135903f7bf2165a03d611fc2864336929706eb67097b5d67d0a0ec156c855a1637bc309d8dd03cb68beeda350b33eed7678b82540da54502cf981333a
 SHA512 
a652050ea5c6fbeb8a28b05e2bc4a3550c854cc45f7f42c8c1b0a81f5b76773cdf061e6a839cdb339614118169e578b6e3efa5a3efbe59a2f01874b2fa2b4f2e

diff --git a/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch 
b/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch
deleted file mode 100644
index 2a690cdb586..000
--- a/dev-lua/LuaBitOp/files/LuaBitOp-ldflags.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-Index: LuaBitOp-1.0.1/Makefile
-===
 LuaBitOp-1.0.1.orig/Makefile
-+++ LuaBitOp-1.0.1/Makefile
-@@ -14,7 +14,7 @@ LUA= lua
- 
- CC= gcc
- SOCFLAGS= -fPIC
--SOCC= $(CC) -shared $(SOCFLAGS)
-+SOCC= $(CC) -shared $(SOCFLAGS) $(LDFLAGS)
- CFLAGS += -Wall $(SOCFLAGS) $(DEFINES) $(INCLUDES)
- RM= rm -f
- INSTALL= install -p



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

2020-11-28 Thread Conrad Kostecki
commit: 82f2636f13ae0f8d8e073c89392b88caaa0d9781
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Nov 28 22:37:56 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Nov 28 23:25:10 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82f2636f

dev-lua/LuaBitOp: depend on lua-5.1

Changing RDEPEND to lua-5.1 non slotted, as we will have a new version
in future, which will be used for slotted lua.

Closes: https://bugs.gentoo.org/739916
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild | 44 +++
 1 file changed, 44 insertions(+)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild
new file mode 100644
index 000..67165da21a3
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+inherit toolchain-funcs multilib-minimal
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org;
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/lua-5.1.5-r2:0[${MULTILIB_USEDEP}]"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig"
+
+src_prepare() {
+   multilib_copy_sources
+}
+
+multilib_src_compile()
+{
+   emake CC="$(tc-getCC)" INCLUDES= CCOPT=
+}
+
+multilib_src_test() {
+   # tests use native lua interpreter
+   multilib_is_native_abi && default
+}
+
+multilib_src_install()
+{
+   local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
+   exeinto "${instdir#${EPREFIX}}"
+   doexe bit.so
+}
+
+multilib_src_install_all() {
+   dodoc README
+   dohtml -r doc/.
+}



[gentoo-commits] repo/gentoo:master commit in: dev-lua/LuaBitOp/, profiles/

2020-11-28 Thread Conrad Kostecki
commit: c5bec926988c2fe7b607b43b97d3934a95f1fdf1
Author: Conrad Kostecki  gentoo  org>
AuthorDate: Sat Nov 28 23:24:37 2020 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sat Nov 28 23:25:58 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5bec926

dev-lua/LuaBitOp: migrate to lua eclass

Closes: https://bugs.gentoo.org/752600
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Conrad Kostecki  gentoo.org>

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild | 84 +
 dev-lua/LuaBitOp/metadata.xml   |  4 ++
 profiles/package.mask   |  1 +
 3 files changed, 89 insertions(+)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild
new file mode 100644
index 000..c7fc464de59
--- /dev/null
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r100.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+LUA_COMPAT=( lua5-{1..2} )
+
+inherit lua multilib-minimal toolchain-funcs
+
+DESCRIPTION="Bit Operations Library for the Lua Programming Language"
+HOMEPAGE="http://bitop.luajit.org;
+SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~sparc ~x86"
+IUSE="test"
+REQUIRED_USE="${LUA_REQUIRED_USE}"
+RESTRICT="!test? ( test )"
+
+RDEPEND="${LUA_DEPS}"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+HTML_DOCS=( "doc/." )
+
+src_prepare() {
+   default
+
+   multilib_copy_sources
+}
+
+lua_multilib_src_compile() {
+   # Clean project, to compile it for every lua slot
+   emake clean
+
+   local myemakeargs=(
+   "CC=$(tc-getCC)"
+   "CCOPT="
+   "INCLUDES=$(lua_get_CFLAGS)"
+   )
+
+   emake "${myemakeargs[@]}" all
+
+   # Copy module to match the choosen LUA implementation
+   cp "bit.so" "${S}/bit-${ELUA}.so" || die
+}
+
+multilib_src_compile() {
+   lua_foreach_impl lua_multilib_src_compile
+}
+
+lua_multilib_src_test() {
+   local mytests=(
+   "bitbench.lua"
+   "bittest.lua"
+   "md5test.lua"
+   "nsievebits.lua"
+   )
+
+   for mytest in ${mytests[@]}; do
+   LUA_CPATH="${S}/bit-${ELUA}.so" ${ELUA} ${mytest}
+   done
+}
+
+multilib_src_test() {
+   multilib_is_native_abi && lua_foreach_impl lua_multilib_src_test
+}
+
+lua_multilib_src_install() {
+   # Use correct module for the choosen LUA implementation
+   cp "${S}/bit-${ELUA}.so" "bit.so" || die
+
+   exeinto $(lua_get_cmod_dir)
+   doexe bit.so
+}
+
+multilib_src_install() {
+   lua_foreach_impl lua_multilib_src_install
+}
+
+multilib_src_install_all() {
+   einstalldocs
+}

diff --git a/dev-lua/LuaBitOp/metadata.xml b/dev-lua/LuaBitOp/metadata.xml
index c36c37139fa..8105c04d111 100644
--- a/dev-lua/LuaBitOp/metadata.xml
+++ b/dev-lua/LuaBitOp/metadata.xml
@@ -5,4 +5,8 @@
willi...@gentoo.org
William Hubbs

+   
+   conik...@gentoo.org
+   Conrad Kostecki
+   
 

diff --git a/profiles/package.mask b/profiles/package.mask
index 8b8b7b0c759..a884e70e9e5 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -514,6 +514,7 @@ dev-lua/luacrypto
 >=dev-lua/lpeg-1.0.2-r100
 >=dev-lua/lua-bit32-5.3.5-r100
 >=dev-lua/lua-zlib-1.2-r100
+>=dev-lua/LuaBitOp-1.0.2-r100
 >=dev-lua/luadbi-0.7.2-r100
 >=dev-lua/luaevent-0.4.6-r100
 =dev-lua/luaexpat-1.3.0-r100



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

2018-12-29 Thread Mikle Kolyada
commit: 5b94b26b6857fc7f888db6c1e2536cd7a5661d1d
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sat Dec 29 12:08:39 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sat Dec 29 12:09:58 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b94b26b

dev-lua/LuaBitOp: arm stable wrt bug #673756

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

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
index 59c3d41f14f..ae60dda591b 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -10,7 +10,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
+KEYWORDS="amd64 arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
 IUSE=""
 
 RDEPEND=">=dev-lang/lua-5.1.5-r2:*[${MULTILIB_USEDEP}]"



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

2017-07-29 Thread Alexis Ballier
commit: 27cb6dd720294684101aa955f3c9b0cf17f2540b
Author: Alexis Ballier  gentoo  org>
AuthorDate: Sat Jul 29 12:30:23 2017 +
Commit: Alexis Ballier  gentoo  org>
CommitDate: Sat Jul 29 12:34:06 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27cb6dd7

dev-lua/LuaBitOp: keyword ~arm64

Package-Manager: Portage-2.3.6, Repoman-2.3.3

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
index 8b5f36845df..59c3d41f14f 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI="5"
@@ -10,7 +10,7 @@ SRC_URI="http://bitop.luajit.org/download/${P}.tar.gz;
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="amd64 ~arm ~hppa ~mips ppc ppc64 sparc x86"
+KEYWORDS="amd64 ~arm ~arm64 ~hppa ~mips ppc ppc64 sparc x86"
 IUSE=""
 
 RDEPEND=">=dev-lang/lua-5.1.5-r2:*[${MULTILIB_USEDEP}]"



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

2016-12-02 Thread Benda XU
commit: 4e3c3b492fd1e4d505e65485b8f500a7262add7d
Author: Benda Xu  gentoo  org>
AuthorDate: Sat Dec  3 06:24:51 2016 +
Commit: Benda XU  gentoo  org>
CommitDate: Sat Dec  3 06:25:04 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e3c3b49

dev-lua/LuaBitOp: support Prefix and depend on any slot of lua.

Package-Manager: portage-2.3.2

 dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild 
b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
index 996207a..067f55b 100644
--- a/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
+++ b/dev-lua/LuaBitOp/LuaBitOp-1.0.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2015 Gentoo Foundation
+# Copyright 1999-2016 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 # $Id$
 
@@ -14,7 +14,7 @@ SLOT="0"
 KEYWORDS="amd64 ~arm ~hppa ~mips ppc ppc64 sparc x86"
 IUSE=""
 
-RDEPEND=">=dev-lang/lua-5.1.5-r2[${MULTILIB_USEDEP}]"
+RDEPEND=">=dev-lang/lua-5.1.5-r2:*[${MULTILIB_USEDEP}]"
 DEPEND="${RDEPEND}
>=virtual/pkgconfig-0-r1[${MULTILIB_USEDEP}]"
 
@@ -34,7 +34,8 @@ multilib_src_test() {
 
 multilib_src_install()
 {
-   exeinto "$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
+   local instdir="$($(tc-getPKG_CONFIG) --variable INSTALL_CMOD lua)"
+   exeinto "${instdir#${EPREFIX}}"
doexe bit.so
 }