Skip to content

Commit

Permalink
net-p2p/tremotesf: enable qt5 (default) & qt6 flavors
Browse files Browse the repository at this point in the history
While here, bundle back cpp-httplib as tremotesf doesn't support 0.15.x
(version we have in ports, which is also broken on 13).

PR:		276822
  • Loading branch information
Anton Saietskii authored and clausecker committed Mar 19, 2024
1 parent 834bd23 commit 253998f
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 8 deletions.
29 changes: 22 additions & 7 deletions net-p2p/tremotesf/Makefile
@@ -1,5 +1,6 @@
PORTNAME= tremotesf
DISTVERSION= 2.6.0
PORTREVISION= 1
CATEGORIES= net-p2p

MAINTAINER= vsasjason@gmail.com
Expand All @@ -11,20 +12,34 @@ LICENSE_FILE= ${WRKSRC}/LICENSES/GPL-3.0-or-later.txt
BUILD_DEPENDS= cxxopts>0:devel/cxxopts
LIB_DEPENDS= libfmt.so:devel/libfmt \
libpsl.so:dns/libpsl
TEST_DEPENDS= cpp-httplib>0:www/cpp-httplib

USES= cmake:testing desktop-file-utils gettext-tools kde:5 pkgconfig \
qt:5 xorg
FLAVORS= qt5 qt6
FLAVOR?= ${FLAVORS:[1]}

USE_GITHUB= yes
GH_ACCOUNT= equeim
GH_PROJECT= tremotesf2
qt5_CONFLICTS_INSTALL= ${PORTNAME}-qt6
qt6_PKGNAMESUFFIX= -qt6
qt6_CONFLICTS_INSTALL= ${PORTNAME}

USE_KDE= widgetsaddons windowsystem
USES= cmake:testing desktop-file-utils gettext-tools pkgconfig xorg

.if ${FLAVOR} == qt5
USES+= kde:5 qt:5
USE_QT= core dbus gui network widgets buildtools:build concurrent:build \
linguisttools:build qmake:build testlib:build
.else
USES+= gl kde:6 qt:6
USE_GL= opengl
USE_QT= base
CMAKE_ON= TREMOTESF_QT6
.endif

USE_GITHUB= yes
GH_ACCOUNT= equeim yhirose:httplib
GH_PROJECT= tremotesf2 cpp-httplib:httplib
GH_SUBDIR= src/3rdparty/cpp-httplib:httplib
GH_TAGNAME= v0.14.3:httplib

USE_KDE= widgetsaddons windowsystem
USE_XORG= x11

.include <bsd.port.mk>
4 changes: 3 additions & 1 deletion net-p2p/tremotesf/distinfo
@@ -1,3 +1,5 @@
TIMESTAMP = 1704887270
TIMESTAMP = 1707052134
SHA256 (equeim-tremotesf2-2.6.0_GH0.tar.gz) = 0be5fff67a542a02287088ba0a9d9019ab01d0eef4120243002e011cb65cd37e
SIZE (equeim-tremotesf2-2.6.0_GH0.tar.gz) = 758704
SHA256 (yhirose-cpp-httplib-v0.14.3_GH0.tar.gz) = dcf6486d9030937636d8a4f820ca9531808fd7edb283893dddbaa05f99357e63
SIZE (yhirose-cpp-httplib-v0.14.3_GH0.tar.gz) = 1149767

0 comments on commit 253998f

Please sign in to comment.