<pre style='margin:0'>
Zhenfu Shi (i0ntempest) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/4b9be05224f40fd707a258aafbdd3c75303dee9c">https://github.com/macports/macports-ports/commit/4b9be05224f40fd707a258aafbdd3c75303dee9c</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit 4b9be05224f40fd707a258aafbdd3c75303dee9c
</span>Author: i0ntempest <szf1234@me.com>
AuthorDate: Sun Mar 28 14:33:00 2021 +0800
<span style='display:block; white-space:pre;color:#404040;'> cutter-r2: replace with r2cutter
</span>---
devel/cutter-r2/Portfile | 75 +++-----------------------------------------
devel/cutter-r2/files/Cutter | 12 -------
2 files changed, 4 insertions(+), 83 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cutter-r2/Portfile b/devel/cutter-r2/Portfile
</span><span style='display:block; white-space:pre;color:#808080;'>index 0f31669a160..b8d347fc51f 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/cutter-r2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/devel/cutter-r2/Portfile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,82 +1,15 @@
</span> # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
<span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup github 1.0
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-PortGroup qmake5 1.0
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+PortGroup obsolete 1.0
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-github.setup radareorg cutter 1.12.0 v
</span> name cutter-r2
<span style='display:block; white-space:pre;background:#e0ffe0;'>+version 1.12.0
</span> revision 0
categories devel
platforms darwin
license GPL-3
<span style='display:block; white-space:pre;background:#ffe0e0;'>-maintainers {i0ntempest @i0ntempest} openmaintainer
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+maintainers nomaintainer
</span>
<span style='display:block; white-space:pre;background:#ffe0e0;'>-description Free and Open Source RE Platform powered by radare2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-long_description Cutter is a free and open-source reverse engineering framework\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- powered by radare2. Its goal is making an advanced, customizable\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- and FOSS reverse-engineering platform while keeping the user\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- experience at mind. Cutter is created by reverse engineers for\
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reverse engineers.
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-homepage https://cutter.re/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-checksums rmd160 45456c0e0ffdbf69239908b57b62b139686232ed \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- sha256 7bd6f1642eb6189933fe0185846217d281ebf1a527f6cd24dbab5f13d1f43b5a \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- size 2323782
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-depends_lib-append port:radare2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-qt5.depends_component \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- qtsvg
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-compiler.cxx_standard 2011
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- src/Cutter.pro \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- INCLUDEPATH+=${prefix}/include/libr
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${worksrcpath}/Cutter.app ${destroot}${applications_dir}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-proc python-depends {python_branch} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global frameworks_dir
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set python_version [string map {. ""} ${python_branch}]
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set ::python_framework ${frameworks_dir}/Python.framework
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- global python_framework
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # same here, and creating an alias of the variable in proc namespace so we can use it here
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- depends_lib-append port:python${python_version} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- port:py${python_version}-pyside2
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- configure.args-append \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CONFIG+=CUTTER_ENABLE_PYTHON \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- CONFIG+=CUTTER_ENABLE_PYTHON_BINDINGS \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- INCLUDEPATH+=${python_framework}/Versions/${python_branch}/include/python${python_branch}/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- LIBS+="-L${python_framework}/Versions/${python_branch}/lib -lpython${python_branch}" \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QMAKE_RPATHDIR+=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/shiboken2/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- QMAKE_RPATHDIR+=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/PySide2/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PYTHON_FRAMEWORK_DIR=${python_framework} \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SHIBOKEN_EXECUTABLE=${python_framework}/Versions/${python_branch}/bin/shiboken2 \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SHIBOKEN_INCLUDEDIR=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/shiboken2_generator/include/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- SHIBOKEN_LIBRARY=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/shiboken2/libshiboken2.cpython-*-darwin.*.dylib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PYSIDE_INCLUDEDIR=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/PySide2/include/ \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PYSIDE_LIBRARY=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/PySide2/libpyside2.cpython-*-darwin.*.dylib \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- PYSIDE_TYPESYSTEMS=${python_framework}/Versions/${python_branch}/lib/python${python_branch}/site-packages/PySide2/typesystems
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- pre-destroot {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- move ${worksrcpath}/Cutter.app/Contents/MacOS/Cutter ${worksrcpath}/Cutter.app/Contents/MacOS/Cutter.bin
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- copy ${filespath}/Cutter ${worksrcpath}/Cutter.app/Contents/MacOS/
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PYFRAMEWORK@|${python_framework}|g" ${worksrcpath}/Cutter.app/Contents/MacOS/Cutter
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- reinplace "s|@PYVER@|${python_branch}|g" ${worksrcpath}/Cutter.app/Contents/MacOS/Cutter
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- }
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-variant python38 description {Enable Python support and bindings using Python 3.8} {
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- set ::python_branch 3.8
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- # :: refers to global namespace, so the variable is created in global ns and is usable in pre-destroot
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- python-depends ${::python_branch}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-}
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-default_variants \
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- +python38
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+replaced_by r2cutter
</span><span style='display:block; white-space:pre;color:#808080;'>diff --git a/devel/cutter-r2/files/Cutter b/devel/cutter-r2/files/Cutter
</span>deleted file mode 100755
<span style='display:block; white-space:pre;color:#808080;'>index cfebfd4c83a..00000000000
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/devel/cutter-r2/files/Cutter
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ /dev/null
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -1,12 +0,0 @@
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-#!/bin/sh
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-EXECDIR=$(dirname "$0")
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-case "$*" in
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *--pythonhome*)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec "$EXECDIR/Cutter.bin" "$@"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- *)
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- exec "$EXECDIR/Cutter.bin" --pythonhome "@PYFRAMEWORK@/Versions/@PYVER@/" "$@"
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>- ;;
</span><span style='display:block; white-space:pre;background:#ffe0e0;'>-esac
</span></pre><pre style='margin:0'>
</pre>