# -*- Mode: Tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:et:sw=4:ts=4:sts=4
# $Id$

PortSystem      1.0

name            libtasn1
version         4.9
categories      devel
# libs are LGPL; executables, examples and tests are GPL
license         {LGPL-2.1+ GPL-3+}
maintainers     mps openmaintainer
description     ASN.1 structure parser library
homepage        http://www.gnu.org/software/libtasn1/
platforms       darwin

long_description \
    The libtasn1 library was developed for ASN1 (Abstract Syntax Notification \
    One) structures management.

master_sites    gnu

checksums       rmd160  ed8e56174119c95d66d631d4f9464acf3f13a868 \
                sha256  4f6f7a8fd691ac2b8307c8ca365bad711db607d4ad5966f6938a9d2ecd65c920

# Fix for 4.9 build failure.
# See http://lists.gnu.org/archive/html/help-libtasn1/2016-07/msg00001.html
configure.args  --disable-gcc-warnings

test.run        yes
test.target     check

livecheck.type  regex
livecheck.url   http://ftp.gnu.org/pub/gnu/libtasn1/
livecheck.regex ${name}-(\\d+(\\.\\d+)*)