1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-19 08:13:21 +00:00

Fix build with py-kiwi-gtk 1.11.1

- Bump PORTREVISION for package change
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-12-28 13:41:50 +00:00
parent 849b56c328
commit c13e616154
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=457453
3 changed files with 40 additions and 7 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= gazpacho
PORTVERSION= 0.7.2
PORTREVISION= 6
PORTREVISION= 7
CATEGORIES= devel python
MASTER_SITES= GNOME/sources/gazpacho/${PORTVERSION:R}
@ -29,6 +29,9 @@ OPTIONS_DEFINE= DOCS EXAMPLES
post-patch:
@${REINPLACE_CMD} -e 's|share/doc/gazpacho/examples|${EXAMPLESDIR}|g' ${WRKSRC}/setup.py
post-install:
${INSTALL_DATA} ${WRKSRC}/gazpacho.desktop ${STAGEDIR}${PREFIX}/share/applications/
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for f in ${PORTDOCS}

View File

@ -0,0 +1,30 @@
--- gazpacho/__init__.py.orig 2007-07-29 07:57:30 UTC
+++ gazpacho/__init__.py
@@ -16,19 +16,20 @@
import os
from kiwi.environ import Library
+from kiwi.environ import _KiwiProvider
dirname = os.path.abspath(
os.path.join(os.path.dirname(os.path.realpath(__file__)), '..'))
lib = Library('gazpacho', root=dirname)
if lib.uninstalled:
- lib.add_global_resource('catalog', 'catalogs')
- lib.add_global_resource('glade', 'glade')
- lib.add_global_resource('resource', 'resources')
- lib.add_global_resource('doc', '.')
- lib.add_global_resource('pixmap', 'pixmaps')
- lib.add_global_resource('pixmap', 'pixmaps/kiwi')
- lib.add_global_resource('plugins', 'plugins')
+ _KiwiProvider.add_resource('catalog', os.path.join(dirname, 'catalog'))
+ _KiwiProvider.add_resource('glade', os.path.join(dirname, 'glade'))
+ _KiwiProvider.add_resource('resource', os.path.join(dirname, 'resources'))
+ _KiwiProvider.add_resource('doc', os.path.join(dirname, '.'))
+ _KiwiProvider.add_resource('pixmap', os.path.join(dirname, 'pixmaps'))
+ _KiwiProvider.add_resource('pixmap', os.path.join(dirname, 'pixmaps/kiwi'))
+ _KiwiProvider.add_resource('plugins', os.path.join(dirname, 'plugins'))
lib.enable_translation()
__version__ = "0.7.2"

View File

@ -1,16 +1,16 @@
--- setup.py.orig Tue Sep 12 13:54:16 2006
+++ setup.py Tue Sep 12 13:55:22 2006
@@ -7,8 +7,6 @@
from gazpacho import __version__
--- setup.py.orig 2007-03-05 16:06:37 UTC
+++ setup.py
@@ -8,8 +8,6 @@ from gazpacho import __version__
templates = []
data_files = [
- ('share/doc/gazpacho', ('AUTHORS', 'ChangeLog', 'CONTRIBUTORS',
- 'COPYING', 'README', 'NEWS')),
('share/doc/gazpacho/examples', listfiles('examples', '*')),
('$datadir/catalogs', listfiles('catalogs', 'base.xml')),
('$datadir/pixmaps', listfiles('pixmaps', '*.png')),
@@ -17,7 +15,6 @@
]
@@ -34,7 +32,6 @@ data_files.extend(list_plugins())
resources = dict(locale='$prefix/share/locale')
global_resources = dict(
- doc='$prefix/share/doc/gazpacho',