git: 7ac52f5e1d58 - main - net/libngtcp2: Update to 0.1.0

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 28 Jan 2022 23:28:03 UTC
The branch main has been updated by sunpoet:

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

commit 7ac52f5e1d5805581deeff80b30270c1b8090cc9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-01-28 23:18:27 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-01-28 23:26:39 +0000

    net/libngtcp2: Update to 0.1.0
    
    Changes:        https://github.com/ngtcp2/ngtcp2/releases
---
 net/libngtcp2/Makefile                 | 11 +++--------
 net/libngtcp2/distinfo                 |  6 +++---
 net/libngtcp2/files/patch-Makefile.in  | 13 +++++++++++++
 net/libngtcp2/files/patch-configure.ac | 11 -----------
 4 files changed, 19 insertions(+), 22 deletions(-)

diff --git a/net/libngtcp2/Makefile b/net/libngtcp2/Makefile
index 22b81bd52934..72bcb0d03889 100644
--- a/net/libngtcp2/Makefile
+++ b/net/libngtcp2/Makefile
@@ -1,8 +1,9 @@
 # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
 
 PORTNAME=	ngtcp2
-PORTVERSION=	0.1.0.g20211219
+PORTVERSION=	0.1.0
 CATEGORIES=	net
+MASTER_SITES=	https://github.com/ngtcp2/ngtcp2/releases/download/v${PORTVERSION}/
 PKGNAMEPREFIX=	lib
 
 MAINTAINER=	sunpoet@FreeBSD.org
@@ -11,7 +12,7 @@ COMMENT=	Implementation of QUIC protocol
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-USES=		autoreconf compiler:c++17-lang libtool pathfix pkgconfig
+USES=		compiler:c++17-lang libtool pathfix pkgconfig ssl tar:xz
 
 CONFIGURE_ARGS=	--enable-lib-only --with-jemalloc
 GNU_CONFIGURE=	yes
@@ -19,10 +20,4 @@ INSTALL_TARGET=	install-strip
 USE_CXXSTD=	c++17
 USE_LDCONFIG=	yes
 
-GH_TAGNAME=	20c710a
-USE_GITHUB=	yes
-
-post-patch:
-	@${REINPLACE_CMD} -e 's|%%PORTVERSION%%|${PORTVERSION}|' ${WRKSRC}/configure.ac
-
 .include <bsd.port.mk>
diff --git a/net/libngtcp2/distinfo b/net/libngtcp2/distinfo
index e69ce4380a47..80ea19235a68 100644
--- a/net/libngtcp2/distinfo
+++ b/net/libngtcp2/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1641045814
-SHA256 (ngtcp2-ngtcp2-0.1.0.g20211219-20c710a_GH0.tar.gz) = c82843140c93a3b5df33487daeccf17e635dc596e916870e7447df0c3e660d8f
-SIZE (ngtcp2-ngtcp2-0.1.0.g20211219-20c710a_GH0.tar.gz) = 3270784
+TIMESTAMP = 1643382508
+SHA256 (ngtcp2-0.1.0.tar.xz) = 7989b9cdcb3b36a3daf00bd7b759673ff626ef7d0fa92b8b944d1cc6243d4554
+SIZE (ngtcp2-0.1.0.tar.xz) = 540132
diff --git a/net/libngtcp2/files/patch-Makefile.in b/net/libngtcp2/files/patch-Makefile.in
new file mode 100644
index 000000000000..afad6594b328
--- /dev/null
+++ b/net/libngtcp2/files/patch-Makefile.in
@@ -0,0 +1,13 @@
+--- Makefile.in.orig	2022-01-16 12:35:06 UTC
++++ Makefile.in
+@@ -425,8 +425,8 @@ top_srcdir = @top_srcdir@
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-SUBDIRS = lib tests doc $(am__append_1) $(am__append_2)
+-dist_doc_DATA = README.rst
++SUBDIRS = lib $(am__append_1)
++dist_doc_DATA =
+ ACLOCAL_AMFLAGS = -I m4
+ EXTRA_DIST = \
+ 	cmakeconfig.h.in \
diff --git a/net/libngtcp2/files/patch-configure.ac b/net/libngtcp2/files/patch-configure.ac
deleted file mode 100644
index 94f5f991bf30..000000000000
--- a/net/libngtcp2/files/patch-configure.ac
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.ac.orig	2021-07-31 08:13:05 UTC
-+++ configure.ac
-@@ -22,7 +22,7 @@
- # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
- # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
- AC_PREREQ(2.61)
--AC_INIT([ngtcp2], [0.1.0-DEV], [t-tujikawa@users.sourceforge.net])
-+AC_INIT([ngtcp2], [%%PORTVERSION%%], [t-tujikawa@users.sourceforge.net])
- AC_CONFIG_AUX_DIR([.])
- AC_CONFIG_MACRO_DIR([m4])
- AC_CONFIG_HEADERS([config.h])