Gentoo Archives: gentoo-commits

From: Tony Vroon <chainsaw@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cutter/, dev-util/cutter/files/
Date: Tue, 17 Jul 2018 16:07:00
Message-Id: 1531843608.8b13e9ccaa02b2bae9ab69f0129cc98e3f420946.chainsaw@gentoo
1 commit: 8b13e9ccaa02b2bae9ab69f0129cc98e3f420946
2 Author: Tact Yoshida <otakuto.gentoo <AT> gmail <DOT> com>
3 AuthorDate: Mon Jul 16 23:13:28 2018 +0000
4 Commit: Tony Vroon <chainsaw <AT> gentoo <DOT> org>
5 CommitDate: Tue Jul 17 16:06:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b13e9cc
7
8 dev-util/cutter: bump to 1.6
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11 Closes: https://github.com/gentoo/gentoo/pull/9257
12
13 dev-util/cutter/Manifest | 1 +
14 dev-util/cutter/cutter-1.6.ebuild | 46 ++++++++++++++++++++++
15 .../cutter/files/cutter-1.6-python3-config.patch | 20 ++++++++++
16 3 files changed, 67 insertions(+)
17
18 diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest
19 index 26f360c427e..e13009f0b8b 100644
20 --- a/dev-util/cutter/Manifest
21 +++ b/dev-util/cutter/Manifest
22 @@ -1,2 +1,3 @@
23 DIST cutter-1.0.tar.gz 614826 BLAKE2B 8f75343e57bf986d80dde3dc3ceb59675d28854744d8cc5fac783514e9c200595990d4860ee45db6544537d4f367df5b62a034e298bf273e44302edfa1647c84 SHA512 af6be59be7871d21d4f665e8ecb7f8224d99ccf7d62793e989ccd780ee521641c6ec0d941b46bb82770f5d44e5c0ef2efc29f9be303385e8e757e62a54bf53b1
24 DIST cutter-1.4.tar.gz 1067162 BLAKE2B 2f7eceffcfb3c542695e03ec72de1c99451f8278e91f50abc2e87542efbd2cc73d5a52b0e5303b9cea751edf91bc71b63295edd5b32d1b2b9ed3a1443cfc92e7 SHA512 54caec67e57f2ff3908942c1ebd1e909c65204c6f31d0ec95e31f46e03364f309898006b93555ba81287c0d74faf407272226e5ec65b3148ecde8feec11ca3be
25 +DIST cutter-1.6.tar.gz 1083427 BLAKE2B d51b88f2b9dd2655ef58d7075086959ec3ed59ed4b21db81a792ee165deda523a4e59378c954d0f2aa5b0af25d67329ed2119c004edc402c9b593a3b230a6fd9 SHA512 83aaadfbaccdaa514606408868c050e22d0a80a749b98a9f6df929467a16e69b0d454b25ce1cf53e35ebbfb74e9b39e2bd390057488c9bb3992a442ca306c2f1
26
27 diff --git a/dev-util/cutter/cutter-1.6.ebuild b/dev-util/cutter/cutter-1.6.ebuild
28 new file mode 100644
29 index 00000000000..58addf19812
30 --- /dev/null
31 +++ b/dev-util/cutter/cutter-1.6.ebuild
32 @@ -0,0 +1,46 @@
33 +# Copyright 1999-2018 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +
38 +inherit qmake-utils
39 +
40 +DESCRIPTION="A Qt and C++ GUI for radare2 reverse engineering framework"
41 +HOMEPAGE="https://www.radare.org"
42 +SRC_URI="https://github.com/radareorg/cutter/archive/v${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +LICENSE="GPL-3"
45 +SLOT="0"
46 +KEYWORDS="~amd64 ~x86"
47 +IUSE="jupyter webengine"
48 +REQUIRED_USE="webengine? ( jupyter )"
49 +
50 +DEPEND="
51 + >=dev-qt/qtcore-5.9.1:5
52 + >=dev-qt/qtgui-5.9.1:5
53 + >=dev-qt/qtsvg-5.9.1:5
54 + >=dev-qt/qtwidgets-5.9.1:5
55 + >=dev-util/radare2-2.7.0
56 + jupyter? ( dev-python/jupyter )
57 + webengine? ( >=dev-qt/qtwebengine-5.9.1:5[widgets] )
58 +"
59 +
60 +RDEPEND="${DEPEND}"
61 +
62 +PATCHES=(
63 + "${FILESDIR}/${P}-python3-config.patch"
64 +)
65 +
66 +src_configure() {
67 + local myqmakeargs=(
68 + CUTTER_ENABLE_JUPYTER=$(usex jupyter true false)
69 + CUTTER_ENABLE_QTWEBENGINE=$(usex webengine true false)
70 + PREFIX=\'${EPREFIX}/usr\'
71 + )
72 +
73 + eqmake5 "${myqmakeargs[@]}" src
74 +}
75 +
76 +src_install() {
77 + emake INSTALL_ROOT="${D}" install
78 +}
79
80 diff --git a/dev-util/cutter/files/cutter-1.6-python3-config.patch b/dev-util/cutter/files/cutter-1.6-python3-config.patch
81 new file mode 100644
82 index 00000000000..51a811dbb33
83 --- /dev/null
84 +++ b/dev-util/cutter/files/cutter-1.6-python3-config.patch
85 @@ -0,0 +1,20 @@
86 +--- a/src/Cutter.pro 2018-04-24 17:43:11.000000000 +0900
87 ++++ b/src/Cutter.pro 2018-07-08 21:21:34.280748499 +0900
88 +@@ -74,11 +74,13 @@
89 + LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
90 + DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
91 + } else {
92 +- CONFIG += link_pkgconfig
93 +- !packagesExist(python3) {
94 +- error("ERROR: Python 3 could not be found. Make sure it is available to pkg-config.")
95 ++ system(type python3-config) {
96 ++ LIBS += $$system(python3-config --libs)
97 ++ TMP = $$system(python3-config --includes)
98 ++ INCLUDEPATH += $$replace(TMP, "-I", "")
99 ++ } else {
100 ++ error("ERROR: Python 3 could not be found. Make sure it is available to python3-config.")
101 + }
102 +- PKGCONFIG += python3
103 + }
104 + }
105 +