summaryrefslogtreecommitdiff
path: root/dev-cpp
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-12 19:11:06 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2026-04-12 19:11:06 +0000
commit1a1f5db8827d7864f74b2f19b88aadd126b462d0 (patch)
tree1bb31895b92ab571db3841f81faf6632157225ca /dev-cpp
parent00756a7495ccc0455ef2adbeb2237a02f1aa2629 (diff)
downloadbaldeagleos-repo-1a1f5db8827d7864f74b2f19b88aadd126b462d0.tar.gz
baldeagleos-repo-1a1f5db8827d7864f74b2f19b88aadd126b462d0.tar.xz
baldeagleos-repo-1a1f5db8827d7864f74b2f19b88aadd126b462d0.zip
Adding metadata
Diffstat (limited to 'dev-cpp')
-rw-r--r--dev-cpp/waylandpp/waylandpp-1.0.1-r1.ebuild63
-rw-r--r--dev-cpp/waylandpp/waylandpp-9999.ebuild42
2 files changed, 95 insertions, 10 deletions
diff --git a/dev-cpp/waylandpp/waylandpp-1.0.1-r1.ebuild b/dev-cpp/waylandpp/waylandpp-1.0.1-r1.ebuild
new file mode 100644
index 000000000000..da2abfb4bc7a
--- /dev/null
+++ b/dev-cpp/waylandpp/waylandpp-1.0.1-r1.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2026 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake toolchain-funcs
+
+DESCRIPTION="Wayland C++ bindings"
+HOMEPAGE="https://github.com/NilsBrause/waylandpp"
+
+LICENSE="MIT"
+SLOT="0/$(ver_cut 1-2)"
+IUSE="doc"
+
+if [[ ${PV} == *9999 ]] ; 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
+
+BDEPEND="
+ >=dev-libs/pugixml-1.9-r1
+"
+RDEPEND="${BDEPEND}
+ >=dev-libs/wayland-1.11.0
+"
+DEPEND="${RDEPEND}
+ media-libs/libglvnd
+ doc? (
+ app-text/doxygen
+ media-gfx/graphviz
+ )
+"
+
+src_configure() {
+ unset BUILD_NATIVE
+ local mycmakeargs
+
+ if tc-is-cross-compiler; then
+ mycmakeargs=(
+ -DBUILD_DOCUMENTATION=off
+ -DBUILD_LIBRARIES=off
+ )
+ BUILD_NATIVE="${WORKDIR}/${P}_native"
+ BUILD_DIR="${BUILD_NATIVE}" tc-env_build cmake_src_configure
+ fi
+
+ mycmakeargs=(
+ -DBUILD_DOCUMENTATION=$(usex doc)
+ ${BUILD_NATIVE+-DWAYLAND_SCANNERPP="${BUILD_NATIVE}"/wayland-scanner++}
+ )
+ cmake_src_configure
+}
+
+src_compile() {
+ if tc-is-cross-compiler; then
+ BUILD_DIR="${BUILD_NATIVE}" cmake_src_compile
+ fi
+
+ cmake_src_compile
+}
diff --git a/dev-cpp/waylandpp/waylandpp-9999.ebuild b/dev-cpp/waylandpp/waylandpp-9999.ebuild
index 11c5362f522e..da2abfb4bc7a 100644
--- a/dev-cpp/waylandpp/waylandpp-9999.ebuild
+++ b/dev-cpp/waylandpp/waylandpp-9999.ebuild
@@ -1,41 +1,63 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
-inherit cmake
+inherit cmake toolchain-funcs
DESCRIPTION="Wayland C++ bindings"
HOMEPAGE="https://github.com/NilsBrause/waylandpp"
LICENSE="MIT"
-IUSE="doc"
SLOT="0/$(ver_cut 1-2)"
+IUSE="doc"
if [[ ${PV} == *9999 ]] ; 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"
+ KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86"
fi
-RDEPEND="
- >=dev-libs/wayland-1.11.0
- media-libs/mesa[wayland]
+BDEPEND="
>=dev-libs/pugixml-1.9-r1
"
+RDEPEND="${BDEPEND}
+ >=dev-libs/wayland-1.11.0
+"
DEPEND="${RDEPEND}
+ media-libs/libglvnd
doc? (
app-text/doxygen
media-gfx/graphviz
)
- "
+"
src_configure() {
- local mycmakeargs=(
+ unset BUILD_NATIVE
+ local mycmakeargs
+
+ if tc-is-cross-compiler; then
+ mycmakeargs=(
+ -DBUILD_DOCUMENTATION=off
+ -DBUILD_LIBRARIES=off
+ )
+ BUILD_NATIVE="${WORKDIR}/${P}_native"
+ BUILD_DIR="${BUILD_NATIVE}" tc-env_build cmake_src_configure
+ fi
+
+ mycmakeargs=(
-DBUILD_DOCUMENTATION=$(usex doc)
+ ${BUILD_NATIVE+-DWAYLAND_SCANNERPP="${BUILD_NATIVE}"/wayland-scanner++}
)
-
cmake_src_configure
}
+
+src_compile() {
+ if tc-is-cross-compiler; then
+ BUILD_DIR="${BUILD_NATIVE}" cmake_src_compile
+ fi
+
+ cmake_src_compile
+}