pkgsrc-WIP-changes archive

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

nanosaur: 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 20:04:38 2023 -0800
Changeset:	c4493e9bd4f933dbe2e1d547ac90529e2dfd3082

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

Log Message:
nanosaur: 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=c4493e9bd4f933dbe2e1d547ac90529e2dfd3082

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

diffstat:
 nanosaur/Makefile | 17 +++++++++++++----
 nanosaur/TODO     |  4 ----
 nanosaur/distinfo | 10 ++++++++++
 3 files changed, 23 insertions(+), 8 deletions(-)

diffs:
diff --git a/nanosaur/Makefile b/nanosaur/Makefile
index 80dde757c8..375cbbfe69 100644
--- a/nanosaur/Makefile
+++ b/nanosaur/Makefile
@@ -2,22 +2,32 @@
 
 DISTNAME=	nanosaur-1.4.3
 CATEGORIES=	games
-GIT_REPO=	https://github.com/jorio/Nanosaur.git
-GIT_TAG=	v${PKGVERSION_NOREV}
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jorio/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+DISTFILES+=	${DEFAULT_DISTFILES} ${POMME}
+
+POMME=		0581b241624d16c453e0afab57a379b443229260.tar.gz
+SITES.${POMME}=	${MASTER_SITE_GITHUB:=jorio/}Pomme/archive/
 
 MAINTAINER=	charlotte%NetBSD.org@localhost
 HOMEPAGE=	https://www.pangeasoft.net/nano/index.html
 COMMENT=	Source port of Nanosaur from Pangea Software
 LICENSE=	cc-by-nc-sa-v4.0-license
 
+WRKSRC=		${WRKDIR}/Nanosaur-${PKGVERSION_NOREV}
+
 USE_CMAKE=	yes
 USE_LANGUAGES=	c c++
-USE_TOOLS+=	pkg-config
+USE_TOOLS+=	pax pkg-config
 
 INSTALLATION_DIRS+=	bin
 INSTALLATION_DIRS+=	libexec
 INSTALLATION_DIRS+=	share/nanosaur/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}/nanosaur.template > ${WRKDIR}/nanosaur
@@ -28,5 +38,4 @@ do-install:
 	(cd ${WRKSRC}/Data && ${PAX} -r -w . ${DESTDIR}${PREFIX}/share/nanosaur/Data)
 
 .include "../../devel/SDL2/buildlink3.mk"
-.include "../../wip/mk/git-package.mk"
 .include "../../mk/bsd.pkg.mk"
diff --git a/nanosaur/TODO b/nanosaur/TODO
deleted file mode 100644
index f7f9b5f383..0000000000
--- a/nanosaur/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-nanosaur 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/nanosaur/distinfo b/nanosaur/distinfo
new file mode 100644
index 0000000000..72b849eb75
--- /dev/null
+++ b/nanosaur/distinfo
@@ -0,0 +1,10 @@
+$NetBSD$
+
+SHA1 (0581b241624d16c453e0afab57a379b443229260.tar.gz) = 3c0c5d9a584d933783905efd59526d73ee8bbd94
+RMD160 (0581b241624d16c453e0afab57a379b443229260.tar.gz) = 0f8ffe0fef8afc7e20b09bd73b6f2cd7afb84ec4
+SHA512 (0581b241624d16c453e0afab57a379b443229260.tar.gz) = cdea8f5a9ce17a0a0ff940472e5ff0d38f99c3aba1a784ce5f848e477b848aff8c799feda5b77c00ca0eec7af6af324e5a010cea80371c57221fab1b36416f91
+Size (0581b241624d16c453e0afab57a379b443229260.tar.gz) = 122446 bytes
+SHA1 (nanosaur-1.4.3.tar.gz) = c6203c4b842cdabcde949368abd8ca9de3985019
+RMD160 (nanosaur-1.4.3.tar.gz) = 9112a658581cc003d0a03f9c9c87e5adf62e099b
+SHA512 (nanosaur-1.4.3.tar.gz) = 3be4255df43b6510c31bd1bbcc30e84a18e36767cebd11fba37939482ff0715a7c2f250ae72866209b9a51f9a60231784a99647a8cad96c5ed4b014042186044
+Size (nanosaur-1.4.3.tar.gz) = 14621066 bytes


Home | Main Index | Thread Index | Old Index