# $Id: Portfile 116566 2014-01-28 23:20:43Z toby@macports.org $

PortSystem 1.0
name             ne
version          2.4
categories       editors
maintainers      nomaintainer
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-3+

master_sites     ${homepage}

checksums        rmd160 269ce9cee57c0677dc8a0ec94a0d28535e1caa13 \
                 sha256 a4951b212e7aab71f24ac80f2baec50aa490fc119b09abd6a2cc351e3209d0d4

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} [get_canonical_archflags cc]|" ${worksrcpath}/src/makefile
    reinplace "s|__LDFLAGS__|${configure.ldflags} [get_canonical_archflags ld]|" ${worksrcpath}/src/makefile
}

build.target

livecheck.type   regex
livecheck.regex  \"${name}-(.*)${extract.suffix}\"
