# -*- 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.8.9
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  8966ab072a50ad54bad7a53f9e79e4fbbe0eee35 \
                    sha256  c97ab42bf48796a86a598bce3e9269047ca2b32c14fc23e07208a244fe52c4ee \
                    size    2629751

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} \
        nug28.pdf \
        README \
        README_24 \
        changes24-28.txt \
        formats.txt \
        schreier.txt \
        ${destroot}${docdir}
}
