pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

openhexagon: simplify MODULES->DISTFILES process



Module Name:	pkgsrc-wip
Committed By:	Iain Hibbert <plunky%netbsd.org@localhost>
Pushed By:	plunky
Date:		Tue May 5 12:01:03 2020 +0100
Changeset:	1eb95a839a1e63aab474baabcfa4d61d3295b014

Modified Files:
	openhexagon/Makefile

Log Message:
openhexagon: simplify MODULES->DISTFILES process

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=1eb95a839a1e63aab474baabcfa4d61d3295b014

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 openhexagon/Makefile | 17 +++++------------
 1 file changed, 5 insertions(+), 12 deletions(-)

diffs:
diff --git a/openhexagon/Makefile b/openhexagon/Makefile
index 77140f01c8..2991be940d 100644
--- a/openhexagon/Makefile
+++ b/openhexagon/Makefile
@@ -3,25 +3,18 @@
 
 DISTNAME=	openhexagon-2.0
 CATEGORIES=	games
-EXTRACT_SUFX=	.tar.gz
 
 MAINTAINER=	pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=	https://vittorioromeo.info/projects.html
 COMMENT=	Open-source clone of the game "Super Hexagon by Terry Cavanagh"
 LICENSE=	afl-3.0
 
-GITHUB_MODULES= \
-	SSVOpenHexagon		2.0-preview \
-	SSVOpenHexagonAssets	1d125de695be2e74c9f2ad3198e8b5b29911d010
+MODULES=	SSVOpenHexagon-2.0-preview \
+		SSVOpenHexagonAssets-1d125de695be2e74c9f2ad3198e8b5b29911d010
 
-# EXTRACT_SUFX must be defined here otherwise we cannot
-# set the SITES.* variables correctly
-
-.for mod tag in ${GITHUB_MODULES}
-DISTFILES+=	${mod}-${tag}${EXTRACT_SUFX}
-SITES.${mod}-${tag}${EXTRACT_SUFX}+= \
-		${MASTER_SITE_GITHUB:S,^,-,:=SuperV1234/${mod}/archive/${tag}${EXTRACT_SUFX}}
-MODULES+=	${mod}-${tag}
+.for dist in ${MODULES:=.tar.gz}
+DISTFILES+=	${dist}
+SITES.${dist}+=	${MASTER_SITE_GITHUB:S,^,-,:=SuperV1234/${dist:S,-,/archive/,}}
 .endfor
 
 USE_LANGUAGES=	c c++14


Home | Main Index | Thread Index | Old Index