Portfile

# $Id: Portfile 23053 2007-03-23 20:35:47Z pipping@macports.org $

PortSystem 1.0
name aee
version 2.2.3
categories editors
maintainers nomaintainer@macports.org
description easy to use text editor
long_description \
An easy to use text editor. Intended to be usable with \
little or no instruction. Provides both a terminal \
(curses based) interface and native X-Windows interface \
(in which case the executable is called xae). Features \
include pop-up menus, journalling (to recover from \
system crash or loss of connection), cut-and-paste, \
multiple buffers (associated with files or not), and \
much more.
homepage http://www.users.qwest.net/~hmahon/
platforms darwin

master_sites ${homepage}sources/
checksums md5 b8963aa11f3ac9cca06404cec2f87c64

use_configure no

build.target main

destroot {
set binDir ${destroot}${prefix}/bin
set manDir ${destroot}${prefix}/share/man/man1
set docDir ${destroot}${prefix}/share/doc/aee

xinstall -m 555 ${worksrcpath}/aee ${binDir}
system "ln ${binDir}/aee ${binDir}/rae"

xinstall -m 444 ${worksrcpath}/aee.1 ${manDir}
system "ln ${manDir}/aee.1 ${manDir}/rae.1"

if {[variant_isset x11]} {
xinstall -m 555 ${worksrcpath}/xae ${binDir}
system "ln ${binDir}/xae ${binDir}/rxae"

system "ln ${manDir}/aee.1 ${manDir}/xae.1"
system "ln ${manDir}/aee.1 ${manDir}/rxae.1"
}

file mkdir ${docDir}
xinstall -m 444 ${worksrcpath}/help.ae ${docDir}
}

variant x11 {
build.target both
depends_lib-append lib:libX11:XFree86
}