aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicola Vitale <nivit@FreeBSD.org>2007-02-05 21:23:55 +0000
committerNicola Vitale <nivit@FreeBSD.org>2007-02-05 21:23:55 +0000
commitd8c68a06887565369b8dc065e28cd9121424b152 (patch)
tree243603cab961707b3c274a67d74b1e0d45d9c78c
parent77e3e1eb2d53e51b9d8daee212bb3400249a5f83 (diff)
downloadports-d8c68a06887565369b8dc065e28cd9121424b152.tar.gz
ports-d8c68a06887565369b8dc065e28cd9121424b152.zip
Notes
-rw-r--r--graphics/Makefile1
-rw-r--r--graphics/imgv/Makefile39
-rw-r--r--graphics/imgv/distinfo3
-rw-r--r--graphics/imgv/files/patch-gl.py10
-rw-r--r--graphics/imgv/files/patch-imgv.py31
-rw-r--r--graphics/imgv/pkg-descr9
-rw-r--r--graphics/imgv/pkg-plist111
7 files changed, 204 insertions, 0 deletions
diff --git a/graphics/Makefile b/graphics/Makefile
index 5ce79d836836..c4296ba22af2 100644
--- a/graphics/Makefile
+++ b/graphics/Makefile
@@ -277,6 +277,7 @@
SUBDIR += imageviewer
SUBDIR += imc
SUBDIR += imgseek
+ SUBDIR += imgv
SUBDIR += imlib
SUBDIR += imlib2
SUBDIR += imlib2_loaders
diff --git a/graphics/imgv/Makefile b/graphics/imgv/Makefile
new file mode 100644
index 000000000000..c21d4c3756a8
--- /dev/null
+++ b/graphics/imgv/Makefile
@@ -0,0 +1,39 @@
+# New ports collection makefile for: imgv
+# Date created: 2007-02-03
+# Whom: Simon Olofsson <simon@olofsson.de>
+#
+# $FreeBSD$
+#
+
+PORTNAME= imgv
+PORTVERSION= 3.1.5
+CATEGORIES= graphics python
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR= ${PORTNAME}
+DISTNAME= ${PORTNAME}-${PORTVERSION}-src
+
+MAINTAINER= simon@olofsson.de
+COMMENT= A unique and feature rich Image Viewer
+
+RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
+ ${PYTHON_SITELIBDIR}/PIL/__init__.py:${PORTSDIR}/graphics/py-imaging
+
+USE_PYTHON= 2.2+
+NO_BUILD= yes
+
+.include <bsd.port.pre.mk>
+
+post-patch:
+ ${REINPLACE_CMD} -e 's,%%DATADIR%%,${DATADIR},' ${WRKSRC}/gl.py
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/imgv.py ${PREFIX}/bin/imgv
+ ${RM} -f ${WRKSRC}/imgv.py ${WRKSRC}/setup.py
+ ${MKDIR} ${DATADIR}/data
+ ${INSTALL_DATA} ${WRKSRC}/data/* ${DATADIR}/data
+ ${MKDIR} ${PYTHON_SITELIBDIR}/imgv/
+ ${TOUCH} ${PYTHON_SITELIBDIR}/imgv/__init__.py
+ ${INSTALL_DATA} ${WRKSRC}/*.py ${PYTHON_SITELIBDIR}/imgv/
+ ${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PYTHON_SITELIBDIR}/imgv/
+
+.include <bsd.port.post.mk>
diff --git a/graphics/imgv/distinfo b/graphics/imgv/distinfo
new file mode 100644
index 000000000000..0ec73412d9eb
--- /dev/null
+++ b/graphics/imgv/distinfo
@@ -0,0 +1,3 @@
+MD5 (imgv-3.1.5-src.tar.gz) = 42378425b2470daedcc0f3e34c25b6e0
+SHA256 (imgv-3.1.5-src.tar.gz) = d7b1222f5cc15d128859950281ab13deebff7cd28f51240835a5ab9979978ac9
+SIZE (imgv-3.1.5-src.tar.gz) = 230501
diff --git a/graphics/imgv/files/patch-gl.py b/graphics/imgv/files/patch-gl.py
new file mode 100644
index 000000000000..7a97184734d3
--- /dev/null
+++ b/graphics/imgv/files/patch-gl.py
@@ -0,0 +1,10 @@
+--- gl.py.orig Sat Oct 28 20:58:44 2006
++++ gl.py Sat Feb 3 11:39:15 2007
+@@ -9,6 +9,7 @@
+ from res import my_toggle_fullscreen
+ from pygame import version
+
++os.environ['IMGV_HOME'] = '%%DATADIR%%'
+
+ BASE_DIR = os.getcwd()
+ try:
diff --git a/graphics/imgv/files/patch-imgv.py b/graphics/imgv/files/patch-imgv.py
new file mode 100644
index 000000000000..d01cc3cce0fd
--- /dev/null
+++ b/graphics/imgv/files/patch-imgv.py
@@ -0,0 +1,31 @@
+--- imgv.py.orig Wed Oct 18 06:01:50 2006
++++ imgv.py Sat Feb 3 11:39:31 2007
+@@ -18,17 +18,17 @@
+ import pygame.event, pygame.time
+ from pygame.display import set_caption, set_mode, update
+ from pygame.locals import MOUSEMOTION, MOUSEBUTTONDOWN, Rect, KEYDOWN, KEYUP, RESIZABLE, VIDEORESIZE, MOUSEBUTTONUP, K_UP, K_DOWN, K_RIGHT, K_LEFT
+-import gl
+-from load_timers import start_timer, check_timer
+-from img_screen import init_screen, get_center, my_update_screen, img_border, paint_screen
+-from show_message import show_message
+-from cursor import wait_cursor, normal_cursor, drag_hand_cursor, grab_hand_cursor
+-from usr_event import check_quit, right_click, left_click
+-from load_img import load_img
+-from handle_keyboard import handle_keyboard
+-from main_menu import command_main_menu
+-from pan import command_down, command_up, command_right, command_left
+-from res import command_fullscreen
++from imgv import gl
++from imgv.load_timers import start_timer, check_timer
++from imgv.img_screen import init_screen, get_center, my_update_screen, img_border, paint_screen
++from imgv.show_message import show_message
++from imgv.cursor import wait_cursor, normal_cursor, drag_hand_cursor, grab_hand_cursor
++from imgv.usr_event import check_quit, right_click, left_click
++from imgv.load_img import load_img
++from imgv.handle_keyboard import handle_keyboard
++from imgv.main_menu import command_main_menu
++from imgv.pan import command_down, command_up, command_right, command_left
++from imgv.res import command_fullscreen
+
+ def main():
+ pygame.time.delay(5) # to make start_timer() work initially
diff --git a/graphics/imgv/pkg-descr b/graphics/imgv/pkg-descr
new file mode 100644
index 000000000000..ed3d700ca9b1
--- /dev/null
+++ b/graphics/imgv/pkg-descr
@@ -0,0 +1,9 @@
+Features include a GUI that doesn't get in the way of viewing your images, a
+file browser, slideshows, zooming, rotating, on-the-fly Exif viewing,
+histograms, fullscreen support, wallpaper setting, the ability to view 4 images
+on the screen at once, adjustable thumbnail sizes, playlists, view and download
+images from Web sites, movie playing, file searching/filtering, multiple
+directory loading, transitional effects, image hiding and more.
+
+Author: Ryan Kulla <rkulla@gmail.com>
+WWW: http://imgv.sourceforge.net/
diff --git a/graphics/imgv/pkg-plist b/graphics/imgv/pkg-plist
new file mode 100644
index 000000000000..2ae449e1ee4f
--- /dev/null
+++ b/graphics/imgv/pkg-plist
@@ -0,0 +1,111 @@
+@comment $FreeBSD$
+bin/imgv
+%%DATADIR%%/data/Vera.ttf
+%%DATADIR%%/data/arrow_left_black.xbm
+%%DATADIR%%/data/bla
+%%DATADIR%%/data/change-box.jpg
+%%DATADIR%%/data/checked-box.jpg
+%%DATADIR%%/data/imgv-error.jpg
+%%DATADIR%%/data/imgv-icon-blank.png
+%%DATADIR%%/data/imgv-icon.ico
+%%DATADIR%%/data/imgv-icon.png
+%%DATADIR%%/data/imgv-logo1-small.jpg
+%%DATADIR%%/data/imgv-logo1.jpg
+%%DATADIR%%/data/imgv.conf
+%%DATADIR%%/data/movie-file.jpg
+%%DATADIR%%/data/no-matches.jpg
+%%DATADIR%%/data/playlists
+%%DATADIR%%/data/unchecked-box.jpg
+@dirrm %%DATADIR%%/data
+@dirrm %%DATADIR%%
+%%PYTHON_SITELIBDIR%%/imgv/__init__.py
+%%PYTHON_SITELIBDIR%%/imgv/__init__.pyc
+%%PYTHON_SITELIBDIR%%/imgv/buttons.py
+%%PYTHON_SITELIBDIR%%/imgv/buttons.pyc
+%%PYTHON_SITELIBDIR%%/imgv/cfg.py
+%%PYTHON_SITELIBDIR%%/imgv/cfg.pyc
+%%PYTHON_SITELIBDIR%%/imgv/confirm.py
+%%PYTHON_SITELIBDIR%%/imgv/confirm.pyc
+%%PYTHON_SITELIBDIR%%/imgv/cursor.py
+%%PYTHON_SITELIBDIR%%/imgv/cursor.pyc
+%%PYTHON_SITELIBDIR%%/imgv/dir_nav.py
+%%PYTHON_SITELIBDIR%%/imgv/dir_nav.pyc
+%%PYTHON_SITELIBDIR%%/imgv/downloader.py
+%%PYTHON_SITELIBDIR%%/imgv/downloader.pyc
+%%PYTHON_SITELIBDIR%%/imgv/edit.py
+%%PYTHON_SITELIBDIR%%/imgv/edit.pyc
+%%PYTHON_SITELIBDIR%%/imgv/effect_melt.py
+%%PYTHON_SITELIBDIR%%/imgv/effect_melt.pyc
+%%PYTHON_SITELIBDIR%%/imgv/error_box.py
+%%PYTHON_SITELIBDIR%%/imgv/error_box.pyc
+%%PYTHON_SITELIBDIR%%/imgv/error_screen.py
+%%PYTHON_SITELIBDIR%%/imgv/error_screen.pyc
+%%PYTHON_SITELIBDIR%%/imgv/exif.py
+%%PYTHON_SITELIBDIR%%/imgv/exif.pyc
+%%PYTHON_SITELIBDIR%%/imgv/file_master.py
+%%PYTHON_SITELIBDIR%%/imgv/file_master.pyc
+%%PYTHON_SITELIBDIR%%/imgv/filter_files.py
+%%PYTHON_SITELIBDIR%%/imgv/filter_files.pyc
+%%PYTHON_SITELIBDIR%%/imgv/four.py
+%%PYTHON_SITELIBDIR%%/imgv/four.pyc
+%%PYTHON_SITELIBDIR%%/imgv/gl.py
+%%PYTHON_SITELIBDIR%%/imgv/gl.pyc
+%%PYTHON_SITELIBDIR%%/imgv/handle_keyboard.py
+%%PYTHON_SITELIBDIR%%/imgv/handle_keyboard.pyc
+%%PYTHON_SITELIBDIR%%/imgv/help.py
+%%PYTHON_SITELIBDIR%%/imgv/help.pyc
+%%PYTHON_SITELIBDIR%%/imgv/hide.py
+%%PYTHON_SITELIBDIR%%/imgv/hide.pyc
+%%PYTHON_SITELIBDIR%%/imgv/img_screen.py
+%%PYTHON_SITELIBDIR%%/imgv/img_screen.pyc
+%%PYTHON_SITELIBDIR%%/imgv/img_surf.py
+%%PYTHON_SITELIBDIR%%/imgv/img_surf.pyc
+%%PYTHON_SITELIBDIR%%/imgv/input_box.py
+%%PYTHON_SITELIBDIR%%/imgv/input_box.pyc
+%%PYTHON_SITELIBDIR%%/imgv/list_images.py
+%%PYTHON_SITELIBDIR%%/imgv/list_images.pyc
+%%PYTHON_SITELIBDIR%%/imgv/load_img.py
+%%PYTHON_SITELIBDIR%%/imgv/load_img.pyc
+%%PYTHON_SITELIBDIR%%/imgv/load_timers.py
+%%PYTHON_SITELIBDIR%%/imgv/load_timers.pyc
+%%PYTHON_SITELIBDIR%%/imgv/main_menu.py
+%%PYTHON_SITELIBDIR%%/imgv/main_menu.pyc
+%%PYTHON_SITELIBDIR%%/imgv/movie_player.py
+%%PYTHON_SITELIBDIR%%/imgv/movie_player.pyc
+%%PYTHON_SITELIBDIR%%/imgv/open_url.py
+%%PYTHON_SITELIBDIR%%/imgv/open_url.pyc
+%%PYTHON_SITELIBDIR%%/imgv/pan.py
+%%PYTHON_SITELIBDIR%%/imgv/pan.pyc
+%%PYTHON_SITELIBDIR%%/imgv/playlist.py
+%%PYTHON_SITELIBDIR%%/imgv/playlist.pyc
+%%PYTHON_SITELIBDIR%%/imgv/randomizer.py
+%%PYTHON_SITELIBDIR%%/imgv/randomizer.pyc
+%%PYTHON_SITELIBDIR%%/imgv/refresh.py
+%%PYTHON_SITELIBDIR%%/imgv/refresh.pyc
+%%PYTHON_SITELIBDIR%%/imgv/res.py
+%%PYTHON_SITELIBDIR%%/imgv/res.pyc
+%%PYTHON_SITELIBDIR%%/imgv/rm_img.py
+%%PYTHON_SITELIBDIR%%/imgv/rm_img.pyc
+%%PYTHON_SITELIBDIR%%/imgv/rotate.py
+%%PYTHON_SITELIBDIR%%/imgv/rotate.pyc
+%%PYTHON_SITELIBDIR%%/imgv/screensaver.py
+%%PYTHON_SITELIBDIR%%/imgv/screensaver.pyc
+%%PYTHON_SITELIBDIR%%/imgv/show_message.py
+%%PYTHON_SITELIBDIR%%/imgv/show_message.pyc
+%%PYTHON_SITELIBDIR%%/imgv/slideshow.py
+%%PYTHON_SITELIBDIR%%/imgv/slideshow.pyc
+%%PYTHON_SITELIBDIR%%/imgv/status_bar.py
+%%PYTHON_SITELIBDIR%%/imgv/status_bar.pyc
+%%PYTHON_SITELIBDIR%%/imgv/thumb.py
+%%PYTHON_SITELIBDIR%%/imgv/thumb.pyc
+%%PYTHON_SITELIBDIR%%/imgv/transitional.py
+%%PYTHON_SITELIBDIR%%/imgv/transitional.pyc
+%%PYTHON_SITELIBDIR%%/imgv/usr_event.py
+%%PYTHON_SITELIBDIR%%/imgv/usr_event.pyc
+%%PYTHON_SITELIBDIR%%/imgv/verbose.py
+%%PYTHON_SITELIBDIR%%/imgv/verbose.pyc
+%%PYTHON_SITELIBDIR%%/imgv/wallpaper.py
+%%PYTHON_SITELIBDIR%%/imgv/wallpaper.pyc
+%%PYTHON_SITELIBDIR%%/imgv/zoom.py
+%%PYTHON_SITELIBDIR%%/imgv/zoom.pyc
+@dirrm %%PYTHON_SITELIBDIR%%/imgv