# $Id: Portfile 83385 2011-08-31 01:52:26Z dports@macports.org $

PortSystem 1.0
name             ne
version          2.1
categories       editors
maintainers      toby
description      ne - nice editor
long_description \
    ne is a free text editor that runs on (hopefully almost) any \
    UN*X machine. ne is easy to use for the beginner, but powerful \
    and fully configurable for the wizard, and most sparing in its \
    resource usage.
homepage         http://ne.dsi.unimi.it/
platforms        darwin
license          GPL-2

master_sites     ${homepage}
checksums        md5 4fc50834fd2036fd0bb5f125aa4124eb \
                 sha1 d7a3b15d550705a940ebed14d5ca8e99bb06f72e \
                 rmd160 8dca4b4c361712b674a3f2b3c1f122b611cf201f

patchfiles       patch-makefile patch-src☃makefile

configure {
    reinplace "s|__PREFIX__|${prefix}|" ${worksrcpath}/makefile
    reinplace "s|__CC__|${configure.cc}|" ${worksrcpath}/src/makefile
    reinplace "s|__CFLAGS__|${configure.cflags}|" ${worksrcpath}/src/makefile
    reinplace "s|__LDFLAGS__|${configure.ldflags}|" ${worksrcpath}/src/makefile
}

build.target

livecheck.type   regex
livecheck.regex  HREF=\"ne-(.*)\\.tar\\.gz\">general
