# $Id: Portfile 25597 2007-05-25 21:11:32Z nox@macports.org $ PortSystem 1.0 name nano version 2.0.6 revision 1 categories editors maintainers nox description Nano's ANOther editor - enhanced free Pico Clone long_description \ GNU nano is a small and friendly text editor. Besides basic text \ editing, nano offers many extra features like an interactive search \ and replace, goto line number, auto-indentation, feature toggles, \ internationalization support, and filename tab completion. homepage http://www.nano-editor.org/ master_sites ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu checksums md5 619107f0fc3c4383d668cef15aa3ca32 \ sha1 00102580404cdb1c8594e5f6193000d5acac2249 \ rmd160 858dc7cf7137cc2b19e9084a503fe508ef734381 platforms darwin freebsd depends_lib port:ncurses configure.args --enable-nanorc \ --disable-nls \ --disable-wrapping-as-root \ --disable-mouse \ --disable-wrapping \ --disable-speller \ --disable-utf8 destroot.target install-strip set docdir ${prefix}/share/doc/${name}-${version} post-destroot { xinstall -m 0755 -d ${destroot}${docdir}/html xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \ README THANKS TODO doc/nanorc.sample ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath}/doc faq.html texinfo/nano.html ${destroot}${docdir}/html } post-install { ui_msg "A sample configuration file is available at ${docdir}/nanorc.sample ." } variant nls description {Add NLS support} { configure.args-delete --disable-nls depends_lib-append port:gettext \ port:libiconv } variant utf8 description {Add UTF-8 support} { configure.args-append --enable-utf8 configure.args-delete --disable-utf8 depends_lib-append port:ncursesw depends_lib-delete port:ncurses } variant wrap description \ {Enable wrapping (lines will be splitted to fit into the terminal width)} { configure.args-delete --disable-wrapping } variant spell description \ {Add spell-checking support (needs a spellchecker (e.g. aspell, ispell...)} { configure.args-delete --disable-speller } variant mouse description {Add mouse support} { configure.args-delete --disable-mouse post-install { ui_msg "Mouse support is enabled. ${name} need to be launched inside an x11 console to use it." } } variant multibuffer description \ {Add multibuffer support (allow multiple files to be opened in a single nano instance)} { configure.args-append --enable-multibuffer } variant color description {Enable color syntax highlighting} { configure.args-append --enable-color post-install { ui_msg "Color syntax is enabled." ui_msg "You should take a look at the syntax definitions in ${prefix}/share/${name} ." } } livecheck.check regex livecheck.url http://ftp.gnu.org/gnu/${name}/?M=D livecheck.regex ${name}-(\\d+\\.\\d+\\.\\d+)