Commit 2c0ebe81 authored by Yuri Victorovich's avatar Yuri Victorovich
Browse files

finance/bitcoin-armory: Remove unintended directory that was committed.

parent 51b1e120
Loading
Loading
Loading
Loading

finance/bitcoin-armory/Makefile

deleted100644 → 0
+0 −67
Original line number Diff line number Diff line
# Created by: Yuri Victorovich <yuri@rawbw.com>

PORTNAME=	BitcoinArmory
DISTVERSIONPREFIX=	v
DISTVERSION=	0.96.5.20210412
CATEGORIES=	finance

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Desktop bitcoin management system

LICENSE=	AGPLv3
LICENSE_FILE=	${WRKSRC}/LICENSE

BROKEN_aarch64=		fails to compile: c++: language not recognized: 'ar'
BROKEN_armv6=		fails to compile: c++: language not recognized: 'ar'
BROKEN_armv7=		fails to compile: c++: language not recognized: 'ar'

BUILD_DEPENDS=	${LOCALBASE}/bin/swig:devel/swig \
		${LOCALBASE}/bin/pyrcc5-${PYTHON_VER}:textproc/py-qt5-xml@${PY_FLAVOR} \
		${LOCALBASE}/bin/rsync:net/rsync
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}twisted>=14.0.0:devel/py-twisted@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}psutil>1.2.1:sysutils/py-psutil@${PY_FLAVOR} \
		${LOCALBASE}/bin/bitcoind:net-p2p/bitcoin-daemon

USES=		autoreconf compiler:c++11-lang compiler:c++11-lib gmake gnome localbase pyqt:5 pkgconfig python shebangfix ssl
USE_PYQT=	core_run gui_run

USE_GITHUB=	yes
GH_ACCOUNT=	goatpig
GH_TAGNAME=	443c918
GH_TUPLE=	weidai11:cryptopp:f375910:cryptopp/cppForSwig/cryptopp

SHEBANG_FILES=	ArmoryQt.py extras/extractKeysFromWallet.py

GNU_CONFIGURE=	yes
CONFIGURE_ENV=	SSL_CFLAGS=-I${OPENSSLINC} SSL_LIBDIR=${OPENSSLDIR} SSL_LIBS="-lssl" CRYPTO_CFLAGS=-I${OPENSSLINC} CRYPTO_LIBDIR=${OPENSSLDIR} CRYPTO_LIBS="-lcrypto"

#CFLAGS+=	-D_SEM_SEMUN_UNDEFINED
CXXFLAGS+=	-DCRYPTOPP_DISABLE_ASM -fPIC
MAKE_ENV+=	PYTHON_CONFIG=${PYTHON_CMD}-config
BINARY_ALIAS=	pyrcc5=pyrcc5-${PYTHON_VER}

MAKE_ARGS+=	CXXFLAGS="${CXXFLAGS}"
INSTALLS_ICONS=	yes
ICON_SIZES=	24x24 32x32 64x64

# When CRYPTOPP_DISABLE_ASM isn't needed any more, i386 amd64 should
# be made work through ASM code, and the other archs will still
# have CRYPTOPP_DISABLE_ASM

xpost-patch:
	@${REINPLACE_CMD} 's/python-config/$${PYTHON_CONFIG}/' ${WRKSRC}/cppForSwig/Makefile
	@${REINPLACE_CMD} 's/O_DSYNC/O_SYNC/' ${WRKSRC}/cppForSwig/mdb/mdb.c

post-install:
	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/armory/_CppBlockUtils.so

	@${SED} -i.bak -e 's|%%LOCALBASE%%|${LOCALBASE}|g' ${STAGEDIR}/${LOCALBASE}/bin/armory && \
		${RM} ${STAGEDIR}/${LOCALBASE}/bin/armory.bak
	@${REINPLACE_CMD} 's|Exec=/usr/bin/armory|Exec=${LOCALBASE}/bin/armory|' ${STAGEDIR}/${LOCALBASE}/share/applications/*.desktop
.for s in ${ICON_SIZES}
	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
	${MV} ${STAGEDIR}/${PREFIX}/share/armory/img/armory_icon_${s}.png \
		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/armoryicon.png
.endfor

.include <bsd.port.mk>

finance/bitcoin-armory/distinfo

deleted100644 → 0
+0 −5
Original line number Diff line number Diff line
TIMESTAMP = 1621491928
SHA256 (goatpig-BitcoinArmory-v0.96.5.20210412-443c918_GH0.tar.gz) = 354f3072369fa4c132fc1a2e743a1e0cfa3493d7a3f1bd3ce2ffa87bfbe28966
SIZE (goatpig-BitcoinArmory-v0.96.5.20210412-443c918_GH0.tar.gz) = 5974873
SHA256 (weidai11-cryptopp-f375910_GH0.tar.gz) = 743930df85d685d8f3480155151452dbf88f88488ed60bd01ea0dcfecb5d7031
SIZE (weidai11-cryptopp-f375910_GH0.tar.gz) = 9132627
+0 −22
Original line number Diff line number Diff line
--- ArmoryQt.py.orig	2021-05-20 06:17:35 UTC
+++ ArmoryQt.py
@@ -1159,6 +1159,9 @@ class ArmoryMainWindow(QMainWindow):
          elif OS_LINUX:
             tempDir = '/var/log'
             extraFiles = ['/var/log/Xorg.0.log']
+         elif OS_FREEBSD:
+            tempDir = '/var/log'
+            extraFiles = ['/var/log/Xorg.0.log']
          elif OS_MACOSX:
             tempDir = '/var/log'
             extraFiles = ['/var/log/system.log']
@@ -3668,8 +3671,7 @@ class ArmoryMainWindow(QMainWindow):
    def closeExistingBitcoin(self):
       for proc in psutil.process_iter():
          try:
-            if proc.name().lower() in ['bitcoind.exe','bitcoin-qt.exe',\
-                                        'bitcoind','bitcoin-qt']:
+            if proc.name() in ['bitcoind','bitcoin-qt']:
                killProcess(proc.pid)
                time.sleep(2)
                return
+0 −11
Original line number Diff line number Diff line
--- cppForSwig/SocketObject.cpp.orig	2021-05-20 07:39:28 UTC
+++ cppForSwig/SocketObject.cpp
@@ -11,6 +11,8 @@
 #include <cstring>
 #include <stdexcept>
 
+#include <netinet/in.h>
+
 #include "google/protobuf/text_format.h"
 
 using namespace std;
+0 −22
Original line number Diff line number Diff line
- fix for the libbtc bug

--- cppForSwig/libbtc/include/btc/portable_endian.h.orig	2021-05-20 07:15:56 UTC
+++ cppForSwig/libbtc/include/btc/portable_endian.h
@@ -49,6 +49,8 @@
 
 #include <sys/endian.h>
 
+#if !defined(__FreeBSD__)
+
 #define be16toh(x) betoh16(x)
 #define le16toh(x) letoh16(x)
 
@@ -57,6 +59,8 @@
 
 #define be64toh(x) betoh64(x)
 #define le64toh(x) letoh64(x)
+
+#endif
 
 #elif defined(__WINDOWS__)
 
Loading