pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/dvtm Use BSD_INSTALL_* instead of simply install ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6876c64a07cf
branches:  trunk
changeset: 554755:6876c64a07cf
user:      tonio <tonio%pkgsrc.org@localhost>
date:      Thu Feb 19 19:22:22 2009 +0000

description:
Use BSD_INSTALL_* instead of simply install and strip
This fixes install under darwin, when strip -s dvtm does not work

diffstat:

 misc/dvtm/distinfo         |   4 ++--
 misc/dvtm/patches/patch-aa |  20 +++++++++++---------
 2 files changed, 13 insertions(+), 11 deletions(-)

diffs (56 lines):

diff -r f16c144aae60 -r 6876c64a07cf misc/dvtm/distinfo
--- a/misc/dvtm/distinfo        Thu Feb 19 18:22:35 2009 +0000
+++ b/misc/dvtm/distinfo        Thu Feb 19 19:22:22 2009 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.3 2009/02/17 10:08:15 tnn Exp $
+$NetBSD: distinfo,v 1.4 2009/02/19 19:22:22 tonio Exp $
 
 SHA1 (dvtm-0.5.1.tar.gz) = 8b5691e3d28e21e675791266bfe15ce09350ae3a
 RMD160 (dvtm-0.5.1.tar.gz) = 28259981a0c33ca44ab641a99183f228dcf5e3ae
 Size (dvtm-0.5.1.tar.gz) = 26238 bytes
-SHA1 (patch-aa) = 241923f9be8ca7613ca424b7fcc270d45c925d41
+SHA1 (patch-aa) = 2de5ef5ff718918b61c9c73a1137efaefeaf81c1
diff -r f16c144aae60 -r 6876c64a07cf misc/dvtm/patches/patch-aa
--- a/misc/dvtm/patches/patch-aa        Thu Feb 19 18:22:35 2009 +0000
+++ b/misc/dvtm/patches/patch-aa        Thu Feb 19 19:22:22 2009 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-aa,v 1.3 2009/02/17 10:08:15 tnn Exp $
+$NetBSD: patch-aa,v 1.4 2009/02/19 19:22:22 tonio Exp $
 
 Do not use rudimentary mkdir(1), cp(1) and chmod(1): install(1) is
 simpler and more elegant to install binaries.
@@ -13,24 +13,26 @@
  
  debug: clean
        @make CFLAGS='${DEBUG_CFLAGS}'
-@@ -43,15 +44,12 @@ install: dvtm
-       @echo stripping executable
-       @strip -s dvtm
+@@ -40,18 +41,12 @@ dist: clean
+       @rm -rf dvtm-${VERSION}
+ 
+ install: dvtm
+-      @echo stripping executable
+-      @strip -s dvtm
        @echo installing executable file to ${DESTDIR}${PREFIX}/bin
 -      @mkdir -p ${DESTDIR}${PREFIX}/bin
 -      @cp -f dvtm ${DESTDIR}${PREFIX}/bin
 -      @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm
 -      @cp -f dvtm-status ${DESTDIR}${PREFIX}/bin
 -      @chmod 755 ${DESTDIR}${PREFIX}/bin/dvtm-status
-+      @install -m 755 -d ${DESTDIR}${PREFIX}/bin
-+      @install -m 755 -c dvtm ${DESTDIR}${PREFIX}/bin
-+      @install -m 755 -c dvtm-status ${DESTDIR}${PREFIX}/bin
++      ${BSD_INSTALL_PROGRAM} dvtm ${DESTDIR}${PREFIX}/bin
++      ${BSD_INSTALL_SCRIPT} dvtm-status ${DESTDIR}${PREFIX}/bin
        @echo installing manual page to ${DESTDIR}${MANPREFIX}/man1
 -      @mkdir -p ${DESTDIR}${MANPREFIX}/man1
 -      @sed "s/VERSION/${VERSION}/g" < dvtm.1 > ${DESTDIR}${MANPREFIX}/man1/dvtm.1
 -      @chmod 644 ${DESTDIR}${MANPREFIX}/man1/dvtm.1
-+      @install -m 755 -d ${DESTDIR}${MANPREFIX}/man1
-+      @install -m 644 -c dvtm.1.out ${DESTDIR}${MANPREFIX}/man1/dvtm.1
++      ${BSD_INSTALL_MAN_DIR} ${DESTDIR}${MANPREFIX}/man1
++      ${BSD_INSTALL_MAN} dvtm.1.out ${DESTDIR}${MANPREFIX}/man1/dvtm.1
  
  uninstall:
        @echo removing executable file from ${DESTDIR}${PREFIX}/bin



Home | Main Index | Thread Index | Old Index