# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0

name                ee
version             1.4.6
revision            1
categories          editors
license             Artistic-1
platforms           darwin
maintainers         {grimreaper @grimreaper} \
                    openmaintainer

description         easy to use text editor

long_description    An easy to use text editor. Intended to be usable with \
                    little or no instruction. Provides a terminal (curses \
                    based) interface. Features pop-up menus. A subset of aee.

homepage            http://www.users.qwest.net/~hmahon/

master_sites        ${homepage}sources/
distname            ${name}-${version}.src
extract.suffix      .tgz

checksums           md5     447c48341fc355dacc7e5d338dd1677a \
                    sha1    6be7d03eade441a6c409b9d441ba2c144e26b157 \
                    rmd160  2ed8ad3123c5443b29f5db142ad367d67028da27

worksrcdir          easyedit-${version}

patchfiles          patch-create.make.diff

use_configure       no

variant universal {}

use_parallel_build  no

build.args          CC="${configure.cc} [get_canonical_archflags cc]"

destroot {
    xinstall -m 755 ${worksrcpath}/ee ${destroot}${prefix}/bin
    xinstall -m 444 ${worksrcpath}/ee.1 ${destroot}${prefix}/share/man/man1
}