Thu Apr 16 22:43:31 2009 UTC ()
Update to 0.3.3 with post-release patches for easier installation and
a bug fix.
Set LICENSE.
Diffuse 0.3.3 - 2009-04-13
- fixed a bug handling the backspace key with the cursor in the first column
Diffuse 0.3.2 - 2009-04-13
- POSIX installer with '--destdir=' and '--files-only' options for packagers
- vi-like keybindings for line mode
- '-m' option to open modified files in separate tabs
- 'Merge From Left Then Right' and 'Merge From Right Then Left' menu items
- drag-n-drop support
- preferences for behaviour of tabs
- files with edits now tagged with '*'
- auto indent
- 'Open File In New Tab...' and 'Open Modified Files...' menu items
- 'Save All' menu item
- mac-style line ending support
- new end of line display behaviour
- improved organisation of menu items
- button bar no longer grabs keyboard focus
- removed dependence on urllib module
- errors are now reported on stderr
- removed TODO list
- minor bug fixes
(wiz)
diff -r1.7 -r1.8 pkgsrc/devel/diffuse/Makefile
diff -r1.3 -r1.4 pkgsrc/devel/diffuse/distinfo
diff -r1.2 -r1.3 pkgsrc/devel/diffuse/patches/patch-aa
diff -r0 -r1.1 pkgsrc/devel/diffuse/patches/patch-ab
diff -r0 -r1.1 pkgsrc/devel/diffuse/patches/patch-ac
--- pkgsrc/devel/diffuse/Makefile 2009/04/06 10:13:28 1.7
+++ pkgsrc/devel/diffuse/Makefile 2009/04/16 22:43:30 1.8
| @@ -1,64 +1,40 @@ | | | @@ -1,64 +1,40 @@ |
1 | # $NetBSD: Makefile,v 1.7 2009/04/06 10:13:28 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.8 2009/04/16 22:43:30 wiz Exp $ |
2 | # | | 2 | # |
3 | | | 3 | |
4 | DISTNAME= diffuse-0.3.1 | | 4 | DISTNAME= diffuse-0.3.3 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=diffuse/} | | 6 | MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=diffuse/} |
7 | EXTRACT_SUFX= .tar.bz2 | | 7 | EXTRACT_SUFX= .tar.bz2 |
8 | | | 8 | |
9 | MAINTAINER= pkgsrc-users@NetBSD.org | | 9 | MAINTAINER= pkgsrc-users@NetBSD.org |
10 | HOMEPAGE= http://diffuse.sourceforge.net/ | | 10 | HOMEPAGE= http://diffuse.sourceforge.net/ |
11 | COMMENT= Graphical tool for merging and comparing text files | | 11 | COMMENT= Graphical tool for merging and comparing text files |
12 | | | 12 | |
| | | 13 | LICENSE= gnu-gpl-v2 |
| | | 14 | |
13 | PKG_DESTDIR_SUPPORT= user-destdir | | 15 | PKG_DESTDIR_SUPPORT= user-destdir |
14 | | | 16 | |
15 | USE_LANGUAGES= # none | | 17 | USE_LANGUAGES= # none |
16 | USE_DIRS= xdg-1.4 gnome2-1.6 | | 18 | USE_DIRS= xdg-1.4 gnome2-1.6 |
17 | | | 19 | |
18 | INSTALLATION_DIRS= bin ${PKGMANDIR}/man1 share/applications | | | |
19 | INSTALLATION_DIRS+= share/diffuse/syntax share/examples/diffuse | | | |
20 | INSTALLATION_DIRS+= share/gnome/help/diffuse share/pixmaps | | | |
21 | INSTALLATION_DIRS+= share/gnome/help/diffuse/C share/omf/diffuse | | | |
22 | | | | |
23 | CONF_FILES+= ${PREFIX}/share/examples/diffuse/diffuserc \ | | 20 | CONF_FILES+= ${PREFIX}/share/examples/diffuse/diffuserc \ |
24 | ${PKG_SYSCONFDIR}/diffuserc | | 21 | ${PKG_SYSCONFDIR}/diffuserc |
25 | | | 22 | |
26 | PYTHON_VERSIONS_ACCEPTED= 25 24 | | 23 | PYTHON_VERSIONS_ACCEPTED= 25 24 |
27 | REPLACE_PYTHON= src/usr/bin/diffuse | | | |
28 | | | | |
29 | SUBST_CLASSES+= paths | | | |
30 | SUBST_FILES.paths+= src/etc/diffuserc | | | |
31 | SUBST_FILES.paths+= src/usr/bin/diffuse | | | |
32 | SUBST_FILES.paths+= src/usr/share/omf/diffuse/diffuse-C.omf | | | |
33 | SUBST_FILES.paths+= src/usr/share/man/man1/diffuse.1 | | | |
34 | SUBST_SED.paths+= -e "s,/usr,${PREFIX}," | | | |
35 | SUBST_SED.paths+= -e "s,/etc,${PKG_SYSCONFDIR}," | | | |
36 | SUBST_STAGE.paths= post-patch | | | |
37 | SUBST_MESSAGE.paths= Fixing hardcoded paths. | | | |
38 | | | 24 | |
39 | do-build: | | 25 | do-build: |
40 | # nothing | | 26 | # nothing |
41 | | | 27 | |
42 | do-install: | | 28 | do-install: |
43 | ${INSTALL_SCRIPT} ${WRKSRC}/src/usr/bin/diffuse ${DESTDIR}${PREFIX}/bin | | 29 | cd ${WRKSRC} && ${PYTHONBIN} ./install.py --destdir=${DESTDIR} \ |
44 | ${INSTALL_DATA} ${WRKSRC}/src/usr/share/pixmaps/diffuse.png \ | | 30 | --examplesdir=${PREFIX}/share/examples/diffuse \ |
45 | ${DESTDIR}${PREFIX}/share/pixmaps | | 31 | --mandir=${PREFIX}/${PKGMANDIR} \ |
46 | ${INSTALL_DATA} ${WRKSRC}/src/usr/share/gnome/help/diffuse/C/diffuse.xml \ | | 32 | --prefix=${PREFIX} --sysconfdir=${PKG_SYSCONFDIR} \ |
47 | ${DESTDIR}${PREFIX}/share/gnome/help/diffuse/C | | 33 | --pythonbin=${PYTHONBIN} --files-only |
48 | ${INSTALL_DATA} ${WRKSRC}/src/usr/share/omf/diffuse/diffuse-C.omf \ | | | |
49 | ${DESTDIR}${PREFIX}/share/omf/diffuse | | | |
50 | ${INSTALL_DATA} ${WRKSRC}/src/usr/share/applications/diffuse.desktop \ | | | |
51 | ${DESTDIR}${PREFIX}/share/applications | | | |
52 | ${INSTALL_MAN} ${WRKSRC}/src/usr/share/man/man1/diffuse.1 \ | | | |
53 | ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1 | | | |
54 | ${INSTALL_DATA} ${WRKSRC}/src/usr/share/diffuse/syntax/* \ | | | |
55 | ${DESTDIR}${PREFIX}/share/diffuse/syntax | | | |
56 | ${INSTALL_DATA} ${WRKSRC}/src/etc/diffuserc \ | | | |
57 | ${DESTDIR}${PREFIX}/share/examples/diffuse | | | |
58 | | | 34 | |
59 | .include "../../lang/python/application.mk" | | 35 | .include "../../lang/python/application.mk" |
60 | .include "../../mk/omf-scrollkeeper.mk" | | 36 | .include "../../mk/omf-scrollkeeper.mk" |
61 | BUILDLINK_API_DEPENDS.pygtk2+= ${PYPKGPREFIX}-gtk2>=2.10 | | 37 | BUILDLINK_API_DEPENDS.pygtk2+= ${PYPKGPREFIX}-gtk2>=2.10 |
62 | .include "../../x11/py-gtk2/buildlink3.mk" | | 38 | .include "../../x11/py-gtk2/buildlink3.mk" |
63 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" | | 39 | .include "../../sysutils/desktop-file-utils/desktopdb.mk" |
64 | .include "../../mk/bsd.pkg.mk" | | 40 | .include "../../mk/bsd.pkg.mk" |
--- pkgsrc/devel/diffuse/distinfo 2009/04/06 10:13:28 1.3
+++ pkgsrc/devel/diffuse/distinfo 2009/04/16 22:43:30 1.4
| @@ -1,6 +1,8 @@ | | | @@ -1,6 +1,8 @@ |
1 | $NetBSD: distinfo,v 1.3 2009/04/06 10:13:28 wiz Exp $ | | 1 | $NetBSD: distinfo,v 1.4 2009/04/16 22:43:30 wiz Exp $ |
2 | | | 2 | |
3 | SHA1 (diffuse-0.3.1.tar.bz2) = e7cfcb8c066c0f1ac57425966668f3e8a5d76c3a | | 3 | SHA1 (diffuse-0.3.3.tar.bz2) = e9c19fd00c76ff9d837190621579500bffe5ed03 |
4 | RMD160 (diffuse-0.3.1.tar.bz2) = 7fc0f785794923994efef5dfd15185ad6d0310aa | | 4 | RMD160 (diffuse-0.3.3.tar.bz2) = 6a879d5aa5b10fd42ff729f56363eba0ae210df7 |
5 | Size (diffuse-0.3.1.tar.bz2) = 88923 bytes | | 5 | Size (diffuse-0.3.3.tar.bz2) = 96642 bytes |
6 | SHA1 (patch-aa) = 1a98c5d6b9b61ee611ad8748bdb7d8f531bf286e | | 6 | SHA1 (patch-aa) = b6cfd3f8676afecef2ee62cb1e51da509ebaaec6 |
| | | 7 | SHA1 (patch-ab) = cb4621e8dcf2e3156cee1c9487b705e6ac5d8cfb |
| | | 8 | SHA1 (patch-ac) = 743def25aa7d4748fee16dfaa3aed0ccd034410e |
--- pkgsrc/devel/diffuse/patches/Attic/patch-aa 2009/04/06 10:13:28 1.2
+++ pkgsrc/devel/diffuse/patches/Attic/patch-aa 2009/04/16 22:43:31 1.3
| @@ -1,13 +1,13 @@ | | | @@ -1,13 +1,13 @@ |
1 | $NetBSD: patch-aa,v 1.2 2009/04/06 10:13:28 wiz Exp $ | | 1 | $NetBSD: patch-aa,v 1.3 2009/04/16 22:43:31 wiz Exp $ |
2 | | | 2 | |
3 | --- src/usr/bin/diffuse.orig 2009-03-30 09:58:33.000000000 +0000 | | 3 | --- src/usr/bin/diffuse.orig 2009-04-13 22:24:24.000000000 +0000 |
4 | +++ src/usr/bin/diffuse | | 4 | +++ src/usr/bin/diffuse |
5 | @@ -100,7 +100,7 @@ import shlex | | 5 | @@ -1296,7 +1296,7 @@ class VCSs: |
6 | import stat | | 6 | if len(s) > 2 and s[0] in 'ACMR': |
7 | import string | | 7 | k = os.path.join(self.root, prefs.convertToNativePath(s[2:])) |
8 | import subprocess | | 8 | if not isabs: |
9 | -import urllib | | 9 | - k = replpath(pwd, k) |
10 | +#import urllib | | 10 | + k = relpath(pwd, k) |
11 | import webbrowser | | 11 | r[k] = s[0] |
12 | | | 12 | for k in sorted(r.keys()): |
13 | # platform tests | | 13 | v = r[k] |
$NetBSD: patch-ab,v 1.1 2009/04/16 22:43:31 wiz Exp $
--- install.py.orig 2009-04-13 22:24:25.000000000 +0000
+++ install.py
@@ -39,7 +39,12 @@ if os.name == 'nt':
os.umask(stat.S_IWGRP | stat.S_IWOTH)
# option defaults
-options = { 'destdir': '/', 'prefix': '/usr/local/', 'sysconfdir': '/etc/', 'python-interpreter': '/usr/bin/env python' }
+options = { 'destdir': '/',
+ 'prefix': '/usr/local/',
+ 'sysconfdir': '/etc/',
+ 'examplesdir': '${sysconfdir}',
+ 'mandir': '${prefix}/share/man/',
+ 'pythonbin': '/usr/bin/env python' }
install = True
files_only = False
@@ -68,12 +73,20 @@ Options:
directory for installing read-only single-machine data
default: %s
- --python-interpreter=PATH
+ --examplesdir=PATH
+ directory for example configuration files
+ default: %s
+
+ --mandir=PATH
+ directory for man pages
+ default: %s
+
+ --pythonbin=PATH
command for python interpreter
default: %s
--files-only
- only install/remove files; skip the post install/removal tasks""" % (app_path, options['destdir'], options['prefix'], options['sysconfdir'], options['python-interpreter'])
+ only install/remove files; skip the post install/removal tasks""" % (app_path, options['destdir'], options['prefix'], options['sysconfdir'], options['examplesdir'], options['mandir'], options['pythonbin'])
sys.exit(0)
# returns the list of components used in a path
@@ -149,8 +162,14 @@ for arg in sys.argv[1:]:
logError('Unknown option "%s".' % (arg, ))
sys.exit(1)
+# expand variables
+for s in 'sysconfdir', 'examplesdir', 'mandir':
+ for k in 'prefix', 'sysconfdir':
+ if s != k:
+ options[s] = options[s].replace('${%s}' % (k, ), options[k])
+
# validate inputs
-for opt in 'prefix', 'sysconfdir':
+for opt in 'prefix', 'sysconfdir', 'examplesdir', 'mandir':
p = options[opt]
c = components(p)
if os.pardir in c or os.curdir in c:
@@ -163,7 +182,9 @@ for opt in 'prefix', 'sysconfdir':
destdir = options['destdir']
prefix = options['prefix']
sysconfdir = options['sysconfdir']
-python = options['python-interpreter']
+examplesdir = options['examplesdir']
+mandir = options['mandir']
+pythonbin = options['pythonbin']
# tell the user what we are about to do
if install:
@@ -174,21 +195,27 @@ print '''Performing %s with:
destdir=%s
prefix=%s
sysconfdir=%s
- python-interpreter=%s''' % (stage, destdir, prefix, sysconfdir, python)
+ examplesdir=%s
+ mandir=%s
+ pythonbin=%s''' % (stage, destdir, prefix, sysconfdir, examplesdir, mandir, pythonbin)
# install files to prefix
processFiles(install, destdir, prefix, 'src/usr', {
- 'bin/diffuse': [ ("'../../etc/diffuserc'", repr(relpath(os.path.join(prefix, 'bin'), os.path.join(sysconfdir, 'diffuserc')))), ('/usr/bin/env python', python) ],
+ 'bin/diffuse': [ ("'../../etc/diffuserc'", repr(relpath(os.path.join(prefix, 'bin'), os.path.join(sysconfdir, 'diffuserc')))), ('/usr/bin/env python', pythonbin) ],
'share/applications/diffuse.desktop': None,
'share/diffuse/syntax/*.syntax': None,
'share/gnome/help/diffuse/C/diffuse.xml': [ ('/usr/', prefix), ('/etc/', sysconfdir) ],
- 'share/man/man1/diffuse.1': [ ('/usr/', prefix), ('/etc/', sysconfdir) ],
'share/omf/diffuse/diffuse-C.omf': [ ('/usr/', prefix) ],
'share/pixmaps/diffuse.png': None
})
+# install manual
+processFiles(install, destdir, mandir, 'src/usr/share/man', {
+ 'man1/diffuse.1': [ ('/usr/', prefix), ('/etc/', sysconfdir) ]
+ })
+
# install files to sysconfdir
-processFiles(install, destdir, sysconfdir, 'src/etc', { 'diffuserc': [ ('../usr', relpath(sysconfdir, prefix)) ] })
+processFiles(install, destdir, examplesdir, 'src/etc', { 'diffuserc': [ ('/etc/', sysconfdir), ('../usr', relpath(sysconfdir, prefix)) ] })
if not install:
# remove directories we own
$NetBSD: patch-ac,v 1.1 2009/04/16 22:43:31 wiz Exp $
--- src/etc/diffuserc.orig 2009-04-13 22:24:25.000000000 +0000
+++ src/etc/diffuserc
@@ -1,4 +1,4 @@
-# initialisation file for diffuse
+# /etc/diffuserc: System-wide initialisation file for Diffuse
#
# Copyright (C) 2006-2009 Derrick Moser <derrick_moser@yahoo.com>