pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Import renameutils as is, from PR pkg/52546.
Module Name: pkgsrc-wip
Committed By: Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By: bsiegert
Date: Fri Sep 22 12:09:26 2017 +0200
Changeset: bab457f09a3eea9d079880e98a0af7fb7a6fe5ec
Added Files:
renameutils/DESCR
renameutils/Makefile
renameutils/PLIST
renameutils/distinfo
renameutils/options.mk
renameutils/patches/patch-src__Makefile.in
renameutils/patches/patch-src__icmd.c
renameutils/patches/patch-src__qcmd.c
Log Message:
Import renameutils as is, from PR pkg/52546.
From Matteo Cypriani.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=bab457f09a3eea9d079880e98a0af7fb7a6fe5ec
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
renameutils/DESCR | 8 +++++
renameutils/Makefile | 17 ++++++++++
renameutils/PLIST | 53 ++++++++++++++++++++++++++++++
renameutils/distinfo | 9 +++++
renameutils/options.mk | 17 ++++++++++
renameutils/patches/patch-src__Makefile.in | 14 ++++++++
renameutils/patches/patch-src__icmd.c | 16 +++++++++
renameutils/patches/patch-src__qcmd.c | 14 ++++++++
8 files changed, 148 insertions(+)
diffs:
diff --git a/renameutils/DESCR b/renameutils/DESCR
new file mode 100644
index 0000000000..e0de00e27e
--- /dev/null
+++ b/renameutils/DESCR
@@ -0,0 +1,8 @@
+The file renaming utilities consists of five programs designed to make renaming
+of files faster and less cumbersome:
+- qmv ("quick move") allows a bunch of file names to be edited in a text editor;
+- imv ("interactive move") allows a single file name to be edited in the
+ terminal using the GNU Readline library
+- qcp and icp are similar to qmv and imv but copy files instead of moving them;
+- deurlname removes URL encoded characters (such as %20 representing space) from
+ file names.
diff --git a/renameutils/Makefile b/renameutils/Makefile
new file mode 100644
index 0000000000..a104b99fe3
--- /dev/null
+++ b/renameutils/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+DISTNAME= renameutils-0.12.0
+CATEGORIES= sysutils converters
+MASTER_SITES= http://download.savannah.gnu.org/releases/renameutils/
+
+MAINTAINER= mcy%lm7.fr@localhost
+HOMEPAGE= http://www.nongnu.org/renameutils/
+COMMENT= Rename files faster and more easily
+LICENSE= gnu-gpl-v3
+
+GNU_CONFIGURE= yes
+DEPENDS+= coreutils-[0-9]*:../../sysutils/coreutils
+
+.include "options.mk"
+.include "../../devel/readline/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/renameutils/PLIST b/renameutils/PLIST
new file mode 100644
index 0000000000..a3c2b81256
--- /dev/null
+++ b/renameutils/PLIST
@@ -0,0 +1,53 @@
+@comment $NetBSD$
+bin/deurlname
+bin/icmd
+bin/icp
+bin/imv
+bin/qcmd
+bin/qcp
+bin/qmv
+man/man1/deurlname.1
+man/man1/icmd.1
+man/man1/icp.1
+man/man1/imv.1
+man/man1/qcmd.1
+man/man1/qcp.1
+man/man1/qmv.1
+${PLIST.nls}share/locale/af/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/be/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/bg/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ca/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/cs/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/da/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/de/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/el/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/es/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/et/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/eu/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/fi/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/fr/LC_MESSAGES/renameutils.mo
+${PLIST.nls}share/locale/ga/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/gl/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/hu/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/it/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ja/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ko/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ms/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/nb/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/nl/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/pl/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/pt/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/pt_BR/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ro/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/ru/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/rw/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/sk/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/sl/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/sv/LC_MESSAGES/renameutils.mo
+${PLIST.nls}share/locale/tr/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/uk/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/vi/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/zh_CN/LC_MESSAGES/renameutils-gnulib.mo
+${PLIST.nls}share/locale/zh_TW/LC_MESSAGES/renameutils-gnulib.mo
diff --git a/renameutils/distinfo b/renameutils/distinfo
new file mode 100644
index 0000000000..dcba7c10cd
--- /dev/null
+++ b/renameutils/distinfo
@@ -0,0 +1,9 @@
+$NetBSD$
+
+SHA1 (renameutils-0.12.0.tar.gz) = 8c6edae4ee374330a01a95257fd552b5cb7540bc
+RMD160 (renameutils-0.12.0.tar.gz) = 996cf00d764ed3f4443fcf7af4ed3649bda365f3
+SHA512 (renameutils-0.12.0.tar.gz) = 8aae157e6ead86a2fbf970ecdb27d6067c2d35c04058ead9a3c0af3d99d466d37d8c4f1da0562ef2bea9cf9bd5f8de4d14340906427df421dba1a5c234c63bd6
+Size (renameutils-0.12.0.tar.gz) = 954114 bytes
+SHA1 (patch-src__Makefile.in) = 7651e887d78a0dc44ccccca6d180e4ac26ade7d9
+SHA1 (patch-src__icmd.c) = 39107f0b3b7d9ca7b10243e7a9ca732143f89229
+SHA1 (patch-src__qcmd.c) = 210650d9f6bd78a4351c93ce8bab5dfcbeafb23b
diff --git a/renameutils/options.mk b/renameutils/options.mk
new file mode 100644
index 0000000000..63a2b7a6a6
--- /dev/null
+++ b/renameutils/options.mk
@@ -0,0 +1,17 @@
+# $NetBSD$
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.renameutils
+PKG_SUPPORTED_OPTIONS= nls
+PKG_SUGGESTED_OPTIONS= nls
+
+.include "../../mk/bsd.options.mk"
+
+PLIST_VARS+= nls
+
+.if !empty(PKG_OPTIONS:Mnls)
+USE_PKGLOCALEDIR= yes
+PLIST.nls= yes
+.include "../../devel/gettext-lib/buildlink3.mk"
+.else
+CONFIGURE_ARGS+= --disable-nls
+.endif
diff --git a/renameutils/patches/patch-src__Makefile.in b/renameutils/patches/patch-src__Makefile.in
new file mode 100644
index 0000000000..ab02684918
--- /dev/null
+++ b/renameutils/patches/patch-src__Makefile.in
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Fix typo in src/Makefile.in. This should be fixed in the next upstream release.
+--- src/Makefile.in~ 2012-04-23 07:24:10.000000000 -0400
++++ src/Makefile.in 2017-09-16 14:12:56.000000000 -0400
+@@ -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/renameutils/patches/patch-src__icmd.c b/renameutils/patches/patch-src__icmd.c
new file mode 100644
index 0000000000..6e3f108a25
--- /dev/null
+++ b/renameutils/patches/patch-src__icmd.c
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Use mv and cp from GNU coreutils.
+--- src/icmd.c.orig 2008-09-21 09:10:29 UTC
++++ 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.
diff --git a/renameutils/patches/patch-src__qcmd.c b/renameutils/patches/patch-src__qcmd.c
new file mode 100644
index 0000000000..8fbc6d608b
--- /dev/null
+++ b/renameutils/patches/patch-src__qcmd.c
@@ -0,0 +1,14 @@
+$NetBSD$
+
+Use ls from GNU coreutils.
+--- src/qcmd.c.orig 2011-08-21 17:15:51 UTC
++++ src/qcmd.c
+@@ -239,7 +239,7 @@
+ editor_program = xstrdup(editor_program);
+
+ if (ls_program == NULL)
+- ls_program = xstrdup("ls");
++ ls_program = xstrdup("gls");
+
+ /* Parse format options */
+ if (format_options != NULL && !format->parse_options(format_options))
Home |
Main Index |
Thread Index |
Old Index