git: b02b8e43bc56 - main - devel/libuv: Use upstream release archive with GNU Autotools files pre-generated

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 21 Oct 2023 14:44:20 UTC
The branch main has been updated by diizzy:

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

commit b02b8e43bc56f1255c55e99fe0531587e8f215bd
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2023-10-21 14:32:31 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2023-10-21 14:43:23 +0000

    devel/libuv: Use upstream release archive with GNU Autotools files pre-generated
    
    Upstream offers a distfile with GNU Autotools files pre-generated which
    saves quite a bit of time as USES= autoreconf pulls in Perl and a few
    other deps. This speeds up initial bootstrapping when we need to build
    CMake for example.
    
    Thanks to bofh for some advice about this
    
    PR:             274622
    Reviewed by:    adamw (maintainer)
---
 devel/libuv/Makefile | 6 +++++-
 devel/libuv/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/devel/libuv/Makefile b/devel/libuv/Makefile
index a78329729156..7bd85f73f8bc 100644
--- a/devel/libuv/Makefile
+++ b/devel/libuv/Makefile
@@ -3,6 +3,7 @@ DISTVERSIONPREFIX=	v
 DISTVERSION=	1.46.0
 CATEGORIES=	devel
 MASTER_SITES=	https://dist.libuv.org/dist/v${DISTVERSION}/
+DISTNAME=	${PORTNAME}-${DISTVERSIONFULL}-dist
 
 MAINTAINER=	adamw@FreeBSD.org
 COMMENT=	Multi-platform support library with a focus on asynchronous I/O
@@ -11,16 +12,19 @@ WWW=		https://github.com/libuv/libuv
 LICENSE=	MIT
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		autoreconf cpe libtool pathfix pkgconfig
+USES=		cpe libtool pathfix pkgconfig
 
 GNU_CONFIGURE=	yes
 USE_LDCONFIG=	yes
+WRKSRC=		${WRKDIR}/${PORTNAME}-${DISTVERSION}
 INSTALL_TARGET=	install-strip
 
 # Will not run as root, reference:
 # https://github.com/libuv/libuv/commit/af45b6ba2f2c506ae18dd24481e24db17b8269e7
 TEST_TARGET=	check
 
+CONFIGURE_ARGS=	--disable-maintainer-mode
+
 pre-configure:
 	${ECHO_CMD} "m4_define([UV_EXTRA_AUTOMAKE_FLAGS], [ serial-tests])" \
 		> ${WRKSRC}/m4/libuv-extra-automake-flags.m4
diff --git a/devel/libuv/distinfo b/devel/libuv/distinfo
index 38ee46eb8153..6eec968ff527 100644
--- a/devel/libuv/distinfo
+++ b/devel/libuv/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1688218306
-SHA256 (libuv-v1.46.0.tar.gz) = 111f83958b9fdc65f1489195d25f342b9f7a3e683140c60e62c00fbaccddddce
-SIZE (libuv-v1.46.0.tar.gz) = 1304458
+TIMESTAMP = 1697878670
+SHA256 (libuv-v1.46.0-dist.tar.gz) = 94f101111ef3209340d7f09c2aa150ddb4feabd2f9d87d47d9f5bded835b8094
+SIZE (libuv-v1.46.0-dist.tar.gz) = 1652625