From owner-svn-ports-all@freebsd.org Mon Mar 25 22:04:57 2019 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 2002D154F3C9; Mon, 25 Mar 2019 22:04:57 +0000 (UTC) (envelope-from adridg@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B7AB9899E3; Mon, 25 Mar 2019 22:04:56 +0000 (UTC) (envelope-from adridg@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 745C7E168; Mon, 25 Mar 2019 22:04:56 +0000 (UTC) (envelope-from adridg@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x2PM4uc3041134; Mon, 25 Mar 2019 22:04:56 GMT (envelope-from adridg@FreeBSD.org) Received: (from adridg@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x2PM4tb6041126; Mon, 25 Mar 2019 22:04:55 GMT (envelope-from adridg@FreeBSD.org) Message-Id: <201903252204.x2PM4tb6041126@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: adridg set sender to adridg@FreeBSD.org using -f From: Adriaan de Groot Date: Mon, 25 Mar 2019 22:04:55 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r496858 - in head/net-im: . nheko X-SVN-Group: ports-head X-SVN-Commit-Author: adridg X-SVN-Commit-Paths: in head/net-im: . nheko X-SVN-Commit-Revision: 496858 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: B7AB9899E3 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_SHORT(-0.96)[-0.962,0]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 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, 25 Mar 2019 22:04:57 -0000 Author: adridg Date: Mon Mar 25 22:04:55 2019 New Revision: 496858 URL: https://svnweb.freebsd.org/changeset/ports/496858 Log: New port net-im/nheko Third time's the charm for Qt-based Matrix clients; this one looks pretty good and seems to work pretty well. It also offers registration for new users, and understands both plain (matrix.org) and premium (modular.im) accounts. The port contains the following yuckiness: - a hack to change to , since the CMake bits in nheko don't actually go look for it. - a (GH_TUPLE) copy of lmdb++, which is #included by the C++ code, but CMake doesn't go looking for it. - a (GH_TUPLE) copy of tweeny, which is used by the C++ code, but CMake doesn't go looking for it. Since this is a source copy, the header isn't in the tweeny/ directory (where it gets installed), so an extra hack is called for to provide that subdirectory. I considered making tweeny a separate port (many Linuxen do), but this would be the only consumer, and it doesn't even consume the whole library but only parts of one header. Added: head/net-im/nheko/ head/net-im/nheko/Makefile (contents, props changed) head/net-im/nheko/distinfo (contents, props changed) head/net-im/nheko/pkg-descr (contents, props changed) head/net-im/nheko/pkg-plist (contents, props changed) Modified: head/net-im/Makefile Modified: head/net-im/Makefile ============================================================================== --- head/net-im/Makefile Mon Mar 25 20:42:09 2019 (r496857) +++ head/net-im/Makefile Mon Mar 25 22:04:55 2019 (r496858) @@ -78,6 +78,7 @@ PORTREVISION= 1 SUBDIR += mikutter SUBDIR += mtxclient SUBDIR += mu-conference + SUBDIR += nheko SUBDIR += openfire SUBDIR += oysttyer SUBDIR += p5-AnyEvent-XMPP Added: head/net-im/nheko/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/nheko/Makefile Mon Mar 25 22:04:55 2019 (r496858) @@ -0,0 +1,49 @@ +# $FreeBSD$ + +PORTNAME= nheko +DISTVERSIONPREFIX=v +DISTVERSION= 0.6.3 +CATEGORIES= net-im + +MAINTAINER= adridg@FreeBSD.org +COMMENT= Matrix IM client based on Qt technologies + +LICENSE= GPLv3 +LICENSE_FILES= ${WRKSRC}/COPYING + +BUILD_DEPENDS= cmark:textproc/cmark \ + mtxclient>=0.2:net-im/mtxclient \ + nlohmann-json>=3:devel/nlohmann-json \ + spdlog>=1.3:devel/spdlog +LIB_DEPENDS= liblmdb.so:databases/lmdb + +USES= cmake compiler:c++17-lang pkgconfig \ + localbase:ldflags qt:5 tar:xz +USE_QT= concurrent core dbus declarative gui multimedia network svg widgets \ + buildtools_build linguist_build qmake_build + +# There are two external dependencies: lmdb++ and tweeny. +# - lmdb++ is a single header file, it just needs to be included +# - tweeny is a library, but only one header is needed; it is normally +# installed into a tweeny/ subdirectory, but its sources place it +# in include/. Add one more symlink to the build for that. +CMAKE_ARGS= -DLMDBXX_INCLUDE_DIR=${WRKSRC}/deps/lmdb \ + -DTWEENY_INCLUDE_DIR=${WRKSRC}/deps/tweeny + +USE_GITHUB= yes +GH_ACCOUNT= Nheko-Reborn +GH_TUPLE= drycpp:lmdbxx:0b43ca87d8cfabba392dfe884eb1edb83874de02:lmdb/deps/lmdb \ + mobius3:tweeny:v3:tweeny/deps/tweeny + +post-extract: + cd ${WRKSRC}/deps/tweeny && ${LN} -s include tweeny + +# Includes without referencing where it's installed, +# so hackishly correct all the broken paths. +post-patch: + ${FIND} ${WRKSRC} -type f -print0 | \ + ${XARGS} -0 ${REINPLACE_CMD} \ + -e 's+include +include +' \ + -e 's+include "json.hpp"+include +' + +.include Added: head/net-im/nheko/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/nheko/distinfo Mon Mar 25 22:04:55 2019 (r496858) @@ -0,0 +1,7 @@ +TIMESTAMP = 1553549643 +SHA256 (Nheko-Reborn-nheko-v0.6.3_GH0.tar.gz) = e88678d10195f5e2618e0d1a44cc9c152122ff3ab03b347d00f16b39abe2ac3e +SIZE (Nheko-Reborn-nheko-v0.6.3_GH0.tar.gz) = 4556147 +SHA256 (drycpp-lmdbxx-0b43ca87d8cfabba392dfe884eb1edb83874de02_GH0.tar.gz) = 93721132bbf5045d38ad62de2997655e9984c48ea5c9886746d42128f4b26fbd +SIZE (drycpp-lmdbxx-0b43ca87d8cfabba392dfe884eb1edb83874de02_GH0.tar.gz) = 47524 +SHA256 (mobius3-tweeny-v3_GH0.tar.gz) = 699633578f958cbb1363f80164ac063dc40ce08dfc26b0591752ca412e64c941 +SIZE (mobius3-tweeny-v3_GH0.tar.gz) = 48997 Added: head/net-im/nheko/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/nheko/pkg-descr Mon Mar 25 22:04:55 2019 (r496858) @@ -0,0 +1,5 @@ +The motivation behind the project is to provide a native desktop app +for Matrix that feels more like a mainstream chat app (Riot, Telegram) +and less like an IRC client. + +WWW: https://github.com/Nheko-Reborn/nheko Added: head/net-im/nheko/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/net-im/nheko/pkg-plist Mon Mar 25 22:04:55 2019 (r496858) @@ -0,0 +1,10 @@ +bin/nheko +share/applications/nheko.desktop +share/icons/hicolor/128x128/apps/nheko.png +share/icons/hicolor/16x16/apps/nheko.png +share/icons/hicolor/256x256/apps/nheko.png +share/icons/hicolor/32x32/apps/nheko.png +share/icons/hicolor/48x48/apps/nheko.png +share/icons/hicolor/512x512/apps/nheko.png +share/icons/hicolor/64x64/apps/nheko.png +share/metainfo/nheko.appdata.xml