# -*- 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 107695 2013-07-04 11:57:12Z ryandesign@macports.org $

PortSystem      1.0

name            gsettings-desktop-schemas
version         3.8.2
license         LGPL-2.1
set branch      [join [lrange [split ${version} .] 0 1] .]

description     gsettings-desktop-schemas contains a collection of GSettings schemas \
                for settings shared by various components of a desktop.

long_description \
                ${description}

maintainers     devans openmaintainer
categories      gnome
platforms       darwin
homepage        http://www.gnome.org
master_sites    gnome:sources/${name}/${branch}/

use_xz          yes

checksums       rmd160  a09bda9690a5b22ab81cbc8cb14d74ff616b8c74 \
                sha256  86070b2a4e1ab5a28f81b8fd413434eadc1f8505cbf14886d150eb925f93c827

supported_archs noarch

depends_build   port:pkgconfig \
                port:gobject-introspection \
                port:gsed \
                port:intltool

depends_lib     path:lib/pkgconfig/gio-2.0.pc:glib2 \

configure.args  --disable-silent-rules \
                --disable-schemas-compile \
                --enable-introspection=yes

post-activate {
    system "${prefix}/bin/glib-compile-schemas ${prefix}/share/glib-2.0/schemas"
}

# The rules enabled by gobject-introspection require GNU make 3.81+
platform darwin 8 {
    depends_build-append    port:gmake
    build.cmd               ${prefix}/bin/gmake
}

livecheck.type  gnome
