pkgsrc-WIP-changes archive

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

cromagrally: Avoid needing git-package.mk by manually installing required submodule



Module Name:	pkgsrc-wip
Committed By:	Charlotte Koch <charlotte%NetBSD.org@localhost>
Pushed By:	cfkoch
Date:		Tue Jan 17 19:54:48 2023 -0800
Changeset:	20d56f8484804200f2cb074ff9df52c81f048013

Modified Files:
	cromagrally/Makefile
Added Files:
	cromagrally/distinfo
Removed Files:
	cromagrally/TODO

Log Message:
cromagrally: Avoid needing git-package.mk by manually installing required submodule

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

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

diffstat:
 cromagrally/Makefile | 15 ++++++++++++---
 cromagrally/TODO     |  4 ----
 cromagrally/distinfo | 10 ++++++++++
 3 files changed, 22 insertions(+), 7 deletions(-)

diffs:
diff --git a/cromagrally/Makefile b/cromagrally/Makefile
index 90fe1cbb16..dd05d7d7c1 100644
--- a/cromagrally/Makefile
+++ b/cromagrally/Makefile
@@ -2,7 +2,11 @@
 
 DISTNAME=	cromagrally-3.0.0
 CATEGORIES=	games
-GIT_REPO=	https://github.com/jorio/CroMagRally.git
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jorio/}
+DISTFILES+=	${DEFAULT_DISTFILES} ${POMME}
+
+POMME=		88a3e4625b00f63cde90aae5ce383d85c83cc5a8.tar.gz
+SITES.${POMME}=	${MASTER_SITE_GITHUB:=jorio/}Pomme/archive/
 
 MAINTAINER=	charlotte%NetBSD.org@localhost
 HOMEPAGE=	https://pangeasoft.net/cromag/
@@ -11,12 +15,18 @@ LICENSE=	cc-by-nc-sa-v4.0-license
 
 USE_CMAKE=	yes
 USE_LANGUAGES=	c c++
-USE_TOOLS+=	pkg-config
+USE_TOOLS+=	pax pkg-config
+
+WRKSRC=		${WRKDIR}/CroMagRally-${GITHUB_TAG}
 
 INSTALLATION_DIRS+=	bin
 INSTALLATION_DIRS+=	libexec
 INSTALLATION_DIRS+=	share/cromagrally/Data
 
+post-extract:
+	${RM} -rf ${WRKSRC}/extern/Pomme
+	${LN} -sf ${WRKDIR}/Pomme-${POMME:S/.tar.gz//} ${WRKSRC}/extern/Pomme
+
 pre-configure:
 	${SED} -e 's,@@PREFIX@@,${PREFIX},g' \
 		${FILESDIR}/cromagrally.template > ${WRKDIR}/cromagrally
@@ -27,5 +37,4 @@ do-install:
 	(cd ${WRKSRC}/Data && ${PAX} -r -w . ${DESTDIR}${PREFIX}/share/cromagrally/Data)
 
 .include "../../devel/SDL2/buildlink3.mk"
-.include "../../wip/mk/git-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/cromagrally/TODO b/cromagrally/TODO
deleted file mode 100644
index 4b5ba3a812..0000000000
--- a/cromagrally/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-cromagrally TODO:
-
-- We depend on wip/mk/git-package.git because we need the Git submodules
-  (GitHub's 'archive' feature doesn't recurse into submodules)
diff --git a/cromagrally/distinfo b/cromagrally/distinfo
new file mode 100644
index 0000000000..7e1fd29943
--- /dev/null
+++ b/cromagrally/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (88a3e4625b00f63cde90aae5ce383d85c83cc5a8.tar.gz) = 4915307f1145a2050290fe2175ee4d4b76be6192
+RMD160 (88a3e4625b00f63cde90aae5ce383d85c83cc5a8.tar.gz) = 00d0fa0cc12eb1ded8769cc54788443000700abb
+SHA512 (88a3e4625b00f63cde90aae5ce383d85c83cc5a8.tar.gz) = 75a55c0c025165d4dbc04b65c2b486fa022108e8d9b95231664482a56a166b527a50fc4d355df11580afbe55b2cffc4f4aa800cbf21cbf434e72a818655e2cc3
+Size (88a3e4625b00f63cde90aae5ce383d85c83cc5a8.tar.gz) = 122771 bytes
+SHA1 (cromagrally-3.0.0.tar.gz) = 99942464afd1ce2b034899f5a1c4fd04acc26973
+RMD160 (cromagrally-3.0.0.tar.gz) = 9c272fad6f5f7e26ba3cbebf31c9f40fcacca0c9
+SHA512 (cromagrally-3.0.0.tar.gz) = 83ed0412bb70660c5cffb1834bc71acf066bad454877f429f894820125d013e598d1ce19a30e15fb9f09dee69497df63bd443e609d2947890fbbf9b080aa1666
+Size (cromagrally-3.0.0.tar.gz) = 143606955 bytes


Home | Main Index | Thread Index | Old Index