git: b008ae57de67 - main - www/R-cran-httpuv: Unbundle devel/libuv

From: Nuno Teixeira <eduardo_at_FreeBSD.org>
Date: Sat, 03 Feb 2024 08:46:29 UTC
The branch main has been updated by eduardo:

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

commit b008ae57de676fafac4c6c65311fced307e9141d
Author:     Nuno Teixeira <eduardo@FreeBSD.org>
AuthorDate: 2024-02-03 07:53:44 +0000
Commit:     Nuno Teixeira <eduardo@FreeBSD.org>
CommitDate: 2024-02-03 08:46:02 +0000

    www/R-cran-httpuv: Unbundle devel/libuv
    
    While here, apply upstream patch to fix tests when all of the unsafe
    ports are available (e.g. poudriere jail).
    
    See also: https://github.com/rstudio/httpuv/pull/396
---
 www/R-cran-httpuv/Makefile | 7 ++++++-
 www/R-cran-httpuv/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/www/R-cran-httpuv/Makefile b/www/R-cran-httpuv/Makefile
index 9340fa0236db..3ff2d94dad99 100644
--- a/www/R-cran-httpuv/Makefile
+++ b/www/R-cran-httpuv/Makefile
@@ -1,8 +1,12 @@
 PORTNAME=	httpuv
 DISTVERSION=	1.6.14
+PORTREVISION=	1
 CATEGORIES=	www
 DISTNAME=	${PORTNAME}_${PORTVERSION}
 
+PATCH_SITES=	https://github.com/rstudio/httpuv/pull/396/commits/
+PATCHFILES=	fe516bc16655e338bce8078c35d618732ab3e40a.patch:-p1
+
 MAINTAINER=	eduardo@FreeBSD.org
 COMMENT=	HTTP and WebSocket server library for R
 WWW=		https://cran.r-project.org/web/packages/httpuv/
@@ -15,11 +19,12 @@ CRAN_DEPENDS=	R-cran-later>=0.8.0:devel/R-cran-later \
 		R-cran-R6>0:devel/R-cran-R6 \
 		R-cran-Rcpp>=1.0.7:devel/R-cran-Rcpp
 BUILD_DEPENDS=	${CRAN_DEPENDS}
+LIB_DEPENDS=	libuv.so:devel/libuv
 RUN_DEPENDS=	${CRAN_DEPENDS}
 TEST_DEPENDS=	R-cran-curl>0:ftp/R-cran-curl \
 		R-cran-testthat>0:devel/R-cran-testthat
 # 1 test failing: https://github.com/rstudio/httpuv/issues/393
 
-USES=		compiler:c++11-lang cran:auto-plist,compiles
+USES=		cran:auto-plist,compiles pkgconfig
 
 .include <bsd.port.mk>
diff --git a/www/R-cran-httpuv/distinfo b/www/R-cran-httpuv/distinfo
index b34da27fa984..c6f873aeb0a7 100644
--- a/www/R-cran-httpuv/distinfo
+++ b/www/R-cran-httpuv/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1706604666
+TIMESTAMP = 1706917306
 SHA256 (httpuv_1.6.14.tar.gz) = 4026acae26bd99873e269b062f343f2239131130b43fdfd6a1a5a89b913cd181
 SIZE (httpuv_1.6.14.tar.gz) = 1880639
+SHA256 (fe516bc16655e338bce8078c35d618732ab3e40a.patch) = f457067991c7010bdd1283028266e52552a7b5c5424c1f988befd1ae66da4981
+SIZE (fe516bc16655e338bce8078c35d618732ab3e40a.patch) = 1225