From owner-svn-ports-all@freebsd.org Mon May 14 18:43:03 2018 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 CC5C0DFFB14; Mon, 14 May 2018 18:43:03 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FD2568596; Mon, 14 May 2018 18:43:03 +0000 (UTC) (envelope-from swills@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 4927C20029; Mon, 14 May 2018 18:43:03 +0000 (UTC) (envelope-from swills@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w4EIh3BA091390; Mon, 14 May 2018 18:43:03 GMT (envelope-from swills@FreeBSD.org) Received: (from swills@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w4EIh1WX091384; Mon, 14 May 2018 18:43:01 GMT (envelope-from swills@FreeBSD.org) Message-Id: <201805141843.w4EIh1WX091384@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: swills set sender to swills@FreeBSD.org using -f From: Steve Wills Date: Mon, 14 May 2018 18:43:01 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r469947 - in head/devel: . plasma plasma/files X-SVN-Group: ports-head X-SVN-Commit-Author: swills X-SVN-Commit-Paths: in head/devel: . plasma plasma/files X-SVN-Commit-Revision: 469947 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.26 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, 14 May 2018 18:43:04 -0000 Author: swills Date: Mon May 14 18:43:01 2018 New Revision: 469947 URL: https://svnweb.freebsd.org/changeset/ports/469947 Log: devel/plasma: create port PLASMA is an interactive disassembler. It can generate a more readable assembly (pseudo code) with a colored syntax. One can write scripts with the available Python API. It supports : * Architectures : x86{64}, ARM, MIPS{64} (partially for ARM and MIPS) * Formats : ELF, PE, RAW WWW: https://www.github.com/plasma-disassembler/plasma PR: 225669 Submitted by: Kai Added: head/devel/plasma/ head/devel/plasma/Makefile (contents, props changed) head/devel/plasma/distinfo (contents, props changed) head/devel/plasma/files/ head/devel/plasma/files/patch-setup.py (contents, props changed) head/devel/plasma/pkg-descr (contents, props changed) head/devel/plasma/pkg-message (contents, props changed) Modified: head/devel/Makefile (contents, props changed) Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Mon May 14 18:30:08 2018 (r469946) +++ head/devel/Makefile Mon May 14 18:43:01 2018 (r469947) @@ -4132,6 +4132,7 @@ SUBDIR += pkg-info.el SUBDIR += pkgconf SUBDIR += plan9port + SUBDIR += plasma SUBDIR += plasma5-khotkeys SUBDIR += plasma5-kwrited SUBDIR += plasma5-plasma-sdk Added: head/devel/plasma/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/plasma/Makefile Mon May 14 18:43:01 2018 (r469947) @@ -0,0 +1,46 @@ +# $FreeBSD$ + +PORTNAME= plasma +DISTVERSION= g20171121 +CATEGORIES= devel python + +MAINTAINER= freebsd_ports@k-worx.org +COMMENT= Interactive disassembler for x86/ARM/MIPS + +LICENSE= GPLv3 +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= bash:shells/bash \ + binutils>=2:devel/binutils \ + capstone>=3:devel/capstone3 +RUN_DEPENDS= binutils>=2:devel/binutils \ + ${PYTHON_PKGNAMEPREFIX}capstone>=3:devel/py-capstone@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}future>=0:devel/py-future@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}keystone-engine>=:devel/py-keystone-engine@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}msgpack>=0:devel/py-msgpack@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pefile>=0:devel/py-pefile@${FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pyelftools>=0:devel/py-pyelftools@${FLAVOR} + +USES= python:3.4+ shebangfix + +USE_GITHUB= yes +GH_ACCOUNT= plasma-disassembler +GH_PROJECT= plasma +GH_TAGNAME= 8ec3bb7 + +USE_PYTHON= distutils flavors autoplist +SHEBANG_FILES= tests/analyzer/run.sh +SHEBANG_GLOB= *.py + +OPTIONS_DEFINE= MEMMAP +OPTIONS_DEFAULT= MEMMAP +MEMMAP_DESC= View memory maps (pulls in QT4) +MEMMAP_USES= pyqt:4 +MEMMAP_USE= PYQT=gui_run + +post-patch: + @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/setup.py + @${REINPLACE_CMD} -e 's|python3|${PYTHON_CMD}|g' ${WRKSRC}/Makefile + +.include Added: head/devel/plasma/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/plasma/distinfo Mon May 14 18:43:01 2018 (r469947) @@ -0,0 +1,3 @@ +TIMESTAMP = 1517675748 +SHA256 (plasma-disassembler-plasma-g20171121-8ec3bb7_GH0.tar.gz) = 5ae00ef3fa3326000968323bd6843fa293938a1024b2fcb6176b624c99e8c050 +SIZE (plasma-disassembler-plasma-g20171121-8ec3bb7_GH0.tar.gz) = 352158 Added: head/devel/plasma/files/patch-setup.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/plasma/files/patch-setup.py Mon May 14 18:43:01 2018 (r469947) @@ -0,0 +1,45 @@ +--- setup.py.orig 2018-04-15 11:48:52 UTC ++++ setup.py +@@ -6,30 +6,33 @@ except ImportError: + from distutils.core import setup + + +-from pip.req import parse_requirements ++#from pip.req import parse_requirements + from distutils.core import Extension + import plasma + +-requirements = parse_requirements('requirements.txt', session=False) ++#requirements = parse_requirements('requirements.txt', session=False) + + requires = [] +-for item in requirements: ++#for item in requirements: + # we want to handle package names and also repo urls +- if getattr(item, 'url', None): # older pip has url +- links.append(str(item.url)) +- if getattr(item, 'link', None): # newer pip has link +- links.append(str(item.link)) +- if item.req: +- requires.append(str(item.req)) ++# if getattr(item, 'url', None): # older pip has url ++# links.append(str(item.url)) ++# if getattr(item, 'link', None): # newer pip has link ++# links.append(str(item.link)) ++# if item.req: ++# requires.append(str(item.req)) + + + x86_analyzer = Extension('plasma.lib.arch.x86.analyzer', ++ include_dirs = ['%%PREFIX%%/include'], + sources = ['plasma/lib/arch/x86/analyzer.c']) + + mips_analyzer = Extension('plasma.lib.arch.mips.analyzer', ++ include_dirs = ['%%PREFIX%%/include'], + sources = ['plasma/lib/arch/mips/analyzer.c']) + + arm_analyzer = Extension('plasma.lib.arch.arm.analyzer', ++ include_dirs = ['%%PREFIX%%/include'], + sources = ['plasma/lib/arch/arm/analyzer.c']) + + Added: head/devel/plasma/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/plasma/pkg-descr Mon May 14 18:43:01 2018 (r469947) @@ -0,0 +1,10 @@ +PLASMA is an interactive disassembler. It can generate a more readable assembly + (pseudo code) with a colored syntax. One can write scripts with the available + Python API. + +It supports : + +* Architectures : x86{64}, ARM, MIPS{64} (partially for ARM and MIPS) +* Formats : ELF, PE, RAW + +WWW: https://www.github.com/plasma-disassembler/plasma Added: head/devel/plasma/pkg-message ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/plasma/pkg-message Mon May 14 18:43:01 2018 (r469947) @@ -0,0 +1,11 @@ + +============================================================================== + +To use the visual mode (command 'v' in the interactive mode) the terminal must +support 256 colors. + +For xterm this can be enabled by + +export TERM=xterm-256color + +==============================================================================