From 289f1b26cc418e64d838c0014e838c56fa368c8a Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sat, 20 Aug 2022 20:39:37 +0100 Subject: gentoo auto-resync : 20:08:2022 - 20:39:37 --- dev-cpp/sdbus-c++/files/sdbus-c++-pc-reqs.patch | 29 +++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 dev-cpp/sdbus-c++/files/sdbus-c++-pc-reqs.patch (limited to 'dev-cpp/sdbus-c++/files') diff --git a/dev-cpp/sdbus-c++/files/sdbus-c++-pc-reqs.patch b/dev-cpp/sdbus-c++/files/sdbus-c++-pc-reqs.patch new file mode 100644 index 000000000000..9730bda5bc65 --- /dev/null +++ b/dev-cpp/sdbus-c++/files/sdbus-c++-pc-reqs.patch @@ -0,0 +1,29 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0733b41..fd613be 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -210,6 +210,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/cmake/sdbus-c++-config.cmake + DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/sdbus-c++ + COMPONENT dev) + ++if(BUILD_LIBSYSTEMD OR pkgcfg_lib_Systemd_systemd MATCHES "\.a$") ++ set(PKGCONFIG_REQS "") ++else() ++ set(PKGCONFIG_REQS "libsystemd") ++endif() + configure_file(pkgconfig/sdbus-c++.pc.in pkgconfig/sdbus-c++.pc @ONLY) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/pkgconfig/sdbus-c++.pc + DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig COMPONENT dev) +diff --git a/pkgconfig/sdbus-c++.pc.in b/pkgconfig/sdbus-c++.pc.in +index 21e0f0b..a6d6ec9 100644 +--- a/pkgconfig/sdbus-c++.pc.in ++++ b/pkgconfig/sdbus-c++.pc.in +@@ -5,7 +5,7 @@ includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@ + + Name: @PROJECT_NAME@ + Description: C++ library on top of sd-bus, a systemd D-Bus library +-Requires: libsystemd ++Requires: @PKGCONFIG_REQS@ + Version: @SDBUSCPP_VERSION@ + Libs: -L${libdir} -l@PROJECT_NAME@ + Cflags: -I${includedir} -- cgit v1.2.3