diff options
author | mezz <mezz@FreeBSD.org> | 2007-08-14 02:54:29 +0800 |
---|---|---|
committer | mezz <mezz@FreeBSD.org> | 2007-08-14 02:54:29 +0800 |
commit | f03e0bfa566cb6c5c6a02848e8b3dd856bde49e3 (patch) | |
tree | 75dd8147de0dfe205638402a362eb8e8e43df1b3 /sysutils/pyrenamer | |
parent | ed5ed7ff7395362d56745f22d631336282812d78 (diff) | |
download | freebsd-ports-gnome-f03e0bfa566cb6c5c6a02848e8b3dd856bde49e3.tar.gz freebsd-ports-gnome-f03e0bfa566cb6c5c6a02848e8b3dd856bde49e3.tar.zst freebsd-ports-gnome-f03e0bfa566cb6c5c6a02848e8b3dd856bde49e3.zip |
Update to 0.4.1.
Diffstat (limited to 'sysutils/pyrenamer')
-rw-r--r-- | sysutils/pyrenamer/Makefile | 2 | ||||
-rw-r--r-- | sysutils/pyrenamer/distinfo | 6 | ||||
-rw-r--r-- | sysutils/pyrenamer/files/patch-data_pyrenamer.glade | 35 | ||||
-rw-r--r-- | sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py | 41 | ||||
-rw-r--r-- | sysutils/pyrenamer/pkg-plist | 1 |
5 files changed, 5 insertions, 80 deletions
diff --git a/sysutils/pyrenamer/Makefile b/sysutils/pyrenamer/Makefile index 0f2e44e1c470..0928354e53d7 100644 --- a/sysutils/pyrenamer/Makefile +++ b/sysutils/pyrenamer/Makefile @@ -6,7 +6,7 @@ # PORTNAME= pyrenamer -PORTVERSION= 0.3 +DISTVERSION= 0.4.1 CATEGORIES= sysutils python gnome MASTER_SITES= http://www.infinicode.org/code/${PORTNAME}/ diff --git a/sysutils/pyrenamer/distinfo b/sysutils/pyrenamer/distinfo index 8ba8188ede96..58b5ca7be589 100644 --- a/sysutils/pyrenamer/distinfo +++ b/sysutils/pyrenamer/distinfo @@ -1,3 +1,3 @@ -MD5 (pyrenamer-0.3.tar.gz) = 251b3754a20990358e0750856d152cb8 -SHA256 (pyrenamer-0.3.tar.gz) = 8276a2173c5a5ecd01c600329c3511d1eaa9a13b1f043cd2bf7b7914f1264efb -SIZE (pyrenamer-0.3.tar.gz) = 220007 +MD5 (pyrenamer-0.4.1.tar.gz) = e63af3cf76f350df6f27d2ae9721bd71 +SHA256 (pyrenamer-0.4.1.tar.gz) = cf98bd19a81c6923475f699b2952be5c88113f78a2e57faf57d9a9f4b5b2469a +SIZE (pyrenamer-0.4.1.tar.gz) = 224968 diff --git a/sysutils/pyrenamer/files/patch-data_pyrenamer.glade b/sysutils/pyrenamer/files/patch-data_pyrenamer.glade deleted file mode 100644 index 31dba8c717ae..000000000000 --- a/sysutils/pyrenamer/files/patch-data_pyrenamer.glade +++ /dev/null @@ -1,35 +0,0 @@ ---- data/pyrenamer.glade 2007/07/30 17:36:44 47 -+++ data/pyrenamer.glade 2007/08/02 12:15:22 53 -@@ -396,8 +396,8 @@ - Use {num} for adding 1, 2, 3... to file names - Use {num2} for 01, 02, 03..... - Use {num3} for 001, 002, 003... --Use {num-10} for 10, 11, 12... --Use {num2-10} for 010, 011, 012... -+Use {num+10} for 10, 11, 12... -+Use {num2+10} for 010, 011, 012... - Use {dir} for getting current dir - - Some today date replacements: -@@ -1359,8 +1359,8 @@ - Use {num} for adding 1, 2, 3... to file names - Use {num2} for 01, 02, 03..... - Use {num3} for 001, 002, 003... --Use {num-10} for 10, 11, 12... --Use {num2-10} for 010, 011, 012... -+Use {num+10} for 10, 11, 12... -+Use {num2+10} for 010, 011, 012... - Use {dir} for getting current dir - - Some today date replacements: -@@ -1586,8 +1586,8 @@ - Use {num} for adding 1, 2, 3... to file names - Use {num2} for 01, 02, 03..... - Use {num3} for 001, 002, 003... --Use {num-10} for 10, 11, 12... --Use {num2-10} for 010, 011, 012... -+Use {num+10} for 10, 11, 12... -+Use {num2+10} for 010, 011, 012... - Use {dir} for getting current dir - - Some today date replacements: diff --git a/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py b/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py deleted file mode 100644 index a6bf5a6673c7..000000000000 --- a/sysutils/pyrenamer/files/patch-src_pyrenamerfilefuncs.py +++ /dev/null @@ -1,41 +0,0 @@ ---- src/pyrenamerfilefuncs.py 2007/07/30 11:27:53 45 -+++ src/pyrenamerfilefuncs.py 2007/08/02 12:15:22 53 -@@ -242,7 +242,7 @@ - repattern = re.compile(pattern) - try: - groups = repattern.search(name).groups() -- -+ - for i in range(len(groups)): - newname = newname.replace('{'+`i+1`+'}',groups[i]) - except: -@@ -250,19 +250,24 @@ - - # Replace {num} with item number. - # If {num2} the number will be 02 -- # If {num3-10} the number will be 010 -+ # If {num3+10} the number will be 010 - count = `count` - cr = re.compile("{(num)([0-9]*)}" -- "|{(num)([0-9]*)-([0-9]*)}") -+ "|{(num)([0-9]*)(\+)([0-9]*)}") - try: - cg = cr.search(newname).groups() -- if len(cg) == 5: -+ if len(cg) == 6: -+ - if cg[0] == 'num': -+ # {num2} - if cg[1] != '': count = count.zfill(int(cg[1])) - newname = cr.sub(count, newname) -- if cg[2] == 'num': -- if cg[4] != '': count = str(int(count)+int(cg[4])-1) -+ -+ elif cg[2] == 'num' and cg[4] == '+': -+ # {num2+5} -+ if cg[5] != '': count = str(int(count)+int(cg[5])) - if cg[3] != '': count = count.zfill(int(cg[3])) -+ - newname = cr.sub(count, newname) - except: - pass diff --git a/sysutils/pyrenamer/pkg-plist b/sysutils/pyrenamer/pkg-plist index af99ddad9ab8..0a84d06b69de 100644 --- a/sysutils/pyrenamer/pkg-plist +++ b/sysutils/pyrenamer/pkg-plist @@ -32,6 +32,7 @@ share/applications/pyrenamer.desktop %%EXAMPLESDIR%%/treefilebrowser_example.py share/locale/en/LC_MESSAGES/pyrenamer.mo share/locale/es/LC_MESSAGES/pyrenamer.mo +share/pixmaps/pyrenamer.png %%DATADIR%%/pyrenamer.glade %%DATADIR%%/pyrenamer.png %%DATADIR%%/pyrenamer.svg |