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

perl5.branches      5.28 5.30 5.32 5.34
perl5.setup         Crypt-DH-GMP 0.00012
license             {Artistic-1 GPL}
maintainers         nomaintainer
description         Crypt::DH::GMP - Crypt::DH Using GMP Directly
long_description    ${description}

platforms           darwin

checksums           rmd160  d7ca76d9d11804d041b9810e2c11907019db6f2c \
                    sha256  51e7a47ae594cf55f66c0762f669215486e7d8b3460bdadfe79350ccf26daf38

if {${perl5.major} != ""} {
    depends_build-append \
                    port:p${perl5.major}-devel-checklib \
                    port:p${perl5.major}-test-requires

    depends_lib-append \
                    port:gmp

    patchfiles      patch-default-inc-excludes-dot.diff

    post-patch {
        reinplace "s|/opt/local|${prefix}|g" \
            ${worksrcpath}/Makefile.PL
    }
}
