Add autotool compilation support

this allows for some automatic configuration and potfiles management
and allow to install the extension
yahoo_weather
ecyrbe 14 years ago
parent 57b0697e65
commit 7d36091a83
  1. 16
      NEWS
  2. 29
      README
  3. 20
      autogen.sh
  4. 3
      config/.gitignore
  5. 28
      configure.ac
  6. 0
      data/screenshot.png
  7. 1
      m4/.gitignore
  8. 1
      po/LINGUAS
  9. 1
      po/POTFILES.in
  10. 20
      po/gnome-shell-extension-weather.pot
  11. 21
      src/Makefile.am
  12. 1
      src/metadata.json
  13. 8
      src/metadata.json.in

16
NEWS

@ -0,0 +1,16 @@
0.4
===
- add autotools support
0.3
===
- add translation support
0.2
===
- add yahoo backend
- add symbolic icons
0.1 (
===
first skeleton implementation

@ -0,0 +1,29 @@
## gnome-shell-extension-weather
gnome-shell-extension-weather is a simple extension for displaying weather notifications in Gnome Shell.
Currently, the weather report including forecast for today and tomorrow is fetched from [Yahoo](http://weather.yahoo.com/).
### Installation
1. Change `YAHOO_ID` to your location in extension.js (cf. [WOEID](http://developer.yahoo.com/geo/geoplanet/guide/concepts.html))
2. Put directory `weather@venemo.com/` in `~/.local/share/gnome-shell/extensions/`
3. Restart Gnome Shell (`[Alt]+[F2]`, `r`)
4. Enjoy, contribute, ...
### Licence
Copyright (C) 2011
ecyrbe <ecyrbe+spam@gmail.com> //remove +spam to email
Timur Kristóf <venemo@msn.com>,
Elad Alfassa <elad@fedoraproject.org>,
Simon Legner <Simon.Legner@gmail.com>
This file is part of gnome-shell-extension-weather.
gnome-shell-extension-weather is free software: you can redistribute it and/or modify it under the terms of the **GNU General Public License as published by the Free Software Foundation, either version 3** of the License, or (at your option) any later version.
gnome-shell-extension-weather is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with gnome-shell-extension-weather. If not, see <http://www.gnu.org/licenses/>.

@ -0,0 +1,20 @@
#!/bin/bash
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="gnome-shell-extensions"
test -f $srcdir/configure.ac || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level gnome-shell-extensions directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common from GNOME Git (or from"
echo "your OS vendor's package manager)."
exit 1
}
. gnome-autogen.sh

3
config/.gitignore vendored

@ -0,0 +1,3 @@
install-sh
mkinstalldirs
missing

@ -0,0 +1,28 @@
AC_PREREQ(2.63)
dnl be carefull, the version needs to be in sync with your gnome shell version
AC_INIT([gnome-shell-extension-weather],[3.0.1],[https://github.com/ecyrbe/gnome-shell-extension-weather/issues])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
AM_INIT_AUTOMAKE([1.10 dist-bzip2 no-dist-gzip foreign tar-ustar])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
GETTEXT_PACKAGE=gnome-shell-extension-weather
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
[The prefix for our gettext translation domains.])
IT_PROG_INTLTOOL(0.26)
PKG_PROG_PKG_CONFIG([0.22])
GLIB_GSETTINGS
dnl Please keep this sorted alphabetically
AC_CONFIG_FILES([
Makefile
po/Makefile.in
src/Makefile
])
AC_OUTPUT

Before

Width:  |  Height:  |  Size: 71 KiB

After

Width:  |  Height:  |  Size: 71 KiB

1
m4/.gitignore vendored

@ -0,0 +1 @@
intltool.m4

@ -0,0 +1 @@
src/extension.js

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-05-24 16:54+0200\n" "POT-Creation-Date: 2011-05-26 06:23+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -17,38 +17,38 @@ msgstr ""
"Content-Type: text/plain; charset=CHARSET\n" "Content-Type: text/plain; charset=CHARSET\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
#: extension.js:73 #: extension.js:71
msgid "..." msgid "..."
msgstr "" msgstr ""
#: extension.js:315 #: extension.js:314
msgid "Loading current weather ..." msgid "Loading current weather ..."
msgstr "" msgstr ""
#: extension.js:316 #: extension.js:315
msgid "Loading future weather ..." msgid "Loading future weather ..."
msgstr "" msgstr ""
#: extension.js:332 #: extension.js:331
msgid "Loading ..." msgid "Loading ..."
msgstr "" msgstr ""
#: extension.js:335 #: extension.js:334
msgid "Please wait" msgid "Please wait"
msgstr "" msgstr ""
#: extension.js:353 #: extension.js:352
msgid "Temperature:" msgid "Temperature:"
msgstr "" msgstr ""
#: extension.js:355 #: extension.js:354
msgid "Humidity:" msgid "Humidity:"
msgstr "" msgstr ""
#: extension.js:357 #: extension.js:356
msgid "Pressure:" msgid "Pressure:"
msgstr "" msgstr ""
#: extension.js:359 #: extension.js:358
msgid "Wind:" msgid "Wind:"
msgstr "" msgstr ""

@ -0,0 +1,21 @@
extensionurl = https://github.com/ecyrbe/gnome-shell-extension-weather
# Change these to modify how installation is performed
topextensiondir = $(datadir)/gnome-shell/extensions
uuid = weather@gnome-shell-extensions.gnome.org
extensiondir = $(topextensiondir)/$(uuid)
dist_extension_DATA = extension.js stylesheet.css
nodist_extension_DATA = metadata.json $(EXTRA_EXTENSION)
EXTRA_DIST = metadata.json.in
metadata.json: metadata.json.in $(top_builddir)/config.status
$(AM_V_GEN) sed -e "s|[@]LOCALEDIR@|$(datadir)/locale|" \
-e "s|[@]uuid@|$(uuid)|" \
-e "s|[@]shell_current@|$(PACKAGE_VERSION)|" \
-e "s|[@]url@|$(extensionurl)|" $< > $@
CLEANFILES = metadata.json

@ -1 +0,0 @@
{"shell-version": ["3.0"], "uuid": "weather@venemo.net", "name": "Weather", "description": "Adds weather information next to the clock."}

@ -0,0 +1,8 @@
{
"uuid": "@uuid@",
"name": "Weather indicator",
"description": "Adds weather information menu",
"shell-version": [ "@shell_current@" ],
"localedir": "@LOCALEDIR@",
"url": "@url@"
}
Loading…
Cancel
Save