[gnome-shell] jhbuild wrapper: Re-set typelib path to the src dir
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] jhbuild wrapper: Re-set typelib path to the src dir
- Date: Fri, 27 Apr 2012 19:49:11 +0000 (UTC)
commit ccf95b738d0fb0e6a0db61582a01b4342919ba50
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Apr 26 16:25:19 2012 -0400
jhbuild wrapper: Re-set typelib path to the src dir
This allows us running uninstalled. While we're at it, though, remove
JHBUILD_TYPELIBDIR. jhbuild shell should add its own stuff to GI_TYPELIB_PATH,
and we don't want to half reimplement jhbuild. The wrapper script should be
solely for the case of running from the source directory, and not care about
jhbuild at all.
configure.ac | 2 --
src/Makefile.am | 1 -
src/gnome-shell-jhbuild.in | 9 ++++-----
3 files changed, 4 insertions(+), 8 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index c9ed182..3951c66 100644
--- a/configure.ac
+++ b/configure.ac
@@ -108,8 +108,6 @@ AC_DEFINE_UNQUOTED([GJS_VERSION], ["$GJS_VERSION"], [The version of GJS we're li
AC_SUBST([GJS_VERSION], ["$GJS_VERSION"])
GOBJECT_INTROSPECTION_CHECK([$GOBJECT_INTROSPECTION_MIN_VERSION])
-JHBUILD_TYPELIBDIR="$INTROSPECTION_TYPELIBDIR"
-AC_SUBST(JHBUILD_TYPELIBDIR)
saved_CFLAGS=$CFLAGS
saved_LIBS=$LIBS
diff --git a/src/Makefile.am b/src/Makefile.am
index ca058e5..f1721fb 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -55,7 +55,6 @@ generated_script_substitutions = \
-e "s|@libexecdir[ ]|$(libexecdir)|g" \
-e "s|@libdir[ ]|$(libdir)|g" \
-e "s|@pkglibdir[ ]|$(pkglibdir)|g" \
- -e "s|@JHBUILD_TYPELIBDIR[ ]|$(JHBUILD_TYPELIBDIR)|g" \
-e "s|@pkgdatadir[ ]|$(pkgdatadir)|g" \
-e "s|@PYTHON[ ]|$(PYTHON)|g" \
-e "s|@VERSION[ ]|$(VERSION)|g" \
diff --git a/src/gnome-shell-jhbuild.in b/src/gnome-shell-jhbuild.in
index e2c0a74..e695e58 100755
--- a/src/gnome-shell-jhbuild.in
+++ b/src/gnome-shell-jhbuild.in
@@ -67,22 +67,21 @@ def start_shell():
if os.path.exists(os.path.join(self_dir, 'gnome-shell-jhbuild.in')):
running_from_source_tree = True
top_dir = os.path.dirname(self_dir)
- typelib_dir = '@JHBUILD_TYPELIBDIR@:' + os.path.join(top_dir, "src")
js_dir = os.path.join(top_dir, "js")
data_dir = os.path.join(top_dir, "data")
+ typelib_dir = os.path.join(top_dir, "src")
+ if 'GI_TYPELIB_PATH' in os.environ:
+ typelib_dir += ':%s' % (os.environ['GI_TYPELIB_PATH'],)
else:
running_from_source_tree = False
js_dir = os.path.join('@pkgdatadir@', 'js')
- typelib_dir = '@JHBUILD_TYPELIBDIR@'
-
- if os.environ.has_key('GI_TYPELIB_PATH'):
- typelib_dir = typelib_dir + ":" + os.environ.get('GI_TYPELIB_PATH')
# Set up environment
env = dict(os.environ)
if running_from_source_tree:
env.update({'GNOME_SHELL_JS' : js_dir,
'GNOME_SHELL_BINDIR' : self_dir,
+ 'GI_TYPELIB_PATH' : typelib_dir,
'GNOME_SHELL_DATADIR' : data_dir,
'GSETTINGS_SCHEMA_DIR' : data_dir })
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]