summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Farina <zerochaos@gentoo.org>2019-03-27 12:23:44 -0400
committerRick Farina <zerochaos@gentoo.org>2019-03-27 12:23:57 -0400
commit61ffa30a03c2f8a9efe4b3412bab1da13df61d66 (patch)
tree7f744f12716e192e4e71beabefd9952d793d9c1d /dev-util/cutter
parentdev-util/ninka: Initial import. (diff)
downloadgentoo-61ffa30a03c2f8a9efe4b3412bab1da13df61d66.tar.gz
gentoo-61ffa30a03c2f8a9efe4b3412bab1da13df61d66.tar.bz2
gentoo-61ffa30a03c2f8a9efe4b3412bab1da13df61d66.zip
dev-util/cutter: bump
roughly seems to work, messages during build claim python support is disabled but it appears to link to python anyway so probably just need to patch the message if anyone cares Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Rick Farina <zerochaos@gentoo.org>
Diffstat (limited to 'dev-util/cutter')
-rw-r--r--dev-util/cutter/Manifest1
-rw-r--r--dev-util/cutter/cutter-1.8.0.ebuild61
-rw-r--r--dev-util/cutter/files/cutter-1.8.0-python3-config.patch31
3 files changed, 93 insertions, 0 deletions
diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest
index 9ca3dfe9ab5d..f7d17c0c3b79 100644
--- a/dev-util/cutter/Manifest
+++ b/dev-util/cutter/Manifest
@@ -3,3 +3,4 @@ DIST cutter-1.4.tar.gz 1067162 BLAKE2B 2f7eceffcfb3c542695e03ec72de1c99451f8278e
DIST cutter-1.6.tar.gz 1083427 BLAKE2B d51b88f2b9dd2655ef58d7075086959ec3ed59ed4b21db81a792ee165deda523a4e59378c954d0f2aa5b0af25d67329ed2119c004edc402c9b593a3b230a6fd9 SHA512 83aaadfbaccdaa514606408868c050e22d0a80a749b98a9f6df929467a16e69b0d454b25ce1cf53e35ebbfb74e9b39e2bd390057488c9bb3992a442ca306c2f1
DIST cutter-1.7.4.tar.gz 1182307 BLAKE2B 7b80c99654c430c7d694b658c5757a0f75463f02867ca33baa12bbd84a16782421350b5db63c90dd999a17b89865ecc5a87783f2a5e6df2a7395f957076c3e28 SHA512 d5750e756b51a0a140f53946b7cd7ed6f12b81c798335873781d5ecb906012fe0e257ff27e5c75e0ece6000f65a8b602530d80e6f9da22abbb8beac6573db6ac
DIST cutter-1.7.tar.gz 1099734 BLAKE2B 200621a902fabee66ebb6e02cc0efb7a705320c6071db5ce64adee0717977a72056bb5ef3ea8f8cad05488c7f031da7c24bbfc2986bb780f111f0a3a5b7a5b0e SHA512 52eea3017ebe02dee4f4e2f7109486ef2b833359959f7058fff49b4462dbc551e6d25cf31da934c9dc8489dad68ad2a3ba8b12fa60789852d13e8d3cb225a1b8
+DIST cutter-1.8.0.tar.gz 1431831 BLAKE2B 8fd54238acb83f5747679e520b40981fbffa4a19b8f96231fed1fee904cacee6cb02e5c483cfa8d00d0ced526cf6238e1a3a3a7353304fb603267fe7047822c2 SHA512 f88b581720ca969a1c34b671f31c8084bc588d5c7c3b1975d2012ac04abba953eaf87f28b72cc9ef608d14d8281aa92502efa965378fa89a9c174b049a9fca7e
diff --git a/dev-util/cutter/cutter-1.8.0.ebuild b/dev-util/cutter/cutter-1.8.0.ebuild
new file mode 100644
index 000000000000..e1e21ad2836a
--- /dev/null
+++ b/dev-util/cutter/cutter-1.8.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{6,7} )
+
+inherit qmake-utils xdg-utils gnome2-utils python-single-r1
+
+DESCRIPTION="A Qt and C++ GUI for radare2 reverse engineering framework"
+HOMEPAGE="https://www.radare.org"
+SRC_URI="https://github.com/radareorg/cutter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="jupyter webengine"
+REQUIRED_USE="webengine? ( jupyter )"
+
+DEPEND="
+ ${PYTHON_DEPS}
+ >=dev-qt/qtcore-5.9.1:5
+ >=dev-qt/qtgui-5.9.1:5
+ >=dev-qt/qtsvg-5.9.1:5
+ >=dev-qt/qtwidgets-5.9.1:5
+ dev-qt/qtnetwork:5
+ >=dev-util/radare2-3.0.0
+ jupyter? ( dev-python/jupyter )
+ webengine? ( >=dev-qt/qtwebengine-5.9.1:5[widgets] )
+"
+
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${P}-python3-config.patch"
+)
+
+src_configure() {
+ local myqmakeargs=(
+ CUTTER_ENABLE_JUPYTER=$(usex jupyter true false)
+ CUTTER_ENABLE_QTWEBENGINE=$(usex webengine true false)
+ CUTTER_ENABLE_PYTHON=true
+ PREFIX=\'${EPREFIX}/usr\'
+ )
+
+ eqmake5 "${myqmakeargs[@]}" src
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ gnome2_icon_cache_update
+}
diff --git a/dev-util/cutter/files/cutter-1.8.0-python3-config.patch b/dev-util/cutter/files/cutter-1.8.0-python3-config.patch
new file mode 100644
index 000000000000..e2ab05564721
--- /dev/null
+++ b/dev-util/cutter/files/cutter-1.8.0-python3-config.patch
@@ -0,0 +1,31 @@
+diff -Naur cutter-1.8.0-orig/src/Cutter.pro cutter-1.8.0/src/Cutter.pro
+--- cutter-1.8.0-orig/src/Cutter.pro 2019-03-27 12:14:42.436446303 -0400
++++ cutter-1.8.0/src/Cutter.pro 2019-03-27 12:16:26.971448895 -0400
+@@ -118,10 +118,6 @@
+ # Libraries
+ include(lib_radare2.pri)
+
+-!win32 {
+- CONFIG += link_pkgconfig
+-}
+-
+ CUTTER_ENABLE_PYTHON {
+ win32 {
+ PYTHON_EXECUTABLE = $$system("where python", lines)
+@@ -140,10 +136,13 @@
+ LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
+ DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
+ } else {
+- !packagesExist(python3) {
+- error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.")
++ system(type python3-config) {
++ LIBS += $$system(python3-config --libs)
++ TMP = $$system(python3-config --includes)
++ INCLUDEPATH += $$replace(TMP, "-I", "")
++ } else {
++ error("ERROR: Python 3 could not be found. Make sure it is available to python3-config.")
+ }
+- PKGCONFIG += python3
+ }
+ }
+