From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 80C9E158086 for ; Wed, 6 Oct 2021 01:13:32 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2048DE0952; Wed, 6 Oct 2021 01:13:31 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E8CD6E0952 for ; Wed, 6 Oct 2021 01:13:30 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-CHACHA20-POLY1305 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 674F3343278 for ; Wed, 6 Oct 2021 01:13:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8888151 for ; Wed, 6 Oct 2021 01:13:26 +0000 (UTC) From: "Theo Anderson" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Theo Anderson" Message-ID: <1633467053.452617a72e1de40381a006ea02a9b031f71d7634.telans@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/imhex/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-editors/imhex/Manifest app-editors/imhex/imhex-1.10.1.ebuild X-VCS-Directories: app-editors/imhex/ X-VCS-Committer: telans X-VCS-Committer-Name: Theo Anderson X-VCS-Revision: 452617a72e1de40381a006ea02a9b031f71d7634 X-VCS-Branch: master Date: Wed, 6 Oct 2021 01:13:26 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7e29b665-18a5-459a-a30f-38eb14fc02c8 X-Archives-Hash: 1b657b1ba655dceda4f7bd3fe8c1cb48 commit: 452617a72e1de40381a006ea02a9b031f71d7634 Author: Alessandro Barbieri gmail com> AuthorDate: Tue Oct 5 20:50:38 2021 +0000 Commit: Theo Anderson posteo de> CommitDate: Tue Oct 5 20:50:53 2021 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=452617a7 app-editors/imhex: add 1.10.1 Signed-off-by: Alessandro Barbieri gmail.com> app-editors/imhex/Manifest | 1 + app-editors/imhex/imhex-1.10.1.ebuild | 106 ++++++++++++++++++++++++++++++++++ 2 files changed, 107 insertions(+) diff --git a/app-editors/imhex/Manifest b/app-editors/imhex/Manifest index d9a07528d..d07eb6afc 100644 --- a/app-editors/imhex/Manifest +++ b/app-editors/imhex/Manifest @@ -1,2 +1,3 @@ DIST imhex-1.10.0.tar.gz 8509953 BLAKE2B e258693f44d5524a86c88e29152bfe9777a149236f146a16b88bc7a49d3450f1b46138649a830c7164175afaea3c0d5e76c998e3e65020627b3c978c504431bb SHA512 03d84e30d5ee064ef2c3faf5cb40965f2c94b41e4d8b3e2e3e800f079d0710f0660b4c751dc0c4516b9b19bbf57df44a102ae61fa41d56606ce1f37c9aa8313c +DIST imhex-1.10.1.tar.gz 8523483 BLAKE2B 7d73a06cfe83fdd9fa8723f1c64a752212f8e2f0dbf902f2d1da1349e53e580684263b168569f092d32c129eddba40131d8f8bd3148d6d59340dcd67bcdc8b6e SHA512 0542ce5db530989367dfc98932bd09e3020c955e2bd666122644612e1c41e2bc3d6a6374c60e7afbb4bae86c75930dfbc7a48f37a8cd8a0d85a550231f470b91 DIST imhex-1.8.1.tar.gz 1758664 BLAKE2B 62c58358810bd4f1192495001d01fc6c6fe8f28a35adc1478c8b2d0dab0fd929c0f46018c9afd51c1094cbae0c04002f4887fb2fb9377b6c645abaee006b9a03 SHA512 c6ec73a282c9eb90b58d164c29abbef3dceba09aa706a8295cecdcb429d5efa4015fac0dd0a3111eae3efe667f5b16f063624bf188a00a400fc06b008e3b51f8 diff --git a/app-editors/imhex/imhex-1.10.1.ebuild b/app-editors/imhex/imhex-1.10.1.ebuild new file mode 100644 index 000000000..511463ff0 --- /dev/null +++ b/app-editors/imhex/imhex-1.10.1.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CMAKE_BUILD_TYPE="Release" +CMAKE_MAKEFILE_GENERATOR="emake" +LLVM_MAX_SLOT=12 +PYTHON_COMPAT=( python3_{8..10} ) + +inherit cmake desktop llvm python-single-r1 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/archive/v${PV}.tar.gz -> ${P}.tar.gz" +S="${WORKDIR}/ImHex-${PV}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND=" + ${PYTHON_DEPS} + app-forensics/yara + >=dev-cpp/nlohmann_json-3.10.2 + dev-cpp/xdgpp + dev-libs/capstone + >=dev-libs/libfmt-8.0.0 + dev-libs/nativefiledialog-extended + dev-libs/openssl + dev-libs/tre + media-libs/freetype + media-libs/glfw + media-libs/glm + net-libs/mbedtls + net-misc/curl + sys-apps/file + sys-devel/llvm:${LLVM_MAX_SLOT} + virtual/libiconv + virtual/libintl +" +RDEPEND="${DEPEND}" +BDEPEND="app-admin/chrpath" + +PATCHES=( + "${FILESDIR}/${PN}-1.8.1-system-xdgpp.patch" + "${FILESDIR}/${PN}-1.8.1-system-nativefiledialog.patch" + "${FILESDIR}/${P}-fix-yara-linking.patch" + "${FILESDIR}/${P}-no-lnlohmann_json.patch" + "${FILESDIR}/${P}-link-mbedtls.patch" +) +REQUIRED_USE="${PYTHON_REQUIRED_USE}" + +src_prepare() { + rm -r external/{curl,fmt,llvm,nativefiledialog,nlohmann_json,xdgpp,yara} || die + cmake_src_prepare +} + +src_configure() { + python-single-r1_pkg_setup + local mycmakeargs=( + -DPROJECT_VERSION="${PV}" + -DPYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\"" + -DUSE_SYSTEM_CURL=ON + -DUSE_SYSTEM_FMT=ON + -DUSE_SYSTEM_LLVM=ON + -DUSE_SYSTEM_NLOHMANN_JSON=ON + -DUSE_SYSTEM_YARA=ON + ) + cmake_src_configure +} + +src_install() { + # can't use cmake_src_install, doing it manual + dobin "${BUILD_DIR}/${PN}" + insinto "/usr/$(get_libdir)" + doins "${BUILD_DIR}/plugins/builtin/builtin.hexplug" + dolib.so "${BUILD_DIR}/plugins/lib${PN}/lib${PN}.so" + insinto "/usr/share/${PN}" + doins "${S}/res/icon.ico" + doins -r "${S}/res/resources" + + chrpath -d "${ED}/usr/bin/imhex" + chrpath -d "${ED}/usr/$(get_libdir)/builtin.hexplug" + + mypythondir="${D}/$(python_get_sitedir)/imhex" + mkdir -p "${mypythondir}" || die + mv "${S}"/python_libs/lib/* "${mypythondir}" || die + python_optimize "${mypythondir}" + + # create desktop icon + make_desktop_entry "imhex" "ImHex" "/usr/share/${PN}/icon.ico" "X-Editor" + + # install docs + einstalldocs +} + +pkg_postinst() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +pkg_postrm() { + xdg_desktop_database_update + xdg_mimeinfo_database_update +}