Date: Mon, 11 Mar 2019 13:54:02 +0000 (UTC) From: Alexey Dokuchaev <danfe@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r495353 - in head/devel: . redasm redasm/files Message-ID: <201903111354.x2BDs20u087851@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: danfe Date: Mon Mar 11 13:54:02 2019 New Revision: 495353 URL: https://svnweb.freebsd.org/changeset/ports/495353 Log: Add a port of REDasm, an interactive, multiarchitecture disassembler written in modern C++11 using Qt5 as UI Framework. WWW: https://redasm.io/ Added: head/devel/redasm/ head/devel/redasm/Makefile (contents, props changed) head/devel/redasm/distinfo (contents, props changed) head/devel/redasm/files/ head/devel/redasm/files/patch-git-779ffd9 (contents, props changed) head/devel/redasm/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon Mar 11 12:17:46 2019 (r495352) +++ head/devel/Makefile Mon Mar 11 13:54:02 2019 (r495353) @@ -5519,6 +5519,7 @@ SUBDIR += readline SUBDIR += rebar SUBDIR += rebar3 + SUBDIR += redasm SUBDIR += redo SUBDIR += regexx SUBDIR += regexxer Added: head/devel/redasm/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/redasm/Makefile Mon Mar 11 13:54:02 2019 (r495353) @@ -0,0 +1,35 @@ +# Created by: Alexey Dokuchaev <danfe@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= redasm +PORTVERSION= 2.0 +DISTVERSIONPREFIX= v +CATEGORIES= devel + +MAINTAINER= danfe@FreeBSD.org +COMMENT= Interactive, multiarchitecture disassembler + +LICENSE= GPLv3 + +USES= cmake compiler:c++11-lang qt:5 +USE_QT= buildtools_build qmake_build core gui network webengine +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= REDasmOrg +GH_PROJECT= REDasm +GH_TUPLE= REDasmOrg:REDasm-Library:2059871:libra/LibREDasm \ + Dax89:QHexView:e96ea40:qhv/QHexView \ + aquynh:capstone:4948fd1:cs/LibREDasm/depends/capstone + +PLIST_FILES= bin/REDasm lib/LibREDasm.so + +post-patch: + @${REINPLACE_CMD} -e 's,formats\.size(),formatsCount,' \ + ${WRKSRC}/mainwindow.cpp + +do-install: + ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/REDasm ${STAGEDIR}${PREFIX}/bin + ${INSTALL_LIB} ${BUILD_WRKSRC}/LibREDasm.so ${STAGEDIR}${PREFIX}/lib + +.include <bsd.port.mk> Added: head/devel/redasm/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/redasm/distinfo Mon Mar 11 13:54:02 2019 (r495353) @@ -0,0 +1,9 @@ +TIMESTAMP = 1551691545 +SHA256 (REDasmOrg-REDasm-v2.0_GH0.tar.gz) = e942b475d236e0ff1486ec09d6367dff71849002ac9d8fd5b16514cfa9b975f9 +SIZE (REDasmOrg-REDasm-v2.0_GH0.tar.gz) = 12201231 +SHA256 (REDasmOrg-REDasm-Library-2059871_GH0.tar.gz) = 880587635ed70cdca932dd60db5839a60b9a31363385283489123072e6a883d7 +SIZE (REDasmOrg-REDasm-Library-2059871_GH0.tar.gz) = 344807 +SHA256 (Dax89-QHexView-e96ea40_GH0.tar.gz) = 83f7740a1948a91a5d023784b6acd404fee1cdd35038db2328415beb1f9e7a92 +SIZE (Dax89-QHexView-e96ea40_GH0.tar.gz) = 160204 +SHA256 (aquynh-capstone-4948fd1_GH0.tar.gz) = 8b004faf0c6fa696fe49de13f01da8cebb735459a10c9b08e7d244a02a776f6b +SIZE (aquynh-capstone-4948fd1_GH0.tar.gz) = 3408171 Added: head/devel/redasm/files/patch-git-779ffd9 ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/redasm/files/patch-git-779ffd9 Mon Mar 11 13:54:02 2019 (r495353) @@ -0,0 +1,41 @@ +https://github.com/REDasmOrg/REDasm/commit/779ffd95fc331a1c879bab70b30f5e7bb781f69d + +--- themes/dark.json.orig ++++ themes/dark.json +@@ -43,6 +43,11 @@ + "instruction_jmp_c": "#e67e22", + + "graph_bg": "#262626", ++ "graph_edge": "#3498db", ++ "graph_edge_true": "#2ecc71", ++ "graph_edge_false": "#e74c3c", ++ "graph_edge_loop": "#1abc9c", ++ "graph_edge_loop_c": "#f47cc3", + + "address_list_fg": "#ef717a", + "segment_name_fg": "#2dcb71", +--- themes/light.json.orig ++++ themes/light.json +@@ -29,6 +29,11 @@ + "instruction_jmp_c": "#d95459", + + "graph_bg": "azure", ++ "graph_edge": "#297fb9", ++ "graph_edge_true": "#27ae60", ++ "graph_edge_false": "#c0392b", ++ "graph_edge_loop": "#2d5036", ++ "graph_edge_loop_c": "#8e44ad", + + "address_list_fg": "darkblue", + "segment_name_fg": "darkgreen", +--- widgets/disassemblergraphview/disassemblergraphview.cpp.orig ++++ widgets/disassemblergraphview/disassemblergraphview.cpp +@@ -115,7 +115,7 @@ QString DisassemblerGraphView::getNodeContent(const REDasm::Graphing::Node *n) c + QColor DisassemblerGraphView::getEdgeColor(const REDasm::Graphing::Node *from, const REDasm::Graphing::Node *to) const + { + const REDasm::Graphing::FunctionBlock* fb = static_cast<const REDasm::Graphing::FunctionBlock*>(from); +- return QColor(QString::fromStdString(fb->color(static_cast<const REDasm::Graphing::FunctionBlock*>(to)))); ++ return THEME_VALUE(QString::fromStdString(fb->style(static_cast<const REDasm::Graphing::FunctionBlock*>(to)))); + } + + void DisassemblerGraphView::initializePage() Added: head/devel/redasm/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/redasm/pkg-descr Mon Mar 11 13:54:02 2019 (r495353) @@ -0,0 +1,5 @@ +REDasm is an interactive, multiarchitecture disassembler written in modern +C++11 using Qt5 as UI Framework. Its core is modular and it can be easily +extended in order to support new file formats and instruction sets. + +WWW: https://redasm.io/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903111354.x2BDs20u087851>