Ticket #6897: Portfile

File Portfile, 2.6 KB (added by tatyana@…, 18 years ago)

corrected Portfile

Line 
1# $Id: $
2
3PortSystem        1.0
4name              FDclone
5version           2.08
6categories        sysutils
7maintainers       tatyana-dports@miko.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/
12distfiles         FD-${version}.tar.gz
13checksums         md5 05dcbd962a5c58c0ddeb08cd0bc032b9 \
14                  sha1 f4813658eae221dec1b769bc7008816b69629591 \
15                  rmd160 c99c39bcd24c23326bc902240031032b1a839a2c
16
17worksrcdir        FD-${version}
18patchfiles        nojmaninstall.patch
19post-patch        {
20                  reinplace "s|\$(TOPDIR)/man|\$(TOPDIR)/share/man|g" ${worksrcpath}/Makefile.in
21
22                  if {[variant_isset nojpnmes]} {
23                     system "echo \"#define _NOJPNMES\" >> ${worksrcpath}/config.hin"
24                  }
25
26                  if {[variant_isset emacs]} {
27                     reinplace "s|\"vi\"|\"emacs\"|g" ${worksrcpath}/fd.h
28                  }
29
30                  if {[variant_isset lv]} {
31                     reinplace "s|\"more%K\"|\"lv\"|g" ${worksrcpath}/fd.h
32                  }
33
34                  if {[variant_isset less]} {
35                     reinplace "s|\"more%K\"|\"less\"|g" ${worksrcpath}/fd.h
36                  }
37
38                  if {[variant_isset jless]} {
39                     reinplace "s|\"more%K\"|\"jless\"|g" ${worksrcpath}/fd.h
40                  }
41
42                  if {[variant_isset autosort]} {
43                     reinplace "s|SORTTYPE\t0|SORTTYPE\t1|" ${worksrcpath}/fd.h
44                     reinplace "s|DISPLAYMODE\t0|DISPLAYMODE\t3|" ${worksrcpath}/fd.h
45                     reinplace "s|SORTTREE\t0|SORTTREE\t1|" ${worksrcpath}/fd.h
46                  }
47}
48configure         {}
49build.args        CONFDIR=${prefix}/etc PREFIX=${prefix}
50destroot.args     BUILD=${destroot} PREFIX=${prefix}
51
52post-destroot   {
53                xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
54
55                eval xinstall -m 644 [glob ${worksrcpath}/FAQ*] ${destroot}${prefix}/share/doc/${name}
56                eval xinstall -m 644 [glob ${worksrcpath}/HISTORY*] ${destroot}${prefix}/share/doc/${name}
57                eval xinstall -m 644 [glob ${worksrcpath}/Install*] ${destroot}${prefix}/share/doc/${name}
58                eval xinstall -m 644 [glob ${worksrcpath}/LICENSES*] ${destroot}${prefix}/share/doc/${name}
59                eval xinstall -m 644 [glob ${worksrcpath}/README*] ${destroot}${prefix}/share/doc/${name}
60                eval xinstall -m 644 [glob ${worksrcpath}/TECHKNOW*] ${destroot}${prefix}/share/doc/${name}
61                eval xinstall -m 644 [glob ${worksrcpath}/ToAdmin*] ${destroot}${prefix}/share/doc/${name}
62}
63
64variant nojpnmes {}
65variant emacs {}
66variant lv conflicts less conflicts jless {}
67variant less conflicts lv conflicts jless {}
68variant jless conflicts lv conflicts less {}
69variant autosort {}