git: d4067b1244c7 - main - math/pdal: Use upstream release archive

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Wed, 19 Jan 2022 07:52:15 UTC
The branch main has been updated by diizzy:

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

commit d4067b1244c775e4cb18ff281cd057ea61feaed9
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2022-01-19 07:34:30 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2022-01-19 07:52:05 +0000

    math/pdal: Use upstream release archive
    
    Use upstream release archive as suggested by Porters Handbook, this
    also reduces download size
    
    PR:             261260
    Reviewed by:    lbartoletti@ (maintainer)
---
 math/pdal/Makefile | 9 +++++----
 math/pdal/distinfo | 6 +++---
 2 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/math/pdal/Makefile b/math/pdal/Makefile
index bc36b5322856..66e15f3be363 100644
--- a/math/pdal/Makefile
+++ b/math/pdal/Makefile
@@ -4,6 +4,8 @@ PORTNAME=	pdal
 DISTVERSION=	2.3.0
 PORTREVISION=	3
 CATEGORIES=	math databases graphics
+MASTER_SITES=	https://github.com/PDAL/PDAL/releases/download/${DISTVERSION}/
+DISTNAME=	${PORTNAME}-${DISTVERSION}-src
 
 MAINTAINER=	lbartoletti@FreeBSD.org
 COMMENT=	Library for translating and manipulating point cloud data
@@ -28,11 +30,10 @@ LIB_DEPENDS_i386=	libunwind.so:devel/libunwind
 LIB_DEPENDS_powerpc64=	libunwind.so:devel/libunwind
 LIB_DEPENDS_powerpc64le=libunwind.so:devel/libunwind
 
-USES=		cmake compiler:c++11-lib pathfix pkgconfig ssl
+USES=		cmake compiler:c++11-lib pathfix pkgconfig ssl tar:bz2
 USE_LDCONFIG=	yes
-USE_GITHUB=	yes
-GH_ACCOUNT=	${PORTNAME:tu}
-GH_PROJECT=	${GH_ACCOUNT}
+
+WRKSRC=		${WRKDIR}/${PORTNAME:tu}-${DISTVERSION}-src
 
 CMAKE_ON=	WITH_LASZIP #LASZIP is recommended
 CMAKE_OFF=	WITH_TESTS
diff --git a/math/pdal/distinfo b/math/pdal/distinfo
index 31571bee8e5e..bd67b9de02d1 100644
--- a/math/pdal/distinfo
+++ b/math/pdal/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1622878834
-SHA256 (PDAL-PDAL-2.3.0_GH0.tar.gz) = 8ae848e9b3fe5149a9277fe60e10b9858edb9a3cf1a40728f11712498e5da13a
-SIZE (PDAL-PDAL-2.3.0_GH0.tar.gz) = 113434573
+TIMESTAMP = 1642399942
+SHA256 (pdal-2.3.0-src.tar.bz2) = 63d8d4fee491675f0fa3dca58c26d57fb2afcaa37c24b10f595b3fbff174996e
+SIZE (pdal-2.3.0-src.tar.bz2) = 107560748