# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 59056 2009-10-09 00:21:43Z devans@macports.org $

PortSystem      1.0

name            totem-pl-parser
version         2.26.3
set branch      [join [lrange [split ${version} .] 0 1] .]
categories      gnome
maintainers     devans openmaintainer
description     Gnome Playlist parser
long_description \
        totem-pl-parser is a simple GObject-based library to parse \
        a host of playlist formats, as well as save those

homepage        http://live.gnome.org/Totem
platforms       darwin
master_sites    gnome:sources/${name}/${branch}/

patchfiles      patch-configure.in.diff

post-patch {
    # http://bugzilla.gnome.org/show_bug.cgi?id=578358
    reinplace "s:libtotem_glibc_la_SOURCES =:libtotem_glibc_la_SOURCES = stub.c:" ${worksrcpath}/lib/Makefile.am
    copy ${filespath}/stub.c ${worksrcpath}/lib/stub.c
}

checksums       md5     e1a7ca9937d5dc07af6e5ca6ae0297d9 \
                sha1    f2290f3ef3bc4995af9a92139a39e2178d09daa2 \
                rmd160  d49b38924fcd5e07a1ecf253e5c748513308cd7b

use_bzip2       yes

depends_build   port:pkgconfig \
                port:gtk-doc

depends_lib     port:evolution-data-server


use_autoreconf  yes
autoreconf.args -fvi

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