project: drop intltool usage

This commit is contained in:
Georges Basile Stavracas Neto
2017-04-29 10:47:25 -03:00
parent fa526f0a7c
commit 45f11ed5c0
12 changed files with 156 additions and 90 deletions
+42 -24
View File
@@ -1,21 +1,55 @@
SUBDIRS = icons
################
# Desktop files
################
desktopdir = $(datadir)/applications
desktop_in_files = org.gnome.Calendar.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
%.desktop: %.desktop.in
$(AM_V_GEN) $(MSGFMT) --desktop --template $< -d $(top_srcdir)/po -o $@
##############################
# GNOME Shell search provider
##############################
searchproviderdir = $(datadir)/gnome-shell/search-providers
searchprovider_DATA = org.gnome.Calendar.search-provider.ini
%.ini: %.ini.in
LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@
@INTLTOOL_XML_RULE@
################
# Appdata files
################
appdatadir = $(datadir)/appdata
appdata_DATA = $(appdata_in_files:.xml.in=.xml)
appdata_in_files = $(srcdir)/appdata/org.gnome.Calendar.appdata.xml.in
@INTLTOOL_DESKTOP_RULE@
%.xml: %.xml.in
$(AM_V_GEN)$(MSGFMT) --xml --template $< -d $(top_srcdir)/po -o $@
###################
# GSettings schema
###################
gsettings_ENUM_NAMESPACE = org.gnome.calendar
gsettings_ENUM_FILES = \
$(top_srcdir)/src/gcal-utils.h
gsettings_SCHEMAS = org.gnome.calendar.gschema.xml
.PRECIOUS: $(gsettings_SCHEMAS)
@GSETTINGS_RULES@
#####################
# DBus service files
#####################
servicedir = $(datadir)/dbus-1/services
service_DATA = org.gnome.Calendar.service
@@ -30,23 +64,8 @@ org.gnome.Calendar.service:
echo 'Exec=${bindir}/gnome-calendar --gapplication-service') > $@.tmp && \
mv $@.tmp $@
@GSETTINGS_RULES@
%.gschema.xml: %.gschema.xml.in
$(AM_V_GEN) $(INTLTOOL_MERGE) -x -u --no-translations $< $@
gsettings_ENUM_NAMESPACE = org.gnome.calendar
gsettings_ENUM_FILES = \
$(top_srcdir)/src/gcal-utils.h
gsettingsschema_in_files = org.gnome.calendar.gschema.xml.in
gsettings_SCHEMAS = $(gsettingsschema_in_files:.xml.in=.xml)
.PRECIOUS: $(gsettings_SCHEMAS)
EXTRA_DIST= \
appdata/org.gnome.Calendar.appdata.xml \
org.gnome.Calendar.search-provider.ini.in.in \
org.gnome.Calendar.desktop \
calendar.gresource.xml \
shell-search-provider-dbus-interfaces.xml \
ui/alarm-row.ui \
@@ -68,11 +87,10 @@ EXTRA_DIST= \
theme/gtk-styles.css \
$(appdata_in_files) \
$(desktop_in_files) \
$(gsettingsschema_in_files)
$(gsettings_SCHEMAS) \
$(searchprovider_DATA)
CLEANFILES = \
$(appdata_DATA) \
$(service_DATA) \
$(desktop_DATA) \
$(searchprovider_DATA) \
$(gsettings_SCHEMAS) \
$(appdata_DATA)
$(desktop_DATA)
@@ -4,16 +4,16 @@
<id>org.gnome.Calendar.desktop</id>
<metadata_license>CC0</metadata_license>
<project_license>GPL-3.0+</project_license>
<_name>Calendar</_name>
<_summary>Calendar for GNOME</_summary>
<name>Calendar</name>
<summary>Calendar for GNOME</summary>
<description>
<_p>
<p>
GNOME Calendar is a simple and beautiful calendar application designed to perfectly fit the GNOME desktop. By reusing the components which the GNOME desktop is build on, Calendar nicely integrates with the GNOME ecosystem.
</_p>
<_p>
</p>
<p>
We aim to find the perfect balance between nicely crafted features and user-centred usability. No excess, no lacks. You’ll feel comfortable using Calendar, like you’ve been using it for ages!
</_p>
</p>
</description>
<screenshots>
@@ -21,11 +21,11 @@
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/default.png</image>
</screenshot>
<screenshot>
<_caption>Search for events</_caption>
<caption>Search for events</caption>
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/search.png</image>
</screenshot>
<screenshot>
<_caption>Calendar management</_caption>
<caption>Calendar management</caption>
<image width="1200" height="675">https://git.gnome.org/browse/gnome-calendar/plain/data/appdata/calendar-management.png</image>
</screenshot>
</screenshots>
@@ -1,12 +1,12 @@
[Desktop Entry]
_Name=Calendar
_Comment=Access, and manage calendar
Name=Calendar
Comment=Access and manage your calendars
Exec=gnome-calendar
Icon=org.gnome.Calendar
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Office;Calendar;Core;
_Keywords=Calendar;Event;Reminder;
Keywords=Calendar;Event;Reminder;
MimeType=text/calendar;
DBusActivatable=true
@@ -1,5 +1,4 @@
[Shell Search Provider]
_Title=Calendar
Icon=gnome-calendar
DesktopId=org.gnome.Calendar.desktop
BusName=org.gnome.Calendar
@@ -3,23 +3,23 @@
<schema id="org.gnome.calendar" path="/org/gnome/calendar/">
<key name="window-maximized" type="b">
<default>true</default>
<_summary>Window maximized</_summary>
<_description>Window maximized state</_description>
<summary>Window maximized</summary>
<description>Window maximized state</description>
</key>
<key name="window-size" type="ai">
<default>[768, 600]</default>
<_summary>Window size</_summary>
<_description>Window size (width and height).</_description>
<summary>Window size</summary>
<description>Window size (width and height).</description>
</key>
<key name="window-position" type="ai">
<default>[]</default>
<_summary>Window position</_summary>
<_description>Window position (x and y).</_description>
<summary>Window position</summary>
<description>Window position (x and y).</description>
</key>
<key name="active-view" enum="org.gnome.calendar.GcalWindowViewType">
<default>'month'</default>
<_summary>Type of the active view</_summary>
<_description>Type of the active window view, default value is: monthly view</_description>
<summary>Type of the active view</summary>
<description>Type of the active window view, default value is: monthly view</description>
</key>
</schema>
</schemalist>