[swell-foop/wip/inigomartinez/meson: 4/5] build: Add PACKAGE_URL global variable



commit 5d46c4f1f84997b9b93d9d0f58daff8d7aa866d2
Author: Iñigo Martínez <inigomartinez gmail com>
Date:   Sat Feb 10 15:59:39 2018 +0100

    build: Add PACKAGE_URL global variable
    
    The website value is inmutable and might be used in the whole source
    code. This value has been moved to the `PACKAGE_URL` global variable
    that has been usually used in autotools to hold this value.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=793340

 meson.build         |    1 +
 src/swell-foop.vala |    2 +-
 vapi/config.vapi    |    1 +
 3 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/meson.build b/meson.build
index 901f572..856b34a 100644
--- a/meson.build
+++ b/meson.build
@@ -38,6 +38,7 @@ posix_dep = valac.find_library('posix')
 conf = configuration_data()
 
 conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
+conf.set_quoted('PACKAGE_URL', 'https://wiki.gnome.org/Apps/Swell%20Foop')
 conf.set_quoted('VERSION', meson.project_version())
 
 config_h_inc = include_directories('.')
diff --git a/src/swell-foop.vala b/src/swell-foop.vala
index bab49a5..d4d2a00 100644
--- a/src/swell-foop.vala
+++ b/src/swell-foop.vala
@@ -465,7 +465,7 @@ public class SwellFoop : Gtk.Application
                                "documenters", documenters,
                                "translator-credits", _("translator-credits"),
                                "logo-icon-name", "swell-foop",
-                               "website", "https://wiki.gnome.org/Apps/Swell%20Foop";,
+                               "website", Config.PACKAGE_URL,
                                null);
     }
 
diff --git a/vapi/config.vapi b/vapi/config.vapi
index 705a1fb..37bb844 100644
--- a/vapi/config.vapi
+++ b/vapi/config.vapi
@@ -13,5 +13,6 @@ namespace Config {
     public const string DATADIR;
     public const string GETTEXT_PACKAGE;
     public const string LOCALEDIR;
+    public const string PACKAGE_URL;
     public const string VERSION;
 }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]