diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-libs/dbus-c++ | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-libs/dbus-c++')
| -rw-r--r-- | dev-libs/dbus-c++/Manifest | 1 | ||||
| -rw-r--r-- | dev-libs/dbus-c++/dbus-c++-0.9.0-r3.ebuild | 64 | ||||
| -rw-r--r-- | dev-libs/dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch | 38 | ||||
| -rw-r--r-- | dev-libs/dbus-c++/files/dbus-c++-gcc7.patch | 25 | ||||
| -rw-r--r-- | dev-libs/dbus-c++/metadata.xml | 16 |
5 files changed, 144 insertions, 0 deletions
diff --git a/dev-libs/dbus-c++/Manifest b/dev-libs/dbus-c++/Manifest new file mode 100644 index 000000000000..036ee940747b --- /dev/null +++ b/dev-libs/dbus-c++/Manifest @@ -0,0 +1 @@ +DIST libdbus-c++-0.9.0.tar.gz 466362 BLAKE2B 401e266286fef383754c945f3adcf8e68a1169e55d33614f1e11227c324fe1219db7043674b5894d548f827d0b673ab4f012babbb4a395c212f6e17ef6d0e281 SHA512 7acebbb4254b2886cc0f05c5ddeeeac0b5863c5552d32249463b89380b0b95b8225c80bd98b8c7fcaada42ab770b5eff41b15390cd0d78bf1ee322ac6c2de319 diff --git a/dev-libs/dbus-c++/dbus-c++-0.9.0-r3.ebuild b/dev-libs/dbus-c++/dbus-c++-0.9.0-r3.ebuild new file mode 100644 index 000000000000..afa3caaaab8a --- /dev/null +++ b/dev-libs/dbus-c++/dbus-c++-0.9.0-r3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +AUTOTOOLS_PRUNE_LIBTOOL_FILES="modules" + +inherit autotools-multilib eutils + +DESCRIPTION="Provides a C++ API for D-BUS" +HOMEPAGE="https://sourceforge.net/projects/dbus-cplusplus/ https://sourceforge.net/apps/mediawiki/dbus-cplusplus/index.php?title=Main_Page" +SRC_URI="mirror://sourceforge/dbus-cplusplus/lib${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~sparc x86" +IUSE="doc ecore glib static-libs test" +RESTRICT="!test? ( test )" + +RDEPEND="sys-apps/dbus[${MULTILIB_USEDEP}] + ecore? ( dev-libs/efl ) + glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + doc? ( app-doc/doxygen ) + dev-util/cppunit[${MULTILIB_USEDEP}] + virtual/pkgconfig" + +S=${WORKDIR}/lib${P} + +PATCHES=( + "${FILESDIR}"/${P}-gcc-4.7.patch #424707 + "${FILESDIR}"/${PN}-gcc7.patch #622790 +) + +multilib_src_configure() { + # not just using autotools-multilib_src_configure because of multilib_native... logic + + # TODO : add ecore multilib support if/when it is multilibified + ECONF_SOURCE="${S}" econf \ + --disable-examples \ + $(multilib_native_use_enable doc doxygen-docs) \ + $(multilib_native_use_enable ecore) \ + $(use_enable glib) \ + $(use_enable static-libs static) \ + $(use_enable test tests) \ + PTHREAD_LIBS=-lpthread + # ACX_PTHREAD sets PTHREAD_CFLAGS but not PTHREAD_LIBS for some reason... + + if multilib_is_native_abi; then + # docs don't like out-of-source builds + local d + for d in img html; do + ln -s "${S}"/doc/${d} "${BUILD_DIR}"/doc/${d} || die + done + fi +} + +multilib_src_install_all() { + einstalldocs + + if use doc; then + dohtml -r "${S}"/doc/html/* + fi +} diff --git a/dev-libs/dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch b/dev-libs/dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch new file mode 100644 index 000000000000..2d5771717248 --- /dev/null +++ b/dev-libs/dbus-c++/files/dbus-c++-0.9.0-gcc-4.7.patch @@ -0,0 +1,38 @@ +sniped from ChromiumOS + +https://bugs.gentoo.org/424707 + +From 154f7861d19a2bd5c79c488f9989610971db451b Mon Sep 17 00:00:00 2001 +From: Han Shen <shenhan@google.com> +Date: Thu, 31 May 2012 16:49:35 -0700 +Subject: [PATCH] Fixed dbus-c++ gcc 4.7 building problem. + +Just add "unistd.h" inclusion to eventloop-integration.h. + +BUG=None +TEST=Manually built using gcc 4.7. + +Change-Id: I87bd1f90db6a4c974a5ed8134044e8be2034aff2 +Reviewed-on: https://gerrit.chromium.org/gerrit/24260 +Tested-by: Han Shen <shenhan@google.com> +Reviewed-by: Yunlian Jiang <yunlian@chromium.org> +Commit-Ready: Han Shen <shenhan@chromium.org> +--- + include/dbus-c++/eventloop-integration.h | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/include/dbus-c++/eventloop-integration.h b/include/dbus-c++/eventloop-integration.h +index 5108340..1b56ab5 100644 +--- a/include/dbus-c++/eventloop-integration.h ++++ b/include/dbus-c++/eventloop-integration.h +@@ -27,6 +27,7 @@ + + #include <cstring> + #include <errno.h> ++#include <unistd.h> + #include "api.h" + #include "dispatcher.h" + #include "util.h" +-- +1.7.9.7 + diff --git a/dev-libs/dbus-c++/files/dbus-c++-gcc7.patch b/dev-libs/dbus-c++/files/dbus-c++-gcc7.patch new file mode 100644 index 000000000000..90809ea5838b --- /dev/null +++ b/dev-libs/dbus-c++/files/dbus-c++-gcc7.patch @@ -0,0 +1,25 @@ +--- ./include/dbus-c++/dispatcher.h.old 2017-06-27 07:03:52.159413535 +0900 ++++ ./include/dbus-c++/dispatcher.h 2017-06-27 07:04:04.974399195 +0900 +@@ -229,13 +229,8 @@ + typedef Mutex *(*MutexNewFn)(); + typedef void (*MutexUnlockFn)(Mutex *mx); + +-#ifndef DBUS_HAS_RECURSIVE_MUTEX +-typedef bool (*MutexFreeFn)(Mutex *mx); +-typedef bool (*MutexLockFn)(Mutex *mx); +-#else + typedef void (*MutexFreeFn)(Mutex *mx); + typedef void (*MutexLockFn)(Mutex *mx); +-#endif//DBUS_HAS_RECURSIVE_MUTEX + + typedef CondVar *(*CondVarNewFn)(); + typedef void (*CondVarFreeFn)(CondVar *cv); +--- ./src/pipe.cpp.old 2017-06-27 07:00:17.275653653 +0900 ++++ ./src/pipe.cpp 2017-06-27 07:00:23.537646665 +0900 +@@ -83,5 +83,5 @@ + void Pipe::signal() + { + // TODO: ignoring return of read/write generates warning; maybe relevant for eventloop work... +- ::write(_fd_write, '\0', 1); ++ ::write(_fd_write, "\0", 1); + } diff --git a/dev-libs/dbus-c++/metadata.xml b/dev-libs/dbus-c++/metadata.xml new file mode 100644 index 000000000000..015cf39fa68b --- /dev/null +++ b/dev-libs/dbus-c++/metadata.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription> + dbus-c++ attempts to provide a C++ API for D-BUS. + </longdescription> + <use> + <flag name="ecore">Use Ecore integration</flag> + <flag name="glib">Use glib integration</flag> + </use> + <upstream> + <remote-id type="sourceforge">dbus-cplusplus</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> |
