# $Id$

PortSystem          1.0

name                cunit
version             2.1-3
revision            1
categories          devel
license             LGPL
maintainers         nomaintainer
description         Unit testing library for C
long_description \
   CUnit is a lightweight system for writing, administering, and running \
   unit tests in C.  It provides C programmers a basic testing functionality \
   with a flexible variety of user interfaces.

platforms           darwin

homepage            http://cunit.sourceforge.net/
master_sites        sourceforge:project/cunit/CUnit/${version}
distname            CUnit-${version}
use_bzip2           yes

checksums           md5     b5f1a9f6093869c070c6e4a9450cc10c \
                    sha1    eac0c71167aa3fab83483ae1313b78163f0f7238 \
                    rmd160  c9d74d5406fb5fed0d61cfd5fee12a4d77d7e2cc

depends_lib         port:ncurses

patchfiles          patch-cunit_sources_curses_curses.c.diff \
                    Sources_Makefile.am.diff \
                    doc_Makefile.am.diff

use_autoreconf      yes
configure.args      --enable-curses

post-destroot {
   # For some reason CUnit has a ${prefix}/doc/headers/ which just repeats
   # the headers already in include/ (plus Win.h which we don't need)
   delete ${destroot}${prefix}/doc
}

livecheck.type      sourceforge
livecheck.regex     /CUnit-(\[0-9.-\]+)-src${extract.suffix}