* [gentoo-commits] repo/gentoo:master commit in: dev-libs/cxxtools/files/, dev-libs/cxxtools/
@ 2021-05-09 19:17 Jörg Bornkessel
0 siblings, 0 replies; only message in thread
From: Jörg Bornkessel @ 2021-05-09 19:17 UTC (permalink / raw
To: gentoo-commits
commit: 8f22de4eac8e79af8be65960861ac489fefbcaf4
Author: Joerg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
AuthorDate: Sun May 9 19:17:22 2021 +0000
Commit: Jörg Bornkessel <hd_brummy <AT> gentoo <DOT> org>
CommitDate: Sun May 9 19:17:22 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f22de4e
dev-libs/cxxtools: compile fix gcc-11
Closes: https://bugs.gentoo.org/787611
Package-Manager: Portage-3.0.18, Repoman-3.0.2
Signed-off-by: Joerg Bornkessel <hd_brummy <AT> gentoo.org>
dev-libs/cxxtools/cxxtools-3.0-r1.ebuild | 36 ++++++++++++++++++++++++
dev-libs/cxxtools/files/cxxtools-3.0_gcc11.patch | 23 +++++++++++++++
2 files changed, 59 insertions(+)
diff --git a/dev-libs/cxxtools/cxxtools-3.0-r1.ebuild b/dev-libs/cxxtools/cxxtools-3.0-r1.ebuild
new file mode 100644
index 00000000000..63310078b43
--- /dev/null
+++ b/dev-libs/cxxtools/cxxtools-3.0-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DESCRIPTION="Collection of general purpose C++-classes"
+HOMEPAGE="http://www.tntnet.org/cxxtools.html"
+SRC_URI="http://www.tntnet.org/download/${P}.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+
+RDEPEND="virtual/libiconv"
+DEPEND="${RDEPEND}"
+
+DOCS=( AUTHORS )
+
+src_configure() {
+ econf \
+ --disable-dependency-tracking \
+ --disable-demos \
+ --disable-unittest
+
+ eapply "${FILESDIR}/${P}_gcc11.patch"
+
+ default
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ einstalldocs
+
+ # remove static libs
+ rm -f "${ED}"/usr/$(get_libdir)/libcxxtools{,-bin,-http,-json,-unit,-xmlrpc}.la || die
+}
diff --git a/dev-libs/cxxtools/files/cxxtools-3.0_gcc11.patch b/dev-libs/cxxtools/files/cxxtools-3.0_gcc11.patch
new file mode 100644
index 00000000000..d8fb3488642
--- /dev/null
+++ b/dev-libs/cxxtools/files/cxxtools-3.0_gcc11.patch
@@ -0,0 +1,23 @@
+compilefix gcc 11
+
+based on compile fix from upstream
+https://www.gitmemory.com/issue/maekitalo/cxxtools/30/770247974
+
+Signed-off-by: Joerg Bornkessel <hd_brummy@gentoo.org> (09 May 2021)
+diff -Naur cxxtools-3.0.orig/include/cxxtools/char.h cxxtools-3.0/include/cxxtools/char.h
+--- cxxtools-3.0.orig/include/cxxtools/char.h 2021-05-09 18:32:41.415653108 +0200
++++ cxxtools-3.0/include/cxxtools/char.h 2021-05-09 18:33:56.117653108 +0200
+@@ -68,9 +68,10 @@
+ typedef int32_t value_type;
+
+ //! Constructs a character with a value of 0.
+- Char()
+- : _value(0)
+- {}
++// Char()
++// : _value(0)
++// {}
++ Char() = default;
+
+ //! Constructs a character using the given value as base for the character value.
+ Char(value_type ch)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-05-09 19:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-05-09 19:17 [gentoo-commits] repo/gentoo:master commit in: dev-libs/cxxtools/files/, dev-libs/cxxtools/ Jörg Bornkessel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox