diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-31 12:01:05 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-31 12:01:05 +0100 |
commit | 5b7f6475da27c05b30659a00ecb49636aca2bece (patch) | |
tree | f67500afbab4acebaa18739efa57f79c7ee620b3 /dev-lua | |
parent | 2e8abb8c82f14dd064991a1afd337b2f022b37f6 (diff) |
gentoo auto-resync : 31:08:2024 - 12:01:05
Diffstat (limited to 'dev-lua')
-rw-r--r-- | dev-lua/Manifest.gz | bin | 7302 -> 7304 bytes | |||
-rw-r--r-- | dev-lua/lpeg/Manifest | 3 | ||||
-rw-r--r-- | dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch | 31 | ||||
-rw-r--r-- | dev-lua/lpeg/lpeg-1.1.0.ebuild | 100 | ||||
-rw-r--r-- | dev-lua/messagepack/Manifest | 2 | ||||
-rw-r--r-- | dev-lua/messagepack/messagepack-0.5.4.ebuild | 49 |
6 files changed, 185 insertions, 0 deletions
diff --git a/dev-lua/Manifest.gz b/dev-lua/Manifest.gz Binary files differindex 96054efa0b93..4cd8fbe8db71 100644 --- a/dev-lua/Manifest.gz +++ b/dev-lua/Manifest.gz diff --git a/dev-lua/lpeg/Manifest b/dev-lua/lpeg/Manifest index 584778670fc6..e3166c78a766 100644 --- a/dev-lua/lpeg/Manifest +++ b/dev-lua/lpeg/Manifest @@ -1,4 +1,7 @@ AUX lpeg-1.0.2-makefile.patch 671 BLAKE2B 4ed03dc08e737fe6cc45f4fe9c53657a71341cac69a3ec6fa52d124dbf5c3b58bcf1077d255598f98952eb2329905a25b45e4c031ab9fb82700d919d7f264452 SHA512 0d17351cda382ddb5574f7d14bc6479439cc703ac0c360b2b0f043288427beda9aea1f229fd2e0ea8b604bd935bce2fc959a2410804bfd82bb2c2e128ab501ac +AUX lpeg-1.1.0-makefile.patch 688 BLAKE2B 2b943fc146834f8be7791d8e3f24e8fc9b3fff121211c9a733beb25ffb1442db7187379cda0f01d9ffe1269d362064c44d14c81a431c51d64ecc646cc1e6b492 SHA512 eee0564a743957938a5d9faec71f00afed1faaa13704c421d60fa0bb34d1ea581df20390afe786641351687c917a5d867a933ba7ff3703ac328b45fb664f3433 DIST lpeg-1.0.2.tar.gz 71840 BLAKE2B e0d8fb4e9d17c9018f0b206cd3f7c9c0e21398c119600b5b0705c8df19e0956347bea795c7c3ded8e62e0c09802dd8eab931a5e3769fcacf44c35aa2b17fa8d6 SHA512 110527ddf9f8e5e8a80ef0ae8847c8ba8cd2597dba3bfe2865cba9af60daafbb885f21e74231952f5ab793d021e050b482066a821c6954d52090a5eae77e9814 +DIST lpeg-1.1.0.zip 78933 BLAKE2B 90895d74088d59529229825dd0058f69d0cb035d0b5ef9be49d9643c02e7b37ffcf358daa6b7129ff8df2247946dd12627d2ed1be23f61c51112303b702842b1 SHA512 5be6d3d9608881d044185e4e9cb5a7577d94b82276f4273f5dda7e2da93e13b926eaced9fc577dd83a4af231224c85a0336ddb920d94fbb334f8f55f7f21f8b4 EBUILD lpeg-1.0.2-r101.ebuild 1969 BLAKE2B 94ef434afb41a7f685e20fa54689a1ffe1878c4b3b560cd17ff03d2ab7ab7bf3d69ad997f83e2afcc5df48698895212dde0394688eed99098c3d93856c18ff23 SHA512 05a3f82f0362f51e1f19790f8d0793fe6ab53587d7386ba290fac58cb1e2a6c5cfeaabb461b3a4bcb49f64df7b9454ef988c295b8153a0080d96d70c336001c8 +EBUILD lpeg-1.1.0.ebuild 2091 BLAKE2B 84f25cc75ccaba7707ab209378ea31782dd6d3da03d9aeb3f8db3cdb17fba69a22a676ac0404f6fd19e1f3ad0bd92718e4a6fe13d1dbb4c1de79854768ad0bc3 SHA512 c011c64af2965ec03fda4b37ab7baf550660b96dedc71b3423ec08b08357e8b6f893f78ee41eedbe4a3ad0a1bac20ffe727003b5c52fc04dfadd7165fcd4aa3a MISC metadata.xml 258 BLAKE2B c0d0fed17412419de0d059e7ccb4289f3ffb2628a07c3d15329cba8ed726b2c52efde7ad15857b845ce71e7eeca903467f592e3e324d91147583f5178e5378fa SHA512 0dbe2c5806353798c494bddc4034ccd37181951a6f5085bbb25d15d36d4a800634db47d25d1834bc920000533e4f4db7a02840dd18bd460b35c1f77b743fa1d1 diff --git a/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch b/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch new file mode 100644 index 000000000000..afef6f6c05b5 --- /dev/null +++ b/dev-lua/lpeg/files/lpeg-1.1.0-makefile.patch @@ -0,0 +1,31 @@ +Respect user CFLAGS and LDFLAGS. + +--- lpeg-1.1.0/makefile ++++ lpeg-1.1.0/makefile +@@ -1,7 +1,7 @@ + LIBNAME = lpeg + LUADIR = ../lua/ + +-COPT = -O2 -DNDEBUG ++COPT = -DNDEBUG + # COPT = -O0 -DLPEG_DEBUG -g + + CWARNS = -Wall -Wextra -pedantic \ +@@ -22,7 +22,7 @@ + # -Wunreachable-code \ + + +-CFLAGS = $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC ++CFLAGS += $(CWARNS) $(COPT) -std=c99 -I$(LUADIR) -fPIC + CC = gcc + + FILES = lpvm.o lpcap.o lptree.o lpcode.o lpprint.o +@@ -36,7 +36,7 @@ + $(MAKE) lpeg.so "DLLFLAGS = -bundle -undefined dynamic_lookup" + + lpeg.so: $(FILES) +- env $(CC) $(DLLFLAGS) $(FILES) -o lpeg.so ++ env $(CC) $(DLLFLAGS) $(LDFLAGS) $(FILES) -o lpeg.so + + $(FILES): makefile + diff --git a/dev-lua/lpeg/lpeg-1.1.0.ebuild b/dev-lua/lpeg/lpeg-1.1.0.ebuild new file mode 100644 index 000000000000..2f1e3a74056c --- /dev/null +++ b/dev-lua/lpeg/lpeg-1.1.0.ebuild @@ -0,0 +1,100 @@ +# 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 flag-o-matic toolchain-funcs + +DESCRIPTION="Parsing Expression Grammars for Lua" +HOMEPAGE="https://www.inf.puc-rio.br/~roberto/lpeg/" +SRC_URI="https://luarocks.org/manifests/gvvaughan/${P}-1.src.rock -> ${P}.zip" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="amd64 arm arm64 ~hppa ~mips ppc ppc64 ~riscv sparc x86 ~x64-macos" +IUSE="test debug doc" +REQUIRED_USE="${LUA_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +RDEPEND="${LUA_DEPS}" +DEPEND="${RDEPEND}" +BDEPEND=" + virtual/pkgconfig + app-arch/unzip + test? ( ${RDEPEND} ) +" + +DOCS=( HISTORY ) +HTML_DOCS=( lpeg.html re.html ) +PATCHES=( + "${FILESDIR}"/${PN}-1.1.0-makefile.patch +) + +src_unpack() { + unpack "${P}.zip" || die + unpack "${WORKDIR}/${P}.tar.gz" || die +} + +lua_src_prepare() { + if ! test -d "${S}.${ELUA}/" ; then + cp -ral "${S}/" "${S}.${ELUA}/" || die + fi +} + +src_prepare() { + default + use debug && append-cflags -DLPEG_DEBUG + + if [[ ${CHOST} == *-darwin* ]] ; then + append-ldflags "-undefined dynamic_lookup" + fi + + lua_foreach_impl lua_src_prepare +} + +lua_src_compile() { + cd "${S}.${ELUA}/" || die + emake CC="$(tc-getCC)" \ + LUADIR="${EPREFIX}/$(lua_get_include_dir)" +} + +src_compile() { + lua_foreach_impl lua_src_compile +} + +lua_src_test() { + cd "${S}.${ELUA}/" || die + ${ELUA} test.lua || die +} + +src_test() { + lua_foreach_impl lua_src_test +} + +lua_src_install() { + cd "${S}.${ELUA}/" || die + local instdir + instdir="$(lua_get_cmod_dir)" + exeinto "${instdir#${EPREFIX}}" + doexe lpeg.so + instdir="$(lua_get_lmod_dir)" + insinto "${instdir#${EPREFIX}}" + doins re.lua + + 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}/lpeg.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 + cd "${S}" || die + use doc && einstalldocs +} diff --git a/dev-lua/messagepack/Manifest b/dev-lua/messagepack/Manifest index c2fcf6a64ac1..d97aab6c166a 100644 --- a/dev-lua/messagepack/Manifest +++ b/dev-lua/messagepack/Manifest @@ -1,3 +1,5 @@ DIST messagepack-0.5.2_p20201025.tar.gz 19652 BLAKE2B 5f85081daf2ab7f57399cb47782fbde0dfd2afe9514fdb652da1ba0eacd832e5c0924258b788d919b0a07e227f37ee58a239004086e7d6759b4727922ea57d76 SHA512 245790163ec819438fd3426f59ab2e5672864be647748dace35155be712ad4eaf78f8d7228d5a0ce94bfb92f6a1d1071cf871483bf99e02ba18872c31b3d0682 +DIST messagepack-0.5.4.tar.bz2 18952 BLAKE2B f2632c4402b8a333deb4773543c60c7b7fd2a07601212b958b673fb4f10a603bbc6d3aa01b2674c0f23ff92ec6097473ae98deeb11c1c305bb31b10c06c7d0b8 SHA512 f40501beaa56b02a80070c8dc30ea49ae4e4ba9f6dd4a7d628c8c670915da3840c96d16451ab363b34fee239d00be41c9cee659b67b670f961bc59b99b945b53 EBUILD messagepack-0.5.2_p20201025-r100.ebuild 1017 BLAKE2B 481af10d3c5b285015be5ad6446f979d68c681e3d4ae83e1446bec56606ddf998aa430e689cf0bb073554e127b7ddca83036c3bee39627997c290f70763b14d9 SHA512 b8458713cad9ba3b53c124888131f2452940681aa5dfe27cf8885b88bc1a3958a2cd631999a56895d087d9f52b3f5a286589e9cf66007395cb287ca6864d9c45 +EBUILD messagepack-0.5.4.ebuild 944 BLAKE2B 6672b1d80621463fe7a14e21361213f53855ba4f39d229d7e55815ba7f7af0d869c802eefed85e32c0763e365713238c6d3e9334377d9416f562bb2577bd3b8f SHA512 4bac32bcfe602996904f36c766d967880fa2917d878715363bd7fac083eb5bd4215f5bae441821e58753498859f405727f787b212c3ce4fdda88b6562ce826db MISC metadata.xml 168 BLAKE2B 2e0e000b4c3b6ca04c12903fdbe278415c05a822623c52e9aa95cbbf3d50bcb1246b7edbda7d2f6b559af8950c6374e6e0a69b76319964cfe686bf50b0604a57 SHA512 4dcf45d1809e8390a2d8155c8ebfe0dd610203e392aeab0ccd8a10f42cc8532a4925eff32b35e7a6c35598a4efd288229034ec0732299dbd8cfa0acff705fed3 diff --git a/dev-lua/messagepack/messagepack-0.5.4.ebuild b/dev-lua/messagepack/messagepack-0.5.4.ebuild new file mode 100644 index 000000000000..41b7e3cc57d7 --- /dev/null +++ b/dev-lua/messagepack/messagepack-0.5.4.ebuild @@ -0,0 +1,49 @@ +# 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_PN="lua-MessagePack" +MY_P="${MY_PN}-${PV}" + +inherit lua + +DESCRIPTION="pure Lua implementation of the MessagePack serialization format" +HOMEPAGE="https://fperrad.frama.io/lua-MessagePack" +SRC_URI="https://framagit.org/fperrad/${MY_PN}/-/archive/${PV}/${MY_P}.tar.bz2 -> ${P}.tar.bz2" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +REQUIRED_USE="${LUA_REQUIRED_USE}" + +# Needed 'lua-TestMore' Lua module not in tree +RESTRICT="test" + +RDEPEND="${LUA_DEPS}" +BDEPEND=" + virtual/pkgconfig + test? ( ${RDEPEND} ) +" + +src_compile() { + :; +} + +lua_src_install() { + local myemakeargs=( + "LIBDIR=${ED}/$(lua_get_lmod_dir)" + "LUAVER=$(ver_cut 1-2 $(lua_get_version))" + ) + + emake "${myemakeargs[@]}" install +} + +src_install() { + lua_foreach_impl lua_src_install + + einstalldocs +} |