Skip to content

Commit

Permalink
devel/libuv: Use upstream release archive with GNU Autotools files pr…
Browse files Browse the repository at this point in the history
…e-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)
  • Loading branch information
Daniel Engberg authored and Daniel Engberg committed Oct 21, 2023
1 parent 4157399 commit b02b8e4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 5 additions & 1 deletion devel/libuv/Makefile
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions 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

0 comments on commit b02b8e4

Please sign in to comment.