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