source: trunk/dports/sysutils/FDclone/Portfile @ 20257

Last change on this file since 20257 was 20257, checked in by takanori@…, 13 years ago

Version bump to 2.09a.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 20257 2006-10-31 13:27:11Z takanori@macports.org $
2
3PortSystem        1.0
4name              FDclone
5version           2.09a
6categories        sysutils
7maintainers       takanori@macports.org
8description       File & Directory Maintenance Tool
9long_description  ${description}
10homepage          http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html
11master_sites      http://hp.vector.co.jp/authors/VA012337/soft/fd/ \
12                  ftp://ftp.unixusers.net/src/fdclone/
13platforms         darwin
14distfiles         FD-${version}.tar.gz
15checksums         md5 5e692f1ad601173000bd6abb98d05c08 \
16                  sha1 1ceae6da209074ecac83a2822274146e7b3faf67 \
17                  rmd160 1b35f1569d33e2050ad9a6cbdec3a26abe306c6f
18depends_build     bin:perl:perl5.8
19depends_lib       lib:libncurses:ncurses
20
21set editor ""
22set pager ""
23
24worksrcdir        FD-${version}
25patchfiles        nojmaninstall.patch
26post-patch        {
27                  system "perl -pi -e \"s|(#include <unistd\\.h>)|\\1\\n#include <sys/types\\.h>|g\" ${worksrcpath}/*.c"
28
29                  reinplace "s|\$(TOPDIR)/man|\$(TOPDIR)/share/man|g" ${worksrcpath}/Makefile.in
30
31                  if {[variant_isset nojpnmes]} {
32                     system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
33                  }
34
35                  if {${editor} != ""} { reinplace "s|\"vi\"|\"${editor}\"|g" ${worksrcpath}/fd.h }
36                  if {${pager} != ""} { reinplace "s|\"more%K\"|\"${pager}\"|g" ${worksrcpath}/fd.h }
37
38                  if {[variant_isset autosort]} {
39                     reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
40                     reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
41                     reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
42                  }
43}
44configure         {}
45build.args        CONFDIR=${prefix}/etc PREFIX=${prefix}
46destroot.args     BUILD=${destroot} PREFIX=${prefix}
47
48post-destroot   {
49                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
50                foreach f {FAQ* HISTORY* Install* LICENSES* README* TECHKNOW* ToAdmin* *.cat} {
51                        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
52                }
53                xinstall -m 644 ${worksrcpath}/_fdrc ${destroot}${prefix}/etc/fd2rc.dist
54}
55
56variant nojpnmes {}
57variant emacs conflicts vim {set editor emacs}
58variant vim conflicts emacs {set editor vim}
59variant lv conflicts less jless {set pager lv}
60variant less conflicts lv jless {set pager less}
61variant jless conflicts lv less {set pager jless}
62variant autosort {}
63
64livecheck.check regex
65livecheck.url   ${homepage}
66livecheck.regex FD-(\[0-9.a-z\]+)\\\.tar
Note: See TracBrowser for help on using the repository browser.