Import mirage-0.9.5.2.
Mirage is a fast and simple GTK+ image viewer. <...> Make the Makefile unreadable by adding spaces around `=' as requested by fgsch@ to please espie@. with help from and ok fgsch@
This commit is contained in:
parent
b3b4c620ce
commit
cadde759d0
37
graphics/mirage/Makefile
Normal file
37
graphics/mirage/Makefile
Normal file
@ -0,0 +1,37 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
|
||||
|
||||
COMMENT = fast and simple GTK+ image viewer
|
||||
|
||||
MODPY_EGG_VERSION = 0.9.5.2
|
||||
DISTNAME = mirage-${MODPY_EGG_VERSION}
|
||||
|
||||
CATEGORIES = graphics
|
||||
|
||||
HOMEPAGE = http://mirageiv.berlios.de/
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
PERMIT_PACKAGE_FTP = Yes
|
||||
PERMIT_DISTFILES_CDROM = Yes
|
||||
PERMIT_DISTFILES_FTP = Yes
|
||||
|
||||
WANTLIB += X11
|
||||
|
||||
MASTER_SITES = ${MASTER_SITE_BERLIOS:=mirageiv/}
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
# Mirage's toolbar needs py-gnome to follow GNOME settings.
|
||||
# py-gnome is already an indirect dependency for gnome-session:
|
||||
# gnome-session -> gnome-settings-daemon -> gnome-desktop -> py-gnome.
|
||||
# People not running GNOME do not need/want this dependency.
|
||||
RUN_DEPENDS = devel/desktop-file-utils \
|
||||
x11/py-gtk2 \
|
||||
devel/xdg-utils
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/setup.py
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/mirage/distinfo
Normal file
5
graphics/mirage/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (mirage-0.9.5.2.tar.gz) = 2s5c8B5eUzF7qL4PinT0vw==
|
||||
RMD160 (mirage-0.9.5.2.tar.gz) = pJKWew2wuWinZFJpCuEAlJWHSr4=
|
||||
SHA1 (mirage-0.9.5.2.tar.gz) = TFdKW3BjXC2AO3vCdWDAWueEKv0=
|
||||
SHA256 (mirage-0.9.5.2.tar.gz) = 79ESKSYqmaTLLMbHR26+ssYahMP9dNvLWyFyZuICEQw=
|
||||
SIZE (mirage-0.9.5.2.tar.gz) = 134701
|
43
graphics/mirage/patches/patch-mirage_py
Normal file
43
graphics/mirage/patches/patch-mirage_py
Normal file
@ -0,0 +1,43 @@
|
||||
$OpenBSD: patch-mirage_py,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
|
||||
--- mirage.py.orig Sun Feb 13 23:40:05 2011
|
||||
+++ mirage.py Mon Mar 28 08:50:08 2011
|
||||
@@ -157,7 +157,7 @@ class Base:
|
||||
self.preloading_images = True
|
||||
self.action_names = ["Open in GIMP", "Create Thumbnail", "Create Thumbnails", "Move to Favorites"]
|
||||
self.action_shortcuts = ["<Control>e", "<Alt>t", "<Control><Alt>t", "<Control><Alt>f"]
|
||||
- self.action_commands = ["gimp-remote-2.4 %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
|
||||
+ self.action_commands = ["gimp-remote %F", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "convert %F -thumbnail 150x150 %Pt_%N.jpg", "mkdir -p ~/mirage-favs; mv %F ~/mirage-favs; [NEXT]"]
|
||||
self.action_batch = [False, False, True, False]
|
||||
self.onload_cmd = None
|
||||
self.searching_for_images = False
|
||||
@@ -2970,26 +2970,11 @@ class Base:
|
||||
|
||||
def browser_load(self, docslink):
|
||||
try:
|
||||
- pid = subprocess.Popen(["gnome-open", docslink]).pid
|
||||
+ pid = subprocess.Popen(["xdg-open", docslink]).pid
|
||||
except:
|
||||
- try:
|
||||
- pid = subprocess.Popen(["exo-open", docslink]).pid
|
||||
- except:
|
||||
- try:
|
||||
- pid = subprocess.Popen(["kfmclient", "openURL", docslink]).pid
|
||||
- except:
|
||||
- try:
|
||||
- pid = subprocess.Popen(["firefox", docslink]).pid
|
||||
- except:
|
||||
- try:
|
||||
- pid = subprocess.Popen(["mozilla", docslink]).pid
|
||||
- except:
|
||||
- try:
|
||||
- pid = subprocess.Popen(["opera", docslink]).pid
|
||||
- except:
|
||||
- error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _('Unable to launch a suitable browser.'))
|
||||
- error_dialog.run()
|
||||
- error_dialog.destroy()
|
||||
+ error_dialog = gtk.MessageDialog(self.window, gtk.DIALOG_MODAL, gtk.MESSAGE_WARNING, gtk.BUTTONS_CLOSE, _('Unable to launch a suitable browser.'))
|
||||
+ error_dialog.run()
|
||||
+ error_dialog.destroy()
|
||||
|
||||
def close_about(self, event, data=None):
|
||||
self.about_dialog.hide()
|
12
graphics/mirage/patches/patch-setup_py
Normal file
12
graphics/mirage/patches/patch-setup_py
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-setup_py,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
|
||||
--- setup.py.orig Wed Mar 23 14:11:27 2011
|
||||
+++ setup.py Wed Mar 23 14:12:24 2011
|
||||
@@ -58,7 +58,7 @@ setup(name='Mirage',
|
||||
],
|
||||
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=['${X11BASE}/include'], library_dirs=['${X11BASE}/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']),
|
||||
('share/applications', ['mirage.desktop']),
|
11
graphics/mirage/patches/patch-xmouse_c
Normal file
11
graphics/mirage/patches/patch-xmouse_c
Normal file
@ -0,0 +1,11 @@
|
||||
$OpenBSD: patch-xmouse_c,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
|
||||
--- xmouse.c.orig Mon Mar 28 08:09:07 2011
|
||||
+++ xmouse.c Mon Mar 28 08:09:35 2011
|
||||
@@ -38,6 +38,7 @@ PyObject* xmouse_geometry(PyObject* self, PyObject* ar
|
||||
PyMethodDef methods[] =
|
||||
{
|
||||
{"geometry", xmouse_geometry, METH_VARARGS},
|
||||
+ {NULL, NULL, 0, NULL}
|
||||
};
|
||||
|
||||
void initxmouse(void)
|
13
graphics/mirage/pkg/DESCR
Normal file
13
graphics/mirage/pkg/DESCR
Normal file
@ -0,0 +1,13 @@
|
||||
Mirage is a fast and simple GTK+ image viewer.
|
||||
It features:
|
||||
* Supports png, jpg, svg, xpm, gif, bmp, tiff, and others
|
||||
* Cycling through multiple images (with preloading)
|
||||
* Thumbnail pane for quick navigation
|
||||
* Slideshow and fullscreen modes
|
||||
* Rotating, zooming, flipping, resizing, cropping
|
||||
* Saving, deleting, renaming
|
||||
* Screenshot support
|
||||
* Custom actions
|
||||
* Command-line access
|
||||
* Configurable interface
|
||||
* Available in many languages
|
36
graphics/mirage/pkg/PLIST
Normal file
36
graphics/mirage/pkg/PLIST
Normal file
@ -0,0 +1,36 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2011/03/29 07:07:12 ajacoutot Exp $
|
||||
bin/mirage
|
||||
lib/python${MODPY_VERSION}/site-packages/Mirage-${MODPY_EGG_VERSION}-py${MODPY_VERSION}.egg-info
|
||||
lib/python${MODPY_VERSION}/site-packages/imgfuncs.so
|
||||
lib/python${MODPY_VERSION}/site-packages/mirage.py
|
||||
lib/python${MODPY_VERSION}/site-packages/mirage.pyc
|
||||
lib/python${MODPY_VERSION}/site-packages/xmouse.so
|
||||
share/applications/mirage.desktop
|
||||
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/nl/LC_MESSAGES/mirage.mo
|
||||
share/locale/pl/LC_MESSAGES/mirage.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/mirage.mo
|
||||
share/locale/ru/LC_MESSAGES/mirage.mo
|
||||
share/locale/ua/
|
||||
share/locale/ua/LC_MESSAGES/
|
||||
share/locale/ua/LC_MESSAGES/mirage.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/mirage.mo
|
||||
share/mirage/
|
||||
share/mirage/CHANGELOG
|
||||
share/mirage/COPYING
|
||||
share/mirage/README
|
||||
share/mirage/TODO
|
||||
share/mirage/TRANSLATORS
|
||||
share/mirage/mirage_blank.png
|
||||
share/mirage/stock_fullscreen.png
|
||||
share/mirage/stock_leave-fullscreen.png
|
||||
share/mirage/stock_shuffle.png
|
||||
share/pixmaps/
|
||||
share/pixmaps/mirage.png
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
Loading…
x
Reference in New Issue
Block a user