diff options
author | John Helmert III <ajak@gentoo.org> | 2022-07-04 14:50:52 -0500 |
---|---|---|
committer | John Helmert III <ajak@gentoo.org> | 2022-07-04 15:01:09 -0500 |
commit | 6d7ac91e4c2fc168cfbeaa9413723ad46efacfba (patch) | |
tree | 7b76470e2d3e5fad55bf8943ab692953c2eed3f5 /dev-util/cutter | |
parent | dev-util/rizin: add 0.4.0, enable py3.11 (diff) | |
download | gentoo-6d7ac91e4c2fc168cfbeaa9413723ad46efacfba.tar.gz gentoo-6d7ac91e4c2fc168cfbeaa9413723ad46efacfba.tar.bz2 gentoo-6d7ac91e4c2fc168cfbeaa9413723ad46efacfba.zip |
dev-util/cutter: add 2.1.0
Signed-off-by: John Helmert III <ajak@gentoo.org>
Diffstat (limited to 'dev-util/cutter')
-rw-r--r-- | dev-util/cutter/Manifest | 2 | ||||
-rw-r--r-- | dev-util/cutter/cutter-2.1.0.ebuild | 63 |
2 files changed, 65 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest index 38164aff08f1..63622325cb2b 100644 --- a/dev-util/cutter/Manifest +++ b/dev-util/cutter/Manifest @@ -1,2 +1,4 @@ DIST cutter-2.0.5.tar.gz 2724670 BLAKE2B 67352247dd4f16c916a669f72b3fd432c9fd122df39be3af5b08d288fab1b83876dbc891df8cfcebe211a9815930855add0ede7cd86667636ebcba1a43065957 SHA512 96badcd2ea00c2b50417b7019933443831fec3a4769cf7ab66505e898d3f2c693f24bbe994ad70f66a456908e621f053a96b21a2999290dc47c4219b6c639bfd +DIST cutter-2.1.0.tar.gz 2732264 BLAKE2B 463e0f8968c61c7d3b7e3c7a570c9f7c625e4c024306c0284665d39de460bc6780eedd114f51ec722bec6ab7d43077362b676562d0a89665886fbabc3240def1 SHA512 444e27005b9348397097c0c2fd047a557dfd5e8d5d43df6a2ab345da48e26537025ce6f81b256fe765dc59bf5944952965637b84e96136b3025c3dc5bca3f2d6 DIST cutter-translations-67f5c654523d22c7843811e5aa852a01742f6f12.tar.gz 719126 BLAKE2B 24c518c26a47e5eeb9d01ddbe835f9864588954e96820d562afb09f5da3352f807b7c3642d589a9ec81faaefd93fdbdf9c9f7cfc56cfd51ffe6aeaa920385913 SHA512 c2caa0e5d6cfa807cbe9117eb84b2931715e303a7d9902a6aaa58ec71b764d2ae9f0836981bd8eb9c91469b9776d93ab12b986ee068922559b5deaab28f54598 +DIST cutter-translations-974298653ba71b958e1b6c83f6011f5fefff6236.tar.gz 595073 BLAKE2B 4445c4c16c47a05c74816d88a68fda97037c45caf7508fc1162f4978a0b3cb194653e879b77f6fc5be2f264a929ac11c4fc2aee68ceed6a23447094d0b249cdd SHA512 11450631602e7bd81132650b3edd028d56b2f6343a9561fe8bf3281427d8d22b0296651414756236b8544f719c8d4fc11be44a843532c8c32fe21dd7a82066d2 diff --git a/dev-util/cutter/cutter-2.1.0.ebuild b/dev-util/cutter/cutter-2.1.0.ebuild new file mode 100644 index 000000000000..76227a0f622e --- /dev/null +++ b/dev-util/cutter/cutter-2.1.0.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..11} ) +TRANS_COMMIT="974298653ba71b958e1b6c83f6011f5fefff6236" + +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.4.0:= + 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 +} |