# $Id: Portfile 49957 2009-04-21 04:05:19Z mcalhoun@macports.org $

PortSystem      1.0
PortGroup       muniversal 1.0

name            libcroco
version         0.6.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

configure.args              --mandir=${prefix}/share/man
configure.cppflags-append   -L${prefix}/lib

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} ABOUT-NLS AUTHORS COPYING COPYING.LIB ChangeLog \
        NEWS README TODO ${destroot}${docdir}
}

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

