# -*- 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 119734 2014-05-05 07:36:22Z ryandesign@macports.org $

PortSystem          1.0

name                pdfparser
version             0.4.3
set my_version      [strsed ${version} {g/\./_/}]
categories          security
platforms           darwin
maintainers         yahoo.fr:jul_bsd openmaintainer
license             public-domain

description         parse a PDF document to identify the fundamental elements used
long_description    ${description}

supported_archs     noarch

homepage            http://blog.didierstevens.com/programs/pdf-tools/#pdfid
master_sites        http://didierstevens.com/files/software/
distname            pdf-parser_V${my_version}
use_zip             yes

checksums           rmd160  e07067992f3f12966565b75d60e7cc8fd8a615ec \
                    sha256  1416624938359fdd375108d922350d1b7b0e41b3a40a48f778d6d72d8a405de6

extract.mkdir       yes

use_configure       no
build {}

destroot {
    xinstall -m 755 ${worksrcpath}/pdf-parser.py ${destroot}${prefix}/bin/
}

livecheck.type      regex
livecheck.url       ${homepage}
livecheck.version   ${my_version}
livecheck.regex     "target=\"_self\">pdf-parser_V(\[0-9_\]+)${extract.suffix}</a>"
