Permalink
Browse files

autoconf packaging

add repeat option
add gettext files
  • Loading branch information...
1 parent 3c08612 commit 729c5ab0114fe526e6e0e1daf67f4025f54d2793 @eonpatapon committed Jun 5, 2011
View
16 .gitignore
@@ -0,0 +1,16 @@
+Makefile
+Makefile.in
+Makefile.in.in
+configure
+config.log
+config.status
+aclocal.m4
+autom4te.cache/
+po/POTFILES
+po/stamp-it
+
+*~
+*.gmo
+metadata.json
+*.gschema.xml
+*.gschema.valid
View
3 Makefile.am
@@ -0,0 +1,3 @@
+ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
+
+SUBDIRS = src po
View
20 autogen.sh
@@ -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-extension-weather"
+
+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
View
3 config/.gitignore
@@ -0,0 +1,3 @@
+install-sh
+mkinstalldirs
+missing
View
28 configure.ac
@@ -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-mediaplayer],[3.0],[https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer])
+
+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-mediaplayer
+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
View
1 m4/.gitignore
@@ -0,0 +1 @@
+intltool.m4
View
1 po/LINGUAS
@@ -0,0 +1 @@
+fr
View
1 po/POTFILES.in
@@ -0,0 +1 @@
+src/extension.js
View
44 po/fr.po
@@ -0,0 +1,44 @@
+msgid ""
+msgstr ""
+"Project-Id-Version: gnome-shell-extensions-mediaplayer\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2011-06-05 17:12+0200\n"
+"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
+"Last-Translator: Jean-Philippe Braun <eon@patapon.info>\n"
+"Language-Team: Jean-Philippe Braun <eon@patapon.info>\n"
+"Language: French\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=utf-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: extension.js:174
+msgid "Next"
+msgstr "Suivant"
+
+#: extension.js:160
+msgid "Previous"
+msgstr "Précédent"
+
+#: extension.js:192
+msgid "Repeat"
+msgstr "Répéter"
+
+#: extension.js:185
+msgid "Shuffle"
+msgstr "Aléatoire"
+
+#: extension.js:167
+msgid "Toggle playback"
+msgstr "Jouer/Pause"
+
+#: extension.js:152
+msgid "Unknown Album"
+msgstr "Album inconnu"
+
+#: extension.js:151
+msgid "Unknown Artist"
+msgstr "Artiste inconnu"
+
+#: extension.js:153
+msgid "Unknown Title"
+msgstr "Titre inconnu"
View
21 src/Makefile.am
@@ -0,0 +1,21 @@
+extensionurl = https://github.com/eonpatapon/gnome-shell-extensions-mediaplayer
+
+# Change these to modify how installation is performed
+topextensiondir = $(datadir)/gnome-shell/extensions
+
+uuid = mediaplayer@patapon.info
+
+extensiondir = $(topextensiondir)/$(uuid)
+
+dist_extension_DATA = extension.js
+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
View
0 media@sotecware.net/extension.js → src/extension.js
File renamed without changes.
View
0 media@sotecware.net/metadata.json → src/metadata.json.in
File renamed without changes.

0 comments on commit 729c5ab

Please sign in to comment.