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

PortSystem 1.0

name             aee
version          2.2.21
categories       editors
license          Artistic-1
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        rmd160  89edc200bbb972eba15a4bde661e54351c624d52 \
                 sha256  b8a9a20679736ec44e74faae1550b33411cc675f7c587d2316e578f97b0d3727

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 755 ${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
