# -*- 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                nauty
version             2.9.1
revision            0
categories          math science
license             Apache-2
platforms           darwin
maintainers         {gmail.com:szhorvat @szhorvat} openmaintainer

livecheck.version   [strsed ${version} {g/\./_/}]
livecheck.regex     ${name}(\[0-9\](_\[0-9\]+)+)\\.tar

homepage            http://users.cecs.anu.edu.au/~bdm/nauty
master_sites        ${homepage}
distname            ${name}${livecheck.version}

description         programs for computing automorphism groups of graphs and \
                    digraphs

long_description    nauty and traces are programs for computing automorphism \
                    groups of graphs and digraphs. They can also produce a \
                    canonical label. There is a small suite of programs called \
                    gtools included in the package. For example, geng can \
                    generate non-isomorphic graphs very quickly. There are \
                    also generators for bipartite graphs, digraphs, and \
                    multigraphs, and programs for manipulating files of graphs \
                    in a compact format.

checksums           rmd160  48474fb5b5eb8327a6bc92818cef794d53f286e7 \
                    sha256  488fa906d10a372c72d2364c5dee48e0f7307004fbe52c2bce50c52de8cd873e \
                    size    5446790

variant native description {Build optimized for your machine's specific processor} {
    archive_sites
}

if {![variant_isset native]} {
    configure.args-append --enable-generic
}

test.run            yes
test.target         checks

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} \
        nug29.pdf \
        README \
        README_24 \
        changes24-29.txt \
        formats.txt \
        schreier.txt \
        ${destroot}${docdir}
}
