cutter: 1.7.4 bump

This commit is contained in:
blshkv 2019-01-22 13:27:11 +08:00
parent 9f8e5697c4
commit fd145de56c
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
3 changed files with 78 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST cutter-1.7.3.tar.gz 1174352 BLAKE2B 7fbab43442d9bb6e49a6437db9b763112b1c4af3b9fdf849caa6d06b528e9f388e98f75baf117fbe4903de05ba3ddbb0c850c03f392f4aa1c77766e0911b366f SHA512 c764f637158476a8095fa1adfc6ba6fe2e35c01239995514f4b110e5ee3503c9b575737fb6d6886ec93f3468b9d317948e36bd442a32595b04da71d99ae4e853
DIST cutter-1.7.4.tar.gz 1182307 BLAKE2B 7b80c99654c430c7d694b658c5757a0f75463f02867ca33baa12bbd84a16782421350b5db63c90dd999a17b89865ecc5a87783f2a5e6df2a7395f957076c3e28 SHA512 d5750e756b51a0a140f53946b7cd7ed6f12b81c798335873781d5ecb906012fe0e257ff27e5c75e0ece6000f65a8b602530d80e6f9da22abbb8beac6573db6ac

View file

@ -0,0 +1,57 @@
# Copyright 1999-2019 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit qmake-utils xdg-utils gnome2-utils
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="
>=dev-qt/qtcore-5.9.1:5
>=dev-qt/qtgui-5.9.1:5
>=dev-qt/qtnetwork-5.9.1:5
>=dev-qt/qtsvg-5.9.1:5
>=dev-qt/qtwidgets-5.9.1:5
>=dev-util/radare2-3.1.3
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)
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
}

View file

@ -0,0 +1,20 @@
--- a/src/Cutter.pro 2018-04-24 17:43:11.000000000 +0900
+++ b/src/Cutter.pro 2018-07-08 21:21:34.280748499 +0900
@@ -74,11 +74,13 @@
LIBS += -F$$PYTHON_FRAMEWORK_DIR -framework Python
DEFINES += MACOS_PYTHON_FRAMEWORK_BUNDLED
} else {
- CONFIG += link_pkgconfig
- !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
}
}