summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Helmert III <ajak@gentoo.org>2022-01-14 14:33:34 -0600
committerJohn Helmert III <ajak@gentoo.org>2022-01-14 14:35:16 -0600
commit5c52d4ab83110b1315ed928de46ff59acbe1b2b6 (patch)
treeae8ab8e615c38015d4172fb8d5ec55e8b9beeacc /dev-util/cutter/cutter-2.0.5.ebuild
parentdev-python/numpy: add 1.22.1 (diff)
downloadgentoo-5c52d4ab83110b1315ed928de46ff59acbe1b2b6.tar.gz
gentoo-5c52d4ab83110b1315ed928de46ff59acbe1b2b6.tar.bz2
gentoo-5c52d4ab83110b1315ed928de46ff59acbe1b2b6.zip
dev-util/cutter: add 2.0.5
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-util/cutter/cutter-2.0.5.ebuild')
-rw-r--r--dev-util/cutter/cutter-2.0.5.ebuild63
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-util/cutter/cutter-2.0.5.ebuild b/dev-util/cutter/cutter-2.0.5.ebuild
new file mode 100644
index 000000000000..f2b0ce29314b
--- /dev/null
+++ b/dev-util/cutter/cutter-2.0.5.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{9,10} )
+TRANS_COMMIT="67f5c654523d22c7843811e5aa852a01742f6f12"
+
+inherit cmake toolchain-funcs xdg-utils python-single-r1
+
+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/cutter/archive/v${PV}.tar.gz -> ${P}.tar.gz
+ https://github.com/rizinorg/cutter-translations/archive/${TRANS_COMMIT}.tar.gz -> cutter-translations-${TRANS_COMMIT}.tar.gz"
+
+LICENSE="CC-BY-SA-3.0 GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="graphviz"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+COMMON_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.3.1:=
+ graphviz? ( media-gfx/graphviz )"
+DEPEND="${COMMON_DEPEND}
+ dev-qt/linguist-tools:5"
+RDEPEND="${COMMON_DEPEND}"
+
+src_prepare() {
+ rmdir "${S}/src/translations" || die
+ mv "${WORKDIR}/cutter-translations-${TRANS_COMMIT}" \
+ "${S}/src/translations" || die
+
+ cmake_src_prepare
+}
+
+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
+}