# $Id: Portfile 58916 2009-10-07 06:21:02Z toby@macports.org $

PortSystem 1.0

name             aee
version          2.2.15b
revision         1
categories       editors
maintainers      nomaintainer
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 f8c3a4196f1bfd46beb6b76d73ecb7a2 \
                 sha1 63ba64fe43e7c0d0b0b55d6ffd3a6b54ed47316c \
                 rmd160 b8b74c7714fcfa915eee5e88482c4ec47887133a 

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  port:xorg-libX11
}

use_parallel_build  no
