1 | # $Id: Portfile,v 1.1 2006/01/29 14:14:54 olegb Exp $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name lv |
---|
5 | version 4.51 |
---|
6 | categories textproc |
---|
7 | maintainers tatyana-dports@miko.org |
---|
8 | description Powerful Multilingual File Viewer / Grep |
---|
9 | long_description ${description} |
---|
10 | homepage http://www.ff.iij4u.or.jp/~nrt/lv/index.html |
---|
11 | master_sites http://www.ff.iij4u.or.jp/~nrt/freeware/ |
---|
12 | distfiles ${name}451.tar.gz |
---|
13 | checksums md5 85b70ae797f935741ec9a1cbe92f00e9 \ |
---|
14 | sha1 1a70299c27aa317a436976a557853858db4dcb5f \ |
---|
15 | rmd160 ae0d58b52dbf714f8b371f51ac87490ecba1c994 |
---|
16 | |
---|
17 | worksrcdir ${name}451 |
---|
18 | patch.pre_args -p1 |
---|
19 | configure { |
---|
20 | system "cd ${worksrcpath}/build && ../src/configure --prefix=${prefix}" |
---|
21 | } |
---|
22 | build { |
---|
23 | system "cd ${worksrcpath}/build && make" |
---|
24 | } |
---|
25 | destroot { |
---|
26 | xinstall -m 755 -d ${destroot}/${prefix}/bin |
---|
27 | xinstall -m 755 -d ${destroot}/${prefix}/lib/lv |
---|
28 | xinstall -m 755 -d ${destroot}/${prefix}/share/man/man1 |
---|
29 | |
---|
30 | xinstall -m 755 ${worksrcpath}/build/lv ${destroot}/${prefix}/bin |
---|
31 | system "ln ${destroot}/${prefix}/bin/lv ${destroot}/${prefix}/bin/lgrep" |
---|
32 | xinstall -m 644 ${worksrcpath}/lv.hlp ${destroot}/${prefix}/lib/lv |
---|
33 | xinstall -m 644 ${worksrcpath}/lv.1 ${destroot}/${prefix}/share/man/man1 |
---|
34 | } |
---|
35 | |
---|
36 | post-destroot { |
---|
37 | xinstall -m 755 -d ${destroot}/${prefix}/share/doc/${name} |
---|
38 | xinstall -m 644 ${worksrcpath}/GPL.txt ${destroot}/${prefix}/share/doc/${name} |
---|
39 | xinstall -m 644 ${worksrcpath}/README ${destroot}/${prefix}/share/doc/${name} |
---|
40 | eval xinstall -m 644 [glob ${worksrcpath}/hello*] ${destroot}/${prefix}/share/doc/${name} |
---|
41 | xinstall -m 644 ${worksrcpath}/index.html ${destroot}/${prefix}/share/doc/${name} |
---|
42 | xinstall -m 644 ${worksrcpath}/relnote.html ${destroot}/${prefix}/share/doc/${name} |
---|
43 | } |
---|
44 | |
---|
45 | variant lesslikeslash { |
---|
46 | patchfiles-append lv451_lesslikeslash.patch |
---|
47 | } |
---|