# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 114951 2013-12-19 18:39:31Z devans@macports.org $

PortSystem  1.0

name           gnome-doc-utils
version        0.20.10
set branch     [join [lrange [split ${version} .] 0 1] .]
description    GNOME document utils.
long_description \
    gnome-doc-utils is a collection of documentation utilities \
    for the Gnomeproject. Notably, it contains utilities for building \
    documentation andall auxiliary files in your source tree, and it \
    contains the DocBookXSLT stylesheets that were once distributed \
    with Yelp.
maintainers    devans openmaintainer
categories     gnome
license        LGPL-2+
installs_libs  no
platforms      darwin
supported_archs noarch
homepage       https://wiki.gnome.org/Projects/GnomeDocUtils
master_sites   gnome:sources/${name}/${branch}/

checksums      rmd160  64fcdf0166c213b6bf5c872f583546b3a9a17bf4 \
               sha256  cb0639ffa9550b6ddf3b62f3b1add92fb92ab4690d351f2353cffe668be8c4a6

use_xz         yes

# http://trac.macports.org/ticket/23954
use_parallel_build  no

depends_build  port:intltool \
               port:pkgconfig

depends_lib    port:gettext \
               port:libxslt

depends_run    port:docbook-xml \
               port:docbook-xsl \
               port:rarian \
               port:iso-codes

# Pickup saner intltool macros
patchfiles     no-intltool-perl.patch

# The perl executable should be the one explicitly required by intltool
configure.args        --disable-scrollkeeper

variant python25 conflicts python26 python27 description {Use python 2.5} {
    depends_lib-append      port:py25-libxml2 port:python25
    configure.python        ${prefix}/bin/python2.5
}

variant python26 conflicts python25 python27 description {Use python 2.6} {
    depends_lib-append      port:py26-libxml2 port:python26
    configure.python        ${prefix}/bin/python2.6
    configure.args-append   am_cv_python_pythondir=${frameworks_dir}/Python.framework/Versions/2.6/lib/python2.6/site-packages/
}

variant python27 conflicts python25 python26 description {Use python 2.7} {
    depends_lib-append      port:py27-libxml2 port:python27
    configure.python        ${prefix}/bin/python2.7
    configure.args-append   am_cv_python_pythondir=${frameworks_dir}/Python.framework/Versions/2.7/lib/python2.7/site-packages/
}

if {![variant_isset python25] && ![variant_isset python26]} {
    default_variants +python27
}

livecheck.type      gnome
