# $Id: Portfile 64920 2010-03-17 20:38:12Z nox@macports.org $

PortSystem      1.0

name            libcroco
version         0.6.2
revision        1
license         LGPL-2
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome
platforms       darwin
maintainers     nomaintainer
description     A CSS parsing and manipulation toolkit for GNOME

long_description \
    A generic Cascading Style Sheet (CSS) parsing and manipulation \
    toolkit for GNOME applications that need CSS support.

homepage        http://www.freespiders.org/projects/libcroco/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     1429c597aa4b75fc610ab3a542c99209 \
                sha1    4b0dd540a47f2492b1ac7cd7e3ec63c2ef4c9c2a \
                rmd160  402daf6ef986f90998449c254822080b38e28cd7

depends_lib     port:gettext \
                path:lib/pkgconfig/glib-2.0.pc:glib2 \
                port:libiconv \
                port:libxml2 \
                port:zlib

test.run        yes
test.env        DYLD_LIBRARY_PATH=${worksrcpath}/src/.libs

post-destroot {
    set docdir ${prefix}/share/doc/${name}-${version}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
