[gentoo-commits] repo/gentoo:master commit in: dev-cpp/waylandpp/, dev-cpp/waylandpp/files/

2023-01-27 Thread Sam James
commit: f0bd6e56c9205c48f9b25bc9c7d3cd2990f0d367
Author: Sam James  gentoo  org>
AuthorDate: Sat Jan 28 01:38:53 2023 +
Commit: Sam James  gentoo  org>
CommitDate: Sat Jan 28 01:38:53 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0bd6e56

dev-cpp/waylandpp: fix build (and runtime) w/ gcc 13

Generates programs, it seems, for others, so needs revbump.

Signed-off-by: Sam James  gentoo.org>

 .../waylandpp/files/waylandpp-1.0.0-gcc-13.patch   | 51 ++
 dev-cpp/waylandpp/waylandpp-1.0.0-r1.ebuild| 45 +++
 2 files changed, 96 insertions(+)

diff --git a/dev-cpp/waylandpp/files/waylandpp-1.0.0-gcc-13.patch 
b/dev-cpp/waylandpp/files/waylandpp-1.0.0-gcc-13.patch
new file mode 100644
index ..314b1aa5fb80
--- /dev/null
+++ b/dev-cpp/waylandpp/files/waylandpp-1.0.0-gcc-13.patch
@@ -0,0 +1,51 @@
+https://github.com/NilsBrause/waylandpp/pull/71
+
+From 3c441910aa25f57df2a4db55f75f5d99cea86620 Mon Sep 17 00:00:00 2001
+From: Sergei Trofimovich 
+Date: Sun, 8 Jan 2023 18:24:53 +
+Subject: [PATCH] add missing  include
+
+Upcoming `gcc-13` made `` leaner and does not include ``
+implicitly anymore. As a result build fails without the change as:
+
+[  2%] Building CXX object 
CMakeFiles/wayland-scanner++.dir/scanner/scanner.cpp.o
+scanner/scanner.cpp:378:3: error: 'uint32_t' does not name a type
+  378 |   uint32_t width = 0;
+  |   ^~~~
+--- a/include/wayland-client.hpp
 b/include/wayland-client.hpp
+@@ -29,6 +29,7 @@
+ /** \file */
+ 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 
+--- a/scanner/scanner.cpp
 b/scanner/scanner.cpp
+@@ -23,6 +23,7 @@
+ #include 
+ #include 
+ #include 
++#include 
+ #include 
+ 
+ #include "pugixml.hpp"
+@@ -1106,6 +1107,7 @@ int main(int argc, char *argv[])
+   wayland_hpp << "#pragma once" << std::endl
+   << std::endl
+   << "#include " << std::endl
++  << "#include " << std::endl
+   << "#include " << std::endl
+   << "#include " << std::endl
+   << "#include " << std::endl
+@@ -1125,6 +1127,7 @@ int main(int argc, char *argv[])
+ wayland_server_hpp << "#pragma once" << std::endl
+<< std::endl
+<< "#include " << std::endl
++   << "#include " << std::endl
+<< "#include " << std::endl
+<< "#include " << std::endl
+<< "#include " << std::endl
+

diff --git a/dev-cpp/waylandpp/waylandpp-1.0.0-r1.ebuild 
b/dev-cpp/waylandpp/waylandpp-1.0.0-r1.ebuild
new file mode 100644
index ..739434a74de6
--- /dev/null
+++ b/dev-cpp/waylandpp/waylandpp-1.0.0-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Wayland C++ bindings"
+HOMEPAGE="https://github.com/NilsBrause/waylandpp;
+
+LICENSE="MIT"
+IUSE="doc"
+SLOT="0/$(ver_cut 1-2)"
+
+if [[ ${PV} == * ]] ; then
+   EGIT_REPO_URI="https://github.com/NilsBrause/waylandpp.git;
+   inherit git-r3
+else
+   SRC_URI="https://github.com/NilsBrause/waylandpp/archive/${PV}.tar.gz 
-> ${P}.tar.gz"
+   KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
+fi
+
+RDEPEND="
+   >=dev-libs/wayland-1.11.0
+   media-libs/mesa[wayland]
+   >=dev-libs/pugixml-1.9-r1
+"
+DEPEND="${RDEPEND}
+   doc? (
+   app-doc/doxygen
+   media-gfx/graphviz
+   )
+   "
+
+PATCHES=(
+   "${FILESDIR}"/${PN}-1.0.0-gcc-13.patch
+)
+
+src_configure() {
+   local mycmakeargs=(
+   -DBUILD_DOCUMENTATION=$(usex doc)
+   )
+
+   cmake_src_configure
+}



[gentoo-commits] repo/gentoo:master commit in: dev-cpp/waylandpp/, dev-cpp/waylandpp/files/

2020-06-23 Thread Craig Andrews
commit: 57ebbe280ce99f7f5346b6507bc7dc4dcdeae41f
Author: Craig Andrews  gentoo  org>
AuthorDate: Tue Jun 23 15:34:27 2020 +
Commit: Craig Andrews  gentoo  org>
CommitDate: Tue Jun 23 15:34:44 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57ebbe28

dev-cpp/waylandpp: Fix ‘runtime_error’ is not a member of ‘std’

Closes: https://bugs.gentoo.org/729200
Package-Manager: Portage-2.3.102, Repoman-2.3.23
Signed-off-by: Craig Andrews  gentoo.org>

 .../waylandpp-0.2.7-fix-std-runtime_error.patch| 25 ++
 dev-cpp/waylandpp/waylandpp-0.2.7.ebuild   |  4 
 2 files changed, 29 insertions(+)

diff --git 
a/dev-cpp/waylandpp/files/waylandpp-0.2.7-fix-std-runtime_error.patch 
b/dev-cpp/waylandpp/files/waylandpp-0.2.7-fix-std-runtime_error.patch
new file mode 100644
index 000..41e71eb237b
--- /dev/null
+++ b/dev-cpp/waylandpp/files/waylandpp-0.2.7-fix-std-runtime_error.patch
@@ -0,0 +1,25 @@
+From 695c0881101435a57d24c84d04cbcb79eec49903 Mon Sep 17 00:00:00 2001
+From: Rechi 
+Date: Sat, 18 Jan 2020 23:37:46 +0100
+Subject: [PATCH] [fix] add missing stdexcept include after 2d834a6
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+fixes error: ‘runtime_error’ is not a member of ‘std’
+---
+ include/wayland-util.hpp | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/include/wayland-util.hpp b/include/wayland-util.hpp
+index 9cf5d04..1609651 100644
+--- a/include/wayland-util.hpp
 b/include/wayland-util.hpp
+@@ -28,6 +28,7 @@
+ 
+ #include 
+ #include 
++#include 
+ #include 
+ #include 
+ #include 

diff --git a/dev-cpp/waylandpp/waylandpp-0.2.7.ebuild 
b/dev-cpp/waylandpp/waylandpp-0.2.7.ebuild
index 6fda559666c..f25c7dccb2b 100644
--- a/dev-cpp/waylandpp/waylandpp-0.2.7.ebuild
+++ b/dev-cpp/waylandpp/waylandpp-0.2.7.ebuild
@@ -32,6 +32,10 @@ DEPEND="${RDEPEND}
)
"
 
+PATCHES=(
+   "${FILESDIR}/${P}-fix-std-runtime_error.patch"
+)
+
 src_configure() {
local mycmakeargs=(
-DBUILD_DOCUMENTATION=$(usex doc)