dev-cpp/commoncpp2: Fix for C++17

Closes: https://bugs.gentoo.org/787761
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: David Seifert <soap@gentoo.org>
This commit is contained in:
David Seifert
2021-06-15 11:24:35 +02:00
parent a5f72c9700
commit e92ca0aacc
11 changed files with 19 additions and 290 deletions
+18 -15
View File
@@ -7,7 +7,9 @@ inherit autotools
DESCRIPTION="C++ library offering portable support for system-related services"
HOMEPAGE="https://www.gnu.org/software/commoncpp/"
SRC_URI="mirror://gnu/commoncpp/${P}.tar.gz"
SRC_URI="
mirror://gnu/commoncpp/${P}.tar.gz
https://dev.gentoo.org/~soap/distfiles/${P}-patches.txz"
LICENSE="GPL-2"
SLOT="0"
@@ -25,19 +27,20 @@ RDEPEND="
dev-libs/openssl:0=
)
)"
DEPEND="${RDEPEND}
doc? ( >=app-doc/doxygen-1.3.6 )"
DEPEND="${RDEPEND}"
BDEPEND="doc? ( >=app-doc/doxygen-1.3.6 )"
PATCHES=(
"${FILESDIR}/1.8.1-configure_detect_netfilter.patch"
"${FILESDIR}/1.8.0-glibc212.patch"
"${FILESDIR}/1.8.1-autoconf-update.patch"
"${FILESDIR}/1.8.1-fix-buffer-overflow.patch"
"${FILESDIR}/1.8.1-parallel-build.patch"
"${FILESDIR}/1.8.1-libgcrypt.patch"
"${FILESDIR}/1.8.1-fix-c++14.patch"
"${FILESDIR}/1.8.1-gnutls-3.4.patch"
"${FILESDIR}/1.8.1-fix-gcc9.patch" # bug 686012
"${WORKDIR}"/patches/1.8.1-configure_detect_netfilter.patch
"${WORKDIR}"/patches/1.8.1-glibc212.patch
"${WORKDIR}"/patches/1.8.1-autoconf-update.patch
"${WORKDIR}"/patches/1.8.1-fix-buffer-overflow.patch
"${WORKDIR}"/patches/1.8.1-parallel-build.patch
"${WORKDIR}"/patches/1.8.1-libgcrypt.patch
"${WORKDIR}"/patches/1.8.1-fix-c++14.patch
"${WORKDIR}"/patches/1.8.1-gnutls-3.4.patch
"${WORKDIR}"/patches/1.8.1-fix-gcc9.patch
"${WORKDIR}"/patches/1.8.1-c++17.patch
)
src_prepare() {
@@ -47,19 +50,19 @@ src_prepare() {
src_configure() {
econf \
--disable-static \
$(use_enable debug) \
$(use_with ipv6) \
$(use_with ssl $(usex gnutls gnutls openssl)) \
$(use_enable static-libs static) \
$(use_with doc doxygen)
}
src_install() {
use doc && local HTML_DOCS=( doc/html/. )
use doc && HTML_DOCS=( doc/html/. )
default
# package provides .pc files
find "${D}" -name '*.la' -delete || die
find "${ED}" -name '*.la' -delete || die
dodoc COPYING.addendum