# $Id: Portfile 68192 2010-05-28 20:05:25Z ryandesign@macports.org $

PortSystem       1.0

name             ufraw
version          0.17
categories       graphics
maintainers      janusresearch.com:frank.mcpherson
description      Unidentified Flying Raw (UFRaw)

long_description \
    The Unidentified Flying Raw (UFRaw) is a utility to read and \
    manipulate raw images from digital cameras. It can be used on \
    its own or as a Gimp plug-in. It reads raw images using Dave Coffin's \
    raw conversion utility - DCRaw. UFRaw supports basic color management \
    using Little CMS, allowing the user to apply color profiles.

homepage         http://ufraw.sourceforge.net
platforms        darwin
master_sites     sourceforge

checksums        md5     5e2c2b4adaea1f6d03eac66e11747fc6 \
                 sha1    0762b238cdcd708948b5aeac552f7f2b1edb1846 \
                 rmd160  785d46e6936f176220dbf77f86dd373ef0250a79

depends_lib      port:dcraw port:gimp2 port:exiv2 port:gtkimageview port:cfitsio

# gimp2 is not universal
universal_variant no

configure.args   --with-exiv2

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        MANIFEST \
        README \
        TODO \
        ${docdir}
}

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