diff options
author | mezz <mezz@FreeBSD.org> | 2007-07-26 03:43:46 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2007-07-26 03:43:46 +0800 |
commit | 78eb7857f7ff64c14884bbdd4504a5de7cbf9c7f (patch) | |
tree | 221d356a9235ed4f6ca804793059a66a3ec53fd6 | |
parent | 8c1bebac2dec167b5d200ff3ef7d8f963777b0c8 (diff) | |
download | freebsd-ports-gnome-78eb7857f7ff64c14884bbdd4504a5de7cbf9c7f.tar.gz freebsd-ports-gnome-78eb7857f7ff64c14884bbdd4504a5de7cbf9c7f.tar.zst freebsd-ports-gnome-78eb7857f7ff64c14884bbdd4504a5de7cbf9c7f.zip |
- Update to 0.2.
- Set good default values for window pos/size to avoid crash in future version
of GTK+ and pygtk. [1]
Obtained from: its SVN [1]
-rw-r--r-- | sysutils/pyrenamer/Makefile | 5 | ||||
-rw-r--r-- | sysutils/pyrenamer/distinfo | 6 | ||||
-rw-r--r-- | sysutils/pyrenamer/files/patch-data_pyrenamer.schemas.in | 51 | ||||
-rw-r--r-- | sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py | 24 | ||||
-rw-r--r-- | sysutils/pyrenamer/pkg-plist | 3 |
5 files changed, 61 insertions, 28 deletions
diff --git a/sysutils/pyrenamer/Makefile b/sysutils/pyrenamer/Makefile index 30d8c211c178..aac8ba6243d6 100644 --- a/sysutils/pyrenamer/Makefile +++ b/sysutils/pyrenamer/Makefile @@ -6,13 +6,16 @@ # PORTNAME= pyrenamer -PORTVERSION= 0.1 +PORTVERSION= 0.2 CATEGORIES= sysutils python gnome MASTER_SITES= http://www.infinicode.org/code/${PORTNAME}/ MAINTAINER= mezz@FreeBSD.org COMMENT= A mass file renamer written in PyGTK +BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/eyeD3/__init__.py:${PORTSDIR}/audio/py-eyed3 +RUN_DEPENDS= ${PYTHON_SITELIBDIR}/eyeD3/__init__.py:${PORTSDIR}/audio/py-eyed3 + USE_GMAKE= yes USE_GNOME= gnomehack gnomeprefix gconf2 pygtk2 USE_PYTHON= yes diff --git a/sysutils/pyrenamer/distinfo b/sysutils/pyrenamer/distinfo index 7579941a4815..a2403cd21a56 100644 --- a/sysutils/pyrenamer/distinfo +++ b/sysutils/pyrenamer/distinfo @@ -1,3 +1,3 @@ -MD5 (pyrenamer-0.1.tar.gz) = 6c2b87cfa307e5dffb4331f6fd113805 -SHA256 (pyrenamer-0.1.tar.gz) = cad99edc0530f8b7a6ae6f2b369e3792f5f60b632b28fb77aa50ed146f17ab0b -SIZE (pyrenamer-0.1.tar.gz) = 115106 +MD5 (pyrenamer-0.2.tar.gz) = c354ad2d9f8d1269483a2aadd6746605 +SHA256 (pyrenamer-0.2.tar.gz) = e5cff85a3096f05187b1a164e19fd149f0eda94bbdf6be484978c6cdccdc11d7 +SIZE (pyrenamer-0.2.tar.gz) = 133054 diff --git a/sysutils/pyrenamer/files/patch-data_pyrenamer.schemas.in b/sysutils/pyrenamer/files/patch-data_pyrenamer.schemas.in new file mode 100644 index 000000000000..50d37c282d74 --- /dev/null +++ b/sysutils/pyrenamer/files/patch-data_pyrenamer.schemas.in @@ -0,0 +1,51 @@ +--- data/pyrenamer.schemas.in 2007/06/14 13:51:21 5 ++++ data/pyrenamer.schemas.in 2007/07/25 19:29:16 42 +@@ -19,7 +19,7 @@ + <type>bool</type> + <default>0</default> + <locale name="C"> +- <short>IS the window maximized?</short> ++ <short>Is the window maximized?</short> + </locale> + </schema> + +@@ -28,6 +28,7 @@ + <applyto>/apps/pyrenamer/pane_position</applyto> + <owner>pyrenamer</owner> + <type>int</type> ++ <default>250</default> + <locale name="C"> + <short>Position of the pane separator</short> + </locale> +@@ -38,6 +39,7 @@ + <applyto>/apps/pyrenamer/window_width</applyto> + <owner>pyrenamer</owner> + <type>int</type> ++ <default>500</default> + <locale name="C"> + <short>Window width</short> + </locale> +@@ -48,6 +50,7 @@ + <applyto>/apps/pyrenamer/window_height</applyto> + <owner>pyrenamer</owner> + <type>int</type> ++ <default>500</default> + <locale name="C"> + <short>Window height</short> + </locale> +@@ -58,6 +61,7 @@ + <applyto>/apps/pyrenamer/window_posx</applyto> + <owner>pyrenamer</owner> + <type>int</type> ++ <default>0</default> + <locale name="C"> + <short>X position of the window</short> + </locale> +@@ -68,6 +72,7 @@ + <applyto>/apps/pyrenamer/window_posy</applyto> + <owner>pyrenamer</owner> + <type>int</type> ++ <default>0</default> + <locale name="C"> + <short>Y position of the window</short> + </locale> diff --git a/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py b/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py deleted file mode 100644 index a227c91987a4..000000000000 --- a/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py +++ /dev/null @@ -1,24 +0,0 @@ ---- src/pyrenamerfilefuncs.py.orig Fri Jun 15 07:14:07 2007 -+++ src/pyrenamerfilefuncs.py Fri Jun 15 07:15:43 2007 -@@ -39,6 +39,12 @@ - return STOP - - -+def escape_pattern(pattern): -+ """ Escape special chars on patterns, so glob doesn't get confused """ -+ pattern = pattern.replace('[', '[[]') -+ return pattern -+ -+ - def get_file_listing(dir, pattern=None): - """ Returns the file listing of a given directory. It returns only files. - Returns a list of [file,/path/to/file] """ -@@ -49,7 +55,7 @@ - listaux = dircache.listdir(dir) - else: - if dir != '/': dir += '/' -- dir += pattern -+ dir = escape_pattern(dir + pattern) - listaux = glob.glob(dir) - - listaux.sort(key=str.lower) diff --git a/sysutils/pyrenamer/pkg-plist b/sysutils/pyrenamer/pkg-plist index a89922864090..ff3d989eb42d 100644 --- a/sysutils/pyrenamer/pkg-plist +++ b/sysutils/pyrenamer/pkg-plist @@ -1,4 +1,7 @@ bin/pyrenamer +%%PYTHON_SITELIBDIR%%/pyrenamer/EXIF.py +%%PYTHON_SITELIBDIR%%/pyrenamer/EXIF.pyc +%%PYTHON_SITELIBDIR%%/pyrenamer/EXIF.pyo %%PYTHON_SITELIBDIR%%/pyrenamer/TreeViewTooltips.py %%PYTHON_SITELIBDIR%%/pyrenamer/TreeViewTooltips.pyc %%PYTHON_SITELIBDIR%%/pyrenamer/TreeViewTooltips.pyo |