Skip to content

Commit

Permalink
desktop: Install the appdata file and also make it translatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
drawoc committed Nov 16, 2013
1 parent 5152e10 commit fe3b80d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
12 changes: 7 additions & 5 deletions desktop/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,16 @@
desktop_in_files = gimp.desktop.in.in
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)

appdata_in_files = gimp.appdata.xml.in
appdata_files = $(appdata_in_files:.appdata.xml.in=.appdata.xml)

if DESKTOP_DATADIR

applicationsdir = $(DESKTOP_DATADIR)/applications
applications_DATA = $(desktop_files)

appdatadir = $(DESKTOP_DATADIR)/appdata
appdata_DATA = $(appdata_files)

icons16dir = $(DESKTOP_DATADIR)/icons/hicolor/16x16/apps
icons16_DATA = 16x16/gimp.png
Expand All @@ -35,11 +39,8 @@ install-data-hook:

endif

appdatadir = $(datadir)/appdata
appdata_files = gimp.appdata.xml

EXTRA_DIST = \
$(appdata_files) \
$(appdata_in_files) \
gimp.desktop.in.in \
16x16/gimp.png \
22x22/gimp.png \
Expand All @@ -50,8 +51,9 @@ EXTRA_DIST = \
256x256/gimp.png


DISTCLEANFILES = $(desktop_files)
DISTCLEANFILES = $(desktop_files) $(appdata_files)

@INTLTOOL_XML_RULE@

gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cache
Expand Down
12 changes: 6 additions & 6 deletions desktop/gimp.appdata.xml → desktop/gimp.appdata.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@
-->
<licence>CC0</licence>
<description>
<p>
<_p>
GIMP is an acronym for GNU Image Manipulation Program. It is a
freely distributed program for such tasks as photo retouching,
image composition and image authoring.
</p>
<p>
</_p>
<_p>
It has many capabilities. It can be used as a simple paint
program, an expert quality photo retouching program, an online
batch processing system, a mass production image renderer, an
image format converter, etc.
</p>
<p>
</_p>
<_p>
GIMP is expandable and extensible. It is designed to be
augmented with plug-ins and extensions to do just about
anything. The advanced scripting interface allows everything
from the simplest task to the most complex image manipulation
procedures to be easily scripted. GIMP is also available for
Microsoft Windows and OS X.
</p>
</_p>
</description>
<url type="homepage">http://www.gimp.org/</url>
<screenshots>
Expand Down
1 change: 1 addition & 0 deletions po/POTFILES.in
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

[encoding: UTF-8]

desktop/gimp.appdata.xml.in
desktop/gimp.desktop.in.in

app/about.h
Expand Down

0 comments on commit fe3b80d

Please sign in to comment.