mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-04 01:18:33 -04:00
dev-lua/ldbus: new package, add 0_p20250222
Signed-off-by: Nicolas PARLANT <nicolas.parlant@parhuet.fr>
This commit is contained in:
parent
6503bb76cd
commit
a619ef5fda
1
dev-lua/ldbus/Manifest
Normal file
1
dev-lua/ldbus/Manifest
Normal file
@ -0,0 +1 @@
|
||||
DIST ldbus-0_p20250222.tar.gz 72429 BLAKE2B 86d79851c49cc255bc648f1c2f504bc21f5314a1dcf87afa7379372f78c085f2b312a56a887631ba986c2949a7340bd8a093ecb37d9df6b53793fb9bdef20416 SHA512 1fe4b7b8a00b6afa1ea13e0ab2e8d1e736f878b2f74c0a27d1e87f954a23c911feb6ea3801b8465247bea7bc7a6d479cc8f6ac7145ad1698d6f9843f7f23d543
|
112
dev-lua/ldbus/files/ldbus-0-rm_vendor_compat53.patch
Normal file
112
dev-lua/ldbus/files/ldbus-0-rm_vendor_compat53.patch
Normal file
@ -0,0 +1,112 @@
|
||||
diff '--color=auto' -uNr a/src/Makefile b/src/Makefile
|
||||
--- a/src/Makefile 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/Makefile 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -5,11 +5,10 @@
|
||||
CFLAGS += -Wall -Wextra --pedantic -Wno-long-long
|
||||
CFLAGS += `$(PKG_CONFIG) --cflags $(LUA_PKGNAME) dbus-1`
|
||||
CFLAGS += -fPIC
|
||||
-CFLAGS += -I ../vendor/compat-5.3/c-api
|
||||
|
||||
LIBS = `$(PKG_CONFIG) --libs dbus-1`
|
||||
|
||||
-OBJS = ldbus.o error.o pending_call.o connection.o bus.o message.o message_iter.o timeout.o watch.o ../vendor/compat-5.3/c-api/compat-5.3.o
|
||||
+OBJS = ldbus.o error.o pending_call.o connection.o bus.o message.o message_iter.o timeout.o watch.o
|
||||
|
||||
all: ldbus.so
|
||||
|
||||
diff '--color=auto' -uNr a/src/bus.c b/src/bus.c
|
||||
--- a/src/bus.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/bus.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/connection.c b/src/connection.c
|
||||
--- a/src/connection.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/connection.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -3,7 +3,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/ldbus.c b/src/ldbus.c
|
||||
--- a/src/ldbus.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/ldbus.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/message.c b/src/message.c
|
||||
--- a/src/message.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/message.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/message_iter.c b/src/message_iter.c
|
||||
--- a/src/message_iter.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/message_iter.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/pending_call.c b/src/pending_call.c
|
||||
--- a/src/pending_call.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/pending_call.c 2025-03-07 10:42:40.390660824 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/timeout.c b/src/timeout.c
|
||||
--- a/src/timeout.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/timeout.c 2025-03-07 10:42:40.394660763 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
||||
diff '--color=auto' -uNr a/src/watch.c b/src/watch.c
|
||||
--- a/src/watch.c 2025-03-07 10:43:16.062118401 -0000
|
||||
+++ b/src/watch.c 2025-03-07 10:42:40.394660763 -0000
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
#include <lua.h>
|
||||
#include <lauxlib.h>
|
||||
-#include "compat-5.3.h"
|
||||
+#include <compat-5.3.h>
|
||||
|
||||
#include <dbus/dbus.h>
|
||||
|
60
dev-lua/ldbus/ldbus-0_p20250222.ebuild
Normal file
60
dev-lua/ldbus/ldbus-0_p20250222.ebuild
Normal file
@ -0,0 +1,60 @@
|
||||
# Copyright 2025 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
|
||||
|
||||
DESCRIPTION="Lua library to access dbus."
|
||||
HOMEPAGE="https://github.com/daurnimator/ldbus"
|
||||
EGIT_COMMIT="2571a9ba15d03bc40ac2e406f42ef14b322e1c01"
|
||||
SRC_URI="https://github.com/daurnimator/${PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
S="${WORKDIR}/${PN}-${EGIT_COMMIT}"
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
REQUIRED_USE="${LUA_REQUIRED_USE}"
|
||||
|
||||
RDEPEND="
|
||||
${LUA_DEPS}
|
||||
dev-lua/compat53[${LUA_USEDEP}]
|
||||
sys-apps/dbus
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
BDEPEND="virtual/pkgconfig"
|
||||
|
||||
PATCHES=( "${FILESDIR}"/${PN}-0-rm_vendor_compat53.patch )
|
||||
|
||||
DOCS=( README.md example.lua )
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
rm -r vendor || die
|
||||
lua_copy_sources
|
||||
}
|
||||
|
||||
lua_src_compile() {
|
||||
local myemakeargs=(
|
||||
CC=$(tc-getCC)
|
||||
LUA_PKGNAME=${ELUA}
|
||||
PKG_CONFIG=$(tc-getPKG_CONFIG)
|
||||
)
|
||||
|
||||
emake "${myemakeargs[@]}" -C "${BUILD_DIR}"/src
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
lua_foreach_impl lua_src_compile
|
||||
}
|
||||
|
||||
lua_src_install() {
|
||||
exeinto $(lua_get_cmod_dir)
|
||||
doexe "${BUILD_DIR}"/src/${PN}.so
|
||||
}
|
||||
|
||||
src_install() {
|
||||
lua_foreach_impl lua_src_install
|
||||
einstalldocs
|
||||
}
|
11
dev-lua/ldbus/metadata.xml
Normal file
11
dev-lua/ldbus/metadata.xml
Normal file
@ -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>nicolas.parlant@parhuet.fr</email>
|
||||
<name>Nicolas PARLANT</name>
|
||||
</maintainer>
|
||||
<upstream>
|
||||
<remote-id type="github">daurnimator/ldbus</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
Loading…
x
Reference in New Issue
Block a user