# -*- 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
# $Id: Portfile 117687 2014-03-08 08:57:04Z ryandesign@macports.org $

PortSystem          1.0

name                libgfshare
version             1.0.5
categories          security
platforms           darwin
maintainers         bialkiewicz.fr:joel-alexis
license             MIT

description         utilities for multi-way secret sharing

long_description    libgfshare is an implementation of the Shamir's \
                    secret sharing algorithm. It allows to break a \
                    password or a secret key into several components, \
                    a predefined number of which is necessary to \
                    reconstruct it.

homepage            http://www.digital-scurf.org/software/libgfshare
master_sites        http://www.digital-scurf.org/files/libgfshare/
use_bzip2           yes

checksums           rmd160  b95284bd5c531de89f7fa07bf5faaa22afc38c52 \
                    sha256  77af2f94be8572b36d6d0580c3651edcb7b90ca48d507bfb8c09fdb013984d9c

configure.args      --disable-linker-optimisations

post-destroot {
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYRIGHT \
        README \
        ${destroot}${docdir}
}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
