Import devel/iaito.

pkg/DESCR:
```
iaito is the official graphical interface for radare2.
```

Radare2 used to use devel/cutter as its GUI, but there was a forking event, and
now uses iaito.

This is version 5.7.2.

OK sthen@, thanks.
This commit is contained in:
edd 2022-08-12 20:31:40 +00:00
parent 1eb1e36150
commit 6466484dcf
7 changed files with 99 additions and 0 deletions

38
devel/iaito/Makefile Normal file
View File

@ -0,0 +1,38 @@
COMMENT = RE platform powered by radare2
GH_ACCOUNT = radareorg
GH_PROJECT = iaito
GH_TAGNAME = 5.7.2
CATEGORIES = devel
HOMEPAGE = https://www.radare.org/n/iaito.html
# GPLv3
PERMIT_PACKAGE = Yes
WANTLIB += ${COMPILER_LIBCXX} GL Qt5Core Qt5Gui Qt5Network Qt5Svg
WANTLIB += Qt5Widgets c capstone crypto m ssl z zip
MODULES = x11/qt5
BUILD_DEPENDS = ${RUN_DEPENDS}
RUN_DEPENDS = devel/radare2/main>=5.7.4 \
math/graphviz
LIB_DEPENDS = archivers/libzip \
devel/capstone/main \
x11/qt5/qtsvg
CONFIGURE_STYLE = simple
CONFIGURE_ENV += QMAKE=${MODQT5_QMAKE} \
LRELEASE=${MODQT5_LRELEASE} \
IAITO_ENABLE_GRAPHVIZ=1
NO_TEST = Yes
USE_GMAKE = Yes
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/build/iaito ${PREFIX}/bin/iaito
${INSTALL_DATA} ${WRKBUILD}/src/iaito.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>

2
devel/iaito/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (iaito-5.7.2.tar.gz) = VbajOzPzONtwt5R1Jq+GpXSbQ6aY8uC6mSDUfb1F9ds=
SIZE (iaito-5.7.2.tar.gz) = 2331313

View File

@ -0,0 +1,17 @@
Index: Makefile
--- Makefile.orig
+++ Makefile
@@ -26,11 +26,11 @@ iaito: translations
$(MAKE) -C build -j4
translations: build src/translations/README.md
- $(MAKE) -C src/translations
+# $(MAKE) -C src/translations
# lrelease src/Iaito.pro
src/translations/README.md:
- git submodule update --init
+# git submodule update --init
# force qt5 build when QtCreator is installed in user's home
ifeq ($(shell test -x ~/Qt/5.12.3/clang_64/bin/qmake || echo err),)

View File

@ -0,0 +1,27 @@
Make man page lint.
Index: src/iaito.1
--- src/iaito.1.orig
+++ src/iaito.1
@@ -1,12 +1,12 @@
-.TH IAITO "1" "iaito" "User Commands"
+.TH IAITO "1" "July 31, 2022" "iaito" "User Commands"
.SH NAME
-iaito \- manual page for iaito
+iaito \- GUI for iaito
.SH SYNOPSIS
.B iaito
[\fI\,options\/\fR] \fI\,filename\/\fR
.SH DESCRIPTION
A Qt and C++ GUI for radare2 reverse engineering framework.
-The iaito is the continuation of the
+The iaito is the continuation of the
.UR "https://cutter.re"
.BR "Cutter"
before the fork of
@@ -76,4 +76,5 @@ The full documentation for
is maintained as docs folder in the source
.UR "https://github.com/radareorg/iaito/tree/master/docs"
.BR "https://github.com/radareorg/iaito/tree/master/docs"
+.UE
In your distribution you might find it compiled in separate iaiato-doc package.

View File

@ -0,0 +1,12 @@
Index: src/widgets/GraphGridLayout.cpp
--- src/widgets/GraphGridLayout.cpp.orig
+++ src/widgets/GraphGridLayout.cpp
@@ -526,7 +526,7 @@ void GraphGridLayout::calculateEdgeMainColumn(GraphGri
// to contain blocks above sweep line and query for nearest column which isn't blocked by a block.
struct Event {
- size_t blockId;
+ ut64 blockId;
size_t edgeId;
int row;
enum Type {

1
devel/iaito/pkg/DESCR Normal file
View File

@ -0,0 +1 @@
iaito is the official graphical interface for radare2.

2
devel/iaito/pkg/PLIST Normal file
View File

@ -0,0 +1,2 @@
@bin bin/iaito
@man man/man1/iaito.1