diff --git a/dev-cpp/sdbus-cpp/Manifest b/dev-cpp/sdbus-cpp/Manifest index 7ee0eec..4915ec8 100644 --- a/dev-cpp/sdbus-cpp/Manifest +++ b/dev-cpp/sdbus-cpp/Manifest @@ -1,2 +1,3 @@ DIST sdbus-cpp-0.8.3.tar.gz 190124 BLAKE2B ad7d3872016471c7b8db0f20609e8debb13d155492655561675add60c9c1e9089553c31f7375136ba696112d17a4bd92a947a600a2c9f2842f7c0ba79f38046d SHA512 bdaccd686aeba9f24284c796fac7d0b6d514365e0b757db91e209e1e15c928d9de8ab1d5f5d21671896b07ea762ab4b7c6a5ce0850b17ad08bacb0f1a668cfb2 +DIST sdbus-cpp-1.0.0.tar.gz 202061 BLAKE2B 38a73b4c538e4bc64a21cabb1a5e3abdfca52b0d5785e11a55aef59271e772435c6d6844e605ebebb398d09ace565b13f201cd62217a7174a4d9d9be24ef8e6b SHA512 dc6b6c4945f5203ad5e4d86ae78088ce367a5ee28f3bb1c17c116c0755d9b221685a92b32dd9e354351067b012768e8d42ebe5dac93199d1384b9b4dadec09ef DIST systemd-stable-242.tar.gz 7831827 BLAKE2B cdcb2cb2b2b7b05eb8509faaf9bd5c11fdbab316c4ae61492e1eb5f405c9b2c527acc7105efad13cde1e877febe401a313e3dd43cec4f04aa5a4ea939f20f9a3 SHA512 607d41ce212ea320f51ad3729d86b4b2fb6a3ed78ff493ffe095ac9a7d7b27e56910c1b941c15c2e574b5e8fd8e72ab1d53870112ce604958a717a2f870290ff diff --git a/dev-cpp/sdbus-cpp/sdbus-cpp-1.0.0.ebuild b/dev-cpp/sdbus-cpp/sdbus-cpp-1.0.0.ebuild new file mode 100644 index 0000000..f1145dc --- /dev/null +++ b/dev-cpp/sdbus-cpp/sdbus-cpp-1.0.0.ebuild @@ -0,0 +1,45 @@ +# Copyright 2020-2021 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="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 +}