# -*- 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 120081 2014-05-15 04:01:31Z devans@macports.org $

PortSystem      1.0

name            gsettings-desktop-schemas
version         3.12.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  c693dfbf24993b0220a10e1ec82bf2cec6d9bab2 \
                sha256  da75021e9c45a60d0a97ea3486f93444275d0ace86dbd1b97e5d09000d8c4ad1

supported_archs noarch

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

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

patchfiles      patch-restore-settings-for-deprecated-gtk-settings.diff

# update m4/intltool.m4 and autoreconf

pre-configure {
    copy -force ${prefix}/share/aclocal/intltool.m4 ${worksrcpath}/m4
}

use_autoreconf      yes
autoreconf.args     -fvi

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
