Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Jun 2021 21:54:20 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 0b9d5a5cba02 - main - net-im/tdlib: Update 1.7.0-747 -> 1.7.4.20210520
Message-ID:  <202106222154.15MLsKAs083222@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by yuri:

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

commit 0b9d5a5cba02c4b9c2e68e2ea0b7a21e7ac1468f
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-06-22 21:19:19 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-06-22 21:54:16 +0000

    net-im/tdlib: Update 1.7.0-747 -> 1.7.4.20210520
---
 net-im/tdlib/Makefile                   | 10 +++++-----
 net-im/tdlib/distinfo                   |  6 +++---
 net-im/tdlib/files/patch-CMakeLists.txt | 17 +++++++++++++++++
 3 files changed, 25 insertions(+), 8 deletions(-)

diff --git a/net-im/tdlib/Makefile b/net-im/tdlib/Makefile
index 814798dc13db..6a8787937e26 100644
--- a/net-im/tdlib/Makefile
+++ b/net-im/tdlib/Makefile
@@ -1,7 +1,6 @@
 PORTNAME=	tdlib
 DISTVERSIONPREFIX=	v
-DISTVERSION=	1.7.0-747
-DISTVERSIONSUFFIX=	-gb342ec33
+DISTVERSION=	1.7.4.20210520 # 1.7.4 is not tagged, just set in CMakeLists.txt
 CATEGORIES=	net-im devel
 
 MAINTAINER=	yuri@FreeBSD.org
@@ -9,14 +8,15 @@ COMMENT=	Library for building Telegram clients
 
 LICENSE=	BSL
 
-USES=		cmake compiler:c++14-lang gperf ssl
+USES=		cmake:testing compiler:c++14-lang gperf ssl
 
 USE_GITHUB=	yes
 GH_PROJECT=	td
+GH_TAGNAME=	e1ebf74
 
-CMAKE_OFF=	FREEBSD_BUILD_TESTING
+CMAKE_OFF=	BUILD_TESTING FREEBSD_BUILD_BENCHMARKS
 
-do-test:
+xdo-test:
 	@cd ${BUILD_WRKSRC} && \
 		${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DFREEBSD_BUILD_TESTING:BOOL=ON ${CMAKE_SOURCE_PATH} && \
 		${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \
diff --git a/net-im/tdlib/distinfo b/net-im/tdlib/distinfo
index 1ed7a93f6497..ff2fcb1967d7 100644
--- a/net-im/tdlib/distinfo
+++ b/net-im/tdlib/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1620336229
-SHA256 (tdlib-td-v1.7.0-747-gb342ec33_GH0.tar.gz) = e9feb347f0aaa75cdc0f940663623f330eecad0029b411016ffa3713775359cc
-SIZE (tdlib-td-v1.7.0-747-gb342ec33_GH0.tar.gz) = 4399729
+TIMESTAMP = 1624391403
+SHA256 (tdlib-td-v1.7.4.20210520-e1ebf74_GH0.tar.gz) = f92633b2fbcc5a76166bd730da9d870ddbbe159cd3294c009c33cbd86dc674f5
+SIZE (tdlib-td-v1.7.4.20210520-e1ebf74_GH0.tar.gz) = 4402224
diff --git a/net-im/tdlib/files/patch-CMakeLists.txt b/net-im/tdlib/files/patch-CMakeLists.txt
new file mode 100644
index 000000000000..fa81fa16eb1a
--- /dev/null
+++ b/net-im/tdlib/files/patch-CMakeLists.txt
@@ -0,0 +1,17 @@
+- make tests and benchmarks conditional on special cmake variables, see https://github.com/tdlib/td/issues/1583
+
+--- CMakeLists.txt.orig	2021-05-20 23:05:03 UTC
++++ CMakeLists.txt
+@@ -189,9 +189,11 @@ add_subdirectory(sqlite)
+ 
+ add_subdirectory(tddb)
+ 
++if (BUILD_TESTING)
+ add_subdirectory(test)
++endif()
+ 
+-if (NOT CMAKE_CROSSCOMPILING)
++if (FREEBSD_BUILD_BENCHMARKS AND NOT CMAKE_CROSSCOMPILING)
+   add_subdirectory(benchmark)
+ endif()
+ 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106222154.15MLsKAs083222>