summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2023-02-25 10:33:26 -0600
committerJohn Helmert III <ajak@gentoo.org>2023-02-25 10:35:06 -0600
commitb2e91c787407c611e866a0f792ded5d4728cf3f3 (patch)
tree7f6cfea1ddbb74599b1d61441421f812d4376591 /dev-util/cutter
parentapp-backup/rdiff-backup: add forgotten pypi inherit (diff)
downloadgentoo-b2e91c787407c611e866a0f792ded5d4728cf3f3.tar.gz
gentoo-b2e91c787407c611e866a0f792ded5d4728cf3f3.tar.bz2
gentoo-b2e91c787407c611e866a0f792ded5d4728cf3f3.zip
dev-util/cutter: add 2.2.0
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-util/cutter')
-rw-r--r--dev-util/cutter/Manifest1
-rw-r--r--dev-util/cutter/cutter-2.2.0.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest
index 0ebecdfcf042..44af4d8748ca 100644
--- a/dev-util/cutter/Manifest
+++ b/dev-util/cutter/Manifest
@@ -1 +1,2 @@
DIST cutter-2.1.2.tar.gz 10520198 BLAKE2B f19ebdb09be8df270f72cfd17c8e3bf0172fd4506942e33c0f57d771f483ef365504b05eaf030eff7d1b4f4520484f6731d3e60eafaf4d8d2481718d48ad8d77 SHA512 f01cc08085587be00c5b64f0797180d74a02e2cce60c8ec040d831ca4b74fe371e34b284a293a0d88447ebdca4d72718aaf179ab3bb4db3bd6659deaae732272
+DIST cutter-2.2.0.tar.gz 10750189 BLAKE2B 00626b1fe01044e6a718b81bc2452204ed35003a50e73ec083838610d50b7b690fb5783fd2fdc7f31c35390a664862c488c48f156ebbffdc16ffb39e8e943ebc SHA512 5435f700603f144903e9d93c21f7561b31f1734a2558fe5d11d62d50a635c800e8fb62d866b3b4186d665f57ce9271665dcae8423f0009c3e0bb63bcfa168c1c
diff --git a/dev-util/cutter/cutter-2.2.0.ebuild b/dev-util/cutter/cutter-2.2.0.ebuild
new file mode 100644
index 000000000000..a50f8070c0da
--- /dev/null
+++ b/dev-util/cutter/cutter-2.2.0.ebuild
@@ -0,0 +1,55 @@
+# 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}"
+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
+}