summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-09-10 16:11:47 -0500
committerJohn Helmert III <ajak@gentoo.org>2022-09-10 16:22:03 -0500
commitd8e64a26c24f5696cd94bc76d244975d2a262247 (patch)
tree929cd5b5c3684f7117bfbd58dec6c93e7986e805 /dev-util/cutter
parentnet-nds/nsscache: bump, needs more testing before ~keywording (diff)
downloadgentoo-d8e64a26c24f5696cd94bc76d244975d2a262247.tar.gz
gentoo-d8e64a26c24f5696cd94bc76d244975d2a262247.tar.bz2
gentoo-d8e64a26c24f5696cd94bc76d244975d2a262247.zip
dev-util/cutter: add 2.1.1
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.1.1.ebuild55
2 files changed, 56 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest
index c75be08b90cc..77184ae8f7ab 100644
--- a/dev-util/cutter/Manifest
+++ b/dev-util/cutter/Manifest
@@ -1,2 +1,3 @@
DIST cutter-2.1.0.tar.gz 2732264 BLAKE2B 463e0f8968c61c7d3b7e3c7a570c9f7c625e4c024306c0284665d39de460bc6780eedd114f51ec722bec6ab7d43077362b676562d0a89665886fbabc3240def1 SHA512 444e27005b9348397097c0c2fd047a557dfd5e8d5d43df6a2ab345da48e26537025ce6f81b256fe765dc59bf5944952965637b84e96136b3025c3dc5bca3f2d6
+DIST cutter-2.1.1.tar.gz 10520984 BLAKE2B 0770dbf72209f8796902665d3b32f64bcc6e7b03268ea39587a6395f0a53b8b56f5072d788320303f4d6ecc445e919e513b32a6c76538986a01a30321e2d74a0 SHA512 50142e529bc5e2a0e93ae6fa68d913a52e67c59b5ba67f7a83f6fafd251edd27f56d197719f91c905820c7074b5b2e9e651c3163c4e3200604624ab36f4219b9
DIST cutter-translations-974298653ba71b958e1b6c83f6011f5fefff6236.tar.gz 595073 BLAKE2B 4445c4c16c47a05c74816d88a68fda97037c45caf7508fc1162f4978a0b3cb194653e879b77f6fc5be2f264a929ac11c4fc2aee68ceed6a23447094d0b249cdd SHA512 11450631602e7bd81132650b3edd028d56b2f6343a9561fe8bf3281427d8d22b0296651414756236b8544f719c8d4fc11be44a843532c8c32fe21dd7a82066d2
diff --git a/dev-util/cutter/cutter-2.1.1.ebuild b/dev-util/cutter/cutter-2.1.1.ebuild
new file mode 100644
index 000000000000..6f475ad8994e
--- /dev/null
+++ b/dev-util/cutter/cutter-2.1.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2022 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.4.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
+}