[gnome-weather/wip/new-package-js: 11/14] Switch to the new package support for relocatable apps
- From: Giovanni Campagna <gcampagna src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-weather/wip/new-package-js: 11/14] Switch to the new package support for relocatable apps
- Date: Thu, 13 Feb 2014 22:00:17 +0000 (UTC)
commit 9c4d2075a59d79120de8c96ac7bac59c02227068
Author: Giovanni Campagna <gcampagna src gnome org>
Date: Sat Feb 8 19:27:47 2014 +0100
Switch to the new package support for relocatable apps
Stop passing the prefix and libdir to package.start(), and let
it guess it from System.programInvocationName.
data/org.gnome.Weather.Application.service.in | 2 +-
src/Makefile.am | 4 ++--
src/org.gnome.Weather.Application.in | 5 +----
3 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/data/org.gnome.Weather.Application.service.in b/data/org.gnome.Weather.Application.service.in
index 0b69597..5f777d4 100644
--- a/data/org.gnome.Weather.Application.service.in
+++ b/data/org.gnome.Weather.Application.service.in
@@ -1,3 +1,3 @@
[D-BUS Service]
Name= PACKAGE_NAME@
-Exec= pkgdatadir@/@PACKAGE_NAME@ --gapplication-service
+Exec= pkglibdir@/@PACKAGE_NAME@ --gapplication-service
diff --git a/src/Makefile.am b/src/Makefile.am
index 4827877..bb3ce5c 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -1,13 +1,13 @@
NULL =
-appdir = $(pkgdatadir)
+appdir = $(pkglibdir)
nodist_app_SCRIPTS = org.gnome.Weather.Application
resource_files = $(shell $(GLIB_COMPILE_RESOURCES) --sourcedir=$(srcdir) --generate-dependencies
$(srcdir)/$(PACKAGE_NAME).src.gresource.xml)
$(PACKAGE_NAME).src.gresource: $(PACKAGE_NAME).src.gresource.xml $(resource_files)
$(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) $<
-resourcedir = $(pkgdatadir)
+resourcedir = $(pkglibdir)
resource_DATA = $(PACKAGE_NAME).src.gresource
# Legacy, until we can depend on package.js provided by gjs
diff --git a/src/org.gnome.Weather.Application.in b/src/org.gnome.Weather.Application.in
index dc7b6bc..0273985 100644
--- a/src/org.gnome.Weather.Application.in
+++ b/src/org.gnome.Weather.Application.in
@@ -1,6 +1,3 @@
#! GJS@
imports.searchPath.push("@pkgdatadir@");
-imports.package.start({ name: "org.gnome.Weather.Application",
- version: "@PACKAGE_VERSION@",
- prefix: "@prefix@",
- libdir: "@libdir@" });
+imports.package.start({ version: "@PACKAGE_VERSION@" });
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]