# Copyright 1999-2026 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 LLVM_COMPAT=( {15..21} ) inherit cmake desktop llvm-r2 toolchain-funcs flag-o-matic xdg-utils DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight" HOMEPAGE="https://github.com/WerWolv/ImHex" SRC_URI=" https://github.com/WerWolv/ImHex/releases/download/v${PV}/Full.Sources.tar.gz -> ${P}.tar.gz https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${PV}.tar.gz -> ${PN}-patterns-${PV}.tar.gz " S="${WORKDIR}/ImHex" S_PATTERNS="${WORKDIR}/ImHex-Patterns-ImHex-v${PV}" LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64" IUSE="capstone +desktop-portal lto lz4 +system-llvm test" RESTRICT="!test? ( test )" # Skip cmake version detection, as there are a lot of dependencies # (that we do not use) that wants cmake < 3.5, so it prints a warning CMAKE_QA_COMPAT_SKIP=yes PATCHES=( # If virtual/dotnet-sdk is installed on your system, then cmake # will use it at some point and try to access internet. # Because it did not cause any issue, we can disable it "${FILESDIR}/${PN}-remove_dotnet.patch" # Correct the cmake MbedTLS search call "${FILESDIR}/${PN}-cmake_mbedtls.patch" # Remove -Werror "${FILESDIR}/${PN}-remove_Werror.patch" ) DOCS+=( LICENSE PLUGINS.md changelog.md ) DEPEND=" app-arch/bzip2 app-arch/xz-utils app-arch/zstd:= >=app-forensics/yara-4.2.0:= dev-libs/boost:= dev-libs/md4c:= >=dev-libs/libfmt-11.0.2:= >=dev-libs/nativefiledialog-extended-1.2.1 media-libs/fontconfig media-libs/freetype >=media-libs/glfw-3.4[X] net-libs/libssh2 net-libs/mbedtls:= net-misc/curl sys-apps/dbus sys-apps/file virtual/zlib:= virtual/libiconv virtual/libintl capstone? ( >=dev-libs/capstone-5.0.3:=