From nobody Wed Nov 17 06:44:30 2021
X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1])
	by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 06A2D1897110;
	Wed, 17 Nov 2021 06:44:31 +0000 (UTC)
	(envelope-from git@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)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256
	 client-signature RSA-PSS (4096 bits) client-digest SHA256)
	(Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK))
	by mx1.freebsd.org (Postfix) with ESMTPS id 4HvD1V6ljTz3l6j;
	Wed, 17 Nov 2021 06:44:30 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(Client did not present a certificate)
	by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id C872B1C531;
	Wed, 17 Nov 2021 06:44:30 +0000 (UTC)
	(envelope-from git@FreeBSD.org)
Received: from gitrepo.freebsd.org ([127.0.1.44])
	by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1AH6iUka066889;
	Wed, 17 Nov 2021 06:44:30 GMT
	(envelope-from git@gitrepo.freebsd.org)
Received: (from git@localhost)
	by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AH6iU2F066888;
	Wed, 17 Nov 2021 06:44:30 GMT
	(envelope-from git)
Date: Wed, 17 Nov 2021 06:44:30 GMT
Message-Id: <202111170644.1AH6iU2F066888@gitrepo.freebsd.org>
To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org,
        dev-commits-ports-main@FreeBSD.org
From: Alexey Dokuchaev <danfe@FreeBSD.org>
Subject: git: d936331b8f90 - main - devel/xopcodecalc: new port had been added (+)
List-Id: Commit messages for all branches of the ports repository <dev-commits-ports-all.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all
List-Help: <mailto:dev-commits-ports-all+help@freebsd.org>
List-Post: <mailto:dev-commits-ports-all@freebsd.org>
List-Subscribe: <mailto:dev-commits-ports-all+subscribe@freebsd.org>
List-Unsubscribe: <mailto:dev-commits-ports-all+unsubscribe@freebsd.org>
Sender: owner-dev-commits-ports-all@freebsd.org
X-BeenThere: dev-commits-ports-all@freebsd.org
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
X-Git-Committer: danfe
X-Git-Repository: ports
X-Git-Refname: refs/heads/main
X-Git-Reftype: branch
X-Git-Commit: d936331b8f901c36ae9d6aaa4bcd77286e6857c8
Auto-Submitted: auto-generated
X-ThisMailContainsUnwantedMimeParts: N

The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d936331b8f901c36ae9d6aaa4bcd77286e6857c8

commit d936331b8f901c36ae9d6aaa4bcd77286e6857c8
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-17 06:42:58 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-17 06:43:06 +0000

    devel/xopcodecalc: new port had been added (+)
    
    This small program calculates and displays x86 CPU opcodes in
    graphical, easily readable way.  It is based on Qt libraries.
    
    WWW: https://github.com/horsicq/XOpcodeCalc
---
 devel/Makefile                                     |  1 +
 devel/xopcodecalc/Makefile                         | 34 ++++++++++++++++++++++
 devel/xopcodecalc/distinfo                         |  5 ++++
 .../files/patch-gui__source_gui__source.pro        | 25 ++++++++++++++++
 devel/xopcodecalc/pkg-descr                        |  4 +++
 devel/xopcodecalc/pkg-plist                        |  7 +++++
 6 files changed, 76 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index b19be96d1112..cb27a45d097e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -7186,6 +7186,7 @@
     SUBDIR += xfce4-dev-tools
     SUBDIR += xmake
     SUBDIR += xmltooling
+    SUBDIR += xopcodecalc
     SUBDIR += xorg-macros
     SUBDIR += xparam
     SUBDIR += xsd
diff --git a/devel/xopcodecalc/Makefile b/devel/xopcodecalc/Makefile
new file mode 100644
index 000000000000..2a0fa3842298
--- /dev/null
+++ b/devel/xopcodecalc/Makefile
@@ -0,0 +1,34 @@
+# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
+
+PORTNAME=	${GH_PROJECT:[1]:tl}
+PORTVERSION=	0.03
+CATEGORIES=	devel
+
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Graphical x86 CPU opcode calculator
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		pkgconfig qt:5
+GNU_CONFIGURE=	yes
+USE_QT=		buildtools_build qmake_build core gui widgets
+
+USE_GITHUB=	yes
+GH_ACCOUNT=	horsicq
+GH_PROJECT=	XOpcodeCalc XOptions:xo
+GH_TAGNAME=	01bba2a:xo
+GH_SUBDIR=	XOptions:xo
+
+post-extract:
+	@${CHMOD} +x ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
+
+do-install:
+	${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/build/release/xocalc \
+		${STAGEDIR}${PREFIX}/bin
+	cd ${INSTALL_WRKSRC}/DEBIAN && ${COPYTREE_SHARE} hicolor \
+		${STAGEDIR}${PREFIX}/share/icons
+
+.include <bsd.port.mk>
+
+PATCH_ARGS+=	-l
diff --git a/devel/xopcodecalc/distinfo b/devel/xopcodecalc/distinfo
new file mode 100644
index 000000000000..9e21da97228b
--- /dev/null
+++ b/devel/xopcodecalc/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1627490833
+SHA256 (horsicq-XOpcodeCalc-0.03_GH0.tar.gz) = 781566e0c352ec4ec3c8e39434dc4a3c0261cd2febeb5aef77b7f22bde0ed1ec
+SIZE (horsicq-XOpcodeCalc-0.03_GH0.tar.gz) = 520646
+SHA256 (horsicq-XOptions-01bba2a_GH0.tar.gz) = ca63c9ccd8ac6f204f5ea83a1520003821574a33e51419e899ddc03409879193
+SIZE (horsicq-XOptions-01bba2a_GH0.tar.gz) = 7366
diff --git a/devel/xopcodecalc/files/patch-gui__source_gui__source.pro b/devel/xopcodecalc/files/patch-gui__source_gui__source.pro
new file mode 100644
index 000000000000..14868c1567ef
--- /dev/null
+++ b/devel/xopcodecalc/files/patch-gui__source_gui__source.pro
@@ -0,0 +1,25 @@
+--- gui_source/gui_source.pro.orig	2021-07-28 16:47:13 UTC
++++ gui_source/gui_source.pro
+@@ -62,18 +62,18 @@ win32-msvc*{
+     }
+ }
+ 
+-linux-g++*{
++unix {
+     BITSIZE = $$system(getconf LONG_BIT)
+     !contains(BITSIZE, 64) {
+-        message("Linux gcc x32 build")
++        message("Unix 32-bit build")
+         ASM_FILES = ../asm/gcc32.s
+     } else {
+-        message("Linux gcc x64 build")
++        message("Unix 64-bit build")
+         ASM_FILES = ../asm/gcc64.s
+     }
+ 
+     preprocess.output = ${QMAKE_FILE_BASE}.o
+-    preprocess.commands = gcc -c ${QMAKE_FILE_IN}
++    preprocess.commands = $$QMAKE_CC -c ${QMAKE_FILE_IN}
+ }
+ 
+ win32-g++*{
diff --git a/devel/xopcodecalc/pkg-descr b/devel/xopcodecalc/pkg-descr
new file mode 100644
index 000000000000..d89354bac764
--- /dev/null
+++ b/devel/xopcodecalc/pkg-descr
@@ -0,0 +1,4 @@
+This small program calculates and displays x86 CPU opcodes in
+graphical, easily readable way.  It is based on Qt libraries.
+
+WWW: https://github.com/horsicq/XOpcodeCalc
diff --git a/devel/xopcodecalc/pkg-plist b/devel/xopcodecalc/pkg-plist
new file mode 100644
index 000000000000..c50098f3da3a
--- /dev/null
+++ b/devel/xopcodecalc/pkg-plist
@@ -0,0 +1,7 @@
+bin/xocalc
+share/icons/hicolor/16x16/apps/xocalc.png
+share/icons/hicolor/20x20/apps/xocalc.png
+share/icons/hicolor/24x24/apps/xocalc.png
+share/icons/hicolor/32x32/apps/xocalc.png
+share/icons/hicolor/48x48/apps/xocalc.png
+share/icons/hicolor/256x256/apps/xocalc.png