1 | # $Id: Portfile 24145 2007-04-17 14:57:17Z pipping@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | name nano |
---|
5 | version 2.0.5 |
---|
6 | categories editors |
---|
7 | maintainers n.oxyde@gmail.com |
---|
8 | description Nano's ANOther editor - enhanced free Pico Clone |
---|
9 | |
---|
10 | long_description GNU nano is a small and friendly text editor. Besides basic text \ |
---|
11 | editing, nano offers many extra features like an interactive search \ |
---|
12 | and replace, goto line number, auto-indentation, feature toggles, \ |
---|
13 | internationalization support, and filename tab completion. |
---|
14 | |
---|
15 | homepage http://www.nano-editor.org/ |
---|
16 | master_sites http://www.nano-editor.org/dist/v2.0/ |
---|
17 | checksums md5 8daee919fe29b4fd8213c9e2c021acc6 |
---|
18 | |
---|
19 | platforms darwin freebsd |
---|
20 | depends_lib port:ncurses |
---|
21 | |
---|
22 | configure.args --infodir=${prefix}/share/info \ |
---|
23 | --mandir=${prefix}/share/man \ |
---|
24 | --disable-nls \ |
---|
25 | --disable-wrapping-as-root \ |
---|
26 | --disable-mouse \ |
---|
27 | --disable-largefile |
---|
28 | |
---|
29 | destroot.target install-strip |
---|
30 | |
---|
31 | variant nls { |
---|
32 | configure.args-delete --disable-nls |
---|
33 | depends_lib-append port:gettext \ |
---|
34 | port:libiconv |
---|
35 | } |
---|
36 | |
---|
37 | variant utf8 { |
---|
38 | configure.args-append --enable-utf8 |
---|
39 | depends_lib-append port:ncursesw |
---|
40 | depends_lib-delete port:ncurses |
---|
41 | } |
---|
42 | |
---|
43 | variant no_wrap { |
---|
44 | configure.args-append --disable-wrapping |
---|
45 | } |
---|
46 | |
---|
47 | variant multibuffer { |
---|
48 | configure.args-append --enable-multibuffer |
---|
49 | } |
---|
50 | |
---|
51 | variant color { |
---|
52 | configure.args-append --enable-color |
---|
53 | } |
---|
54 | |
---|
55 | variant largefile { |
---|
56 | configure.args-delete --disable-largefile |
---|
57 | } |
---|
58 | |
---|
59 | livecheck.check regex |
---|
60 | livecheck.url http://ftp.gnu.org/gnu/${name}/?M=D |
---|
61 | livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+) |
---|