# $Id: Portfile 115376 2014-01-01 05:10:25Z jeremyhu@macports.org $

PortSystem 1.0
PortGroup  cmake 1.0

name             exiv2
version          0.24
homepage         http://www.exiv2.org/
description      EXIF and IPTC metadata manipulation library and tools
categories       graphics
platforms        darwin
license          GPL-2+
maintainers      vafer.org:tcurdt openmaintainer

master_sites     http://www.exiv2.org/

checksums        sha1    2f19538e54f8c21c180fa96d17677b7cff7dc1bb \
                 rmd160  453247926e8626bf888578afd5a0dde42c6f6962

long_description Exiv2 comprises of a C++ library and a command line utility \
                 which allows you to manipulate EXIF and IPTC image metadata.

depends_lib      port:expat \
                 port:gettext \
                 port:libiconv \
                 port:zlib

post-destroot {
    file mkdir ${destroot}${prefix}/share/man
    system "ditto ${destroot}${prefix}/man ${destroot}${prefix}/share/man"
    file delete -force ${destroot}${prefix}/man
}

livecheck.regex "(?i)<title>${name} (\\d+(?:\\.\\d+)*)</title>"
