aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorspacok <spacok@protonmail.com>2024-08-31 13:51:05 +0200
committerHenri Gasc <gasc@eurecom.fr>2024-08-31 13:51:44 +0200
commit4455c1b4b4aa869bd921d357753ae9c84f8dc3d8 (patch)
tree1ddebc55435ae2835635ac56371a506e499933c9 /app-editors
parentapp-misc/metadata-cleaner: add 2.5.6, drop 2.5.5 (diff)
downloadguru-4455c1b4b4aa869bd921d357753ae9c84f8dc3d8.tar.gz
guru-4455c1b4b4aa869bd921d357753ae9c84f8dc3d8.tar.bz2
guru-4455c1b4b4aa869bd921d357753ae9c84f8dc3d8.zip
app-editors/imhex: add desktop-portal USE flag
Closes: https://bugs.gentoo.org/937117 Signed-off-by: Henri Gasc <gasc@eurecom.fr>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/imhex/imhex-1.35.4-r1.ebuild (renamed from app-editors/imhex/imhex-1.35.4.ebuild)8
-rw-r--r--app-editors/imhex/metadata.xml1
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
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