summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-06-01 21:04:03 -0700
committerJohn Helmert III <ajak@gentoo.org>2023-06-01 21:04:17 -0700
commit25225dd84dd0b2d9795f489e8e4779d33cbe0dad (patch)
tree42b9ea09932471cf78eea4c792cb2f638ca9d970 /dev-util
parentdev-lang/rust: enable py3.12 in 1.70.0 (diff)
downloadgentoo-25225dd84dd0b2d9795f489e8e4779d33cbe0dad.tar.gz
gentoo-25225dd84dd0b2d9795f489e8e4779d33cbe0dad.tar.bz2
gentoo-25225dd84dd0b2d9795f489e8e4779d33cbe0dad.zip
dev-util/cutter: add 2.2.1
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/cutter/Manifest1
-rw-r--r--dev-util/cutter/cutter-2.2.1.ebuild56
2 files changed, 57 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest
index bc30660f16cb..96a7f6de50d9 100644
--- a/dev-util/cutter/Manifest
+++ b/dev-util/cutter/Manifest
@@ -1 +1,2 @@
DIST cutter-2.2.0.tar.gz 10750189 BLAKE2B 00626b1fe01044e6a718b81bc2452204ed35003a50e73ec083838610d50b7b690fb5783fd2fdc7f31c35390a664862c488c48f156ebbffdc16ffb39e8e943ebc SHA512 5435f700603f144903e9d93c21f7561b31f1734a2558fe5d11d62d50a635c800e8fb62d866b3b4186d665f57ce9271665dcae8423f0009c3e0bb63bcfa168c1c
+DIST cutter-2.2.1.tar.gz 11028914 BLAKE2B 4afb93940a3878b254d0c8cff37f63a40a2ba6d581d0ac086b0fe12fb914b161375c64aa18369892feae5da1726c047f96b2405d48f4cdba7532ef839c557ef6 SHA512 1036679049666971bc3dc8f54067d822bc6df798138790fdba2f70932f3034aceeceb10cb732c8257539b128a2d0b10f684d2d6db787402f70bfb1bf13dbbf39
diff --git a/dev-util/cutter/cutter-2.2.1.ebuild b/dev-util/cutter/cutter-2.2.1.ebuild
new file mode 100644
index 000000000000..2ced0df3a4d9
--- /dev/null
+++ b/dev-util/cutter/cutter-2.2.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9..11} )
+
+inherit cmake toolchain-funcs xdg-utils python-single-r1
+
+MY_P="${PN^}-v${PV}"
+
+DESCRIPTION="A Qt and C++ GUI for rizin reverse engineering framework"
+HOMEPAGE="https://cutter.re https://github.com/rizinorg/cutter/"
+SRC_URI="https://github.com/rizinorg/${PN}/releases/download/v${PV}/${MY_P}-src.tar.gz -> ${P}.tar.gz"
+S="${WORKDIR}/${MY_P}"
+
+LICENSE="CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="${PYTHON_DEPS}
+ dev-qt/qtcore:5
+ dev-qt/qtgui:5
+ dev-qt/qtnetwork:5
+ dev-qt/qtsvg:5
+ dev-qt/qtwidgets:5
+ >=dev-util/rizin-0.5.0:=
+ graphviz? ( media-gfx/graphviz )"
+RDEPEND="${DEPEND}
+ !net-analyzer/cutter" # https://bugs.gentoo.org/897738
+BDEPEND="dev-qt/linguist-tools:5"
+
+src_configure() {
+ local mycmakeargs=(
+ -DCMAKE_CXX_COMPILER="$(tc-getCXX)"
+ -DCMAKE_C_COMPILER="$(tc-getCC)"
+ -DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
+ -DCUTTER_ENABLE_GRAPHVIZ="$(usex graphviz)"
+ -DCUTTER_ENABLE_KSYNTAXHIGHLIGHTING=OFF
+ -DCUTTER_ENABLE_PYTHON=ON
+ -DCUTTER_USE_ADDITIONAL_RIZIN_PATHS=OFF
+ -DCUTTER_USE_BUNDLED_RIZIN=OFF
+ )
+
+ cmake_src_configure
+}
+
+pkg_postinst() {
+ xdg_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_icon_cache_update
+}