dev-libs/nativefiledialog-extended - 1.4.1 (tatsh-overlay)

Search

Install

Install this version:

emerge -a =dev-libs/nativefiledialog-extended-1.4.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-libs/nativefiledialog-extended-1.4.1

Or alternatively:

emerge --autounmask-write -a =dev-libs/nativefiledialog-extended-1.4.1

Package Information

Description:
File dialog library with C and C++ bindings, based on nativefiledialog
Homepage:
https://github.com/btzy/nativefiledialog-extended
License:
ZLIB

Ebuild Details

Version EAPI Keywords Slot
1.4.1 8 ~amd64 0/1.4.1
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake

DESCRIPTION="File dialog library with C and C++ bindings, based on nativefiledialog"
HOMEPAGE="https://github.com/btzy/nativefiledialog-extended"
SRC_URI="https://github.com/btzy/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"

LICENSE="ZLIB"
SLOT="0/${PV}"
KEYWORDS="~amd64"
IUSE="test wayland"
RESTRICT="!test? ( test )"

RDEPEND="x11-libs/gtk+:3
	wayland? ( dev-libs/wayland )"
DEPEND="${RDEPEND}
	dev-libs/glib
	wayland? ( dev-libs/wayland-protocols )"
BDEPEND="wayland? ( dev-util/wayland-scanner )"

src_prepare() {
	sed -e "s|DESTINATION lib|DESTINATION $(get_libdir)|g" -i src/CMakeLists.txt || die
	# The wayland-protocols git submodule is absent from the release archive.
	sed -e "s|\${CMAKE_CURRENT_SOURCE_DIR}/../3ps/wayland-protocols|${ESYSROOT}/usr/share/wayland-protocols|" \
		-i src/CMakeLists.txt || die
	cmake_src_prepare
}

src_configure() {
	local mycmakeargs=(
		"-DNFD_BUILD_TESTS=$(usex test)"
		"-DNFD_WAYLAND=$(usex wayland)"
	)
	cmake_src_configure
}

USE Flags

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

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

x11-libs/gtk+:3
	wayland? ( dev-libs/wayland )
	dev-libs/glib
	wayland? ( dev-libs/wayland-protocols )

RDEPEND

x11-libs/gtk+:3
	wayland? ( dev-libs/wayland )

BDEPEND

wayland? ( dev-util/wayland-scanner )

Manifest for 1.4.1

Type File Size Source URLs
DIST nativefiledialog-extended-1.4.1.tar.gz 438898 bytes https://github.com/btzy/nativefiledialog-extended/archive/refs/tags/v1.4.1.tar.gz