Ticket #11859: Portfile

File Portfile, 2.0 KB (added by n.oxyde@…, 18 years ago)

nano @2.0.5_1

Line 
1# $Id: $
2
3PortSystem      1.0
4
5name            nano
6version         2.0.5
7revision        1
8categories      editors
9maintainers     n.oxyde@gmail.com
10description     Nano's ANOther editor - enhanced free Pico Clone
11
12long_description \
13                GNU nano is a small and friendly text editor. Besides basic text \
14                editing, nano offers many extra features like an interactive search \
15                and replace, goto line number, auto-indentation, feature toggles, \
16                internationalization support, and filename tab completion.
17
18homepage         http://www.nano-editor.org/
19master_sites     ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu
20
21platforms        darwin freebsd
22depends_lib      port:ncurses
23
24configure.args   --enable-nanorc \
25                 --disable-nls \
26                 --disable-wrapping-as-root \
27                 --disable-mouse \
28                 --disable-largefile \
29                 --disable-utf8
30
31destroot.target  install-strip
32
33post-destroot {
34    copy ${worksrcpath}/doc/nanorc.sample ${destroot}${prefix}/etc
35}
36
37post-install {
38        ui_msg "A sample configuration file is available at ${prefix}/etc/nanorc.sample"
39}
40
41variant nls {
42    configure.args-delete   --disable-nls
43    depends_lib-append      port:gettext \
44                            port:libiconv
45}
46
47variant utf8 {
48    configure.args-append   --enable-utf8
49        configure.args-delete   --disable-utf8
50    depends_lib-append      port:ncursesw
51    depends_lib-delete      port:ncurses
52}
53
54variant no_wrap {
55    configure.args-append   --disable-wrapping
56}
57
58variant no_spell {
59    configure.args-append   --disable-spell
60}
61
62variant mouse {
63    configure.args-delete   --disable-mouse
64}
65
66variant multibuffer {
67    configure.args-append   --enable-multibuffer
68}
69
70variant color {
71    configure.args-append   --enable-color
72}
73
74variant largefile {
75    configure.args-delete   --disable-largefile
76}
77
78livecheck.check regex
79livecheck.url   http://ftp.gnu.org/gnu/${name}/?M=D
80livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)