Install this version:
emerge -a =dev-libs/nativefiledialog-extended-1.2.1
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-libs/nativefiledialog-extended-1.2.1
Or alternatively:
emerge --autounmask-write -a =dev-libs/nativefiledialog-extended-1.2.1
# 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="X +desktop-portal wayland"
DEPEND="
desktop-portal? ( sys-apps/dbus )
!desktop-portal? (
dev-libs/glib:2
x11-libs/gtk+:3[X=,wayland=]
)
"
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
}
Manage flags for this package:
euse -i <flag> -p dev-libs/nativefiledialog-extended |
euse -E <flag> -p dev-libs/nativefiledialog-extended |
euse -D <flag> -p dev-libs/nativefiledialog-extended
desktop-portal? ( sys-apps/dbus ) !desktop-portal? ( dev-libs/glib:2 x11-libs/gtk+:3[X=,wayland=] )
desktop-portal? ( sys-apps/dbus ) !desktop-portal? ( dev-libs/glib:2 x11-libs/gtk+:3[X=,wayland=] ) desktop-portal? ( sys-apps/xdg-desktop-portal )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | nativefiledialog-extended-1.2.1.tar.gz | 426161 bytes | https://github.com/btzy/nativefiledialog-extended/archive/refs/tags/v1.2.1.tar.gz |