dev-cpp/sdbus-cpp: add 1.2.0

Signed-off-by: Alfred Wingate <parona@protonmail.com>
This commit is contained in:
Alfred Wingate 2023-07-17 19:15:12 +03:00
parent fe36960107
commit 76271cb738
No known key found for this signature in database
GPG Key ID: A12750536B5E7010
3 changed files with 101 additions and 0 deletions

View File

@ -1,2 +1,4 @@
DIST sdbus-cpp-1.1.0.tar.gz 201532 BLAKE2B 3dac74cb7fc6717db9d25463ddfb9122db54edcd3bc9d1e71d18c132ede1efaf12b514f335c3978f51277afff7e6ab5533cfd02241759f7e3d24cede8aa29c6d SHA512 ba6230c0d1019875d92a92f793278c528a01692dc70e7acee8bb289af5dae65c1ad7b1c139f859cb7a960c7b48501178bfdf755163c2bc4d3766e67f3aa9b883
DIST sdbus-cpp-1.2.0.tar.gz 205798 BLAKE2B da040acb49f5294665b09df97c171eac38f7c6ce5e86093b45b896c4b216afc9b45870395404ffb8e7c32ac8b98f6c795fb528691b344587545e5ae27d4423d6 SHA512 dab2c4d9a5ea6d626672a5a6ee6f3490c60c6fdd160769801a4d6b4cf3df4983fad57ff0230132a5d637ec78a55993200ce217fa89461016e101865cc2777d7d
DIST systemd-stable-251.tar.gz 11432310 BLAKE2B a525a07a143b6c25b97c2ef510ca38ad7c752b96d7efd073a714d6750fbb8309ab926a6415988eeb195104319484fa2476f5dd486673cc848e24cadbd76744da SHA512 9a67136b1fc6600881b2b1a1d89185e5e48ab600a9226b1f27229f8d87c1afc9a1502095f2e26dff3bf0de8f4780293d6b3f78536357859cbfc4bec62d425125
DIST systemd-stable-253.tar.gz 11987926 BLAKE2B 73319210bff59616811a36d526903a78e4af2061da9e4b23f2da88a43695b43b5c62de6ec4685f99edbe6b34d5ee1dc0f8889dc9649eb10d9b18514453ceb13e SHA512 85bc9a3715d9ccc80df2c5678b74a4a3b72569643d1779511ea631d692dea0fa1da255ef18b1c4fd477a777c036ea2afe9c0ffb29101c09c608933455002f029

View File

@ -0,0 +1,29 @@
From 811b04abec6140d2996e581c5206cf3bac4c6399 Mon Sep 17 00:00:00 2001
From: Alfred Wingate <parona@protonmail.com>
Date: Mon, 17 Jul 2023 19:12:19 +0300
Subject: [PATCH] dont clone systemd repo
Signed-off-by: Alfred Wingate <parona@protonmail.com>
---
cmake/LibsystemdExternalProject.cmake | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/cmake/LibsystemdExternalProject.cmake b/cmake/LibsystemdExternalProject.cmake
index 40911c2..10bad8d 100644
--- a/cmake/LibsystemdExternalProject.cmake
+++ b/cmake/LibsystemdExternalProject.cmake
@@ -41,10 +41,7 @@ message(STATUS "Building with embedded libsystemd v${LIBSYSTEMD_VERSION}")
include(ExternalProject)
ExternalProject_Add(LibsystemdBuildProject
PREFIX libsystemd-v${LIBSYSTEMD_VERSION}
- GIT_REPOSITORY https://github.com/systemd/systemd-stable.git
- GIT_TAG v${LIBSYSTEMD_VERSION}-stable
- GIT_SHALLOW 1
- UPDATE_COMMAND ""
+ SOURCE_DIR systemd
CONFIGURE_COMMAND ${CMAKE_COMMAND} -E remove <BINARY_DIR>/*
COMMAND ${MESON} --prefix=<INSTALL_DIR> --buildtype=${LIBSYSTEMD_BUILD_TYPE} -Drootprefix=<INSTALL_DIR> -Dstatic-libsystemd=pic -Dselinux=false <SOURCE_DIR> <BINARY_DIR> ${LIBSYSTEMD_EXTRA_CONFIG_OPTS}
BUILD_COMMAND ${BUILD_VERSION_H}
--
2.41.0

View File

@ -0,0 +1,70 @@
# Copyright 2020-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="High-level C++ D-Bus library for Linux"
HOMEPAGE="https://github.com/Kistler-Group/sdbus-cpp/"
SYSTEMDVER="253"
SRC_URI="
https://github.com/Kistler-Group/sdbus-cpp/archive/v${PV}.tar.gz -> ${P}.tar.gz
!systemd? (
https://github.com/systemd/systemd-stable/archive/v"${SYSTEMDVER}".tar.gz
-> systemd-stable-"${SYSTEMDVER}".tar.gz
)
"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc examples systemd test"
RESTRICT="!test? ( test )"
CDEPEND="
systemd? ( sys-apps/systemd )
"
DEPEND="
${CDEPEND}
test? (
dev-cpp/gtest
)
"
RDEPEND="
${CDEPEND}
"
BDEPEND="
virtual/pkgconfig
test? (
sys-apps/dbus
)
"
PATCHES=( "${FILESDIR}/remove_download_from_external_project-1.patch" )
src_prepare() {
cmake_src_prepare
use systemd || mv "${WORKDIR}"/systemd-stable-"${SYSTEMDVER}" "${S}"_build/systemd || die
}
src_configure() {
local mycmakeargs=(
-DBUILD_CODE_GEN=ON
-DBUILD_LIBSYSTEMD=$(usex !systemd)
-DBUILD_TESTS=$(usex test)
-DBUILD_EXAMPLES=$(usex examples)
-DBUILD_SHARED_LIBS=ON
-DBUILD_DOC=$(usex doc)
)
cmake_src_configure
}
src_test() {
local myctestargs=(
# Requires system level configs for dbus
--exclude-regex integration-tests
)
cmake_src_test
}