# -*- 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 50585 2009-05-04 21:49:40Z devans@macports.org $

PortSystem      1.0

name            totem-pl-parser
version         2.26.2
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     daffda80cfead2a1473ca3ff71e1057b \
                sha1    18becb89d674b5025dcf7cf35935a7c8d6330283 \
                rmd160  f328f0fa8def9993378362072c8828b7cadca0c2

use_bzip2       yes

depends_build   port:pkgconfig \
                port:autoconf \
                port:automake \
                port:libtool \
                port:gtk-doc

depends_lib     port:evolution-data-server


use_autoreconf  yes
autoreconf.args -fvi

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