mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-18 23:39:00 -04:00
dev-libs/nativefiledialog-extended: treeclean, moved to ::gentoo
Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
parent
083bc7ffbe
commit
2cedd69a48
@ -1 +0,0 @@
|
||||
DIST nativefiledialog-extended-1.2.0.tar.gz 426259 BLAKE2B 107680121cb1c016f1e3af61f9bd0dffc7bf12661b445107110a5c910c9778f8f9a135123d4c5eb6ffce9ebd9bba2f5e0e0e7efbf57dd070ffbcbd8a59aeeff3 SHA512 b07231484c805ac1f96f49070e2a92b624b4fdb10c534482af7484e23222acab5b2f1461b776ca892573d6930372518816155f604ca5dd12cffea5605d107758
|
@ -1,12 +0,0 @@
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -23,8 +23,7 @@
|
||||
endif()
|
||||
|
||||
# Define the library
|
||||
-add_library(${TARGET_NAME} STATIC
|
||||
- ${SOURCE_FILES})
|
||||
+add_library(${TARGET_NAME} ${SOURCE_FILES})
|
||||
|
||||
# Allow includes from include/
|
||||
target_include_directories(${TARGET_NAME}
|
@ -1,52 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM 'https://www.gentoo.org/dtd/metadata.dtd'>
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>benoit.dufour@mail.com</email>
|
||||
<name>Benoît Dufour</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A small C library with that portably invokes native file open, folder select and save dialogs. Write dialog code once and have it pop up native dialogs on all supported platforms. Avoid linking large dependencies like wxWidgets and Qt.
|
||||
|
||||
This library is based on Michael Labbe's Native File Dialog (mlabbe/nativefiledialog).
|
||||
|
||||
Features:
|
||||
|
||||
Lean C API, static library -- no C++/ObjC runtime needed
|
||||
Supports Windows (MSVC, MinGW), MacOS (Clang), and Linux (GCC, Clang)
|
||||
Zlib licensed
|
||||
Friendly names for filters (e.g. C/C++ Source files (*.c;*.cpp) instead of (*.c;*.cpp)) on platforms that support it
|
||||
Automatically append file extension on platforms where users expect it
|
||||
Support for setting a default folder path
|
||||
Support for setting a default file name (e.g. Untitled.c)
|
||||
Consistent UTF-8 support on all platforms
|
||||
Native character set (UTF-16 wchar_t) support on Windows
|
||||
Initialization and de-initialization of platform library (e.g. COM (Windows) / GTK (Linux)) decoupled from dialog functions, so applications can choose when to initialize/de-initialize
|
||||
Multiple file selection support (for file open dialog)
|
||||
Support for Vista's modern IFileDialog on Windows
|
||||
No third party dependencies
|
||||
Modern CMake build system
|
||||
Works alongside SDL2 on all platforms
|
||||
Optional C++ wrapper with unique_ptr auto-freeing semantics and optional parameters, for those using this library from C++
|
||||
|
||||
Comparison with original Native File Dialog:
|
||||
|
||||
The friendly names feature is the primary reason for breaking API compatibility with Michael Labbe's library (and hence this library probably will never be merged with it). There are also a number of tweaks that cause observable differences in this library.
|
||||
|
||||
Features added in Native File Dialog Extended:
|
||||
|
||||
Friendly names for filters
|
||||
Automatically appending file extensions
|
||||
Support for setting a default file name
|
||||
Native character set (UTF-16 wchar_t) support on Windows
|
||||
Initialization and de-initialization of platform library decoupled from file dialog functions
|
||||
Modern CMake build system
|
||||
Optional C++ wrapper with unique_ptr auto-freeing semantics and optional parameters
|
||||
|
||||
There is also significant code refractoring, especially for the Windows implementation
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<bugs-to>https://github.com/btzy/nativefiledialog-extended/issues</bugs-to>
|
||||
<remote-id type="github">btzy/nativefiledialog-extended</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
@ -1,37 +0,0 @@
|
||||
# Copyright 1999-2024 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"
|
||||
|
||||
RDEPEND="
|
||||
x11-libs/gtk+:3
|
||||
dev-libs/glib:2
|
||||
"
|
||||
DEPEND="${RDEPEND}"
|
||||
IUSE="test"
|
||||
|
||||
RESTRICT="!test? ( test )"
|
||||
#PATCHES=( "${FILESDIR}/${P}-no-static.patch" )
|
||||
|
||||
src_prepare() {
|
||||
eapply_user
|
||||
sed -e "s|DESTINATION lib|DESTINATION $(get_libdir)|g" -i src/CMakeLists.txt || die
|
||||
cmake_src_prepare
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local mycmakeargs=(
|
||||
-DNFD_BUILD_TESTS=$(usex test)
|
||||
)
|
||||
cmake_src_configure
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user