# -*- 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 60542 2009-11-15 07:36:59Z ryandesign@macports.org $

PortSystem          1.0

name                aamath
version             0.3
revision            1
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

depends_lib         port:readline

patchfiles          patch-Makefile.diff

worksrcdir          aamath

use_configure       no

# Override these values in the Makefile.
build.args          CXX=${configure.cxx} \
                    LD=${configure.cxx}
# The Makefile appends to these values.
build.env           CFLAGS="${configure.cppflags} ${configure.cxxflags}" \
                    LFLAGS="${configure.ldflags}"

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.type      regex
livecheck.url       ${homepage}
livecheck.regex     "${name}-(\\d+.\\d+).tar.gz"

use_parallel_build  no
