From f85025a30e400ca07305be1def0de7e50d44e7b0 Mon Sep 17 00:00:00 2001
From: Paolo Capriotti
Date: Mon, 25 Mar 2013 11:19:35 +0000
Subject: [PATCH] Add renameutils package.
---
pkgs/tools/misc/renameutils/default.nix | 19 +++++++++++++++
.../tools/misc/renameutils/install-exec.patch | 24 +++++++++++++++++++
pkgs/top-level/all-packages.nix | 2 ++
3 files changed, 45 insertions(+)
create mode 100644 pkgs/tools/misc/renameutils/default.nix
create mode 100644 pkgs/tools/misc/renameutils/install-exec.patch
diff --git a/pkgs/tools/misc/renameutils/default.nix b/pkgs/tools/misc/renameutils/default.nix
new file mode 100644
index 000000000000..6d4793a4aab5
--- /dev/null
+++ b/pkgs/tools/misc/renameutils/default.nix
@@ -0,0 +1,19 @@
+{stdenv, fetchurl, readline}:
+
+stdenv.mkDerivation {
+ name = "renameutils-0.12";
+
+ src = fetchurl {
+ url = mirror://savannah/renameutils/renameutils-0.12.0.tar.gz;
+ sha256 = "18xlkr56jdyajjihcmfqlyyanzyiqqlzbhrm6695mkvw081g1lnb";
+ };
+
+ patches = [ ./install-exec.patch ];
+
+ nativeBuildInputs = [ readline ];
+
+ meta = {
+ homepage = http://www.nongnu.org/renameutils/;
+ description = "A set of programs to make renaming of files faster";
+ };
+}
diff --git a/pkgs/tools/misc/renameutils/install-exec.patch b/pkgs/tools/misc/renameutils/install-exec.patch
new file mode 100644
index 000000000000..32b8de5adb80
--- /dev/null
+++ b/pkgs/tools/misc/renameutils/install-exec.patch
@@ -0,0 +1,24 @@
+diff -Naur renameutils-0.12.0-orig/src/Makefile.am renameutils-0.12.0/src/Makefile.am
+--- renameutils-0.12.0-orig/src/Makefile.am 2012-04-23 12:10:43.000000000 +0100
++++ renameutils-0.12.0/src/Makefile.am 2013-03-25 11:13:21.605447377 +0000
+@@ -49,7 +49,7 @@
+ @[ -f icp ] || (echo $(LN_S) icmd icp ; $(LN_S) icmd icp)
+
+ install-exec-local:
+- $(mkdir_p) $(DESTDIR)($bindir)
++ $(mkdir_p) $(DESTDIR)$(bindir)
+ @[ -f $(DESTDIR)$(bindir)/qmv ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv)
+ @[ -f $(DESTDIR)$(bindir)/qcp ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp)
+ @[ -f $(DESTDIR)$(bindir)/imv ] || (echo $(LN_S) icmd $(DESTDIR)$(bindir)/imv ; $(LN_S) icmd $(DESTDIR)$(bindir)/imv)
+diff -Naur renameutils-0.12.0-orig/src/Makefile.in renameutils-0.12.0/src/Makefile.in
+--- renameutils-0.12.0-orig/src/Makefile.in 2012-04-23 12:24:10.000000000 +0100
++++ renameutils-0.12.0/src/Makefile.in 2013-03-25 11:13:40.549847891 +0000
+@@ -1577,7 +1577,7 @@
+ @[ -f icp ] || (echo $(LN_S) icmd icp ; $(LN_S) icmd icp)
+
+ install-exec-local:
+- $(mkdir_p) $(DESTDIR)($bindir)
++ $(mkdir_p) $(DESTDIR)$(bindir)
+ @[ -f $(DESTDIR)$(bindir)/qmv ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qmv)
+ @[ -f $(DESTDIR)$(bindir)/qcp ] || (echo $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp ; $(LN_S) qcmd $(DESTDIR)$(bindir)/qcp)
+ @[ -f $(DESTDIR)$(bindir)/imv ] || (echo $(LN_S) icmd $(DESTDIR)$(bindir)/imv ; $(LN_S) icmd $(DESTDIR)$(bindir)/imv)
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index aff1585c768b..dcc46cdaf165 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -1476,6 +1476,8 @@ let
remmina = callPackage ../applications/networking/remote/remmina {};
+ renameutils = callPackage ../tools/misc/renameutils { };
+
replace = callPackage ../tools/text/replace { };
reptyr = callPackage ../os-specific/linux/reptyr {};