pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/sysutils



Module Name:    pkgsrc
Committed By:   bsiegert
Date:           Fri Nov  9 12:50:49 UTC 2018

Modified Files:
        pkgsrc/sysutils: Makefile
Added Files:
        pkgsrc/sysutils/renameutils: DESCR Makefile PLIST distinfo options.mk
        pkgsrc/sysutils/renameutils/patches: patch-src_Makefile.in
            patch-src_icmd.c patch-src_qcmd.c

Log Message:
Import renameutils-0.12.0 from pkgsrc-wip.

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.

PR pkg/52546, which I neglected for a year.


To generate a diff of this commit:
cvs rdiff -u -r1.783 -r1.784 pkgsrc/sysutils/Makefile
cvs rdiff -u -r0 -r1.1 pkgsrc/sysutils/renameutils/DESCR \
    pkgsrc/sysutils/renameutils/Makefile pkgsrc/sysutils/renameutils/PLIST \
    pkgsrc/sysutils/renameutils/distinfo \
    pkgsrc/sysutils/renameutils/options.mk
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/sysutils/renameutils/patches/patch-src_Makefile.in \
    pkgsrc/sysutils/renameutils/patches/patch-src_icmd.c \
    pkgsrc/sysutils/renameutils/patches/patch-src_qcmd.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/sysutils/Makefile
diff -u pkgsrc/sysutils/Makefile:1.783 pkgsrc/sysutils/Makefile:1.784
--- pkgsrc/sysutils/Makefile:1.783      Sat Oct 27 10:03:35 2018
+++ pkgsrc/sysutils/Makefile    Fri Nov  9 12:50:49 2018
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.783 2018/10/27 10:03:35 skrll Exp $
+# $NetBSD: Makefile,v 1.784 2018/11/09 12:50:49 bsiegert Exp $
 #
 
 COMMENT=       System utilities
@@ -497,6 +497,7 @@ SUBDIR+=    rconfig
 SUBDIR+=       rdfind
 SUBDIR+=       rdiff-backup
 SUBDIR+=       rename
+SUBDIR+=       renameutils
 SUBDIR+=       rfstool
 SUBDIR+=       riemann-client
 SUBDIR+=       rkdeveloptool

Added files:

Index: pkgsrc/sysutils/renameutils/DESCR
diff -u /dev/null pkgsrc/sysutils/renameutils/DESCR:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/DESCR   Fri Nov  9 12:50:49 2018
@@ -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.
Index: pkgsrc/sysutils/renameutils/Makefile
diff -u /dev/null pkgsrc/sysutils/renameutils/Makefile:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/Makefile        Fri Nov  9 12:50:49 2018
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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"
Index: pkgsrc/sysutils/renameutils/PLIST
diff -u /dev/null pkgsrc/sysutils/renameutils/PLIST:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/PLIST   Fri Nov  9 12:50:49 2018
@@ -0,0 +1,53 @@
+@comment $NetBSD: PLIST,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+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
Index: pkgsrc/sysutils/renameutils/distinfo
diff -u /dev/null pkgsrc/sysutils/renameutils/distinfo:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/distinfo        Fri Nov  9 12:50:49 2018
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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
Index: pkgsrc/sysutils/renameutils/options.mk
diff -u /dev/null pkgsrc/sysutils/renameutils/options.mk:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/options.mk      Fri Nov  9 12:50:49 2018
@@ -0,0 +1,17 @@
+# $NetBSD: options.mk,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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

Index: pkgsrc/sysutils/renameutils/patches/patch-src_Makefile.in
diff -u /dev/null pkgsrc/sysutils/renameutils/patches/patch-src_Makefile.in:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/patches/patch-src_Makefile.in   Fri Nov  9 12:50:49 2018
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_Makefile.in,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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)
Index: pkgsrc/sysutils/renameutils/patches/patch-src_icmd.c
diff -u /dev/null pkgsrc/sysutils/renameutils/patches/patch-src_icmd.c:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/patches/patch-src_icmd.c        Fri Nov  9 12:50:49 2018
@@ -0,0 +1,16 @@
+$NetBSD: patch-src_icmd.c,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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.
Index: pkgsrc/sysutils/renameutils/patches/patch-src_qcmd.c
diff -u /dev/null pkgsrc/sysutils/renameutils/patches/patch-src_qcmd.c:1.1
--- /dev/null   Fri Nov  9 12:50:49 2018
+++ pkgsrc/sysutils/renameutils/patches/patch-src_qcmd.c        Fri Nov  9 12:50:49 2018
@@ -0,0 +1,14 @@
+$NetBSD: patch-src_qcmd.c,v 1.1 2018/11/09 12:50:49 bsiegert Exp $
+
+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