diff options
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/Manifest.gz | bin | 7302 -> 7292 bytes | |||
-rw-r--r-- | dev-lua/luacheck/Manifest | 4 | ||||
-rw-r--r-- | dev-lua/luacheck/luacheck-1.1.2.ebuild | 66 | ||||
-rw-r--r-- | dev-lua/luacheck/luacheck-1.2.0.ebuild | 2 | ||||
-rw-r--r-- | dev-lua/luadbi/Manifest | 3 | ||||
-rw-r--r-- | dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type.patch | 163 | ||||
-rw-r--r-- | dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type2.patch | 29 | ||||
-rw-r--r-- | dev-lua/luadbi/files/luadbi-0.7.2-mysql-8.patch | 55 | ||||
-rw-r--r-- | dev-lua/luasystem/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/luasystem/luasystem-0.4.1.ebuild | 91 |
10 files changed, 95 insertions, 320 deletions
diff --git a/dev-lua/Manifest.gz b/dev-lua/Manifest.gz Binary files differindex 88c3b425eaf9..e801fb5b789d 100644 --- a/dev-lua/Manifest.gz +++ b/dev-lua/Manifest.gz diff --git a/dev-lua/luacheck/Manifest b/dev-lua/luacheck/Manifest index 796838bedc18..fb063e1a03d0 100644 --- a/dev-lua/luacheck/Manifest +++ b/dev-lua/luacheck/Manifest @@ -1,6 +1,4 @@ AUX luacheck-0.23.0-disable-measuring-performance-test.patch 446 BLAKE2B 42c83ec5eb3d073a5e907c6285a6a2a26f1563940435a111d74274dcdff76f7662d8b623c86658fa0a0b568e150cfa059d2100d82b7f65fcd293b361ec6c45bf SHA512 046cc3ad7e74435b3c6df1a5d271e82cd90a3c02c9228c5a632b13378a8b17c3cde21b00fdc84ab350493b64ec36beb10591a32d52b96010481b7d6a08655392 -DIST luacheck-1.1.2.tar.gz 179240 BLAKE2B 52fdf895e14ec42f86078c9a0be3adc91b0d51c525281ec19cc41671437ca2a29a79c1a826026de11b433368b306ddf2b21473b90975d1de1c13b160d208a25b SHA512 38b22cc0fd00905572859092c4138081c5be434b6e3314bc6cee14b859b0fa1dbb078c6474588891ec3e75b378a7be9a09ee164a4ef9291378193f3bdda10365 DIST luacheck-1.2.0.tar.gz 183209 BLAKE2B 5c1260d87c523a2094071c674a71dce362be5ad65ca52094564b93d02c6ef7e662631769cbdbafe9c0cb4d2bcb61c5e46cbbc1a8fc9ed287043aafc2ebae9c90 SHA512 2bfe38056bab71cdaa8377212cc92048e3178f2deb1da8d61b9cefc400a9b5691772805f8bc1c4b4584c9530751103a2feeca41187c2d9496e975df5be373ff0 -EBUILD luacheck-1.1.2.ebuild 1282 BLAKE2B 82a410f3fbdc84a2c37da766763e42bf8247d0b02408717365713871f1d21884914c83e2f47a5e86063047bfc89cbb7a42e84182c62c14bfb64a7f6807837f79 SHA512 e51ebc3cf06777f30328a9f98ec4d038b100ad10da64dab678776e92dfea6f5dff45491c95e921b75faa128217d9e73745893bbc0f626d51df7ce9b906fa892b -EBUILD luacheck-1.2.0.ebuild 1288 BLAKE2B cf39bbe42effc7eaebe36cf656ad4b73dd5a3488b6b8df9fc3282b8ed905e02ce7ce79baa75ddfee96a795e20f3af0487251fc92a807bd9a76e9a3fbe795dd66 SHA512 869921ba5bafef116748db9f932ae8baa41af09e0a148a1fa3e654fe6c8266c9314e4fbe657efc69c50cc9f95ba75818cd67acc04b46b35c115ca5fe1071d7a4 +EBUILD luacheck-1.2.0.ebuild 1282 BLAKE2B 82a410f3fbdc84a2c37da766763e42bf8247d0b02408717365713871f1d21884914c83e2f47a5e86063047bfc89cbb7a42e84182c62c14bfb64a7f6807837f79 SHA512 e51ebc3cf06777f30328a9f98ec4d038b100ad10da64dab678776e92dfea6f5dff45491c95e921b75faa128217d9e73745893bbc0f626d51df7ce9b906fa892b MISC metadata.xml 703 BLAKE2B d86d4b639e4b5372f4756da449210438737e4609772ac5263b8956e5b78dc6fe198d341303442f6ef68e92b4a78c2f03356e010c3a204d79e420070e4aca13d4 SHA512 ed140f75ba4460fdf0a0ffbf2a7541a655a43e02168386b6a3de6adcc9a978bcb403d81a7696c4d6fcfe0f0e4827a7ad421123de0e53c614904eb341e86a2cc3 diff --git a/dev-lua/luacheck/luacheck-1.1.2.ebuild b/dev-lua/luacheck/luacheck-1.1.2.ebuild deleted file mode 100644 index e7f6b7200caa..000000000000 --- a/dev-lua/luacheck/luacheck-1.1.2.ebuild +++ /dev/null @@ -1,66 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -LUA_COMPAT=( lua5-{1..4} luajit ) - -inherit lua - -DESCRIPTION="A tool for linting and static analysis of Lua code" -HOMEPAGE="https://github.com/lunarmodules/luacheck" -SRC_URI="https://github.com/lunarmodules/luacheck/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86" -IUSE="doc test" -RESTRICT="!test? ( test )" - -RDEPEND=" - dev-lua/lua-argparse[${LUA_USEDEP}] - dev-lua/lua-utf8[${LUA_USEDEP}] - dev-lua/luafilesystem[${LUA_USEDEP}] -" - -DEPEND="${RDEPEND}" - -BDEPEND=" - virtual/pkgconfig - doc? ( dev-python/sphinx ) - test? ( - dev-lua/busted[${LUA_USEDEP}] - dev-lua/lua_cliargs[${LUA_USEDEP}] - ${RDEPEND} - ) -" - -PATCHES=( "${FILESDIR}/${PN}-0.23.0-disable-measuring-performance-test.patch" ) - -src_compile() { - if use doc; then - sphinx-build docsrc html || die - fi -} - -lua_src_test() { - busted --lua=${ELUA} || die -} - -src_test() { - lua_foreach_impl lua_src_test -} - -lua_src_install() { - insinto "$(lua_get_lmod_dir)" - doins -r src/luacheck -} - -src_install() { - lua_foreach_impl lua_src_install - - newbin bin/luacheck.lua luacheck - - use doc && local -a HTML_DOCS=( "html/." ) - einstalldocs -} diff --git a/dev-lua/luacheck/luacheck-1.2.0.ebuild b/dev-lua/luacheck/luacheck-1.2.0.ebuild index 485692d5a5de..e7f6b7200caa 100644 --- a/dev-lua/luacheck/luacheck-1.2.0.ebuild +++ b/dev-lua/luacheck/luacheck-1.2.0.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/lunarmodules/luacheck/archive/refs/tags/v${PV}.tar.g LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86" IUSE="doc test" RESTRICT="!test? ( test )" diff --git a/dev-lua/luadbi/Manifest b/dev-lua/luadbi/Manifest index b519ad2203f2..ba6fd0d1852e 100644 --- a/dev-lua/luadbi/Manifest +++ b/dev-lua/luadbi/Manifest @@ -1,6 +1,3 @@ -AUX luadbi-0.7.2-incompatible-pointer-type.patch 4723 BLAKE2B 0d71eeb95b87e8dc7ed082de3e66b69bf1dc758e02fa066ee50c2d803910512d591a209623617b5b50647905b6cda40066e02c00f031ea7a390cef176e0f094d SHA512 54aa115a2d3c1b9165c20340f1a9ed8a9043336c36a2a1a84bc971c14a7d290809c9634dc846e9774ef1fda6ad970f9704632fc346652190bc21bf533d27a516 -AUX luadbi-0.7.2-incompatible-pointer-type2.patch 738 BLAKE2B d05969aa6b14b252b93d24f8e5426867094d331bf4303eeb34f9bef9a78ec2ebdec71c4ae52f08191f1cd87e0026548cef56f1c39334b6b3bac08f5546babc9a SHA512 68de22724615e687af85d699dc4e0cfde9d715fc2e9829598d90925d29884f80420fbeab283c269fdcc54f3c1fe62cf3dadd2dbfde49df24312ef01ca24b2596 -AUX luadbi-0.7.2-mysql-8.patch 1920 BLAKE2B 5b8f65c9a6966df0bd18487e09effc073fb4ce9ed7913e1b9397ae722a2fe8cc04bcd8f5dce403fc5181fef8f95bdf71bffd00cb5b99932c6cf48e00daa49175 SHA512 436aa613eb420126f158103bc7c36cb3cc2a680c76d32e6239c2b310b7367bd5275c85640645d904ffee059b970095e8176df23dbca8b54aa13f436a619e2f6f DIST luadbi-0.7.3.tar.gz 35753 BLAKE2B ff5fdd144560153fc74733131b48a60a14b7e95de5d6faaa982588cc5df28aa979aa805c5000fdc76fae98b99be4cc4ccb82938c8f6222bcdfe4fca4d12c9bfa SHA512 1122bc9e83cf7071aff8685163a2dc387b40d2fb28aeb57e9c19e14afa6dcb0fb05fa76ea700f69751fdc79b0f1155235195d525041124fed5cefab0d50835bb EBUILD luadbi-0.7.3.ebuild 1916 BLAKE2B 39c8e22a61618186dad46ca405becfa097d2c7cbcf2a2def55cd078124f102f080adb44f78bdcdc15264c085432022450c1bc72b1bec4f9d3732ae73710342e5 SHA512 d956b07522c6413ff85c6a74035de00ce72d3e47d8d4a204cee1d084866f69814e9bba5bb283047b5fde7697211ff0e251e790f1a454be20c259b137e42e086e MISC metadata.xml 329 BLAKE2B 63f2efc683cb8c68fc27953c6003708f965328cc4b445e5b62c1cffc85e79c9971ef4bfca6ae6b7a95179c3ad13e9374a2d0f1e06518403902a461d7598ade72 SHA512 c1f454ba961c109a06e0a06e85ad426dc6d6cc5697e6c2ceda3fe003242c1d50ef5c71fa0a84201d0a20b7d22bdf1ab597ff780b681a3a32e08c14457f7a2081 diff --git a/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type.patch b/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type.patch deleted file mode 100644 index dfe3db4b030d..000000000000 --- a/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type.patch +++ /dev/null @@ -1,163 +0,0 @@ -From 7f9c10e753325e3cc00d4955bf9d6a77a896bdcb Mon Sep 17 00:00:00 2001 -From: Matthew Wild <mwild1@gmail.com> -Date: Thu, 5 Sep 2019 14:25:20 +0100 -Subject: [PATCH 1/3] MySQL: Don't set (unused) field is_null to nonsense - value, fixes #56 - ---- - dbd/mysql/statement.c | 1 - - 1 file changed, 1 deletion(-) - -diff --git a/dbd/mysql/statement.c b/dbd/mysql/statement.c -index aca865a..dd01c1e 100644 ---- a/dbd/mysql/statement.c -+++ b/dbd/mysql/statement.c -@@ -218,7 +218,6 @@ static int statement_execute(lua_State *L) { - switch(type) { - case LUA_TNIL: - bind[i].buffer_type = MYSQL_TYPE_NULL; -- bind[i].is_null = (int*)1; - break; - - case LUA_TBOOLEAN: - -From 83954fe0ba8c83fbe9351937e0d30b9c842dadb1 Mon Sep 17 00:00:00 2001 -From: Matthew Wild <mwild1@gmail.com> -Date: Thu, 5 Sep 2019 14:26:04 +0100 -Subject: [PATCH 2/3] Add test for handling of NULL values - ---- - tests/run_tests.lua | 48 +++++++++++++++++++++++++++++++++++++++++++++ - 1 file changed, 48 insertions(+) - -diff --git a/tests/run_tests.lua b/tests/run_tests.lua -index 0dd9f72..80526b6 100755 ---- a/tests/run_tests.lua -+++ b/tests/run_tests.lua -@@ -301,6 +301,51 @@ local function test_insert_multi() - - end - -+local function test_insert_null() -+ -+ local sth, sth2, err, success -+ local stringy = os.date() -+ -+ -+ sth, err = dbh:prepare(code('insert')) -+ -+ assert.is_nil(err) -+ assert.is_not_nil(sth) -+ -+ success, err = sth:execute(nil) -+ -+ assert.is_true(success) -+ assert.is_nil(err) -+ -+ assert.is_equal(1, sth:affected()) -+ -+ -- -+ -- Grab it back, make sure it's all good -+ -- -+ -+ local id = dbh:last_id() -+ assert.is_not_nil(id) -+ sth:close() -+ -+ sth2, err = dbh:prepare(code('insert_select')) -+ -+ assert.is_nil(err) -+ assert.is_not_nil(sth) -+ -+ success, err = sth2:execute(id) -+ -+ assert.is_true(success) -+ assert.is_nil(err) -+ -+ local row = sth2:rows(false)() -+ assert.is_not_nil(row) -+ assert.are_equal(id, row[1]) -+ assert.is_nil(row[2]) -+ -+ sth:close() -+ sth2:close() -+ -+end - - local function test_insert_returning() - -@@ -494,6 +539,7 @@ describe("PostgreSQL #psql", function() - it( "Tests a simple select", test_select ) - it( "Tests multi-row selects", test_select_multi ) - it( "Tests inserts", test_insert_returning ) -+ it( "Tests inserts of NULL", test_insert_null ) - it( "Tests statement reuse", test_insert_multi ) - it( "Tests no insert_id", test_no_insert_id ) - it( "Tests affected rows", test_update ) -@@ -514,6 +560,7 @@ describe("SQLite3 #sqlite3", function() - it( "Tests simple selects", test_select ) - it( "Tests multi-row selects", test_select_multi ) - it( "Tests inserts", test_insert ) -+ it( "Tests inserts of NULL", test_insert_null ) - it( "Tests statement reuse", test_insert_multi ) - it( "Tests no rowcount", test_no_rowcount ) - it( "Tests affected rows", test_update ) -@@ -534,6 +581,7 @@ describe("MySQL #mysql", function() - it( "Tests simple selects", test_select ) - it( "Tests multi-row selects", test_select_multi ) - it( "Tests inserts", test_insert ) -+ it( "Tests inserts of NULL", test_insert_null ) - it( "Tests statement reuse", test_insert_multi ) - it( "Tests affected rows", test_update ) - it( "Tests closing dbh doesn't segfault", test_db_close_doesnt_segfault ) - -From 4555eb0a63945e829ffba635cac87b9e22155ffc Mon Sep 17 00:00:00 2001 -From: Matthew Wild <mwild1@gmail.com> -Date: Thu, 5 Sep 2019 14:35:52 +0100 -Subject: [PATCH 3/3] tests/schemas: allow null inserts for testing - ---- - tests/schemas/mysql.sql | 2 +- - tests/schemas/postgresql.sql | 2 +- - tests/schemas/sqlite3.sql | 2 +- - 3 files changed, 3 insertions(+), 3 deletions(-) - -diff --git a/tests/schemas/mysql.sql b/tests/schemas/mysql.sql -index 1134e64..2948075 100644 ---- a/tests/schemas/mysql.sql -+++ b/tests/schemas/mysql.sql -@@ -46,7 +46,7 @@ drop table if exists insert_tests; - create table insert_tests - ( - id int not null primary key auto_increment, -- val varchar(255) not null -+ val varchar(255) - ); - - grant insert, select on insert_tests to 'luadbi'@'%'; -diff --git a/tests/schemas/postgresql.sql b/tests/schemas/postgresql.sql -index f430516..efe23f3 100644 ---- a/tests/schemas/postgresql.sql -+++ b/tests/schemas/postgresql.sql -@@ -47,7 +47,7 @@ drop table if exists insert_tests cascade; - create table insert_tests - ( - id serial primary key, -- val varchar(255) not null -+ val varchar(255) - ); - - grant insert, select on insert_tests to luadbi; -diff --git a/tests/schemas/sqlite3.sql b/tests/schemas/sqlite3.sql -index d3ba4bc..3bf0eb0 100644 ---- a/tests/schemas/sqlite3.sql -+++ b/tests/schemas/sqlite3.sql -@@ -44,7 +44,7 @@ drop table if exists insert_tests; - create table insert_tests - ( - id integer primary key, -- val varchar(255) not null -+ val varchar(255) - ); - - drop table if exists update_tests; diff --git a/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type2.patch b/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type2.patch deleted file mode 100644 index 22a6e7c7e881..000000000000 --- a/dev-lua/luadbi/files/luadbi-0.7.2-incompatible-pointer-type2.patch +++ /dev/null @@ -1,29 +0,0 @@ ---- a/dbd/mysql/statement.c -+++ b/dbd/mysql/statement.c -@@ -226,7 +226,7 @@ - *boolean = lua_toboolean(L, p); - - bind[i].buffer_type = MYSQL_TYPE_LONG; -- bind[i].is_null = (int*)0; -+ bind[i].is_null = false; - bind[i].buffer = (char *)boolean; - bind[i].length = 0; - break; -@@ -241,7 +241,7 @@ - *num = lua_tonumber(L, p); - - bind[i].buffer_type = MYSQL_TYPE_DOUBLE; -- bind[i].is_null = (int*)0; -+ bind[i].is_null = false; - bind[i].buffer = (char *)num; - bind[i].length = 0; - break; -@@ -252,7 +252,7 @@ - str = lua_tolstring(L, p, str_len); - - bind[i].buffer_type = MYSQL_TYPE_STRING; -- bind[i].is_null = (int*)0; -+ bind[i].is_null = false; - bind[i].buffer = (char *)str; - bind[i].length = str_len; - break; diff --git a/dev-lua/luadbi/files/luadbi-0.7.2-mysql-8.patch b/dev-lua/luadbi/files/luadbi-0.7.2-mysql-8.patch deleted file mode 100644 index ef463433357e..000000000000 --- a/dev-lua/luadbi/files/luadbi-0.7.2-mysql-8.patch +++ /dev/null @@ -1,55 +0,0 @@ -From b72503cad0654878841172451b2ea860a59e30c1 Mon Sep 17 00:00:00 2001 -From: Conrad Kostecki <conrad@kostecki.com> -Date: Tue, 13 Oct 2020 07:34:16 +0200 -Subject: [PATCH] dbd/mysql/statement.c: fix compilation with mysql-8 - -Signed-off-by: Conrad Kostecki <conrad@kostecki.com> ---- - dbd/mysql/dbd_mysql.h | 2 +- - dbd/mysql/statement.c | 6 +++--- - 2 files changed, 4 insertions(+), 4 deletions(-) - -diff --git a/dbd/mysql/dbd_mysql.h b/dbd/mysql/dbd_mysql.h -index 233bc35..4777289 100644 ---- a/dbd/mysql/dbd_mysql.h -+++ b/dbd/mysql/dbd_mysql.h -@@ -3,7 +3,7 @@ - #endif - - --#include <mysql.h> -+#include <mysql/mysql.h> - #include <dbd/common.h> - - #define DBD_MYSQL_CONNECTION "DBD.MySQL.Connection" -diff --git a/dbd/mysql/statement.c b/dbd/mysql/statement.c -index aca865a..6af4c39 100644 ---- a/dbd/mysql/statement.c -+++ b/dbd/mysql/statement.c -@@ -424,7 +424,7 @@ static int statement_fetch_impl(lua_State *L, statement_t *statement, int named_ - - if (fields[i].type == MYSQL_TYPE_TIMESTAMP || fields[i].type == MYSQL_TYPE_DATETIME) { - char str[20]; -- struct st_mysql_time *t = bind[i].buffer; -+ MYSQL_TIME *t = bind[i].buffer; - - snprintf(str, 20, "%d-%02d-%02d %02d:%02d:%02d", t->year, t->month, t->day, t->hour, t->minute, t->second); - -@@ -435,7 +435,7 @@ static int statement_fetch_impl(lua_State *L, statement_t *statement, int named_ - } - } else if (fields[i].type == MYSQL_TYPE_TIME) { - char str[9]; -- struct st_mysql_time *t = bind[i].buffer; -+ MYSQL_TIME *t = bind[i].buffer; - - snprintf(str, 9, "%02d:%02d:%02d", t->hour, t->minute, t->second); - -@@ -446,7 +446,7 @@ static int statement_fetch_impl(lua_State *L, statement_t *statement, int named_ - } - } else if (fields[i].type == MYSQL_TYPE_DATE) { - char str[20]; -- struct st_mysql_time *t = bind[i].buffer; -+ MYSQL_TIME *t = bind[i].buffer; - - snprintf(str, 11, "%d-%02d-%02d", t->year, t->month, t->day); - diff --git a/dev-lua/luasystem/Manifest b/dev-lua/luasystem/Manifest index 27ba04324763..fd2e479e2d77 100644 --- a/dev-lua/luasystem/Manifest +++ b/dev-lua/luasystem/Manifest @@ -2,7 +2,9 @@ AUX luasystem-0.2.1_p0-fix-makefile.patch 825 BLAKE2B 1732876603d8b5560bda1644de DIST luasystem-0.2.1_p0.tar.gz 8162 BLAKE2B ad8a6009823ad8202ff3884a3167d0779405c2a6be460b7ef2939622eb4d0fc8edbc6b04aba5dec9dd5e4e38f11ae0dcd582b9c348d5b516aa411858d55c6d71 SHA512 9dc323d4d1914cfa4f278a49ef22e58569d5cd7e369fa17fa6006cd47f9d90c6dfd4404067ea2436aa46a27cfbdf91e4aa26e20b89aeeefdf2aa7252c51fb32b DIST luasystem-0.3.0.tar.gz 19607 BLAKE2B 82dd54dab61045d25d9d1dc074526c2443b9732adf27da052f65702f0941a04dce65582091b5ecb802e5aed9baa2f4dbd53e4cd1b624426341a83fbcb0109378 SHA512 1adf1167767d7d8233ed2c90c106b050dc2370e891465eeb13f16ebc96e8f467d67a89a40173064112117ac9db2451aa73fde0d11fab01f6d2c56bdef50cb6ac DIST luasystem-0.4.0.tar.gz 74560 BLAKE2B 3ca3ef54572c3aca7ac465b4e93c0ae14ce33d9e278b504c7d6be209d9d26c3f21d6bb342da8c0ab7b008d366313fec436c6c7a8bd9e3246a3f2bfd6f2213214 SHA512 2b117e20955dac74b850363d88a08ca75e085e8078824b0f0a43deb29aad92e1f6a3687e6b504caf241a5353a59a96555964b3b0d6ff623c5680c005e65b294a +DIST luasystem-0.4.1.tar.gz 74722 BLAKE2B e9d471291ddd4a89d0ac1a02459a84850749a3be1c22bfd3376ddb2886ca34d1f8db364dfb1376df072616072c45b0810886d93d2a9a87d25b123c162c07bd21 SHA512 ba98735007a81d3db2ac901283970b2d7c7db0c0b3d7098a2ff65e994f8fba4cbd0af20e7676e4e986e6c44c23e717dc0587eb9ee89760056cc4aaba173b9578 EBUILD luasystem-0.2.1_p0-r1.ebuild 1614 BLAKE2B 1c99d5ed57adde933ca326e903fce527511580e407fe7c463db16badd7711e7af4656f4e9f1040aae4a6a28819be25481e17cc5d32c83200546aff5b148f3e97 SHA512 4d87dd9c6c076655f5a3bd61da38288950ed888cc0a0b312ec67b490048721bc330a86da1b50998e5f9e0446b7d0853583cd3e79aad210126acd2d565b2c74f1 EBUILD luasystem-0.3.0.ebuild 1652 BLAKE2B d85c191429f71111442ba7cdc7f64068c4d76e8ab9eb70bbe9e429a3d5192df9b9c72552e5e4e0f65b50076404fce9cfc55c515c828e5a0d5e532ea46f198f2e SHA512 4aacca2ed6df6824f6745b2be37290cda44b0b035ab7c354c8867f4257dcf0d4f59be44e8d4782002c353c5577a819924a58d7ce83904ee54e0759af9fc8eac5 EBUILD luasystem-0.4.0.ebuild 1653 BLAKE2B da0bd0873327af9ce4a60974bc8ecd7712ba16855becc9e6496260e988194e7f4b2fb6b6e09ad42f7fb6bd73dcb3c9566cced284ce53204f2db40620e985959e SHA512 930aff28ccf78a417d3140863db3cf3f897fd4fc5fa63acd81ef8db1f607135c938672bb824e85c5415fa60441fa9482acc3d134f4cb0ba13d39cbfc33378b46 +EBUILD luasystem-0.4.1.ebuild 1653 BLAKE2B da0bd0873327af9ce4a60974bc8ecd7712ba16855becc9e6496260e988194e7f4b2fb6b6e09ad42f7fb6bd73dcb3c9566cced284ce53204f2db40620e985959e SHA512 930aff28ccf78a417d3140863db3cf3f897fd4fc5fa63acd81ef8db1f607135c938672bb824e85c5415fa60441fa9482acc3d134f4cb0ba13d39cbfc33378b46 MISC metadata.xml 551 BLAKE2B 230312b7c2fb4bc059c507e538a5a0e6b257b7dafc6cfb90fe05dc10d8af44b3e90a7002d9566b8c73d30e3c1ce4276191e2c5ae0b78683b0f1c5b4553fbd3b5 SHA512 e19e38de42e6c0672e143b7aaf24b7a1ca01897851645720098fd6426eb5a3d4346a4cc9534a2bacfba98457160dc7f4421ceb767111688031c13e26f9a25a82 diff --git a/dev-lua/luasystem/luasystem-0.4.1.ebuild b/dev-lua/luasystem/luasystem-0.4.1.ebuild new file mode 100644 index 000000000000..3bfbf46ba5c8 --- /dev/null +++ b/dev-lua/luasystem/luasystem-0.4.1.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +LUA_COMPAT=( lua5-{1..4} luajit ) +MY_PV="${PV/_p/-}" + +inherit lua toolchain-funcs + +DESCRIPTION="Platform independent system calls for Lua" +HOMEPAGE="https://github.com/lunarmodules/luasystem" +SRC_URI="https://github.com/lunarmodules/${PN}/archive/refs/tags/v${MY_PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/${PN}-${MY_PV}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + test? ( + dev-lua/busted[${LUA_USEDEP}] + dev-lua/lua_cliargs[${LUA_USEDEP}] + ${RDEPEND} + ) +" + +PATCHES=( "${FILESDIR}"/${PN}-0.2.1_p0-fix-makefile.patch ) + +src_prepare() { + default + + lua_copy_sources +} + +lua_src_test() { + busted --lua=${ELUA} || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_compile() { + pushd "${BUILD_DIR}" || die + + local myemakeargs=( + "CC=$(tc-getCC)" + "LD=$(tc-getCC)" + "LUAINC_linux=$(lua_get_include_dir)" + "MYCFLAGS=${CFLAGS}" + "MYLDFLAGS=${LDFLAGS}" + ) + + emake "${myemakeargs[@]}" linux + + popd +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_install () { + pushd "${BUILD_DIR}" || die + + local emakeargs=( + "INSTALL_TOP_CDIR=${ED}/$(lua_get_cmod_dir)" + "INSTALL_TOP_LDIR=${ED}/$(lua_get_lmod_dir)" + "LUA_INC=${ED}/$(lua_get_include_dir)" + ) + + emake "${emakeargs[@]}" install + + insinto $(lua_get_lmod_dir)/system + doins system/init.lua + + popd +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} |