summaryrefslogtreecommitdiff
path: root/time
diff options
context:
space:
mode:
authorkhorben <khorben@pkgsrc.org>2018-09-15 16:17:10 +0000
committerkhorben <khorben@pkgsrc.org>2018-09-15 16:17:10 +0000
commit557a94e60bd91fb82f6e799dc4b033e60e72e1b4 (patch)
treed48fa32d9c8dedde674eda1d4c3316c616879fd3 /time
parent8a7588f39435fb10f5825041dc453534d1128563 (diff)
downloadpkgsrc-557a94e60bd91fb82f6e799dc4b033e60e72e1b4.tar.gz
Simplify the handling of the bash interpreter
This may change the dependency on bash this time, so it bumps PKGREVISION. Also a suggestion from leot@, thanks!
Diffstat (limited to 'time')
-rw-r--r--time/memo/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/time/memo/Makefile b/time/memo/Makefile
index 2d06a627cac..050ccf82cee 100644
--- a/time/memo/Makefile
+++ b/time/memo/Makefile
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2018/09/15 15:51:14 khorben Exp $
+# $NetBSD: Makefile,v 1.3 2018/09/15 16:17:10 khorben Exp $
GITHUB_PROJECT= memo
DISTNAME= 0.6
PKGNAME= ${GITHUB_PROJECT}-${DISTNAME}
+PKGREVISION= 1
CATEGORIES= time
MASTER_SITES= ${MASTER_SITE_GITHUB:=mrVanDalo/}
DIST_SUBDIR= ${GITHUB_PROJECT}
@@ -11,20 +12,17 @@ MAINTAINER= khorben@defora.org
HOMEPAGE= https://github.com/mrVanDalo/memo/
COMMENT= A simple memo tool written in bash
LICENSE= gnu-gpl-v3
-WRKSRC= ${WRKDIR}/${PKGNAME}
+WRKSRC= ${WRKDIR}/memo-${DISTNAME}
USE_LANGUAGES= # none
+USE_TOOLS+= bash:run
-DEPENDS+= bash-[0-9]*:../../shells/bash
DEPENDS+= git-base-[0-9]*:../../devel/git-base
NO_BUILD= yes
INSTALLATION_DIRS= bin share/doc/memo
-REPLACE_INTERPRETER+= envbash
-REPLACE.envbash.old= '/bin/bash'
-REPLACE.envbash.new= ${PREFIX}/bin/bash
-REPLACE_FILES.envbash= memo
+REPLACE_BASH+= memo
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/memo ${DESTDIR}${PREFIX}/bin/memo