# $Id: Portfile 64918 2010-03-17 20:37:46Z nox@macports.org $

PortSystem      1.0

name            yi
version         0.1.0
categories      editors
platforms       darwin
maintainers     nomaintainer
description     the extensible Yi text editor

long_description \
    Yi is a text editor written and extensible in Haskell. The goal of the Yi \
    project is to provide a flexible, powerful and correct editor core \
    scriptable in Haskell. A principle of Yi is that any behaviour can be \
    programmed, so there exist vi, vim and nano frontends to Yi. Other editor \
    interfaces can be written easily via a lexer specification.

homepage        http://www.cse.unsw.edu.au/~dons/yi.html
master_sites    ftp://ftp.cse.unsw.edu.au/pub/users/dons/yi/

checksums       md5 892c96aa03a6254b8b740fb6f9bb846c \
                sha1 218b4529f6a8ef433fa750de2e51633e45622ae5

depends_lib \
    bin:ghc:ghc \
    bin:alex:alex \
    bin:happy:happy \
    lib:libHSplugins:hs-plugins \
    lib:libncurses:ncurses

destroot.destdir \
    PREFIX=${destroot}${prefix} \
    BINDIR=${destroot}${prefix}/bin \
    LIBDIR=${destroot}${prefix}/lib/${name} \
    DATADIR=${destroot}${prefix}/share/doc/${name} \
    MANDIR=${destroot}${prefix}/share/man
