# -*- 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 92595 2012-05-02 02:04:08Z jeremyhu@macports.org $

PortSystem 1.0

name            libgnomecups
version         0.2.3
revision        2
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
categories      gnome
platforms       darwin
license         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 dc4920c15c9f886f73ea74fbff0ae48b \
                sha1 09d4dc4e4cf40baa1ced95a7a6b287db3cb5a47c \
                rmd160 22b833359aae237067919e76c2345689e1d0505a

depends_build   port:pkgconfig \
                path:bin/perl:perl5 \
                port:gnome-common \
                port:intltool

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

patchfiles      patch-glib-2.32.diff

configure.args  --mandir=${prefix}/share/man
configure.cppflags-append -D_IPP_PRIVATE_STRUCTURES=1

platform darwin 8 {
    patchfiles-append       patch-libgnomecups-gnome-cups-request.c.diff
}

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