# $Id: Portfile 20257 2006-10-31 13:27:11Z takanori@macports.org $ PortSystem 1.0 name FDclone version 2.09a categories sysutils maintainers takanori@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 set editor "" set pager "" worksrcdir FD-${version} patchfiles nojmaninstall.patch post-patch { system "perl -pi -e \"s|(#include )|\\1\\n#include |g\" ${worksrcpath}/*.c" reinplace "s|\$(TOPDIR)/man|\$(TOPDIR)/share/man|g" ${worksrcpath}/Makefile.in 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 {[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 { 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} } xinstall -m 644 ${worksrcpath}/_fdrc ${destroot}${prefix}/etc/fd2rc.dist } variant nojpnmes {} variant emacs conflicts vim {set editor emacs} variant vim conflicts emacs {set editor vim} variant lv conflicts less jless {set pager lv} variant less conflicts lv jless {set pager less} variant jless conflicts lv less {set pager jless} variant autosort {} livecheck.check regex livecheck.url ${homepage} livecheck.regex FD-(\[0-9.a-z\]+)\\\.tar