source: trunk/dports/textproc/lv/Portfile

Last change on this file was 139469, checked in by jmr@…, 2 years ago

ncurses: update to 6.0, rev bump dependents due to new ABI

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Portfile 139469 2015-08-18 01:10:17Z ryandesign@macports.org $
2
3PortSystem      1.0
4
5name            lv
6version         4.51
7revision        4
8categories      textproc
9maintainers     nomaintainer
10description     Powerful Multilingual File Viewer / Grep
11long_description \
12                ${description}
13platforms       darwin
14license         GPL-2+
15homepage        http://www.ff.iij4u.or.jp/~nrt/lv/index.html
16master_sites    http://www.ff.iij4u.or.jp/~nrt/freeware/
17distfiles       ${name}451.tar.gz
18patchfiles      patch-src_stream.c.diff \
19                patch-src_configure.diff \
20                patch-src_Makefile.in.diff
21checksums       md5 85b70ae797f935741ec9a1cbe92f00e9 \
22                sha1 1a70299c27aa317a436976a557853858db4dcb5f \
23                rmd160 ae0d58b52dbf714f8b371f51ac87490ecba1c994
24
25depends_lib     port:ncurses
26depends_run     bin:bzcat:bzip2 \
27                bin:gzcat:gzip
28
29worksrcdir      ${name}451
30
31pre-patch {
32    if {[variant_isset lesslikeslash]} {
33        patchfiles-append patch-src_command.c.diff
34    }
35}
36
37configure.cflags-append -I${prefix}/include/ncurses
38configure.dir   ${worksrcpath}/build
39configure.cmd   ../src/configure
40
41build.dir       ${worksrcpath}/build
42build.target
43use_parallel_build  yes
44
45destroot {
46    xinstall -m 755 -d ${destroot}${prefix}/lib/lv
47
48    xinstall -m 755 ${worksrcpath}/build/lv ${destroot}${prefix}/bin
49    xinstall -m 755 ${worksrcpath}/build/lv ${destroot}${prefix}/bin/lgrep
50    xinstall -m 644 ${worksrcpath}/lv.hlp ${destroot}${prefix}/lib/lv
51    xinstall -m 644 ${worksrcpath}/lv.1 ${destroot}${prefix}/share/man/man1
52}
53
54post-destroot {
55    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
56    foreach f {GPL.txt README hello* index.html relnote.html} {
57        eval xinstall -m 644 [glob ${worksrcpath}/${f}] ${destroot}${prefix}/share/doc/${name}
58    }
59}
60
61default_variants +xz
62
63variant lesslikeslash description {Make the behavior of the search command more similar to the one in Less} {}
64
65variant with_xz requires xz description {Legacy compatibility variant} {}
66
67variant xz description {Experimental support for XZ Utils} {
68    patchfiles-append   xz_support.diff
69    depends_run-append  path:bin/xz:xz
70}
71
72livecheck.type  regex
73livecheck.url   ${homepage}
74livecheck.regex The latest version is ver (\[0-9.a-z\]+)
Note: See TracBrowser for help on using the repository browser.