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

name                cardpeek
version             0.8.4
revision            6
categories          sysutils
license             {GPL-3+ OpenSSLException}
maintainers         nomaintainer

description         Cardpeek is a tool to read the contents of ISO7816 smart cards.
long_description    Cardpeek is a tool to read the contents of ISO7816 smart cards. \
                    It features a GTK GUI to represent card data is a tree view, and \
                    is extensible with a scripting language (LUA). This tool is capable \
                    of reading the contents of the following types of cards like EMV \
                    bank cards, Electronic/Biometric passports, belgian eID card, \
                    Calypso transport cards, SIM cards, Vitale 2 (french health card)...

homepage            http://pannetrat.com/Cardpeek/
master_sites        http://downloads.pannetrat.com/install/

checksums           rmd160  0d1118586f85512d4483d6be027921ecc222c1f8 \
                    sha256  9c78dfdf84493c551b49447e4bb46c8d7b33f0785b93893222b70b6115013a85 \
                    size    1520613

depends_build       port:pkgconfig

depends_lib         path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
                    port:libiconv \
                    port:curl \
                    path:lib/libssl.dylib:openssl \
                    port:readline

# does not work with Lua 5.3
# https://trac.macports.org/ticket/49481
lua.version         5.2

installs_libs       no

configure.ldflags   -liconv
build.args          V=1

livecheck.type      regex
livecheck.url       http://pannetrat.com/Cardpeek/Install/
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
