diff --git a/dev-libs/sdbus-cpp/Manifest b/dev-libs/sdbus-cpp/Manifest new file mode 100644 index 0000000..7ee0eec --- /dev/null +++ b/dev-libs/sdbus-cpp/Manifest @@ -0,0 +1,2 @@ +DIST sdbus-cpp-0.8.3.tar.gz 190124 BLAKE2B ad7d3872016471c7b8db0f20609e8debb13d155492655561675add60c9c1e9089553c31f7375136ba696112d17a4bd92a947a600a2c9f2842f7c0ba79f38046d SHA512 bdaccd686aeba9f24284c796fac7d0b6d514365e0b757db91e209e1e15c928d9de8ab1d5f5d21671896b07ea762ab4b7c6a5ce0850b17ad08bacb0f1a668cfb2 +DIST systemd-stable-242.tar.gz 7831827 BLAKE2B cdcb2cb2b2b7b05eb8509faaf9bd5c11fdbab316c4ae61492e1eb5f405c9b2c527acc7105efad13cde1e877febe401a313e3dd43cec4f04aa5a4ea939f20f9a3 SHA512 607d41ce212ea320f51ad3729d86b4b2fb6a3ed78ff493ffe095ac9a7d7b27e56910c1b941c15c2e574b5e8fd8e72ab1d53870112ce604958a717a2f870290ff diff --git a/dev-libs/sdbus-cpp/files/remove_download_from_external_project.patch b/dev-libs/sdbus-cpp/files/remove_download_from_external_project.patch new file mode 100644 index 0000000..1ed5c51 --- /dev/null +++ b/dev-libs/sdbus-cpp/files/remove_download_from_external_project.patch @@ -0,0 +1,18 @@ +diff --git a/cmake/LibsystemdExternalProject.cmake b/cmake/LibsystemdExternalProject.cmake +index dfa56d4..52b6f3c 100644 +--- a/cmake/LibsystemdExternalProject.cmake ++++ b/cmake/LibsystemdExternalProject.cmake +@@ -35,11 +35,8 @@ 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 "" +- CONFIGURE_COMMAND ${CMAKE_COMMAND} -E remove /* ++ SOURCE_DIR systemd ++ CONFIGURE_COMMAND ${CMAKE_COMMAND} -E remove /* + COMMAND ${MESON} --prefix= --buildtype=${LIBSYSTEMD_BUILD_TYPE} -Dstatic-libsystemd=pic -Dselinux=false + BUILD_COMMAND ${BUILD_VERSION_H} + COMMAND ${NINJA} -C libsystemd.a diff --git a/dev-libs/sdbus-cpp/metadata.xml b/dev-libs/sdbus-cpp/metadata.xml new file mode 100644 index 0000000..e762323 --- /dev/null +++ b/dev-libs/sdbus-cpp/metadata.xml @@ -0,0 +1,11 @@ + + + + + parona@protonmail.com + Alfred Wingate + + + Kistler-Group/sdbus-cpp + + diff --git a/dev-libs/sdbus-cpp/sdbus-cpp-0.8.3.ebuild b/dev-libs/sdbus-cpp/sdbus-cpp-0.8.3.ebuild new file mode 100644 index 0000000..56e0110 --- /dev/null +++ b/dev-libs/sdbus-cpp/sdbus-cpp-0.8.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="High-level C++ D-Bus library for Linux" +HOMEPAGE="https://github.com/Kistler-Group/sdbus-cpp/" + +SYSTEMDVER="242" +SRC_URI=" + https://github.com/Kistler-Group/sdbus-cpp/archive/v"${PV}".tar.gz -> sdbus-cpp-"${PV}".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="systemd" + +RDEPEND=" + systemd? ( sys-apps/systemd ) +" +DEPEND=" + ${RDEPEND} + virtual/pkgconfig +" + +CMAKE_MAKEFILE_GENERATOR=emake # ninja cant handle external projects for some reason + +PATCHES=( "${FILESDIR}/remove_download_from_external_project.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 # possibly could be use controlled instead + -DBUILD_LIBSYSTEMD=$(usex !systemd) + ) + cmake_src_configure +}