git: dd72b5403a3d - main - graphics/gmt-gshhg: Refresh MASTER_SITES and improve port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 13 Oct 2024 19:11:23 UTC
The branch main has been updated by diizzy:

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

commit dd72b5403a3df920f52dc0c86d6be3dcd5327536
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-10-13 18:41:25 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-10-13 19:11:16 +0000

    graphics/gmt-gshhg: Refresh MASTER_SITES and improve port
    
    * Refresh MASTER_SITES
    * Small improvements to layout and syntax of port Makefile
    
    PR:             282045
    Reviewed by:    lbartoletti (maintainer)
---
 graphics/gmt-gshhg/Makefile | 19 +++++++------------
 1 file changed, 7 insertions(+), 12 deletions(-)

diff --git a/graphics/gmt-gshhg/Makefile b/graphics/gmt-gshhg/Makefile
index 149c0603b087..87b5f45d5ec5 100644
--- a/graphics/gmt-gshhg/Makefile
+++ b/graphics/gmt-gshhg/Makefile
@@ -1,15 +1,10 @@
 PORTNAME=	gshhg-gmt
 DISTVERSION=	2.3.7
 CATEGORIES=	graphics
-MASTER_SITES=	ftp://ftp.soest.hawaii.edu/%SUBDIR%/ \
-		ftp://ftp.geologi.uio.no/pub/%SUBDIR%/ \
-		ftp://ftp.iag.usp.br/%SUBDIR%/ \
-		ftp://ftp.scc.u-tokai.ac.jp/pub/%SUBDIR%/ \
-		http://gd.tuwien.ac.at/graphics/visual/%SUBDIR%/ \
-		http://gmt.mirror.ac.za/%SUBDIR%/ \
-		ftp://ftp.soest.hawaii.edu/gshhg/:gshhg \
-		ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/:gshhg
-MASTER_SITE_SUBDIR=	gmt gmt/legacy
+MASTER_SITES=	http://www.soest.hawaii.edu/pwessel/gshhg/ \
+		ftp://ftp.soest.hawaii.edu/gshhg/ \
+		https://gmt.mirror.ac.za/gmt/ \
+		ftp://ftp.scc.u-tokai.ac.jp/pub/gmt/
 
 MAINTAINER=	lbartoletti@FreeBSD.org
 COMMENT=	Global Self-consistent, Hierarchical, High-resolution Geography
@@ -18,11 +13,11 @@ WWW=		https://www.soest.hawaii.edu/wessel/gshhg/
 LICENSE=	GPLv3 LGPL3
 LICENSE_COMB=	multi
 
-NO_BUILD=YES
-NO_ARCH=YES
+NO_BUILD=	YES
+NO_ARCH=	YES
 
 do-install:
 	${MKDIR} ${STAGEDIR}${DATADIR}
-	(cd ${WRKSRC} ; ${INSTALL_DATA} *.nc ${STAGEDIR}${DATADIR})
+	${INSTALL_DATA} ${WRKSRC}/*.nc ${STAGEDIR}${DATADIR}
 
 .include <bsd.port.mk>