commit: 4455c1b4b4aa869bd921d357753ae9c84f8dc3d8 Author: spacok <spacok <AT> protonmail <DOT> com> AuthorDate: Sat Aug 31 11:51:05 2024 +0000 Commit: Henri Gasc <gasc <AT> eurecom <DOT> fr> CommitDate: Sat Aug 31 11:51:44 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=4455c1b4
app-editors/imhex: add desktop-portal USE flag Closes: https://bugs.gentoo.org/937117 Signed-off-by: Henri Gasc <gasc <AT> eurecom.fr> app-editors/imhex/{imhex-1.35.4.ebuild => imhex-1.35.4-r1.ebuild} | 8 ++++---- app-editors/imhex/metadata.xml | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app-editors/imhex/imhex-1.35.4.ebuild b/app-editors/imhex/imhex-1.35.4-r1.ebuild similarity index 93% rename from app-editors/imhex/imhex-1.35.4.ebuild rename to app-editors/imhex/imhex-1.35.4-r1.ebuild index 427ad0bc6..07dd5e82d 100644 --- a/app-editors/imhex/imhex-1.35.4.ebuild +++ b/app-editors/imhex/imhex-1.35.4-r1.ebuild @@ -19,7 +19,7 @@ S_PATTERNS="${WORKDIR}/ImHex-Patterns-ImHex-v${PV}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64" -IUSE="+system-llvm test lto" +IUSE="+system-llvm test lto desktop-portal" RESTRICT="!test? ( test )" PATCHES=( @@ -47,7 +47,6 @@ DEPEND=" net-libs/mbedtls:= net-misc/curl sys-apps/file - sys-apps/xdg-desktop-portal sys-libs/zlib virtual/libiconv virtual/libintl @@ -57,6 +56,7 @@ BDEPEND=" system-llvm? ( sys-devel/llvm ) app-admin/chrpath gnome-base/librsvg + desktop-portal? ( sys-apps/xdg-desktop-portal ) " pkg_pretend() { @@ -83,7 +83,6 @@ src_configure() { -D IMHEX_IGNORE_BAD_CLONE=ON \ -D IMHEX_PATTERNS_PULL_MASTER=OFF \ -D IMHEX_IGNORE_BAD_COMPILER=OFF \ - -D IMHEX_USE_GTK_FILE_PICKER=OFF \ -D IMHEX_DISABLE_STACKTRACE=ON \ -D IMHEX_BUNDLE_DOTNET=OFF \ -D IMHEX_ENABLE_LTO=$(usex lto) \ @@ -91,6 +90,7 @@ src_configure() { -D IMHEX_STRICT_WARNINGS=OFF \ -D IMHEX_ENABLE_UNIT_TESTS=$(usex test) \ -D IMHEX_ENABLE_PRECOMPILED_HEADERS=OFF \ + -D IMHEX_USE_GTK_FILE_PICKER=$(usex desktop-portal) \ -D IMHEX_VERSION="${PV}" \ -D PROJECT_VERSION="${PV}" \ -D USE_SYSTEM_CAPSTONE=ON \ @@ -98,7 +98,7 @@ src_configure() { -D USE_SYSTEM_LLVM=$(usex system-llvm) \ -D USE_SYSTEM_NFD=ON \ -D USE_SYSTEM_NLOHMANN_JSON=ON \ - -D USE_SYSTEM_YARA=ON + -D USE_SYSTEM_YARA=ON \ ) cmake_src_configure diff --git a/app-editors/imhex/metadata.xml b/app-editors/imhex/metadata.xml index 276772b0c..18ad0a756 100644 --- a/app-editors/imhex/metadata.xml +++ b/app-editors/imhex/metadata.xml @@ -12,6 +12,7 @@ </upstream> <use> <flag name="system-llvm">Use the system LLVM installation</flag> + <flag name="desktop-portal">Use sys-apps/xdg-desktop-portal file picker instead of the GTK one</flag> </use> <longdescription lang="en"> Features