From owner-svn-ports-all@freebsd.org Mon Mar 11 13:54:04 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 69EBC1543DCC; Mon, 11 Mar 2019 13:54:04 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0EAD796EAE; Mon, 11 Mar 2019 13:54:04 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 010CCBA78; Mon, 11 Mar 2019 13:54:04 +0000 (UTC) (envelope-from danfe@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2BDs3c9087856; Mon, 11 Mar 2019 13:54:03 GMT (envelope-from danfe@FreeBSD.org) Received: (from danfe@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2BDs20u087851; Mon, 11 Mar 2019 13:54:02 GMT (envelope-from danfe@FreeBSD.org) Message-Id: <201903111354.x2BDs20u087851@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: danfe set sender to danfe@FreeBSD.org using -f From: Alexey Dokuchaev Date: Mon, 11 Mar 2019 13:54:02 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: danfe X-SVN-Commit-Paths: in head/devel: . redasm redasm/files X-SVN-Commit-Revision: 495353 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 0EAD796EAE X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-0.99)[-0.995,0]; NEURAL_HAM_SHORT(-0.96)[-0.963,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Mar 2019 13:54:04 -0000 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 +# $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 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(from); +- return QColor(QString::fromStdString(fb->color(static_cast(to)))); ++ return THEME_VALUE(QString::fromStdString(fb->style(static_cast(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/