dev-libs/nativefiledialog-extended: demoted from ::gentoo

Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com>
This commit is contained in:
Paul Zander
2026-03-15 18:28:31 +01:00
parent 093f90e070
commit b3c536db85
4 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST nativefiledialog-extended-1.2.1.tar.gz 426161 BLAKE2B 86e759e268f30c7eda034ea97c65de09a90cda34f173091c7836a11f6a576cd5ed6414287c6e455bb875b08bde55c7e469552fe48d6db5261397349a93667b6a SHA512 4ec3e174a90354c524d9be2776422740f80b73021df94e1942e60ab4310995245554f83097b9b2dcca04d016a8548d3fc0760f73daf724c5c3d72c15cf776bed

View File

@@ -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}::

View File

@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<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>

View File

@@ -0,0 +1,44 @@
# Copyright 2024-2026 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/$(ver_cut 1)"
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 dialogs
-DNFD_BUILD_TESTS=no
-DNFD_PORTAL="$(usex desktop-portal)"
)
cmake_src_configure
}