mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-10-12 17:51:11 -04:00
dev-lua/lua-curlv3: new package, add 0.3.13
Signed-off-by: Florian Albrechtskirchinger <falbrechtskirchinger@gmail.com>
This commit is contained in:
1 parent
7e15000815
commit
3b7880a5e8
4 files changed
+93
No files matched your search
@@ -0,0 +1 @@
|
||||
DIST lua-curlv3-0.3.13.tar.gz 98531 BLAKE2B 1658c4a2d35c78d1f77c36eedb935e6d7ed0d65ae8ee590216ce7d849695901338bb90738b16b51600826609220927400a7a646148990de1add95d127f9a2e32 SHA512 4283109e349b994e0d2349a45b37a95bab7a7fc115740a4ce078ff967485364714691eac3398db90bacb54584790d6ec778d845fb7ecc7716c0863c454216f05
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/src/lceasy.c b/src/lceasy.c
|
||||
index ad48022..7a2d86f 100644
|
||||
--- a/src/lceasy.c
|
||||
+++ b/src/lceasy.c
|
||||
@@ -200,6 +200,8 @@ static int lcurl_easy_cleanup_storage(lua_State *L, lcurl_easy_t *p){
|
||||
for(i = 0; i < LCURL_LIST_COUNT; ++i){
|
||||
p->lists[i] = LUA_NOREF;
|
||||
}
|
||||
+
|
||||
+ return 0;
|
||||
}
|
||||
|
||||
static int lcurl_easy_cleanup(lua_State *L){
|
||||
@@ -0,0 +1,68 @@
|
||||
# Copyright 2026 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
LUA_COMPAT=( lua5-{1..4} luajit )
|
||||
|
||||
inherit lua toolchain-funcs
|
||||
|
||||
MY_PN="Lua-cURLv3"
|
||||
MY_P="${MY_PN}-${PV}"
|
||||
DESCRIPTION="Lua binding to libcurl"
|
||||
HOMEPAGE="https://github.com/Lua-cURL/Lua-cURLv3"
|
||||
SRC_URI="
|
||||
https://github.com/Lua-cURL/${MY_PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
RESTRICT="test" # TODO
|
||||
|
||||
RDEPEND="
|
||||
${LUA_DEPS}
|
||||
net-misc/curl
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/${PN}-0.3.13-fix-missing-return.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
sed 's/COMMONFLAGS\s*=.*/COMMONFLAGS = -fPIC $(OS_FLAGS) $(DBG)/' \
|
||||
-i Makefile || die
|
||||
|
||||
lua_copy_sources
|
||||
}
|
||||
|
||||
lua_src_compile() {
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
|
||||
emake CC="$(tc-getCC)"
|
||||
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
lua_foreach_impl lua_src_compile
|
||||
}
|
||||
|
||||
lua_src_install() {
|
||||
pushd "${BUILD_DIR}" >/dev/null || die
|
||||
|
||||
emake DESTDIR="${ED}" install
|
||||
|
||||
popd >/dev/null || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lua_foreach_impl lua_src_install
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>falbrechtskirchinger@gmail.com</email>
|
||||
<name>Florian Albrechtskirchinger</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">Lua-cURL/Lua-cURLv3</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
Reference in new issue
Block a user