Update to hgview-1.8.2.
Also put examples in the right place.
Tested all 3 interfaces on a large hg repo (pypy).
OK?
Index: Makefile
===================================================================
RCS file: /home/edd/cvsync/ports/devel/hgview/Makefile,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 Makefile
--- Makefile 1 May 2014 08:48:19 -0000 1.1.1.1
+++ Makefile 30 Aug 2014 15:31:55 -0000
@@ -1,8 +1,8 @@
-# $OpenBSD: Makefile,v 1.1.1.1 2014/05/01 08:48:19 edd Exp $
+# $OpenBSD$
COMMENT = fast Mercurial log navigator
-MODPY_EGG_VERSION = 1.8.0
+MODPY_EGG_VERSION = 1.8.2
DISTNAME = hgview-${MODPY_EGG_VERSION}
CATEGORIES = devel
@@ -12,8 +12,7 @@ MAINTAINER = Edd Barrett <[email protected]
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
-MASTER_SITES = http://download.logilab.org/pub/hgview/
-
+MASTER_SITES = ${MASTER_SITE_PYPI:=h/hgview/}
MODULES = lang/python
BUILD_DEPENDS = textproc/asciidoc \
textproc/xmlto \
@@ -26,5 +25,13 @@ RUN_DEPENDS = x11/py-qt4 \
USE_GMAKE = Yes
NO_TEST = Yes
+
+# Aside from the examples, the doc dir is empty. Check this is still
+# the case when updating.
+post-install:
+ mv ${PREFIX}/share/doc/hgview/examples/ \
+ ${PREFIX}/share/examples/hgview
+ rm -Rf ${PREFIX}/share/doc/hgview
+
.include <bsd.port.mk>
Index: distinfo
===================================================================
RCS file: /home/edd/cvsync/ports/devel/hgview/distinfo,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 distinfo
--- distinfo 1 May 2014 08:48:19 -0000 1.1.1.1
+++ distinfo 30 Aug 2014 15:31:55 -0000
@@ -1,2 +1,2 @@
-SHA256 (hgview-1.8.0.tar.gz) = A8gDFs0GU3jSjuUUUrTvBhf/SfsUXJsWv7O9hxJs7f0=
-SIZE (hgview-1.8.0.tar.gz) = 177378
+SHA256 (hgview-1.8.2.tar.gz) = D0wtfkDTxqt6REUCNm7iYv22ysqXwyHnjU5DDnGgRlU=
+SIZE (hgview-1.8.2.tar.gz) = 178453
Index: patches/patch-hgviewlib_curses_application_py
===================================================================
RCS file: patches/patch-hgviewlib_curses_application_py
diff -N patches/patch-hgviewlib_curses_application_py
--- patches/patch-hgviewlib_curses_application_py 1 May 2014 08:48:19
-0000 1.1.1.1
+++ /dev/null 1 Jan 1970 00:00:00 -0000
@@ -1,19 +0,0 @@
-$OpenBSD: patch-hgviewlib_curses_application_py,v 1.1.1.1 2014/05/01 08:48:19
edd Exp $
-
-Detect urwid properly. From here:
-https://www.logilab.org/ticket/182147
-
---- hgviewlib/curses/application.py.orig Fri Jan 31 19:40:05 2014
-+++ hgviewlib/curses/application.py Mon Feb 3 14:30:28 2014
-@@ -59,9 +59,9 @@ class HgViewUrwidApplication(HgViewApplication):
- def get_screen(self):
- """return the screen instance to use"""
- if self.opts.interface == 'curses' and \
-- map(int, URWID_VERSION.split('.')) < (1,0,0):
-+ tuple(map(int, URWID_VERSION.split('.'))) < (1,0,0):
- raise ApplicationError('The "curses" interface could not be use '
-- 'with old urwid version ()%s < 1.0.0.'
-+ 'with old urwid version (%s < 1.0.0).'
- 'Use the"raw" interface' %
- URWID_VERSION)
- if self.opts.interface == 'raw':
Index: patches/patch-setup_py
===================================================================
RCS file: /home/edd/cvsync/ports/devel/hgview/patches/patch-setup_py,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 patch-setup_py
--- patches/patch-setup_py 1 May 2014 08:48:19 -0000 1.1.1.1
+++ patches/patch-setup_py 30 Aug 2014 15:31:55 -0000
@@ -1,4 +1,4 @@
-$OpenBSD: patch-setup_py,v 1.1.1.1 2014/05/01 08:48:19 edd Exp $
+$OpenBSD$
Fix calls to gmake.
Index: pkg/PLIST
===================================================================
RCS file: /home/edd/cvsync/ports/devel/hgview/pkg/PLIST,v
retrieving revision 1.1.1.1
diff -u -p -r1.1.1.1 PLIST
--- pkg/PLIST 1 May 2014 08:48:19 -0000 1.1.1.1
+++ pkg/PLIST 30 Aug 2014 15:31:55 -0000
@@ -1,6 +1,5 @@
-@comment $OpenBSD: PLIST,v 1.1.1.1 2014/05/01 08:48:19 edd Exp $
+@comment $OpenBSD$
bin/hgview
-lib/python${MODPY_VERSION}/site-packages/hgext/
lib/python${MODPY_VERSION}/site-packages/hgext/hgview.py
lib/python${MODPY_VERSION}/site-packages/hgext/hgview.pyc
lib/python${MODPY_VERSION}/site-packages/hgview-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
@@ -99,5 +98,5 @@ lib/python${MODPY_VERSION}/site-packages
lib/python${MODPY_VERSION}/site-packages/hgviewlib/util.py
lib/python${MODPY_VERSION}/site-packages/hgviewlib/util.pyc
@man man/man1/hgview.1
-share/hgview/
-share/hgview/description.css
+share/examples/hgview/
+share/examples/hgview/description.css
--
Best Regards
Edd Barrett
http://www.theunixzoo.co.uk