[21015] trunk/dports/sysutils/FDclone/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Fri Dec 22 07:16:26 PST 2006
Revision: 21015
http://trac.macosforge.org/projects/macports/changeset/21015
Author: takanori at macports.org
Date: 2006-12-22 07:16:25 -0800 (Fri, 22 Dec 2006)
Log Message:
-----------
Version bump to 2.09b.
Modified Paths:
--------------
trunk/dports/sysutils/FDclone/Portfile
Modified: trunk/dports/sysutils/FDclone/Portfile
===================================================================
--- trunk/dports/sysutils/FDclone/Portfile 2006-12-21 20:33:28 UTC (rev 21014)
+++ trunk/dports/sysutils/FDclone/Portfile 2006-12-22 15:16:25 UTC (rev 21015)
@@ -1,51 +1,51 @@
# $Id$
-PortSystem 1.0
-name FDclone
-version 2.09a
-categories sysutils
-maintainers takanori at macports.org
-description File & Directory Maintenance Tool
-long_description ${description}
-homepage http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
-master_sites http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
- ftp://ftp.unixusers.net/src/fdclone/
-platforms darwin
-distfiles FD-${version}.tar.gz
-checksums md5 5e692f1ad601173000bd6abb98d05c08 \
- sha1 1ceae6da209074ecac83a2822274146e7b3faf67 \
- rmd160 1b35f1569d33e2050ad9a6cbdec3a26abe306c6f
-depends_build bin:perl:perl5.8
-depends_lib lib:libncurses:ncurses
+PortSystem 1.0
+name FDclone
+version 2.09b
+categories sysutils shells
+maintainers takanori at macports.org
+description File & Directory Maintenance Tool
+long_description ${description}
+homepage http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
+master_sites http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
+ ftp://ftp.unixusers.net/src/fdclone/
+platforms darwin
+distname FD-${version}
+checksums md5 2e08cea7d726c54a77b71c9d807854ab \
+ sha1 f1cea075c66fc0ac62f7f8cb078fff6b8a330802 \
+ rmd160 09a0adf9b5c7b51c8ab4369431b16f76b3c460eb
-set editor ""
-set pager ""
+set editor ""
+set pager ""
-worksrcdir FD-${version}
-patchfiles nojmaninstall.patch
-post-patch {
- system "perl -pi -e \"s|(#include <unistd\\.h>)|\\1\\n#include <sys/types\\.h>|g\" ${worksrcpath}/*.c"
+patchfiles nojmaninstall.patch
+post-patch {
+ foreach f [glob ${worksrcpath}/*.c] {
+ reinplace "s|\\(#include <unistd\.h>\\)|\\1\\\n#include <sys/types\.h>|" ${f}
+ }
+ reinplace "s|\$(TOPDIR)/man|\$(TOPDIR)/share/man|g" ${worksrcpath}/Makefile.in
+}
- reinplace "s|\$(TOPDIR)/man|\$(TOPDIR)/share/man|g" ${worksrcpath}/Makefile.in
+configure {
+ if {[variant_isset nojpnmes]} {
+ system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
+ }
- if {[variant_isset nojpnmes]} {
- system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
- }
+ if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
+ if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }
- if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
- if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }
-
- if {[variant_isset autosort]} {
- reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
- reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
- reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
- }
+ if {[variant_isset autosort]} {
+ reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
+ reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
+ reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
+ }
}
-configure {}
-build.args CONFDIR=${prefix}/etc PREFIX=${prefix}
-destroot.args BUILD=${destroot} PREFIX=${prefix}
-post-destroot {
+build.args CONFDIR=${prefix}/etc PREFIX=${prefix}
+
+destroot.args BUILD=${destroot} PREFIX=${prefix}
+post-destroot {
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
foreach f {FAQ* HISTORY* Install* LICENSES* README* TECHKNOW* ToAdmin* *.cat} {
eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
@@ -63,4 +63,4 @@
livecheck.check regex
livecheck.url ${homepage}
-livecheck.regex FD-(\[0-9.a-z\]+)\\\.tar
+livecheck.regex FD-(\[0-9.a-z\]+)\\.tar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20061222/d1cb66ed/attachment.html
More information about the macports-changes
mailing list