import gutenpy 0.1.10
GutenPy is a comfortable text reader and catalog browser for Project Gutenberg. It features handy bookmarking, word definition lookups, and powerful catalog browser that uses regular expression filtering. ok naddy
This commit is contained in:
parent
ac1bcee7c9
commit
5dd41421ba
45
misc/gutenpy/Makefile
Normal file
45
misc/gutenpy/Makefile
Normal file
@ -0,0 +1,45 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2006/07/02 16:54:24 jasper Exp $
|
||||
|
||||
COMMENT= "text reader and catalog browser for Project Gutenberg"
|
||||
|
||||
DISTNAME= gutenpy-0.1.10
|
||||
CATEGORIES= misc x11
|
||||
|
||||
HOMEPAGE= http://gutenpy.sourceforge.net/
|
||||
|
||||
MAINTAINER= Jasper Lievisse Adriaase <jasper@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=gutenpy/}
|
||||
EXTRACT_SUFX= .zip
|
||||
|
||||
MODULES= lang/python
|
||||
|
||||
BUILD_DEPENDS= ${RUN_DEPENDS}
|
||||
RUN_DEPENDS= :py-xml-*:textproc/py-xml \
|
||||
:py-gtk2->=2.6.3:x11/py-gtk2
|
||||
|
||||
NO_BUILD= Yes
|
||||
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
|
||||
|
||||
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} ${WRKSRC}/GutenPy/* ${LIB_DIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/gutenpy/
|
||||
${INSTALL_DATA} ${WRKSRC}/icons/* ${PREFIX}/share/gutenpy/icons/
|
||||
|
||||
.include <bsd.port.mk>
|
4
misc/gutenpy/distinfo
Normal file
4
misc/gutenpy/distinfo
Normal file
@ -0,0 +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
|
48
misc/gutenpy/patches/patch-gutenpy_py
Normal file
48
misc/gutenpy/patches/patch-gutenpy_py
Normal file
@ -0,0 +1,48 @@
|
||||
$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
|
||||
@@ -1,4 +1,4 @@
|
||||
-#!/usr/bin/python2.4
|
||||
+#!!!PREFIX!!/bin/python2.4
|
||||
'''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
|
||||
|
3
misc/gutenpy/pkg/DESCR
Normal file
3
misc/gutenpy/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
GutenPy is a comfortable text reader and catalog browser for Project
|
||||
Gutenberg. It features handy bookmarking, word definition lookups, and
|
||||
powerful catalog browser that uses regular expression filtering.
|
24
misc/gutenpy/pkg/PLIST
Normal file
24
misc/gutenpy/pkg/PLIST
Normal file
@ -0,0 +1,24 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/02 16:54:24 jasper Exp $
|
||||
bin/gutenpy
|
||||
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/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/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
|
Loading…
x
Reference in New Issue
Block a user