pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/misc/dvtm Update to dvtm-0.4.1. Contributed by Leonard...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/756fcabcf078
branches:  trunk
changeset: 542681:756fcabcf078
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun May 25 11:46:33 2008 +0000

description:
Update to dvtm-0.4.1. Contributed by Leonardo Taccari.

* Cursor key mode switching (this fixes arrow keys in vim)
* Characters following an escape are passed to the underlying
  application, this fixes ALT+<n> key combination as used by
  irssi
* A hack to make the keypad sort of work with putty
* Mouse support is now compile time selectable
* Destroy clients when an IO-error occurs
* Correct signal handling (save and restore errno)
* Destroy clients cleanly, prevent zombies
* Added a note about copy & paste to the manual page (use
  SHIFT while selecting or pasting text)
* Some source code formatting fixes

diffstat:

 misc/dvtm/Makefile         |  18 ++++++++++-----
 misc/dvtm/PLIST            |   3 +-
 misc/dvtm/distinfo         |  10 ++++----
 misc/dvtm/patches/patch-aa |  53 ++++++++++++++++++++++++++-------------------
 4 files changed, 49 insertions(+), 35 deletions(-)

diffs (119 lines):

diff -r fb0c9fd74719 -r 756fcabcf078 misc/dvtm/Makefile
--- a/misc/dvtm/Makefile        Sun May 25 10:26:41 2008 +0000
+++ b/misc/dvtm/Makefile        Sun May 25 11:46:33 2008 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.1.1.1 2008/03/09 17:20:47 tnn Exp $
+# $NetBSD: Makefile,v 1.2 2008/05/25 11:46:33 tnn Exp $
 #
 
-DISTNAME=      dvtm-0.4
+DISTNAME=      dvtm-0.4.1
 CATEGORIES=    misc
 MASTER_SITES=  http://www.brain-dump.org/projects/dvtm/
 
@@ -14,11 +14,17 @@
 USE_LANGUAGES=         c99
 NO_CONFIGURE=          yes
 
-INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
+SUBST_CLASSES+=                makefile
+SUBST_STAGE.makefile=  pre-build
+SUBST_MESSAGE.makefile=        Fixing config.mk...
+SUBST_FILES.makefile=  config.mk
+SUBST_SED.makefile+=   -e 's,/usr/local,${PREFIX},g'
+SUBST_SED.makefile+=   -e 's,share/man,${PKGMANDIR},g'
+SUBST_SED.makefile+=   -e 's,^CFLAGS =,CFLAGS +=,'
+SUBST_SED.makefile+=   -e 's,^LDFLAGS =,LDFLAGS +=,'
+SUBST_SED.makefile+=   -e 's/cc/${CC:Q}/'
 
-do-install:
-       ${INSTALL_PROGRAM} ${WRKSRC}/dvtm ${DESTDIR}${PREFIX}/bin
-       ${INSTALL_MAN} ${WRKSRC}/dvtm.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1
+INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 .include "options.mk"
 
diff -r fb0c9fd74719 -r 756fcabcf078 misc/dvtm/PLIST
--- a/misc/dvtm/PLIST   Sun May 25 10:26:41 2008 +0000
+++ b/misc/dvtm/PLIST   Sun May 25 11:46:33 2008 +0000
@@ -1,3 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2008/03/09 17:20:47 tnn Exp $
+@comment $NetBSD: PLIST,v 1.2 2008/05/25 11:46:33 tnn Exp $
 bin/dvtm
+bin/dvtm-status
 man/man1/dvtm.1
diff -r fb0c9fd74719 -r 756fcabcf078 misc/dvtm/distinfo
--- a/misc/dvtm/distinfo        Sun May 25 10:26:41 2008 +0000
+++ b/misc/dvtm/distinfo        Sun May 25 11:46:33 2008 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.1.1.1 2008/03/09 17:20:47 tnn Exp $
+$NetBSD: distinfo,v 1.2 2008/05/25 11:46:33 tnn Exp $
 
-SHA1 (dvtm-0.4.tar.gz) = bcb12317fb2cd02e6b492560d945d672fcc8e856
-RMD160 (dvtm-0.4.tar.gz) = 80f86da540aff047c2ee8cc01cc73c8fb2a1c0b1
-Size (dvtm-0.4.tar.gz) = 20761 bytes
-SHA1 (patch-aa) = 9a0563e52dd957a35c26087fa1b4cc6750772b1b
+SHA1 (dvtm-0.4.1.tar.gz) = 44e032d6f4334ce0dfe92cc0121c6cb46d2d95bb
+RMD160 (dvtm-0.4.1.tar.gz) = bfaf0869c74bf180da1e13ba35a87c68844799a5
+Size (dvtm-0.4.1.tar.gz) = 21729 bytes
+SHA1 (patch-aa) = 5cf00f7d62eb2f4cf46798c1518dd54c477b8d83
diff -r fb0c9fd74719 -r 756fcabcf078 misc/dvtm/patches/patch-aa
--- a/misc/dvtm/patches/patch-aa        Sun May 25 10:26:41 2008 +0000
+++ b/misc/dvtm/patches/patch-aa        Sun May 25 11:46:33 2008 +0000
@@ -1,26 +1,33 @@
-$NetBSD: patch-aa,v 1.1.1.1 2008/03/09 17:20:47 tnn Exp $
+$NetBSD: patch-aa,v 1.2 2008/05/25 11:46:33 tnn Exp $
 
---- config.mk.orig     2008-02-06 17:30:25.000000000 +0100
-+++ config.mk
-@@ -3,16 +3,13 @@ VERSION = 0.4
- 
- # Customize below to fit your system
- 
--PREFIX = /usr/local
--MANPREFIX = ${PREFIX}/share/man
-+MANPREFIX = ${DESTDIR}${PREFIX}/${PKGMANDIR}
+--- Makefile.orig      2008-05-10 18:39:01.000000000 +0200
++++ Makefile
+@@ -20,6 +20,7 @@ ${OBJ}: config.h config.mk
+ dvtm: ${OBJ}
+       @echo CC -o $@
+       @${CC} -o $@ ${OBJ} ${LDFLAGS}
++      @sed "s/VERSION/${VERSION}/g" < dvtm.1 > dvtm.1.out
  
- INCS = -I. -I/usr/include -I/usr/local/include 
--LIBS = -lc -lutil -lncurses
--LIBS_UTF8 = -lc -lutil -lncursesw
-+LIBS = -lc -lutil -lncurses -L/usr/lib -L${DESTDIR}${PREFIX}/lib
-+LIBS_UTF8 = -lc -lutil -lncursesw -L/usr/lib -L${DESTDIR}${PREFIX}/lib
+ unicode: clean
+       @make LIBS='${LIBS_UTF8}' CFLAGS='${CFLAGS} -DUSE_UTF8'
+@@ -45,15 +46,12 @@ 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
+       @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
  
--CFLAGS = -std=c99 -Os ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
--LDFLAGS = -L/usr/lib -L/usr/local/lib ${LIBS}
-+CFLAGS += ${INCS} -DVERSION=\"${VERSION}\" -DNDEBUG
-+LDFLAGS += ${LIBS}
- 
- DEBUG_CFLAGS = -std=c99 -O0 -g -ggdb ${INCS} -Wall -DVERSION=\"${VERSION}\"
--
--CC = cc
+ uninstall:
+       @echo removing executable file from ${DESTDIR}${PREFIX}/bin



Home | Main Index | Thread Index | Old Index