From 1a20db00e1b1858000c26f2c48bd3b82976a7fd3 Mon Sep 17 00:00:00 2001 From: jasper Date: Sun, 30 Jul 2006 15:19:28 +0000 Subject: [PATCH] update GutenPy to 0.3.0 ok naddy --- misc/gutenpy/Makefile | 11 +++--- misc/gutenpy/distinfo | 8 ++--- misc/gutenpy/patches/patch-gutenpy_py | 49 +++------------------------ misc/gutenpy/pkg/PLIST | 30 +++++++++------- 4 files changed, 31 insertions(+), 67 deletions(-) diff --git a/misc/gutenpy/Makefile b/misc/gutenpy/Makefile index c58c4c423bc..f5381aa9ed1 100644 --- a/misc/gutenpy/Makefile +++ b/misc/gutenpy/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.1.1.1 2006/07/02 16:54:24 jasper Exp $ +# $OpenBSD: Makefile,v 1.2 2006/07/30 15:19:28 jasper Exp $ COMMENT= "text reader and catalog browser for Project Gutenberg" -DISTNAME= gutenpy-0.1.10 +DISTNAME= gutenpy-0.3.0 CATEGORIES= misc x11 HOMEPAGE= http://gutenpy.sourceforge.net/ @@ -30,16 +30,15 @@ NO_REGRESS= Yes LIB_DIR= ${PREFIX}/lib/python${MODPY_VERSION}/site-packages/GutenPy do-configure: - @perl -pi -e 's,!!PREFIX!!,${PREFIX},' ${WRKSRC}/gutenpy.py - @perl -pi -e 's,!!LIB_DIR!!,${LIB_DIR},' ${WRKSRC}/gutenpy.py + @perl -pi -e 's,!!PYTHON!!,${MODPY_BIN},' ${WRKSRC}/gutenpy.py do-install: ${INSTALL_SCRIPT} ${WRKSRC}/gutenpy.py ${PREFIX}/bin/gutenpy ${INSTALL_DATA_DIR} ${LIB_DIR} ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/gutenpy - ${INSTALL_DATA_DIR} ${PREFIX}/share/gutenpy/icons + ${INSTALL_DATA_DIR} ${PREFIX}/share/pixmaps/gutenpy ${INSTALL_DATA} ${WRKSRC}/GutenPy/* ${LIB_DIR} ${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/gutenpy/ - ${INSTALL_DATA} ${WRKSRC}/icons/* ${PREFIX}/share/gutenpy/icons/ + ${INSTALL_DATA} ${WRKSRC}/icons/* ${PREFIX}/share/pixmaps/gutenpy/ .include diff --git a/misc/gutenpy/distinfo b/misc/gutenpy/distinfo index 8a9caf3fed6..e11083c1e52 100644 --- a/misc/gutenpy/distinfo +++ b/misc/gutenpy/distinfo @@ -1,4 +1,4 @@ -MD5 (gutenpy-0.1.10.zip) = b9619b302d40de1b376771a63765bce2 -RMD160 (gutenpy-0.1.10.zip) = ce16c83b0e6fda728ae07b694568f4d32a42ca50 -SHA1 (gutenpy-0.1.10.zip) = d6096bfbf7ed2196151ae4aeda5dcb1388db511e -SIZE (gutenpy-0.1.10.zip) = 78200 +MD5 (gutenpy-0.3.0.zip) = 3419c5f4020fa48ae48ea472c030b3c1 +RMD160 (gutenpy-0.3.0.zip) = 2844a3e4e8e4eb626583e5d2935966b8a2526cc6 +SHA1 (gutenpy-0.3.0.zip) = f9f7fd7823447266eabacd0befda4e52bd97c79c +SIZE (gutenpy-0.3.0.zip) = 96664 diff --git a/misc/gutenpy/patches/patch-gutenpy_py b/misc/gutenpy/patches/patch-gutenpy_py index a48d3078d85..cc6df5edb71 100644 --- a/misc/gutenpy/patches/patch-gutenpy_py +++ b/misc/gutenpy/patches/patch-gutenpy_py @@ -1,48 +1,9 @@ -$OpenBSD: patch-gutenpy_py,v 1.1.1.1 2006/07/02 16:54:24 jasper Exp $ ---- gutenpy.py.orig Wed Jun 28 09:26:51 2006 -+++ gutenpy.py Sat Jul 1 16:03:11 2006 +$OpenBSD: patch-gutenpy_py,v 1.2 2006/07/30 15:19:28 jasper Exp $ +--- gutenpy.py.orig Fri Jul 21 06:10:36 2006 ++++ gutenpy.py Thu Jul 27 18:27:26 2006 @@ -1,4 +1,4 @@ -#!/usr/bin/python2.4 -+#!!!PREFIX!!/bin/python2.4 ++#!!!PYTHON!! '''GutenPy - A tool to comfortably read Text Documents.''' -@@ -77,21 +77,21 @@ class AppMainWindow(gtk.Window): - filelist=[] - for arg in argv[1:]: - filelist.append(os.path.realpath(arg)) -- if not os.path.isfile('GutenPy/ui_info.xml'): -+ if not os.path.isfile('!!LIB_DIR!!/ui_info.xml'): - os.chdir(os.path.dirname(os.path.realpath(argv[0]))) -- self.helpfile = os.path.realpath('docs/help.txt') -- self.license = os.path.realpath('docs/COPYING.txt') -+ self.helpfile = os.path.realpath('!!PREFIX!!/share/doc/gutenpy/help.txt') -+ self.license = os.path.realpath('!!PREFIX!!/share/doc/gutenpy/COPYING.txt') - - gtk.window_set_default_icon_list( -- gtk.gdk.pixbuf_new_from_file('icons/book-lg.png'), -- gtk.gdk.pixbuf_new_from_file('icons/book-sm.png')) -+ gtk.gdk.pixbuf_new_from_file('!!PREFIX!!/share/gutenpy/icons/book-lg.png'), -+ gtk.gdk.pixbuf_new_from_file('!!PREFIX!!/share/gutenpy/icons/book-sm.png')) - factory = gtk.IconFactory() - factory.add('gutenberg_org', -- gtk.IconSet(gtk.gdk.pixbuf_new_from_file('icons/gutenberg_org.png'))) -+ gtk.IconSet(gtk.gdk.pixbuf_new_from_file('!!PREFIX!!/share/gutenpy/icons/gutenberg_org.png'))) - factory.add('bookmark', -- gtk.IconSet(gtk.gdk.pixbuf_new_from_file('icons/tango-bookmark.png'))) -+ gtk.IconSet(gtk.gdk.pixbuf_new_from_file('!!PREFIX!!/share/gutenpy/icons/tango-bookmark.png'))) - factory.add('dict_org', -- gtk.IconSet(gtk.gdk.pixbuf_new_from_file('icons/dict_org.png'))) -+ gtk.IconSet(gtk.gdk.pixbuf_new_from_file('!!PREFIX!!/share/gutenpy/icons/dict_org.png'))) - factory.add_default() - - self.prefs = AppPrefs() -@@ -116,7 +116,7 @@ class AppMainWindow(gtk.Window): - self.add_accel_group(self.uimanager.get_accel_group()) - - try: -- self.uimanagerid = self.uimanager.add_ui_from_file('GutenPy/ui_info.xml') -+ self.uimanagerid = self.uimanager.add_ui_from_file('!!LIB_DIR!!/ui_info.xml') - except gobject.GError, msg: - print "building menus failed: %s" % msg - + A comfortable reader and catalog browser for Project Gutenberg.''' diff --git a/misc/gutenpy/pkg/PLIST b/misc/gutenpy/pkg/PLIST index 716b9934cf6..cc15fb532ee 100644 --- a/misc/gutenpy/pkg/PLIST +++ b/misc/gutenpy/pkg/PLIST @@ -1,24 +1,28 @@ -@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/02 16:54:24 jasper Exp $ +@comment $OpenBSD: PLIST,v 1.2 2006/07/30 15:19:28 jasper Exp $ bin/gutenpy +lib/python${MODPY_VERSION}/ +lib/python${MODPY_VERSION}/site-packages/ lib/python${MODPY_VERSION}/site-packages/GutenPy/ lib/python${MODPY_VERSION}/site-packages/GutenPy/__init__.py lib/python${MODPY_VERSION}/site-packages/GutenPy/bookmarks.py lib/python${MODPY_VERSION}/site-packages/GutenPy/catalog.py +lib/python${MODPY_VERSION}/site-packages/GutenPy/charset_widget.py lib/python${MODPY_VERSION}/site-packages/GutenPy/dictclient.py lib/python${MODPY_VERSION}/site-packages/GutenPy/rdfparse.py -lib/python${MODPY_VERSION}/site-packages/GutenPy/ui_info.xml lib/python${MODPY_VERSION}/site-packages/GutenPy/widgets.py share/doc/gutenpy/ share/doc/gutenpy/COPYING.txt -share/doc/gutenpy/MIRROS_ALL.txt -share/doc/gutenpy/Regular Expression HOWTO.htm -share/doc/gutenpy/Regular Expression Syntax.html +share/doc/gutenpy/MIRRORS_ALL.txt +share/doc/gutenpy/Regular_Expression_HOWTO.htm +share/doc/gutenpy/Regular_Expression_Syntax.html share/doc/gutenpy/help.txt -share/gutenpy/ -share/gutenpy/icons/ -share/gutenpy/icons/book-lg.png -share/gutenpy/icons/book-sm.png -share/gutenpy/icons/book.ico -share/gutenpy/icons/dict_org.png -share/gutenpy/icons/gutenberg_org.png -share/gutenpy/icons/tango-bookmark.png +share/pixmaps/ +share/pixmaps/gutenpy/ +share/pixmaps/gutenpy/book-lg.png +share/pixmaps/gutenpy/book-sm.png +share/pixmaps/gutenpy/book.ico +share/pixmaps/gutenpy/bookmark.png +share/pixmaps/gutenpy/dict_org.png +share/pixmaps/gutenpy/gutenberg_org.png +share/pixmaps/gutenpy/gutenpy.xpm +share/pixmaps/gutenpy/sidebar.png