Revision: 67149 http://trac.macports.org/changeset/67149 Author: ryandesign@macports.org Date: 2010-04-30 01:44:48 -0700 (Fri, 30 Apr 2010) Log Message: ----------- renameutils: new port, version 0.10.0; see #24525 Added Paths: ----------- trunk/dports/sysutils/renameutils/ trunk/dports/sysutils/renameutils/Portfile trunk/dports/sysutils/renameutils/files/ trunk/dports/sysutils/renameutils/files/patch-use_coreutils.diff Added: trunk/dports/sysutils/renameutils/Portfile =================================================================== --- trunk/dports/sysutils/renameutils/Portfile (rev 0) +++ trunk/dports/sysutils/renameutils/Portfile 2010-04-30 08:44:48 UTC (rev 67149) @@ -0,0 +1,33 @@ +# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 +# $Id$ + +PortSystem 1.0 + +name renameutils +version 0.10.0 +categories sysutils +platforms darwin +maintainers gmail.com:evangoldenberg openmaintainer + +description renameutils is a set of programs designed to make renaming \ + files faster and less cumbersome +long_description The file renaming utilities consists of five programs - \ + qmv, qcp, imv, icp and deurlname. qmv and qcp allow the \ + use of a text editor to edit filenames. imv and icp are \ + interactive tools with GNU readline support. deurlname \ + removes URL encoded characters from filenames. + +homepage http://www.nongnu.org/renameutils/ +master_sites http://ftp.twaren.net/Unix/NonGNU/renameutils/ + +checksums md5 77f2bb9a18bb25c7cc3c23b64f2d394b \ + sha1 e90cbc7cff75e639037c48c5d33cbfc21b9d618b \ + rmd160 c67506035400917844fa2be7b095e6b5f65a3a91 + +depends_lib port:readline \ + port:gettext \ + port:coreutils + +patchfiles patch-use_coreutils.diff + +configure.ldflags-append -liconv -lintl Property changes on: trunk/dports/sysutils/renameutils/Portfile ___________________________________________________________________ Added: svn:keywords + Id Added: svn:eol-style + native Added: trunk/dports/sysutils/renameutils/files/patch-use_coreutils.diff =================================================================== --- trunk/dports/sysutils/renameutils/files/patch-use_coreutils.diff (rev 0) +++ trunk/dports/sysutils/renameutils/files/patch-use_coreutils.diff 2010-04-30 08:44:48 UTC (rev 67149) @@ -0,0 +1,47 @@ +--- src/apply.c.orig ++++ src/apply.c +@@ -72,9 +72,9 @@ perform_command(FileSpec *spec) + if (force_command != NULL) + command = force_command; + else if (strcmp(program, "qmv") == 0) +- command = "mv"; ++ command = "gmv"; + else +- command = "cp"; ++ command = "gcp"; + + child = fork(); + if (child < 0) { +--- src/icmd.c.orig ++++ src/icmd.c +@@ -45,8 +45,8 @@ + #include "common/string-utils.h" + #include "common/common.h" + +-#define MV_COMMAND "mv" +-#define CP_COMMAND "cp" ++#define MV_COMMAND "gmv" ++#define CP_COMMAND "gcp" + /* This list should be up to date with mv and cp! + * It was last updated on 2007-11-30 for + * Debian coreutils 5.97-5.4 in unstable. +--- src/list.c.orig ++++ src/list.c +@@ -311,7 +311,7 @@ list_files(char **args) + ls_args_list = llist_clone(ls_options); /* llist_add_all! */ + llist_add_last(ls_args_list, "--"); + llist_add_first(ls_args_list, "--quoting-style=c"); +- llist_add_first(ls_args_list, "ls"); ++ llist_add_first(ls_args_list, "gls"); + + if (llist_contains(ls_options, "--directory")) { + firstdir = "."; +@@ -411,7 +411,7 @@ run_ls(char **args, pid_t *ls_pid, int *ls_fd) + die(_("cannot close file: %s"), errstr); + if (dup2(child_pipe[1], STDOUT_FILENO) == -1) + die(_("cannot duplicate file descriptor: %s"), errstr); +- execvp("ls", args); ++ execvp("gls", args); + die(_("cannot execute `ls': %s"), errstr); + } + *ls_pid = child_pid;
participants (1)
-
ryandesign@macports.org