dev-libs/sdbus-cpp: add sdbus-cpp
Package-Manager: Portage-3.0.9, Repoman-3.0.2
This commit is contained in:
parent
04e65e615c
commit
e6f9f992b5
2
dev-libs/sdbus-cpp/Manifest
Normal file
2
dev-libs/sdbus-cpp/Manifest
Normal file
@ -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
|
@ -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 <BINARY_DIR>/*
|
||||||
|
+ SOURCE_DIR systemd
|
||||||
|
+ CONFIGURE_COMMAND ${CMAKE_COMMAND} -E remove <BINARY_DIR>/*
|
||||||
|
COMMAND ${MESON} --prefix=<INSTALL_DIR> --buildtype=${LIBSYSTEMD_BUILD_TYPE} -Dstatic-libsystemd=pic -Dselinux=false <SOURCE_DIR> <BINARY_DIR>
|
||||||
|
BUILD_COMMAND ${BUILD_VERSION_H}
|
||||||
|
COMMAND ${NINJA} -C <BINARY_DIR> libsystemd.a
|
11
dev-libs/sdbus-cpp/metadata.xml
Normal file
11
dev-libs/sdbus-cpp/metadata.xml
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||||
|
<pkgmetadata>
|
||||||
|
<maintainer type="person">
|
||||||
|
<email>parona@protonmail.com</email>
|
||||||
|
<name>Alfred Wingate</name>
|
||||||
|
</maintainer>
|
||||||
|
<upstream>
|
||||||
|
<remote-id type="github">Kistler-Group/sdbus-cpp</remote-id>
|
||||||
|
</upstream>
|
||||||
|
</pkgmetadata>
|
45
dev-libs/sdbus-cpp/sdbus-cpp-0.8.3.ebuild
Normal file
45
dev-libs/sdbus-cpp/sdbus-cpp-0.8.3.ebuild
Normal file
@ -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
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user