# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 63993 2010-02-20 03:59:25Z ryandesign@macports.org $

PortSystem      1.0

name            nano
version         2.2.3
categories      editors
platforms       darwin freebsd
maintainers     gmail.com:theo.studer
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     91918a484f54f94fedaebe00dc393a50 \
                sha1    43677d23921806d70018197ed0e99754b5b5ad78 \
                rmd160  b940db998367d55df92e08c26ddc30d8f05ed70c

depends_lib     port:ncursesw \
                port:gettext \
                port:libiconv

configure.args  --disable-wrapping-as-root \
                --enable-utf8

use_parallel_build  yes

destroot.target install-strip

set docdir      ${prefix}/share/doc/${name}

post-destroot {
    xinstall -d $destroot$docdir/html
    xinstall -m 644 -W $worksrcpath AUTHORS BUGS COPYING ChangeLog INSTALL NEWS \
        README THANKS TODO doc/nanorc.sample ${destroot}${docdir}
    xinstall -m 644 -W $worksrcpath/doc faq.html texinfo/nano.html $destroot$docdir/html
}

notes           A sample configuration file is available at \"${docdir}/nanorc.sample\".

livecheck.type  freshmeat
