Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: app-editors/imhex/
Date: Thu, 08 Sep 2022 09:31:58
Message-Id: 1662610393.5168f8765c50848d921ad059140ec3a4edbfe0f6.andrewammerlaan@gentoo
1 commit: 5168f8765c50848d921ad059140ec3a4edbfe0f6
2 Author: Huang Rui <vowstar <AT> gmail <DOT> com>
3 AuthorDate: Thu Sep 8 04:13:13 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Thu Sep 8 04:13:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=5168f876
7
8 app-editors/imhex: drop 1.21.2
9
10 Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
11
12 app-editors/imhex/Manifest | 2 -
13 app-editors/imhex/imhex-1.21.2.ebuild | 124 ----------------------------------
14 2 files changed, 126 deletions(-)
15
16 diff --git a/app-editors/imhex/Manifest b/app-editors/imhex/Manifest
17 index 40d82ba74..2f2195d49 100644
18 --- a/app-editors/imhex/Manifest
19 +++ b/app-editors/imhex/Manifest
20 @@ -1,4 +1,2 @@
21 -DIST imhex-1.21.2.tar.gz 23473112 BLAKE2B 5e1dbcf246fc2b2ac57636efee71574eb38ee2d04678a6e09b4d8c2d61da01021bb169fa40a18725d609a3daae1bf9a4ca8aacbb21b6d381c3ff1345d9f788c6 SHA512 e5dd9c5b81f739ee37cc51cf37aa6b866b1af8b28f06e0731612612c5a56d5d68d9d50c20ebb9304a51efb88c07fde72656dcc7d6c249dd827d5d15e44de9698
22 DIST imhex-1.22.0.tar.gz 23801722 BLAKE2B db82e9fb74244cc591da60f6b3ae7d66db2907a216f5246973c5c3012e713c01d426fcf2d87ddb6ac92a0cff8f2a89119341f2f806bcce59d117c6a15ca58038 SHA512 e29015b8850c76f43f42920b1ee93af72cbd28a12a1e555177f580270da6f71391f638cadb34333fa3a7db8f3fe15acb666b5d8b67acde9dcbe5c468e2e6b06f
23 -DIST imhex-patterns-1.21.2.tar.gz 4672663 BLAKE2B a0c4a9917ad44a4af0e01e67210bb025a01e6775b327248ba9259d36ea0596b2be74aed758d478b3f5c0d0aea669ed333c8aca2b7e43e275abc833bbdcef2490 SHA512 c5694bd5cc6a609dd8133f0566fbf3bfd4669cf4a20523d10afddbc39e4b7a8d52d8fdecff95883e40b6f06f858e1373c8dbe0713fd7f54380dac5ee3105b9ce
24 DIST imhex-patterns-1.22.0.tar.gz 4749715 BLAKE2B ae157b664f7a0e163d915c21ca34d5e207ee5a51896db2e8370a66574d68375eb6d31f872dd20f8ba592f2270a7615f921e840f6ffb2a6ee4253e30689245b60 SHA512 2ce01986993283a254e59d44eb3948180cb4038f2b0b3fb1aa93154509500c8eb7315cf7b5aa3ee1887456936dd68c3fc8bac52f2a0c90a3b0567a4f0253dede
25
26 diff --git a/app-editors/imhex/imhex-1.21.2.ebuild b/app-editors/imhex/imhex-1.21.2.ebuild
27 deleted file mode 100644
28 index 980671dc4..000000000
29 --- a/app-editors/imhex/imhex-1.21.2.ebuild
30 +++ /dev/null
31 @@ -1,124 +0,0 @@
32 -# Copyright 1999-2022 Gentoo Authors
33 -# Distributed under the terms of the GNU General Public License v2
34 -
35 -EAPI=8
36 -
37 -CMAKE_BUILD_TYPE="Release"
38 -CMAKE_MAKEFILE_GENERATOR="emake"
39 -PYTHON_COMPAT=( python3_{8..11} )
40 -
41 -inherit cmake desktop llvm python-r1 xdg
42 -
43 -DESCRIPTION="A hex editor for reverse engineers, programmers, and eyesight"
44 -HOMEPAGE="https://github.com/WerWolv/ImHex"
45 -SRC_URI="
46 - https://github.com/WerWolv/ImHex/releases/download/v${PV}/Full.Sources.tar.gz -> ${P}.tar.gz
47 - https://github.com/WerWolv/ImHex-Patterns/archive/refs/tags/ImHex-v${PV}.tar.gz -> ${PN}-patterns-${PV}.tar.gz
48 -"
49 -S="${WORKDIR}/ImHex"
50 -S_PATTERNS="${WORKDIR}/ImHex-Patterns-ImHex-v${PV}"
51 -
52 -LICENSE="GPL-2"
53 -SLOT="0"
54 -KEYWORDS="~amd64"
55 -IUSE="python"
56 -REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 -
58 -DEPEND="
59 - python? ( ${PYTHON_DEPS} )
60 - app-forensics/yara
61 - dev-libs/capstone
62 - >=dev-libs/libfmt-8.0.0
63 - dev-libs/openssl
64 - dev-libs/tre
65 - media-libs/freetype
66 - media-libs/glfw
67 - media-libs/glm
68 - net-libs/libssh2
69 - net-libs/mbedtls
70 - net-misc/curl
71 - sys-apps/dbus
72 - sys-apps/file
73 - sys-apps/xdg-desktop-portal
74 - virtual/libiconv
75 - virtual/libintl
76 -"
77 -RDEPEND="${DEPEND}"
78 -BDEPEND="
79 - app-admin/chrpath
80 - >=dev-cpp/nlohmann_json-3.10.2
81 - gnome-base/librsvg
82 - sys-devel/llvm
83 -"
84 -
85 -PATCHES=(
86 - "${FILESDIR}/${PN}-1.21.2-fix-compiler-check.patch"
87 - "${FILESDIR}/${PN}-1.21.2-fix-build-with-clang.patch"
88 - "${FILESDIR}/${PN}-1.21.2-fix-dedup-resources-directories.patch"
89 - "${FILESDIR}/${PN}-1.21.2-fix-copy-elision-not-applying.patch"
90 - "${FILESDIR}/${PN}-1.21.2-fix-use-c-23-standard.patch"
91 - "${FILESDIR}/${PN}-1.21.2-fix-llvmdemangle.patch"
92 -)
93 -
94 -src_configure() {
95 - use python && python_setup
96 -
97 - local mycmakeargs=(
98 - -D CMAKE_SKIP_RPATH=ON \
99 - -D IMHEX_IGNORE_BAD_CLONE=ON \
100 - -D IMHEX_OFFLINE_BUILD=ON \
101 - -D IMHEX_STRIP_RELEASE=OFF \
102 - -D IMHEX_VERSION="${PV}" \
103 - -D PROJECT_VERSION="${PV}" \
104 - -D USE_SYSTEM_CAPSTONE=ON \
105 - -D USE_SYSTEM_CURL=ON \
106 - -D USE_SYSTEM_FMT=ON \
107 - -D USE_SYSTEM_LLVM=ON \
108 - -D USE_SYSTEM_NLOHMANN_JSON=ON \
109 - -D USE_SYSTEM_YARA=ON
110 - )
111 - if use python; then
112 - mycmakeargs+=( -D PYTHON_VERSION_MAJOR_MINOR="\"${EPYTHON/python/}\"" )
113 - fi
114 - cmake_src_configure
115 -}
116 -
117 -src_install() {
118 - # Can't use cmake_src_install, doing it manual
119 - # Executable
120 - dobin "${BUILD_DIR}/${PN}"
121 - chrpath -d "${ED}/usr/bin/${PN}"
122 - # Shared lib and plugins
123 - dolib.so "${BUILD_DIR}"/lib/lib"${PN}"/lib"${PN}".so*
124 - chrpath -d "${ED}"/usr/bin/lib"${PN}"/lib"${PN}".so*
125 - exeinto "/usr/$(get_libdir)/${PN}/plugins"
126 - for plugin in builtin; do
127 - doexe "${BUILD_DIR}/plugins/${plugin}.hexplug"
128 - chrpath -d "${ED}/usr/$(get_libdir)/${PN}/plugins/${plugin}.hexplug"
129 - done
130 - # Desktop and icon files
131 - domenu "${S}/dist/${PN}.desktop"
132 - newicon -s scalable "${S}/resources/icon.svg" "${PN}.svg"
133 - for i in 16 22 24 32 36 48 64 72 96 128 192 256 512; do
134 - mkdir "${T}/${i}x${i}" || die
135 - rsvg-convert -a -f png -w "${i}" -o "${T}/${i}x${i}/${PN}.png" "${S}/resources/icon.svg" || die
136 - doicon -s "${i}" "${T}/${i}x${i}/${PN}.png"
137 - done
138 -
139 - if use python; then
140 - installation() {
141 - mypythondir="${D}/$(python_get_sitedir)/${PN}"
142 - mkdir -p "${mypythondir}" || die
143 - cp -r "${S}"/resources/lib/python/lib/* "${mypythondir}" || die
144 - python_optimize "${mypythondir}"
145 - }
146 - python_foreach_impl installation
147 - fi
148 -
149 - # Install docs
150 - einstalldocs
151 -
152 - # Install patterns
153 - insinto /usr/share/imhex
154 - doins -r "${S_PATTERNS}"/*
155 -}