1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name FDclone |
---|
5 | version 2.08 |
---|
6 | categories sysutils |
---|
7 | maintainers tatyana-dports@miko.org |
---|
8 | description File & Directory Maintenance Tool |
---|
9 | long_description ${description} |
---|
10 | homepage http://hp.vector.co.jp/authors/VA012337/soft/fd/index.html |
---|
11 | master_sites http://hp.vector.co.jp/authors/VA012337/soft/fd/ |
---|
12 | distfiles FD-${version}.tar.gz |
---|
13 | checksums md5 05dcbd962a5c58c0ddeb08cd0bc032b9 \ |
---|
14 | sha1 f4813658eae221dec1b769bc7008816b69629591 \ |
---|
15 | rmd160 c99c39bcd24c23326bc902240031032b1a839a2c |
---|
16 | |
---|
17 | worksrcdir FD-${version} |
---|
18 | patchfiles nojmaninstall.patch |
---|
19 | post-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 | } |
---|
48 | configure {} |
---|
49 | build.args CONFDIR=${prefix}/etc PREFIX=${prefix} |
---|
50 | destroot.args BUILD=${destroot} PREFIX=${prefix} |
---|
51 | |
---|
52 | post-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 | |
---|
64 | variant nojpnmes {} |
---|
65 | variant emacs {} |
---|
66 | variant lv conflicts less conflicts jless {} |
---|
67 | variant less conflicts lv conflicts jless {} |
---|
68 | variant jless conflicts lv conflicts less {} |
---|
69 | variant autosort {} |
---|