diff options
author | Trevor Johnson <trevor@FreeBSD.org> | 2004-03-16 00:11:20 +0000 |
---|---|---|
committer | Trevor Johnson <trevor@FreeBSD.org> | 2004-03-16 00:11:20 +0000 |
commit | 038da47362c2720325384eb60810a5ed9f349634 (patch) | |
tree | 585e1895753d6a46e04098cbfe55695fc492c361 | |
parent | f067b4d9c0d94917018cbef87d97678aca686001 (diff) | |
download | ports-038da47362c2720325384eb60810a5ed9f349634.tar.gz ports-038da47362c2720325384eb60810a5ed9f349634.zip |
Notes
-rw-r--r-- | x11-fm/Makefile | 1 | ||||
-rw-r--r-- | x11-fm/gprename/Makefile | 53 | ||||
-rw-r--r-- | x11-fm/gprename/distinfo | 2 | ||||
-rw-r--r-- | x11-fm/gprename/files/gprename | 9 | ||||
-rw-r--r-- | x11-fm/gprename/install.sh | 9 | ||||
-rw-r--r-- | x11-fm/gprename/pkg-descr | 9 |
6 files changed, 83 insertions, 0 deletions
diff --git a/x11-fm/Makefile b/x11-fm/Makefile index aa761afff91b..4fb8d9dd72d9 100644 --- a/x11-fm/Makefile +++ b/x11-fm/Makefile @@ -14,6 +14,7 @@ SUBDIR += fsv SUBDIR += gentoo SUBDIR += gnome-commander + SUBDIR += gprename SUBDIR += krusader SUBDIR += mtoolsfm SUBDIR += nautilus2 diff --git a/x11-fm/gprename/Makefile b/x11-fm/gprename/Makefile new file mode 100644 index 000000000000..a53f68f758f0 --- /dev/null +++ b/x11-fm/gprename/Makefile @@ -0,0 +1,53 @@ +# New ports collection makefile for: gprename +# Date created: 2004-03-15 +# Whom: trevor +# +# $FreeBSD$ +# + +PORTNAME= gprename +PORTVERSION= 1.21 +CATEGORIES= x11-fm +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= trevor@FreeBSD.org +COMMENT= Perl script for renaming multiple files + +RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/Gtk:${PORTSDIR}/x11-toolkits/p5-Gtk + +NO_BUILD= yes +PLIST_DIRS= share/gprename/languages share/gprename/pixmaps share/gprename +PLIST_FILES= bin/gprename share/gprename/pixmaps/gprename_icon64.xpm +USE_BZIP2= yes +USE_PERL5_RUN= yes +USE_X_PREFIX= yes + +.include <bsd.port.pre.mk> + +.for ii in en es.ISO-8859-1 es.UTF-8 fr.ISO-8859-1 fr.UTF-8 zh_TW.Big5 \ + zh_TW.UTF-8 +PLIST_FILES+= share/gprename/languages/lang.${ii} +.endfor + +pre-install: +.if !defined(NOPORTDOCS) +PLIST_DIRS+= share/doc/gprename +PLIST_FILES+= share/doc/gprename/README +.endif + +do-install: + ${MKDIR} ${DATADIR} + ${CP} -pPR ${WRKSRC}/languages ${WRKSRC}/pixmaps ${DATADIR} +.for ii in gprename langs + ${INSTALL_SCRIPT} ${WRKSRC}/${ii}.pl ${DATADIR} +.endfor + ${SED} 's:PREFIX:${PREFIX}:g' < ${FILESDIR}/gprename \ + > ${WRKDIR}/gprename + ${INSTALL_SCRIPT} ${WRKDIR}/gprename ${PREFIX}/bin +.if !defined(NOPORTDOCS) + ${MKDIR} ${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} +.endif + +.include <bsd.port.post.mk> diff --git a/x11-fm/gprename/distinfo b/x11-fm/gprename/distinfo new file mode 100644 index 000000000000..5a86701ed72d --- /dev/null +++ b/x11-fm/gprename/distinfo @@ -0,0 +1,2 @@ +MD5 (gprename-1.21.tar.bz2) = 8514707e3cb42e19cef575609b0328ed +SIZE (gprename-1.21.tar.bz2) = 35063 diff --git a/x11-fm/gprename/files/gprename b/x11-fm/gprename/files/gprename new file mode 100644 index 000000000000..f138e483bf81 --- /dev/null +++ b/x11-fm/gprename/files/gprename @@ -0,0 +1,9 @@ +#!/bin/sh +index=`expr "$1" | /`; +if [ $index != $1 ] +then + dir=`pwd`/$1; +else + dir="$1"; +fi +perl PREFIX/share/gprename/gprename.pl PREFIX/share/gprename/ $dir & diff --git a/x11-fm/gprename/install.sh b/x11-fm/gprename/install.sh new file mode 100644 index 000000000000..60bdd52b48d3 --- /dev/null +++ b/x11-fm/gprename/install.sh @@ -0,0 +1,9 @@ +echo "#!/bin/sh" >/usr/local/bin/gprename +echo "index=\`expr index \"\$1\" /\`;" >> /usr/local/bin/gprename +echo "if [ \$index != 1 ]">> /usr/local/bin/gprename +echo "then">> /usr/local/bin/gprename +echo " dir=\`pwd\`/\$1;">> /usr/local/bin/gprename +echo "else">> /usr/local/bin/gprename +echo " dir=\"\$1\";">> /usr/local/bin/gprename +echo "fi">> /usr/local/bin/gprename +echo "perl $INSTALLDIR/gprename.pl $INSTALLDIR \$dir &" >>/usr/local/bin/gprename diff --git a/x11-fm/gprename/pkg-descr b/x11-fm/gprename/pkg-descr new file mode 100644 index 000000000000..cc1e1970fb9c --- /dev/null +++ b/x11-fm/gprename/pkg-descr @@ -0,0 +1,9 @@ +from the home page: + + GPRename is a GUI batch file renamer based on Gtk-Perl. + + It can rename files numerically, insert/delete characters at/between + specified position(s), replace strings (either using regular + expressions or not), and change case. + +WWW: http://gprename.sf.net/ |