# -*- 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

PortSystem 1.0

name                bibclean
version             2.17
categories          tex
license             GPL-2
platforms           darwin
maintainers         nomaintainer
description         BibTeX bibliography prettyprinter and syntax checker
long_description    Bibclean is a BibTeX prettyprinter, portability \
verifier, and syntax checker.  It can be used to find errors in .bib \
files, as well as to standardize their format for readability and \
editing convenience.  It can also be used to convert Scribe-format \
bibliographies to BibTeX form.

homepage            http://ftp.math.utah.edu/pub//bibclean/
master_sites        http://www.math.utah.edu/pub/bibclean/
use_bzip2           yes

checksums           md5     1c1678732000870c439a61261c2ccfb5 \
                    rmd160  51a80c277ff549d438a9a010ac6e40d68d641ec4 \
                    sha256  f44047660b4c2e19f9375bc960364ca1f61ae07751835cb9b2ffe3c024cd6a75

depends_run         port:texlive-basic

patchfiles          patch-Makefile.in.diff

configure.env-append \
                    SED=${prefix}/bin/gsed
configure.args-append \
                    --mandir=${prefix}/share/man

use_parallel_build  no

depends_test        port:gsed
test.run            yes
test.target         check

destroot.destdir    prefix=${destroot}${prefix}

post-destroot {
    xinstall -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} ChangeLog COPYING README \
        ${destroot}${prefix}/share/doc/${name}
}
