aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/mirage
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-08-08 14:24:20 +0800
committermiwi <miwi@FreeBSD.org>2009-08-08 14:24:20 +0800
commitae3ecebbbfdb7e6bc04b4801db1088ae712d5d9c (patch)
tree0d4e4a4be1da1f1c64f9ea1b4986935e76f654b5 /graphics/mirage
parent0cdb385e5ce141fcf19eb24718e93fd4544a6232 (diff)
downloadfreebsd-ports-gnome-ae3ecebbbfdb7e6bc04b4801db1088ae712d5d9c.tar.gz
freebsd-ports-gnome-ae3ecebbbfdb7e6bc04b4801db1088ae712d5d9c.tar.zst
freebsd-ports-gnome-ae3ecebbbfdb7e6bc04b4801db1088ae712d5d9c.zip
- Update to 0.9.3
PR: 137529 Submitted by: Ports Fury
Diffstat (limited to 'graphics/mirage')
-rw-r--r--graphics/mirage/Makefile34
-rw-r--r--graphics/mirage/distinfo6
-rw-r--r--graphics/mirage/files/patch-setyp.py14
-rw-r--r--graphics/mirage/pkg-plist13
4 files changed, 51 insertions, 16 deletions
diff --git a/graphics/mirage/Makefile b/graphics/mirage/Makefile
index 7d61d8708d1b..4f1a37055076 100644
--- a/graphics/mirage/Makefile
+++ b/graphics/mirage/Makefile
@@ -6,21 +6,39 @@
#
PORTNAME= mirage
-PORTVERSION= 0.9
-PORTREVISION= 2
+PORTVERSION= 0.9.3
CATEGORIES= graphics
-MASTER_SITES= CENKES BERLIOS/mirageiv
+MASTER_SITES= BERLIOS/mirageiv
MAINTAINER= ports@FreeBSD.org
COMMENT= Fast and simple image viewer
USE_BZIP2= yes
-USE_GNOME= gtk20 pygtk2 pygnome2
-USE_PYTHON= yes
-USE_PYDISTUTILS=yes
+USE_GNOME= gtk20 pygtk2
+WANT_GNOME= yes
USE_GETTEXT= yes
+USE_PYTHON= yes
+USE_PYDISTUTILS= yes
+PYDISTUTILS_PKGNAME= Mirage
+
PORT_VERBS= ${PORTNAME} imgfuncs
-PYDISTUTILS_PKGNAME= Mirage
+.include <bsd.port.pre.mk>
+
+.if ${HAVE_GNOME:Mpygnome2}!=""
+USE_GNOME+= pygnome2
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's|%%LOCALBASE%%|${LOCALBASE}|g' ${WRKSRC}/setup.py
+
+post-install:
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in CHANGELOG README TODO TRANSLATORS
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/graphics/mirage/distinfo b/graphics/mirage/distinfo
index 3dff1fe783be..e34af41513f4 100644
--- a/graphics/mirage/distinfo
+++ b/graphics/mirage/distinfo
@@ -1,3 +1,3 @@
-MD5 (mirage-0.9.tar.bz2) = ba2bdc191cf36b839d14239c93bd57eb
-SHA256 (mirage-0.9.tar.bz2) = 8eacd1432d9a84ffe761f4d8c57f8d75bb8500b1e90746195ec39da1ebd121a8
-SIZE (mirage-0.9.tar.bz2) = 88087
+MD5 (mirage-0.9.3.tar.bz2) = 87bd8b8de578f34f4028073ecfa43474
+SHA256 (mirage-0.9.3.tar.bz2) = 51e4dd63f489a240ed01077189610ebc4e08e060efc11dac4d331dc212c9bcad
+SIZE (mirage-0.9.3.tar.bz2) = 98321
diff --git a/graphics/mirage/files/patch-setyp.py b/graphics/mirage/files/patch-setyp.py
new file mode 100644
index 000000000000..bcfac48da1bd
--- /dev/null
+++ b/graphics/mirage/files/patch-setyp.py
@@ -0,0 +1,14 @@
+--- setup.py.orig 2008-03-27 13:05:28.000000000 +0900
++++ setup.py 2009-07-24 05:13:46.000000000 +0900
+@@ -56,9 +56,9 @@
+ ],
+ py_modules = ['mirage'],
+ ext_modules = [Extension(name='imgfuncs', sources=['imgfuncs.c']),
+- Extension(name='xmouse', sources=['xmouse.c'], libraries=['X11'])],
++ Extension(name='xmouse', sources=['xmouse.c'], include_dirs=['%%LOCALBASE%%/include'], library_dirs=['%%LOCALBASE%%/lib'], libraries=['X11'])],
+ scripts = ['mirage'],
+- data_files=[('share/mirage', ['README', 'COPYING', 'CHANGELOG', 'TODO', 'TRANSLATORS', 'stock_shuffle.png', 'stock_leave-fullscreen.png', 'stock_fullscreen.png', 'mirage_blank.png']),
++ data_files=[('share/mirage', ['stock_shuffle.png', 'stock_leave-fullscreen.png', 'stock_fullscreen.png', 'mirage_blank.png']),
+ ('share/applications', ['mirage.desktop']),
+ ('share/pixmaps', ['mirage.png']),
+ ('share/locale/ru/LC_MESSAGES', ['mo/ru/mirage.mo']),
diff --git a/graphics/mirage/pkg-plist b/graphics/mirage/pkg-plist
index 41326e987ffd..f17280f8bdf5 100644
--- a/graphics/mirage/pkg-plist
+++ b/graphics/mirage/pkg-plist
@@ -3,22 +3,25 @@ bin/mirage
%%PYTHON_SITELIBDIR%%/mirage.py
%%PYTHON_SITELIBDIR%%/mirage.pyc
%%PYTHON_SITELIBDIR%%/mirage.pyo
+%%PYTHON_SITELIBDIR%%/xmouse.so
share/applications/mirage.desktop
+%%PORTDOCS%%%%DOCSDIR%%/CHANGELOG
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/TODO
+%%PORTDOCS%%%%DOCSDIR%%/TRANSLATORS
+share/locale/cs/LC_MESSAGES/mirage.mo
share/locale/de/LC_MESSAGES/mirage.mo
share/locale/es/LC_MESSAGES/mirage.mo
share/locale/fr/LC_MESSAGES/mirage.mo
+share/locale/hu/LC_MESSAGES/mirage.mo
share/locale/it/LC_MESSAGES/mirage.mo
share/locale/pl/LC_MESSAGES/mirage.mo
share/locale/ru/LC_MESSAGES/mirage.mo
-%%DATADIR%%/CHANGELOG
-%%DATADIR%%/COPYING
-%%DATADIR%%/README
-%%DATADIR%%/TODO
-%%DATADIR%%/TRANSLATORS
%%DATADIR%%/mirage_blank.png
%%DATADIR%%/stock_fullscreen.png
%%DATADIR%%/stock_leave-fullscreen.png
%%DATADIR%%/stock_shuffle.png
share/pixmaps/mirage.png
@dirrm %%DATADIR%%
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
@dirrmtry share/applications