# -*- 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
# $Id: Portfile 55455 2009-08-11 02:58:43Z snc@macports.org $

PortSystem          1.0

name                aamath
version             0.3
categories          math textproc
platforms           darwin
#license             GPLv2
maintainers         snc openmaintainer
description         renders ASCII art from mathematical expressions
long_description    Aamath is a program that reads mathematical expressions in \
                    infix notation and renders them as ASCII art. It may be \
                    useful to send mathematics through text-only media, such as\
                    e-mail or newsgroups.

homepage            http://fuse.superglue.se/aamath/
master_sites        ${homepage}
checksums           md5 f0e835bd06069b1bdaddd9e9c3447c12
patchfiles          patch-Makefile.diff

worksrcdir          aamath

use_configure       no

build.env           CFLAGS=-I${prefix}/include LDFLAGS=-L${prefix}/lib

# will be reveiwing this for a port deps on gcc
# also, readline is a dep
platform darwin 8 {
    build.args CXX=/usr/bin/g++-4.0 LD=/usr/bin/g++-4.0
}

destroot {
    xinstall -m 755 ${worksrcpath}/aamath ${destroot}${prefix}/bin
    xinstall -m 644 ${worksrcpath}/aamath.1 ${destroot}${prefix}/share/man/man1
    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 644 -W ${worksrcpath} COPYING ChangeLog README \
        ${destroot}${prefix}/share/doc/${name}
}

livecheck.check     regex
livecheck.url       ${homepage}
livecheck.regex     "${name}-(\\d+.\\d+).tar.gz"

use_parallel_build  no
