public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-libs/nativefiledialog-extended/files/, dev-libs/nativefiledialog-extended/
@ 2024-12-24  6:15 Ionen Wolkens
  0 siblings, 0 replies; only message in thread
From: Ionen Wolkens @ 2024-12-24  6:15 UTC (permalink / raw
  To: gentoo-commits

commit:     7d7d8503194965e4b886ec3070a1cd241688d539
Author:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 24 04:54:10 2024 +0000
Commit:     Ionen Wolkens <ionen <AT> gentoo <DOT> org>
CommitDate: Tue Dec 24 06:13:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7d7d8503

dev-libs/nativefiledialog-extended: new package, add 1.2.1

Newly needed by >=games-strategy/naev-0.12.0

Made USE=desktop-portal default even though it's off-by-default
upstream. Feel that it does not make much sense to default to
gtk3 for everyone and it seems to work properly.

Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org>

 dev-libs/nativefiledialog-extended/Manifest        |  1 +
 .../nativefiledialog-extended-1.2.1-libdir.patch   |  8 ++++
 dev-libs/nativefiledialog-extended/metadata.xml    | 14 +++++++
 .../nativefiledialog-extended-1.2.1.ebuild         | 44 ++++++++++++++++++++++
 4 files changed, 67 insertions(+)

diff --git a/dev-libs/nativefiledialog-extended/Manifest b/dev-libs/nativefiledialog-extended/Manifest
new file mode 100644
index 000000000000..b98e432ad044
--- /dev/null
+++ b/dev-libs/nativefiledialog-extended/Manifest
@@ -0,0 +1 @@
+DIST nativefiledialog-extended-1.2.1.tar.gz 426161 BLAKE2B 86e759e268f30c7eda034ea97c65de09a90cda34f173091c7836a11f6a576cd5ed6414287c6e455bb875b08bde55c7e469552fe48d6db5261397349a93667b6a SHA512 4ec3e174a90354c524d9be2776422740f80b73021df94e1942e60ab4310995245554f83097b9b2dcca04d016a8548d3fc0760f73daf724c5c3d72c15cf776bed

diff --git a/dev-libs/nativefiledialog-extended/files/nativefiledialog-extended-1.2.1-libdir.patch b/dev-libs/nativefiledialog-extended/files/nativefiledialog-extended-1.2.1-libdir.patch
new file mode 100644
index 000000000000..76e8b169da5e
--- /dev/null
+++ b/dev-libs/nativefiledialog-extended/files/nativefiledialog-extended-1.2.1-libdir.patch
@@ -0,0 +1,8 @@
+TODO: should be upstreamed
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -135,3 +135,3 @@
+   install(EXPORT ${TARGET_NAME}-export
+-    DESTINATION lib/cmake/${TARGET_NAME}
++    DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/${TARGET_NAME}
+     NAMESPACE ${TARGET_NAME}::

diff --git a/dev-libs/nativefiledialog-extended/metadata.xml b/dev-libs/nativefiledialog-extended/metadata.xml
new file mode 100644
index 000000000000..e9ccaf56e9a1
--- /dev/null
+++ b/dev-libs/nativefiledialog-extended/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="project">
+		<email>games@gentoo.org</email>
+		<name>Gentoo Games Project</name>
+	</maintainer>
+	<use>
+		<flag name="desktop-portal">Use <pkg>sys-apps/xdg-desktop-portal</pkg> to open file dialogs</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">btzy/nativefiledialog-extended</remote-id>
+	</upstream>
+</pkgmetadata>

diff --git a/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild b/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild
new file mode 100644
index 000000000000..4b321cb51bfc
--- /dev/null
+++ b/dev-libs/nativefiledialog-extended/nativefiledialog-extended-1.2.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+DESCRIPTION="Cross platform native file dialog library with C and C++ bindings"
+HOMEPAGE="https://github.com/btzy/nativefiledialog-extended/"
+SRC_URI="
+	https://github.com/btzy/nativefiledialog-extended/archive/refs/tags/v${PV}.tar.gz
+		-> ${P}.tar.gz
+"
+
+LICENSE="ZLIB"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+desktop-portal"
+
+DEPEND="
+	desktop-portal? ( sys-apps/dbus )
+	!desktop-portal? (
+		dev-libs/glib:2
+		x11-libs/gtk+:3
+	)
+"
+RDEPEND="
+	${DEPEND}
+	desktop-portal? ( sys-apps/xdg-desktop-portal )
+"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-1.2.1-libdir.patch
+)
+
+src_configure() {
+	local mycmakeargs=(
+		# tests are non-automated examples that open interactive dialogues
+		-DNFD_BUILD_TESTS=no
+		-DNFD_PORTAL=$(usex desktop-portal)
+	)
+
+	cmake_src_configure
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2024-12-24  6:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-24  6:15 [gentoo-commits] repo/gentoo:master commit in: dev-libs/nativefiledialog-extended/files/, dev-libs/nativefiledialog-extended/ Ionen Wolkens

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox