Skip to content

Commit

Permalink
Redid the framework that deals with installing desktop files. Fixes bug
Browse files Browse the repository at this point in the history
2005-06-16  Sven Neumann  <[email protected]>

	Redid the framework that deals with installing desktop files.
	Fixes bug #307705:

	* data/misc/*: removed.

	* desktop/*: readded the desktop files in a new directory.

	* Makefile.am
	* configure.in
	* data/Makefile.am: changed accordingly.
  • Loading branch information
Sven Neumann authored and Sven Neumann committed Jun 16, 2005
1 parent 945ea31 commit 925a163
Show file tree
Hide file tree
Showing 13 changed files with 756 additions and 93 deletions.
13 changes: 13 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
2005-06-16 Sven Neumann <[email protected]>

Redid the framework that deals with installing desktop files.
Fixes bug #307705:

* data/misc/*: removed.

* desktop/*: readded the desktop files in a new directory.

* Makefile.am
* configure.in
* data/Makefile.am: changed accordingly.

2005-06-16 Michael Natterer <[email protected]>

* tools/pdb/pdbgen/edit.pdb: revert accidential commit.
Expand Down
1 change: 1 addition & 0 deletions Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ SUBDIRS = \
po-plug-ins \
po-script-fu \
data \
desktop \
menus \
libgimpbase \
libgimpcolor \
Expand Down
19 changes: 4 additions & 15 deletions configure.in
Original file line number Diff line number Diff line change
Expand Up @@ -111,16 +111,6 @@ fi
AM_CONDITIONAL(GIMP_UNSTABLE, test "x$GIMP_UNSTABLE" = "xyes")


dnl Choose a desktop icon
if test "x$GIMP_UNSTABLE" = "xyes"; then
GIMP_DESKTOP_ICON="wilber-devel-icon.png"
else
GIMP_DESKTOP_ICON="wilber-icon.png"
fi

AC_SUBST(GIMP_DESKTOP_ICON)


# libtool versioning
m4_define([lt_current], [m4_eval(100 * gimp_minor_version + gimp_micro_version - gimp_interface_age)])
m4_define([lt_revision], [gimp_interface_age])
Expand Down Expand Up @@ -1438,7 +1428,6 @@ else
DESKTOP_DATADIR="$datadir"
fi

AM_CONDITIONAL(DESKTOP_DATADIR, test "x$with_desktop_dir" != xno)
AC_SUBST(DESKTOP_DATADIR)


Expand Down Expand Up @@ -1731,13 +1720,13 @@ data/environ/Makefile
data/gradients/Makefile
data/images/Makefile
data/interpreters/Makefile
data/misc/Makefile
data/misc/gimp.applications
data/misc/gimp.desktop.in
data/misc/gimp.keys
data/palettes/Makefile
data/patterns/Makefile
data/tips/Makefile
desktop/Makefile
desktop/gimp.applications
desktop/gimp.desktop.in
desktop/gimp.keys
etc/Makefile
m4macros/Makefile
po/Makefile.in
Expand Down
1 change: 0 additions & 1 deletion data/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ SUBDIRS = \
gradients \
images \
interpreters \
misc \
palettes \
patterns \
tips
Expand Down
72 changes: 0 additions & 72 deletions data/misc/Makefile.am

This file was deleted.

6 changes: 3 additions & 3 deletions data/misc/.cvsignore → desktop/.cvsignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Makefile.in
Makefile
gimp.desktop
gimp.applications
gimp.desktop.in
gimp.desktop.in.in.h
gimp.desktop
gimp.keys
gimp.applications
.thumbnails
48 changes: 48 additions & 0 deletions desktop/Makefile.am
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
## Makefile.am for gimp/desktop

desktop_in_files = gimp.desktop.in.in
desktop_files = $(desktop_in_files:.desktop.in.in=.desktop)


applicationsdir = @DESKTOP_DATADIR@/applications

applications_DATA = $(desktop_files)


icondir = @DESKTOP_DATADIR@/icons/hicolor/48x48/apps

icon_DATA = gimp.png


mimeinfodir = @DESKTOP_DATADIR@/mime-info

mimeinfo_DATA = gimp.keys


registrydir = @DESKTOP_DATADIR@/application-registry

registry_DATA = gimp.applications


EXTRA_DIST = \
$(desktop_in_files) \
$(icon_DATA) \
$(mimeinfo_DATA) \
$(registry_DATA)


DISTCLEANFILES = $(desktop_files)


gimp.desktop: gimp.desktop.in $(wildcard $(top_srcdir)/po/*.po)
$(INTLTOOL_MERGE) $(top_srcdir)/po $< $(@) -d -u -c $(top_builddir)/po/.intltool-merge-cachemake

validate: gimp.desktop
( dfvalidate=`which desktop-file-validate`; \
if test x$$dfvalidate != x && test -x $$dfvalidate; then \
$$dfvalidate $< || ( echo "* $< INVALID *"; exit 1 ) \
else \
echo "Can't find desktop-file-validate to validate $<; proceed with fingers crossed..."; \
fi )

dist-hook: validate
Loading

0 comments on commit 925a163

Please sign in to comment.