diff --git a/dev-util/cutter/Manifest b/dev-util/cutter/Manifest new file mode 100644 index 000000000..35a38fd6f --- /dev/null +++ b/dev-util/cutter/Manifest @@ -0,0 +1 @@ +DIST cutter-1.7.3.tar.gz 1174352 BLAKE2B 7fbab43442d9bb6e49a6437db9b763112b1c4af3b9fdf849caa6d06b528e9f388e98f75baf117fbe4903de05ba3ddbb0c850c03f392f4aa1c77766e0911b366f SHA512 c764f637158476a8095fa1adfc6ba6fe2e35c01239995514f4b110e5ee3503c9b575737fb6d6886ec93f3468b9d317948e36bd442a32595b04da71d99ae4e853 diff --git a/dev-util/cutter/cutter-1.7.3.ebuild b/dev-util/cutter/cutter-1.7.3.ebuild new file mode 100644 index 000000000..2eb6bed3e --- /dev/null +++ b/dev-util/cutter/cutter-1.7.3.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 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/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 +} diff --git a/dev-util/cutter/files/cutter-1.7.3-python3-config.patch b/dev-util/cutter/files/cutter-1.7.3-python3-config.patch new file mode 100644 index 000000000..51a811dbb --- /dev/null +++ b/dev-util/cutter/files/cutter-1.7.3-python3-config.patch @@ -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 + } + } + diff --git a/dev-util/cutter/metadata.xml b/dev-util/cutter/metadata.xml new file mode 100644 index 000000000..f2af393db --- /dev/null +++ b/dev-util/cutter/metadata.xml @@ -0,0 +1,19 @@ + + + + + otakuto.gentoo@gmail.com + Tact Yoshida + + + proxy-maint@gentoo.org + Proxy Maintainers + + + radareorg/cutter + + + Add support for jupyter notebook + Use dev-qt/qtwebengine for in-app jupyter browser + +