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 package



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b532763bbb74
branches:  trunk
changeset: 385219:b532763bbb74
user:      khorben <khorben%pkgsrc.org@localhost>
date:      Sat Sep 15 15:51:14 2018 +0000

description:
Simplify the package

This removes the need for AUTO_MKDIRS and bsd.prefs.mk. It also
leverages ${INSTALL_SCRIPT}, ${INSTALL_MAN_DIR}, ${INSTALL_MAN} and
${INSTALL_DATA} instead of just ${INSTALL}.

No change to PKGREVISION as the final binary should be identical.

With suggestions from leot@, thanks!

diffstat:

 time/memo/Makefile |  13 ++++++-------
 time/memo/PLIST    |   2 +-
 2 files changed, 7 insertions(+), 8 deletions(-)

diffs (42 lines):

diff -r 04c62a66c9a4 -r b532763bbb74 time/memo/Makefile
--- a/time/memo/Makefile        Sat Sep 15 15:15:41 2018 +0000
+++ b/time/memo/Makefile        Sat Sep 15 15:51:14 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.1 2018/09/15 15:14:26 khorben Exp $
+# $NetBSD: Makefile,v 1.2 2018/09/15 15:51:14 khorben Exp $
 
 GITHUB_PROJECT=        memo
 DISTNAME=      0.6
@@ -19,18 +19,17 @@
 DEPENDS+=      git-base-[0-9]*:../../devel/git-base
 
 NO_BUILD=      yes
-AUTO_MKDIRS=   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
 
-.include "../../mk/bsd.prefs.mk"
-
 do-install:
-       ${INSTALL} -m 0755 ${WRKSRC}/memo ${DESTDIR}${PREFIX}/bin/memo
-       ${INSTALL} -m 0644 ${WRKSRC}/doc/memo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/memo.1
-       ${INSTALL} -m 0644 ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/memo/README.md
+       ${INSTALL_SCRIPT} ${WRKSRC}/memo ${DESTDIR}${PREFIX}/bin/memo
+       ${INSTALL_MAN_DIR} ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+       ${INSTALL_MAN} ${WRKSRC}/doc/memo.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1/memo.1
+       ${INSTALL_DATA} ${WRKSRC}/README.md ${DESTDIR}${PREFIX}/share/doc/memo/README.md
 
 .include "../../mk/bsd.pkg.mk"
diff -r 04c62a66c9a4 -r b532763bbb74 time/memo/PLIST
--- a/time/memo/PLIST   Sat Sep 15 15:15:41 2018 +0000
+++ b/time/memo/PLIST   Sat Sep 15 15:51:14 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2018/09/15 15:14:26 khorben Exp $
+@comment $NetBSD: PLIST,v 1.2 2018/09/15 15:51:14 khorben Exp $
 bin/memo
 man/man1/memo.1
 share/doc/memo/README.md



Home | Main Index | Thread Index | Old Index