# -*- 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
PortGroup           cmake 1.1
PortGroup           github 1.0

github.setup        J08nY ecgen 0.7.7
github.tarball_from archive
revision            1

checksums           rmd160  0ddc48762bb47585a5a6e11ebc5c76583748fdb9 \
                    sha256  d4d0d4066606d8582651e4789537928aec3c7e325b82f58dd2266350edf95371 \
                    size    223674

categories          math
platforms           darwin
license             GPL-2+
maintainers         nomaintainer

homepage            https://neuromancer.sk/page/ecgen

description         Tool for generating Elliptic curve domain parameters
long_description    ${description}

depends_build-append \
                    port:argp-standalone \
                    port:posix-macos-addons

depends_lib-append  port:pari

patchfiles-append   old-macos.patch

destroot {
    xinstall -m 755 ${build.dir}/${name} ${destroot}${prefix}/bin

    xinstall -m 0755 -d ${destroot}${prefix}/share/doc/${name}
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md ${destroot}${prefix}/share/doc/${name}
}

test.run            yes
test.cmd            ${build.dir}/ecgen
test.target         --fp -u -p -r 16
