Add jhbuild setup script and moduleset
gnome-shell.modules: moduleset to build gnome-shell and dependencies gnome-shell-build-setup.sh: Script to set up a jhbuild for gnome-shell, modelled after and partially copied from gtk-osx-build-setup.sh jhbuildrc-gnome-shell: ~/.jhbuildrc for the build jhbuildrc-custom-example: Example ~/.jhbuildrc-custom svn path=/trunk/; revision=3
This commit is contained in:
parent
4ba985b484
commit
d6dae414a4
51
tools/build/gnome-shell-build-setup.sh
Executable file
51
tools/build/gnome-shell-build-setup.sh
Executable file
@ -0,0 +1,51 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Script that sets up jhbuild to build gnome-shell. Run this to
|
||||
# checkout jhbuild and the required configuration.
|
||||
#
|
||||
# Copyright (C) 2008, Red Hat, Inc.
|
||||
#
|
||||
# Some ideas and code taken from gtk-osx-build
|
||||
#
|
||||
# Copyright (C) 2006, 2007, 2008 Imendio AB
|
||||
#
|
||||
SOURCE=$HOME/Source
|
||||
BASEURL=http://svn.gnome.org/svn/gnome-shell/trunk/tools/build
|
||||
|
||||
if [ -d $SOURCE ] ; then : ; else
|
||||
mkdir $SOURCE
|
||||
echo "Created $SOURCE"
|
||||
fi
|
||||
|
||||
echo -n "Checking out jhbuild into $SOURCE/jhbuild ... "
|
||||
cd $SOURCE
|
||||
svn co http://svn.gnome.org/svn/jhbuild/trunk jhbuild > /dev/null
|
||||
echo "done"
|
||||
|
||||
echo "Installing jhbuild..."
|
||||
(cd $SOURCE/jhbuild && make -f Makefile.plain DISABLE_GETTEXT=1 install >/dev/null)
|
||||
|
||||
if [ -e $HOME/.jhbuildrc ] ; then
|
||||
if grep JHBUILDRC_GNOME_SHELL $HOME/.jhbuildrc > /dev/null ; then : ; else
|
||||
mv $HOME/.jhbuildrc $HOME/.jhbuildrc.bak
|
||||
echo "Saved ~/.jhbuildrc as ~/.jhbuildrc.bak"
|
||||
fi
|
||||
fi
|
||||
|
||||
echo -n "Writing ~/.jhbuildrc ... "
|
||||
curl -s -o $HOME/.jhbuildrc $BASEURL/jhbuildrc-gnome-shell
|
||||
echo "done"
|
||||
|
||||
if [ ! -f $HOME/.jhbuildrc-custom ]; then
|
||||
echo -n "Writing example ~/.jhbuildrc-custom ... "
|
||||
curl -s -o $HOME/.jhbuildrc-custom $BASEURL/jhbuildrc-custom-example
|
||||
echo "done"
|
||||
fi
|
||||
|
||||
if test "x`echo $PATH | grep $HOME/bin`" == x; then
|
||||
echo "PATH does not contain $HOME/bin, it is recommended that you add that."
|
||||
echo
|
||||
fi
|
||||
|
||||
echo "Done."
|
||||
|
61
tools/build/gnome-shell.modules
Normal file
61
tools/build/gnome-shell.modules
Normal file
@ -0,0 +1,61 @@
|
||||
<?xml version="1.0"?><!--*- mode: nxml; indent-tabs-mode: nil -*-->
|
||||
<!DOCTYPE moduleset SYSTEM "moduleset.dtd">
|
||||
<?xml-stylesheet type="text/xsl" href="moduleset.xsl"?>
|
||||
<!-- vim:set ts=2 expandtab: -->
|
||||
<moduleset>
|
||||
<repository type="svn" name="svn.gnome.org" default="yes"
|
||||
href="http://svn.gnome.org/svn/"/>
|
||||
<repository type="git" name="fishsoup.net"
|
||||
href="git://git.fishsoup.net/"/>
|
||||
<repository type="svn" name="svn.o-hand.com"
|
||||
href="http://svn.o-hand.com/repos/"/>
|
||||
|
||||
<autotools id="gobject-introspection">
|
||||
<branch/>
|
||||
</autotools>
|
||||
|
||||
<autotools id="gir-repository">
|
||||
<branch/>
|
||||
<dependencies>
|
||||
<dep package="gobject-introspection"/>
|
||||
</dependencies>
|
||||
</autotools>
|
||||
|
||||
<autotools id="gjs">
|
||||
<branch/>
|
||||
<dependencies>
|
||||
<dep package="gobject-introspection"/>
|
||||
</dependencies>
|
||||
<after>
|
||||
<dep package="gir-repository"/>
|
||||
</after>
|
||||
</autotools>
|
||||
|
||||
<autotools id="clutter">
|
||||
<branch repo="svn.o-hand.com" module="clutter/branches/clutter-0-8"/>
|
||||
</autotools>
|
||||
|
||||
<autotools id="metacity-clutter" autogenargs="--with-clutter">
|
||||
<branch repo="fishsoup.net" module="metacity-clutter" revision="clutter"/>
|
||||
<dependencies>
|
||||
<dep package="clutter"/>
|
||||
</dependencies>
|
||||
</autotools>
|
||||
|
||||
<autotools id="gnome-shell">
|
||||
<branch/>
|
||||
<dependencies>
|
||||
<dep package="gobject-introspection"/>
|
||||
<dep package="gir-repository"/>
|
||||
<dep package="metacity-clutter"/>
|
||||
</dependencies>
|
||||
</autotools>
|
||||
|
||||
<metamodule id="meta-gnome-shell">
|
||||
<dependencies>
|
||||
<dep package="gir-repository"/>
|
||||
<dep package="gjs"/>
|
||||
</dependencies>
|
||||
</metamodule>
|
||||
|
||||
</moduleset>
|
13
tools/build/jhbuildrc-custom-example
Normal file
13
tools/build/jhbuildrc-custom-example
Normal file
@ -0,0 +1,13 @@
|
||||
# -*- mode: python -*-
|
||||
|
||||
# The username for repositories can be overridden.
|
||||
#
|
||||
#repos["svn.gnome.org"] = "svn+ssh://myusername@svn.gnome.org/svn/"
|
||||
|
||||
# Directory where to check sources out
|
||||
#
|
||||
#checkoutroot = '/opt/gnome-shell/source'
|
||||
|
||||
# Directory where to install
|
||||
#
|
||||
#prefix = '/opt/gnome-shell/install'
|
50
tools/build/jhbuildrc-gnome-shell
Normal file
50
tools/build/jhbuildrc-gnome-shell
Normal file
@ -0,0 +1,50 @@
|
||||
# -*- mode: python -*-
|
||||
#
|
||||
# jhbuildrc for building gnome-shell. Customizations shuld be done in
|
||||
# ~/.jhbuildrc-custom
|
||||
#
|
||||
# Copyright (C) 2008 Red Hat, Inc.
|
||||
#
|
||||
# Some ideas and a bit of code taken from gtk-osx-build
|
||||
#
|
||||
# Copyright (C) 2006, 2007, 2008 Imendio AB
|
||||
#
|
||||
# Use .jhbuildrc-custom to override the moduleset, modules to build,
|
||||
# the source checkout location, installation prefix, or svn usernames
|
||||
# etc.
|
||||
#
|
||||
# JHBUILDRC_GNOME_SHELL - Do not edit this line (or anything else)
|
||||
|
||||
# Only rebuild modules that have changed
|
||||
build_policy = 'updated'
|
||||
|
||||
moduleset = 'http://svn.gnome.org/svn/gnome-shell/trunk/tools/build/gnome-shell.modules'
|
||||
|
||||
modules = [ 'gnome-shell' ]
|
||||
|
||||
# what directory should the source be checked out to?
|
||||
checkoutroot = os.path.expanduser('~/gnome-shell/source')
|
||||
|
||||
# the prefix to configure/install modules to (must have write access)
|
||||
prefix = os.path.expanduser('~/gnome-shell/install')
|
||||
|
||||
# Use system libraries for the builds
|
||||
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'lib', 'pkgconfig'))
|
||||
addpath('PKG_CONFIG_PATH', os.path.join(os.sep, 'usr', 'share', 'pkgconfig'))
|
||||
|
||||
# Look in /usr/share for icons, D-BUS service files, etc
|
||||
addpath('XDG_DATA_DIRS', '/usr/share')
|
||||
# Look in /etc/xdg for system-global autostart files
|
||||
addpath('XDG_CONFIG_DIRS', '/etc/xdg')
|
||||
|
||||
# Rebuild faster
|
||||
os.environ['INSTALL'] = os.path.expanduser('~/bin/install-check')
|
||||
|
||||
# Import optional user RC for further customization. You can override
|
||||
# the prefix or default build setup for example, or CFLAGS or
|
||||
# module_autogenargs, etc.
|
||||
#
|
||||
_userrc = os.path.join(os.environ['HOME'], '.jhbuildrc-custom')
|
||||
if os.path.exists(_userrc):
|
||||
execfile(_userrc)
|
||||
|
Loading…
Reference in New Issue
Block a user