source: trunk/dports/editors/nano/Portfile @ 24574

Last change on this file since 24574 was 24574, checked in by pipping@…, 12 years ago

maintainer update (#11864)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Portfile 24574 2007-04-28 16:05:26Z pipping@macports.org $
2
3PortSystem 1.0
4name             nano
5version          2.0.6
6categories       editors
7maintainers      n.oxyde@gmail.com
8description      Nano's ANOther editor - enhanced free Pico Clone
9long_description \
10    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
15homepage         http://www.nano-editor.org/
16master_sites     ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu
17checksums        md5 619107f0fc3c4383d668cef15aa3ca32 \
18                 sha1 00102580404cdb1c8594e5f6193000d5acac2249 \
19                 rmd160 858dc7cf7137cc2b19e9084a503fe508ef734381
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    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}/docs
35    xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
36        README THANKS TODO doc/faq.html doc/nanorc.sample doc/texinfo/nano.html \
37        ${destroot}${prefix}/share/doc/${name}
38}
39
40post-install {
41    ui_msg "A sample configuration file is available at ${prefix}/share/doc/${name}/nanorc.sample ."
42
43    if {! [variant_isset no_spell]} {
44        ui_msg "Spell-checking support is enabled. To use it, you need a spellchecker e.g. aspell, ispell..."
45    }
46}
47
48variant nls {
49    configure.args-delete   --disable-nls
50    depends_lib-append      port:gettext \
51                            port:libiconv
52}
53
54variant utf8 {
55    configure.args-append   --enable-utf8
56    configure.args-delete   --disable-utf8
57    depends_lib-append      port:ncursesw
58    depends_lib-delete      port:ncurses
59}
60
61variant no_wrap {
62    configure.args-append   --disable-wrapping
63}
64
65variant no_spell {
66    configure.args-append   --disable-speller
67}
68
69variant mouse {
70    configure.args-delete   --disable-mouse
71
72    post-install {
73        ui_msg "Mouse support is enabled. ${name} need to be launched inside an x11 console to use it."
74    }
75}
76
77variant multibuffer {
78    configure.args-append   --enable-multibuffer
79}
80
81variant color {
82    configure.args-append   --enable-color
83
84    post-install {
85        ui_msg "Color syntax is enabled. You should take a look at the syntax definitions in ${prefix}/share/${name} ."
86    }
87}
88
89variant largefile {
90    configure.args-delete   --disable-largefile
91}
92
93livecheck.check regex
94livecheck.url   http://ftp.gnu.org/gnu/${name}/?M=D
95livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)
Note: See TracBrowser for help on using the repository browser.