Import krename-3.0.14
KRename is a powerful batch renamer for KDE. It allows you to easily rename hundreds or even more files in one go. The filenames can be created by parts of the original filename, numbering the files or accessing hundreds of informations about the file, like creation date or Exif informations of an image, thanks to KDE file plugins. Based on a submission by Vadim Zhukov <persgray at gmail dot com> (MAINTAINER)
This commit is contained in:
parent
fa905828ae
commit
bc00709531
53
sysutils/krename/Makefile
Normal file
53
sysutils/krename/Makefile
Normal file
@ -0,0 +1,53 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/02/15 12:33:10 ajacoutot Exp $
|
||||
|
||||
SHARED_ONLY= Yes
|
||||
|
||||
COMMENT= powerful KDE batch file renamer
|
||||
|
||||
DISTNAME= krename-3.0.14
|
||||
CATEGORIES= sysutils x11 x11/kde
|
||||
|
||||
EXTRACT_SUFX= .tar.bz2
|
||||
|
||||
HOMEPAGE= http://www.krename.net/
|
||||
|
||||
MAINTAINER= Vadim Zhukov <persgray@gmail.com>
|
||||
|
||||
# GPLv2
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB= ICE SM X11 Xau Xdmcp Xext Xrender c jpeg m png pthread \
|
||||
rpcsvc stdc++ util z
|
||||
|
||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=krename/} \
|
||||
http://www.krename.net/
|
||||
|
||||
MODULES= x11/kde devel/gettext
|
||||
|
||||
RUN_DEPENDS= :desktop-file-utils-*:devel/desktop-file-utils \
|
||||
::x11/kde/base3 \
|
||||
::x11/gtk+2 # gtk-update-icon-cache
|
||||
LIB_DEPENDS= art_lgpl_2.>=5::graphics/libart \
|
||||
fam::sysutils/fam \
|
||||
idn.>=16.30:libidn->=1.1:devel/libidn \
|
||||
DCOP.>=7,kdecore,kdefx,kdesu,kdeui,kio,kparts,kwalletclient::x11/kde/libs3
|
||||
|
||||
USE_X11= Yes
|
||||
USE_GMAKE= Yes
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
LIBTOOL_FLAGS= --tag=disable-static
|
||||
|
||||
AUTOCONF_VERSION=2.60
|
||||
|
||||
CONFIGURE_STYLE=autoconf
|
||||
CONFIGURE_ENV= ${MODKDE_CONFIGURE_ENV}
|
||||
CONFIGURE_ARGS= ${MODKDE_CONFIGURE_ARGS} \
|
||||
--enable-libsuffix=""
|
||||
|
||||
PORTHOME= ${WRKDIR}
|
||||
|
||||
.include <bsd.port.mk>
|
5
sysutils/krename/distinfo
Normal file
5
sysutils/krename/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (krename-3.0.14.tar.bz2) = H1/lc4TZEsEfvQ+ulLt/yg==
|
||||
RMD160 (krename-3.0.14.tar.bz2) = ukJ80bsnRvRZUxIupdyHKq8k3+M=
|
||||
SHA1 (krename-3.0.14.tar.bz2) = ZKShrtUinxsVNBRf8zz7IUaepbk=
|
||||
SHA256 (krename-3.0.14.tar.bz2) = RLib8gSEcnAqcgsjGIQ/Xz6y6QSuxCIgg7VbRx9YQ1U=
|
||||
SIZE (krename-3.0.14.tar.bz2) = 712821
|
25
sysutils/krename/patches/patch-krename_batchrenamer_cpp
Normal file
25
sysutils/krename/patches/patch-krename_batchrenamer_cpp
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-krename_batchrenamer_cpp,v 1.1.1.1 2008/02/15 12:33:10 ajacoutot Exp $
|
||||
--- krename/batchrenamer.cpp.orig Mon Jan 8 12:29:53 2007
|
||||
+++ krename/batchrenamer.cpp Fri Feb 15 10:17:49 2008
|
||||
@@ -312,9 +312,9 @@ void BatchRenamer::work( ProgressDialog* p )
|
||||
if( undo )
|
||||
if( dst.isLocalFile() && src.isLocalFile() ) {
|
||||
// Plugins ???
|
||||
- (*tundo) << "echo \"" << src.fileName()
|
||||
- << " -> " << dst.fileName() << "\"" << endl;
|
||||
- (*tundo) << "mv --force -b --suffix=.krename_ \"" << m_files[i].dst.name
|
||||
+ (*tundo) << "echo \"" << dst.fileName()
|
||||
+ << " -> " << src.fileName() << "\"" << endl;
|
||||
+ (*tundo) << "mv -f \"" << m_files[i].dst.name
|
||||
<< "\" \"" << m_files[i].src.name << "\"" << endl;
|
||||
} else
|
||||
p->warning( QString( i18n("Undo is not possible for remote file: %1") ).arg( dst.prettyURL() ) );
|
||||
@@ -855,7 +855,7 @@ QString BatchRenamer::doReplace( QString text, QString
|
||||
void BatchRenamer::writeUndoScript( QTextStream* t )
|
||||
{
|
||||
// write header comments
|
||||
- (*t) << "#!/bin/bash" << endl
|
||||
+ (*t) << "#!/bin/sh" << endl
|
||||
<< "# KRename Undo Script" << endl << "#" << endl
|
||||
<< "# KRename was written by:" << endl
|
||||
<< "# Dominik Seichter <domseichter@web.de>" << endl
|
5
sysutils/krename/pkg/DESCR
Normal file
5
sysutils/krename/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
KRename is a powerful batch renamer for KDE. It allows you to easily
|
||||
rename hundreds or even more files in one go. The filenames can be
|
||||
created by parts of the original filename, numbering the files or
|
||||
accessing hundreds of informations about the file, like creation date or
|
||||
Exif informations of an image, thanks to KDE file plugins.
|
44
sysutils/krename/pkg/PLIST
Normal file
44
sysutils/krename/pkg/PLIST
Normal file
@ -0,0 +1,44 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2008/02/15 12:33:10 ajacoutot Exp $
|
||||
bin/krename
|
||||
share/applications/kde/krename.desktop
|
||||
share/apps/konqueror/servicemenus/krename_dir.desktop
|
||||
share/apps/konqueror/servicemenus/krenameservicemenu.desktop
|
||||
share/apps/krename/
|
||||
share/apps/krename/krename_system_default_tabbed.xml
|
||||
share/apps/krename/krename_system_default_wizard.xml
|
||||
share/apps/krename/logo.png
|
||||
share/doc/HTML/en/krename/
|
||||
share/doc/HTML/en/krename/index.html
|
||||
share/icons/hicolor/32x32/apps/krename.png
|
||||
share/icons/hicolor/48x48/apps/krename.png
|
||||
share/icons/locolor/
|
||||
share/icons/locolor/16x16/
|
||||
share/icons/locolor/16x16/apps/
|
||||
share/icons/locolor/16x16/apps/krename.png
|
||||
share/icons/locolor/32x32/
|
||||
share/icons/locolor/32x32/apps/
|
||||
share/icons/locolor/32x32/apps/krename.png
|
||||
share/locale/bs/LC_MESSAGES/krename.mo
|
||||
share/locale/de/LC_MESSAGES/krename.mo
|
||||
share/locale/es/LC_MESSAGES/krename.mo
|
||||
share/locale/fr/LC_MESSAGES/krename.mo
|
||||
share/locale/hu/LC_MESSAGES/krename.mo
|
||||
share/locale/it/LC_MESSAGES/krename.mo
|
||||
share/locale/ja/LC_MESSAGES/krename.mo
|
||||
share/locale/nl/LC_MESSAGES/krename.mo
|
||||
share/locale/pl/LC_MESSAGES/krename.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/krename.mo
|
||||
share/locale/ru/LC_MESSAGES/krename.mo
|
||||
share/locale/sl/LC_MESSAGES/krename.mo
|
||||
share/locale/sv/LC_MESSAGES/krename.mo
|
||||
share/locale/tr/LC_MESSAGES/krename.mo
|
||||
share/locale/zh_CN.GB2312/
|
||||
share/locale/zh_CN.GB2312/LC_MESSAGES/
|
||||
share/locale/zh_CN.GB2312/LC_MESSAGES/krename.mo
|
||||
share/locale/zh_TW.Big5/
|
||||
share/locale/zh_TW.Big5/LC_MESSAGES/
|
||||
share/locale/zh_TW.Big5/LC_MESSAGES/krename.mo
|
||||
@exec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor
|
||||
@unexec %D/bin/gtk-update-icon-cache -q -f -t %D/share/icons/hicolor
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec %D/bin/update-desktop-database
|
Loading…
Reference in New Issue
Block a user