# -*- mode: python -*-
# -*- coding: utf-8 -*-

# edit this file to match your settings, backup your ~/.jhbuildrc, and then
# copy this there

# what module set should be used.  The default at the moment is
# 'gnome-suites-core-3.0', but it can be any of the files in the
# modulesets directory, or even the URL of a module set file on
# a web server.
use_local_modulesets = True
#moduleset = 'gnome-apps-3.7.5'
moduleset = 'gnome-apps-3.12'

# A list of the modules to build.  Defaults to the Gnome Desktop and
# developer platform.
modules = [ 'meta-gnome-core', 'meta-gnome-apps-tested' ]

tarballdir = os.path.join(os.environ['HOME'], 'releases', 'checkoutroot')

# what directory should the source be checked out to?
checkoutroot = os.path.join(os.environ['HOME'], 'releases', moduleset)
#checkoutroot = '~/.build/checkout/gnome'
# the prefix to configure/install modules to (must have write access)
#prefix = os.path.join(checkoutroot, 'install')
prefix = '/opt/gnome'

# extra arguments to pass to all autogen.sh scripts
# to speed up builds, try '--disable-static --disable-gtk-doc'
#autogenargs='--disable-static --disable-gtk-doc'

autogenargs='--disable-maintainer-mode --disable-static --disable-gtk-doc'

addpath('PKG_CONFIG_PATH', '/usr/lib/pkgconfig')
addpath('PKG_CONFIG_PATH', '/usr/lib64/pkgconfig')
addpath('PKG_CONFIG_PATH', '/opt/gnome/lib64/pkgconfig')
addpath('PKG_CONFIG_PATH', '/opt/gnome/lib/pkgconfig')
addpath('PKG_CONFIG_PATH', '/usr/share/pkgconfig')

# An alternative location to look for (or download to) all downloaded tarballs
tarballdir = os.path.join(checkoutroot, 'pkgs')

# these are hard to build or interfere with system packages
#skip = [ 'polkit', 'WebKit', 'evolution']
skip = [ 'polkit', 'evolution']

module_autogenargs['atkmm'] = autogenargs + ' --disable-documentation'
module_autogenargs['pangomm'] = autogenargs + ' --disable-documentation'
module_autogenargs['glibmm'] = autogenargs + ' --disable-documentation'
module_autogenargs['gtkmm'] = autogenargs + ' --disable-documentation'

