diff options
| author | Sam James <sam@gentoo.org> | 2022-06-10 11:39:15 +0100 |
|---|---|---|
| committer | Sam James <sam@gentoo.org> | 2022-06-10 12:01:57 +0100 |
| commit | 346dc81bceb275d2d95ba47e86ce5b7db49486e0 (patch) | |
| tree | f579e70821c09d354a67bd216f27c805133de57c /dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild | |
| parent | 0c800e1cf627a83ca4b8b9bbdca11026bcf8def8 (diff) | |
| download | gentoo-346dc81bceb275d2d95ba47e86ce5b7db49486e0.tar.gz gentoo-346dc81bceb275d2d95ba47e86ce5b7db49486e0.tar.bz2 gentoo-346dc81bceb275d2d95ba47e86ce5b7db49486e0.zip | |
dev-libs/dbus-c++: fix installed headers w/ gcc 12, fix build with clang
Bug: https://bugs.gentoo.org/840731
Closes: https://bugs.gentoo.org/737120
Closes: https://bugs.gentoo.org/740068
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild')
| -rw-r--r-- | dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild b/dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild new file mode 100644 index 000000000000..bd749ca5481f --- /dev/null +++ b/dev-libs/dbus-c++/dbus-c++-0.9.0-r5.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multilib-minimal + +DESCRIPTION="Provides a C++ API for D-BUS" +HOMEPAGE="https://sourceforge.net/projects/dbus-cplusplus/" +SRC_URI="mirror://sourceforge/dbus-cplusplus/lib${P}.tar.gz" + +LICENSE="LGPL-2.1+" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86" +IUSE="doc ecore glib test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/expat + sys-apps/dbus[${MULTILIB_USEDEP}] + ecore? ( dev-libs/efl ) + glib? ( dev-libs/glib:2[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND} + dev-util/cppunit[${MULTILIB_USEDEP}]" +BDEPEND=" + virtual/pkgconfig + doc? ( app-doc/doxygen )" + +S="${WORKDIR}/lib${P}" + +PATCHES=( + "${FILESDIR}"/${P}-gcc-4.7.patch #424707 + "${FILESDIR}"/${PN}-gcc7.patch #622790 + "${FILESDIR}"/${P}-gcc12.patch +) + +multilib_src_configure() { + # TODO : add ecore multilib support if/when it is multilibified + ECONF_SOURCE="${S}" econf \ + --disable-examples \ + --disable-static \ + $(multilib_native_use_enable doc doxygen-docs) \ + $(multilib_native_use_enable ecore) \ + $(use_enable glib) \ + $(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() { + use doc && HTML_DOCS=( doc/html/. ) + einstalldocs + + # no static archives + find "${ED}" -name '*.la' -delete || die +} |
