desktop-file-utils stable port information

Package: desktop-file-utils
Version: 0.18
Revision: 1
Depends: <<
dpkg-base-files,
glib2-shlibs (>= 2.22.0-1),
libgettext8-shlibs,
xdg-base
<<
BuildDepends: <<
fink (>= 0.24.12),
glib2-dev (>= 2.22.0-1),
libgettext8-dev,
pkgconfig (>= 0.23)
<<
Source: http://freedesktop.org/software/desktop-file-utils/releases/%n-%v.tar.bz2
Source-MD5: d966b743eb394650f98d5dd56b9aece1
PatchFile: %n.patch
PatchFile-MD5: 6dd926cf03fd9160bee811f0e55abe25
ConfigureParams: --disable-dependency-tracking --with-lispdir=%p/share/emacs/site-lisp/%n PKG_CONFIG_PATH="%p/lib/glib-2.0/pkgconfig-strict:$PKG_CONFIG_PAT"
CompileScript: <<
EMACS=no ./configure %c
make
<<
InstallScript: <<
make install DESTDIR=%d
mkdir -m0755 -p %i/share/emacs/site-lisp
install -m0644 misc//desktop-entry-mode.el %i/share/emacs/site-lisp
mkdir -m0755 -p %i/share/applications
<<
#NB: Make sure update-desktop-database is installed at %p/bin, because
#many other packages hard-code that path!

PostInstScript: <<
export XDG_DATA_DIRS=%p/share
export XDG_DATA_HOME=%p/share
if [ "$1" = "configure" ]; then
update-desktop-database
fi
<<
PreRmScript: <<
rm -f %p/share/applications/mimeinfo.cache
<<
DocFiles: AUTHORS COPYING ChangeLog NEWS README
Description: Utilities for manipulating desktop files
DescDetail: <<
desktop-file-utils are a set of utilities to manipulate desktop files.
It comprises:
* update-desktop-database: update the desktop-MIME mapping
* desktop-file-validate: validates a desktop file and prints
warnings/errors about spec violations.
* desktop-file-install: installs a desktop file to the applications
directory, optionally munging it a bit in transit.
<<
DescPort: <<
Disable compiling of lisp files. Manually install it where we want it.

Recent glib doesn't publish -lintl, so pass it directly.
<<
DescPackaging: <<
Add PostInstScript script to update desktop-database (make sure not
to access user-specific data if sudo'ed)

Must have applications dir, otherwise update-desktop-database crashes
<<
License: GPL
Maintainer: The Gnome Core Team
Homepage: http://www.gnome.org/

desktop-file-utils stable port .patch

diff -Nurd -x'*~' desktop-file-utils-0.18.orig/src/Makefile.in desktop-file-utils-0.18/src/Makefile.in
--- desktop-file-utils-0.18.orig/src/Makefile.in 2011-01-13 05:03:40.000000000 -0500
+++ desktop-file-utils-0.18/src/Makefile.in 2011-08-04 09:26:17.000000000 -0400
@@ -251,9 +251,9 @@
mimeutils.h \
update-desktop-database.c

-desktop_file_validate_LDADD = $(DESKTOP_FILE_UTILS_LIBS)
-desktop_file_install_LDADD = $(DESKTOP_FILE_UTILS_LIBS)
-update_desktop_database_LDADD = $(DESKTOP_FILE_UTILS_LIBS)
+desktop_file_validate_LDADD = $(DESKTOP_FILE_UTILS_LIBS) -lintl
+desktop_file_install_LDADD = $(DESKTOP_FILE_UTILS_LIBS) -lintl
+update_desktop_database_LDADD = $(DESKTOP_FILE_UTILS_LIBS) -lintl
all: all-am

.SUFFIXES:

desktop-file-utils _unstable_ port .patch