1 | # $Id: $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name nano |
---|
6 | version 2.0.5 |
---|
7 | revision 1 |
---|
8 | categories editors |
---|
9 | maintainers n.oxyde@gmail.com |
---|
10 | description Nano's ANOther editor - enhanced free Pico Clone |
---|
11 | |
---|
12 | long_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 | |
---|
18 | homepage http://www.nano-editor.org/ |
---|
19 | master_sites ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu |
---|
20 | |
---|
21 | platforms darwin freebsd |
---|
22 | depends_lib port:ncurses |
---|
23 | |
---|
24 | configure.args --enable-nanorc \ |
---|
25 | --disable-nls \ |
---|
26 | --disable-wrapping-as-root \ |
---|
27 | --disable-mouse \ |
---|
28 | --disable-largefile \ |
---|
29 | --disable-utf8 |
---|
30 | |
---|
31 | destroot.target install-strip |
---|
32 | |
---|
33 | post-destroot { |
---|
34 | copy ${worksrcpath}/doc/nanorc.sample ${destroot}${prefix}/etc |
---|
35 | } |
---|
36 | |
---|
37 | post-install { |
---|
38 | ui_msg "A sample configuration file is available at ${prefix}/etc/nanorc.sample" |
---|
39 | } |
---|
40 | |
---|
41 | variant nls { |
---|
42 | configure.args-delete --disable-nls |
---|
43 | depends_lib-append port:gettext \ |
---|
44 | port:libiconv |
---|
45 | } |
---|
46 | |
---|
47 | variant 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 | |
---|
54 | variant no_wrap { |
---|
55 | configure.args-append --disable-wrapping |
---|
56 | } |
---|
57 | |
---|
58 | variant no_spell { |
---|
59 | configure.args-append --disable-spell |
---|
60 | } |
---|
61 | |
---|
62 | variant mouse { |
---|
63 | configure.args-delete --disable-mouse |
---|
64 | } |
---|
65 | |
---|
66 | variant multibuffer { |
---|
67 | configure.args-append --enable-multibuffer |
---|
68 | } |
---|
69 | |
---|
70 | variant color { |
---|
71 | configure.args-append --enable-color |
---|
72 | } |
---|
73 | |
---|
74 | variant largefile { |
---|
75 | configure.args-delete --disable-largefile |
---|
76 | } |
---|
77 | |
---|
78 | livecheck.check regex |
---|
79 | livecheck.url http://ftp.gnu.org/gnu/${name}/?M=D |
---|
80 | livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+) |
---|