Use AC_INIT to set the project web page
authorJavier Jardón <javier.jardon@codethink.co.uk>
Wed, 1 Feb 2012 14:09:59 +0000 (14:09 +0000)
committerJavier Jardón <javier.jardon@codethink.co.uk>
Wed, 1 Feb 2012 14:39:44 +0000 (14:39 +0000)
Also add the version of the program

config.vapi
configure.ac
src/moonshot-identity-management-view.vala

index cbc5820..98ee0f7 100644 (file)
@@ -6,6 +6,7 @@ namespace Config
         public const string PACKAGE_STRING;
         public const string PACKAGE_VERSION;
         public const string PACKAGE_TARNAME;
+        public const string PACKAGE_URL;
 
         /* Gettext package */
         public const string GETTEXT_PACKAGE;
index 6079db3..ba86e30 100644 (file)
@@ -2,7 +2,11 @@ AC_PREREQ([2.63])
 AC_INIT([Moonshot-ui],
         [0.1],
         [moonshot-community@jiscmail.ac.uk],
-        [moonshot-ui])
+        [moonshot-ui],
+        [http://www.project-moonshot.org/])
+
+# Remove this when we can depend on autoconf >= 2.64
+AC_SUBST(PACKAGE_URL, [http://www.project-moonshot.org/])
 
 AC_CONFIG_HEADERS([config.h])
 AC_CONFIG_SRCDIR([configure.ac])
index 3fa0926..f5b9109 100644 (file)
@@ -765,7 +765,8 @@ SUCH DAMAGE.
         Gtk.show_about_dialog (this,
             "comments", _("Moonshot project UI"),
             "copyright", copyright,
-            "website", "http://www.project-moonshot.org/",
+            "website", Config.PACKAGE_URL,
+            "version", Config.PACKAGE_VERSION,
             "license", license,
             "website-label", _("Visit the Moonshot project web site"),
             "authors", authors,