pkgsrc-WIP-changes archive

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

wip/samurai: simplify package



Module Name:	pkgsrc-wip
Committed By:	ng0 <ng0%NetBSD.org@localhost>
Pushed By:	ng0
Date:		Wed Dec 11 23:17:41 2019 +0000
Changeset:	fa611ef0c522fb57025ef9bb2ff49a803b9cc69f

Modified Files:
	samurai/Makefile
	samurai/distinfo

Log Message:
wip/samurai: simplify package

thanks nia, ryoshu.

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

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

diffstat:
 samurai/Makefile | 16 +++-------------
 samurai/distinfo |  8 ++++----
 2 files changed, 7 insertions(+), 17 deletions(-)

diffs:
diff --git a/samurai/Makefile b/samurai/Makefile
index bca4f1bd37..756545b75c 100644
--- a/samurai/Makefile
+++ b/samurai/Makefile
@@ -1,27 +1,17 @@
 # $NetBSD$
 
-GITHUB_PROJECT=	samurai
-GITHUB_TAG=	${PKGVERSION_NOREV}
-DISTNAME=	0.7
-PKGNAME=	${GITHUB_PROJECT}-${DISTNAME}
+DISTNAME=	samurai-0.7
 CATEGORIES=	devel
 MASTER_SITES=	${MASTER_SITE_GITHUB:=michaelforney/}
-DIST_SUBDIR=	${GITHUB_PROJECT}
 
 MAINTAINER=	ng0%NetBSD.org@localhost
 HOMEPAGE=	https://github.com/michaelforney/samurai/
 COMMENT=	Ninja-compatible build tool written in C
 LICENSE=	isc
 
-WRKSRC=	${WRKDIR}/samurai-0.7
-
 BUILD_TARGET=	samu
 
-# \todo: https://github.com/michaelforney/samurai/pull/28
-SUBST_CLASSES+=		prefix
-SUBST_STAGE.prefix=	pre-configure
-SUBST_FILES.prefix=	Makefile
-SUBST_SED.prefix=	-e 's,PREFIX=,PREFIX?=,g'
-SUBST_SED.prefix+=	-e 's,(PREFIX)/share/man,(PREFIX)/man,g'
+MAKE_FLAGS+=	PREFIX=${PREFIX}
+MAKE_FLAGS+=	MANDIR=${PREFIX}/${PKGMANDIR}
 
 .include "../../mk/bsd.pkg.mk"
diff --git a/samurai/distinfo b/samurai/distinfo
index a930d1e448..7a8290847c 100644
--- a/samurai/distinfo
+++ b/samurai/distinfo
@@ -1,6 +1,6 @@
 $NetBSD$
 
-SHA1 (samurai/0.7.tar.gz) = 8d6bd5492026e2a256699a47d3895fa35c774491
-RMD160 (samurai/0.7.tar.gz) = ac8677acec4beb99b2596a4238058c88aa8dc356
-SHA512 (samurai/0.7.tar.gz) = c47120a2b516c0d130c5a01d99972979c69103d1c6b110722c4c6fcac3147df25d60d9d19913d7c78902c257800d6a5e1bcbb775618058ebfe6db29098dc4001
-Size (samurai/0.7.tar.gz) = 28197 bytes
+SHA1 (samurai-0.7.tar.gz) = 8d6bd5492026e2a256699a47d3895fa35c774491
+RMD160 (samurai-0.7.tar.gz) = ac8677acec4beb99b2596a4238058c88aa8dc356
+SHA512 (samurai-0.7.tar.gz) = c47120a2b516c0d130c5a01d99972979c69103d1c6b110722c4c6fcac3147df25d60d9d19913d7c78902c257800d6a5e1bcbb775618058ebfe6db29098dc4001
+Size (samurai-0.7.tar.gz) = 28197 bytes


Home | Main Index | Thread Index | Old Index