pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/time/memo Simplify the handling of the bash interpreter



details:   https://anonhg.NetBSD.org/pkgsrc/rev/815e8ce99097
branches:  trunk
changeset: 312845:815e8ce99097
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sat Sep 15 16:17:10 2018 +0000

description:
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:

 time/memo/Makefile |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (38 lines):

diff -r 3694baafc738 -r 815e8ce99097 time/memo/Makefile
--- a/time/memo/Makefile        Sat Sep 15 15:51:14 2018 +0000
+++ b/time/memo/Makefile        Sat Sep 15 16:17:10 2018 +0000
@@ -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 @@
 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



Home | Main Index | Thread Index | Old Index