# -*- 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 83354 2011-08-30 05:58:24Z dports@macports.org $

PortSystem      1.0

name            libgnomeprint
version         2.18.8
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
license         GPL-2+ LGPL-2+
description     This is an implementation of the Gnome Printing Architecture

long_description \
    ${description}

homepage        http://www.levien.com/gnome/print-arch.html
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     63b05ffb5386e131487c6af30f4c56ac \
                sha1    cfb77148923b24b1651982a21b3cb55e312ff6d5 \
                rmd160  4f786ad61dc27177c350a5baa27cfc8b1140c32e

depends_build   port:pkgconfig \
                port:flex \
                port:bison \
                port:intltool \
                port:gtk-doc

depends_lib     port:libgnomecups \
                path:lib/pkgconfig/pango.pc:pango \
                port:libart_lgpl \
                port:libxml2

# https://bugzilla.gnome.org/show_bug.cgi?id=653388
patchfiles      missing-stdio.patch

configure.args  --disable-gtk-doc

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