summaryrefslogtreecommitdiff
path: root/sysutils/desktop-file-utils
diff options
context:
space:
mode:
authorjmmv <jmmv>2004-09-21 17:03:53 +0000
committerjmmv <jmmv>2004-09-21 17:03:53 +0000
commit961ea33f63cdf2e6ce13a76c9993da4ca3267166 (patch)
treebdf4438ff58293871c1155a8f446a944cc4bf249 /sysutils/desktop-file-utils
parentadf5b2061ad62e09ef0cba7245396bcc2ec1bd74 (diff)
downloadpkgsrc-961ea33f63cdf2e6ce13a76c9993da4ca3267166.tar.gz
Initial import of desktop-file-utils, version 0.8:
desktop-file-utils contains a couple of command line utilities for working with desktop entries and the applications database. More specifically, it contains the update-desktop-database utility, used to rebuild the database that connects MIME types to applications.
Diffstat (limited to 'sysutils/desktop-file-utils')
-rw-r--r--sysutils/desktop-file-utils/DESCR4
-rw-r--r--sysutils/desktop-file-utils/INSTALL13
-rw-r--r--sysutils/desktop-file-utils/Makefile35
-rw-r--r--sysutils/desktop-file-utils/PLIST7
-rw-r--r--sysutils/desktop-file-utils/buildlink3.mk34
-rw-r--r--sysutils/desktop-file-utils/desktopdb.mk25
-rw-r--r--sysutils/desktop-file-utils/distinfo6
-rw-r--r--sysutils/desktop-file-utils/files/install.tmpl10
-rw-r--r--sysutils/desktop-file-utils/patches/patch-aa13
-rw-r--r--sysutils/desktop-file-utils/patches/patch-ab13
10 files changed, 160 insertions, 0 deletions
diff --git a/sysutils/desktop-file-utils/DESCR b/sysutils/desktop-file-utils/DESCR
new file mode 100644
index 00000000000..18eb668c756
--- /dev/null
+++ b/sysutils/desktop-file-utils/DESCR
@@ -0,0 +1,4 @@
+desktop-file-utils contains a couple of command line utilities for working
+with desktop entries and the applications database. More specifically,
+it contains the update-desktop-database utility, used to rebuild the database
+that connects MIME types to applications.
diff --git a/sysutils/desktop-file-utils/INSTALL b/sysutils/desktop-file-utils/INSTALL
new file mode 100644
index 00000000000..89dda1b58e3
--- /dev/null
+++ b/sysutils/desktop-file-utils/INSTALL
@@ -0,0 +1,13 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2004/09/21 17:03:53 jmmv Exp $
+
+APPLICATIONS_PATH="@APPLICATIONS_PATH@"
+UPDATE_DESKTOPDB="@UPDATE_DESKTOPDB@"
+
+case ${STAGE} in
+POST-INSTALL)
+ ${UPDATE_DESKTOPDB} ${APPLICATIONS_PATH}
+ ;;
+POST-DEINSTALL)
+ ${RM} -f ${APPLICATIONS_PATH}/mimeinfo.cache
+ ;;
+esac
diff --git a/sysutils/desktop-file-utils/Makefile b/sysutils/desktop-file-utils/Makefile
new file mode 100644
index 00000000000..44dc1534f67
--- /dev/null
+++ b/sysutils/desktop-file-utils/Makefile
@@ -0,0 +1,35 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/09/21 17:03:53 jmmv Exp $
+#
+
+DISTNAME= desktop-file-utils-0.8
+CATEGORIES= sysutils gnome
+MASTER_SITES= http://freedesktop.org/Software/desktop-file-utils/releases/
+
+MAINTAINER= jmmv@NetBSD.org
+HOMEPAGE= http://www.freedesktop.org/Software/desktop-file-utils
+COMMENT= Utilities to manage desktop entries
+
+GNU_CONFIGURE= YES
+USE_BUILDLINK3= YES
+USE_DIRS+= xdg-1.1
+USE_LIBTOOL= YES
+USE_PKGINSTALL= YES
+USE_PKGLOCALEDIR= YES
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= EMACS=no
+
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/INSTALL
+
+FILES_SUBST+= APPLICATIONS_PATH="${PREFIX}/share/applications"
+FILES_SUBST+= UPDATE_DESKTOPDB="${PREFIX}/bin/update-desktop-database"
+
+PRINT_PLIST_AWK+= /^share\/applications\/mimeinfo.cache$$/ \
+ { print "@comment in INSTALL script: " $$0; \
+ next; }
+
+.include "../../devel/glib2/buildlink3.mk"
+.include "../../devel/pkgconfig/buildlink3.mk"
+.include "../../devel/popt/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/desktop-file-utils/PLIST b/sysutils/desktop-file-utils/PLIST
new file mode 100644
index 00000000000..a54c0d32cc1
--- /dev/null
+++ b/sysutils/desktop-file-utils/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/09/21 17:03:53 jmmv Exp $
+bin/desktop-file-install
+bin/desktop-file-validate
+bin/desktop-menu-tool
+bin/update-desktop-database
+@comment in INSTALL script: share/applications/mimeinfo.cache
+@comment in xdg-dirs: @dirrm share/applications
diff --git a/sysutils/desktop-file-utils/buildlink3.mk b/sysutils/desktop-file-utils/buildlink3.mk
new file mode 100644
index 00000000000..a559ee2f5c0
--- /dev/null
+++ b/sysutils/desktop-file-utils/buildlink3.mk
@@ -0,0 +1,34 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+DESKTOP_FILE_UTILS_BUILDLINK3_MK:= ${DESKTOP_FILE_UTILS_BUILDLINK3_MK}+
+
+.if !empty(BUILDLINK_DEPTH:M+)
+BUILDLINK_DEPENDS+= desktop-file-utils
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Ndesktop-file-utils}
+BUILDLINK_PACKAGES+= desktop-file-utils
+
+.if !empty(DESKTOP_FILE_UTILS_BUILDLINK3_MK:M+)
+BUILDLINK_DEPENDS.desktop-file-utils+= desktop-file-utils>=0.8
+BUILDLINK_PKGSRCDIR.desktop-file-utils?=../../sysutils/desktop-file-utils
+.endif # DESKTOP_FILE_UTILS_BUILDLINK3_MK
+
+.if !empty(DESKTOP_FILE_UTILS_BUILDLINK3_MK:M+)
+BUILDLINK_TARGETS+= desktop-file-utils-buildlink-fake
+
+_DFU_FAKE_UPDATEDB= ${BUILDLINK_DIR}/bin/update-desktop-database
+
+desktop-file-utils-buildlink-fake:
+ ${_PKG_SILENT}${_PKG_DEBUG} \
+ if [ ! -f ${_DFU_FAKE_UPDATEDB} ]; then \
+ ${ECHO_BUILDLINK_MSG} "Creating ${_DFU_FAKE_UPDATEDB}"; \
+ ${MKDIR} ${_DFU_FAKE_UPDATEDB:H}; \
+ ${ECHO} "#!/bin/sh" > ${_DFU_FAKE_UPDATEDB}; \
+ ${ECHO} "echo '[pkgsrc] Doing nothing for update-desktop-database' \$$*" >> ${_DFU_FAKE_UPDATEDB}; \
+ ${CHMOD} +x ${_DFU_FAKE_UPDATEDB}; \
+ fi
+.endif # DESKTOP_FILE_UTILS_BUILDLINK3_MK
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/sysutils/desktop-file-utils/desktopdb.mk b/sysutils/desktop-file-utils/desktopdb.mk
new file mode 100644
index 00000000000..bad5e0c5d93
--- /dev/null
+++ b/sysutils/desktop-file-utils/desktopdb.mk
@@ -0,0 +1,25 @@
+# $NetBSD: desktopdb.mk,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+#
+# This Makefile fragment is intended to be included by packages that install
+# desktop entries. It takes care of registering them in the global database.
+#
+
+.if !defined(DESKTOP_FILE_UTILS_MIMEDB_MK)
+DESKTOP_FILE_UTILS_MIMEDB_MK= # defined
+
+. include "../../mk/bsd.prefs.mk"
+
+USE_PKGINSTALL= YES
+INSTALL_EXTRA_TMPL+= ${.CURDIR}/../../sysutils/desktop-file-utils/files/install.tmpl
+DEINSTALL_EXTRA_TMPL+= ${.CURDIR}/../../sysutils/desktop-file-utils/files/install.tmpl
+
+FILES_SUBST+= APPLICATIONS_PATH="${BUILDLINK_PREFIX.desktop-file-utils}/share/applications"
+FILES_SUBST+= UPDATE_DESKTOPDB="${BUILDLINK_PREFIX.desktop-file-utils}/bin/update-desktop-database"
+
+PRINT_PLIST_AWK+= /^share\/applications\/mimeinfo.cache$$/ { next }
+
+.if !defined(NO_BUILDLINK) && !empty(USE_BUILDLINK3:M[yY][eE][sS])
+. include "../../sysutils/desktop-file-utils/buildlink3.mk"
+.endif
+
+.endif # DESKTOP_FILE_UTILS_MIMEDB_MK
diff --git a/sysutils/desktop-file-utils/distinfo b/sysutils/desktop-file-utils/distinfo
new file mode 100644
index 00000000000..94d47fa0481
--- /dev/null
+++ b/sysutils/desktop-file-utils/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+
+SHA1 (desktop-file-utils-0.8.tar.gz) = 24eacdcb3b8fab024ed4382fc5d33f1fd2aaa3c1
+Size (desktop-file-utils-0.8.tar.gz) = 423341 bytes
+SHA1 (patch-aa) = c1735afe417865a755da948698f58e448230cf90
+SHA1 (patch-ab) = ebd5c0525c4e0894f2880682862aeeb76a528f04
diff --git a/sysutils/desktop-file-utils/files/install.tmpl b/sysutils/desktop-file-utils/files/install.tmpl
new file mode 100644
index 00000000000..9082e780580
--- /dev/null
+++ b/sysutils/desktop-file-utils/files/install.tmpl
@@ -0,0 +1,10 @@
+# $NetBSD: install.tmpl,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+
+APPLICATIONS_PATH="@APPLICATIONS_PATH@"
+UPDATE_DESKTOPDB="@UPDATE_DESKTOPDB@"
+
+case ${STAGE} in
+POST-INSTALL|DEINSTALL)
+ ${UPDATE_DESKTOPDB} ${APPLICATIONS_PATH}
+ ;;
+esac
diff --git a/sysutils/desktop-file-utils/patches/patch-aa b/sysutils/desktop-file-utils/patches/patch-aa
new file mode 100644
index 00000000000..2d384c25c5d
--- /dev/null
+++ b/sysutils/desktop-file-utils/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+
+--- src/Makefile.in.orig 2004-07-22 08:52:29.000000000 +0200
++++ src/Makefile.in
+@@ -243,7 +243,7 @@ EXTRA_DIST = \
+
+ @HAVE_GNOME_VFS_TRUE@module_flags = -export_dynamic -avoid-version
+
+-@HAVE_GNOME_VFS_TRUE@modulesconfdir = $(sysconfdir)/gnome-vfs-2.0/modules
++@HAVE_GNOME_VFS_TRUE@modulesconfdir = $(datadir)/examples/@PACKAGE@
+ @HAVE_GNOME_VFS_TRUE@modulesconf_DATA = menu-modules.conf
+
+ @HAVE_GNOME_VFS_TRUE@modulesdir = $(libdir)/gnome-vfs-2.0/modules
diff --git a/sysutils/desktop-file-utils/patches/patch-ab b/sysutils/desktop-file-utils/patches/patch-ab
new file mode 100644
index 00000000000..8abdf394b42
--- /dev/null
+++ b/sysutils/desktop-file-utils/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/09/21 17:03:54 jmmv Exp $
+
+--- Makefile.in.orig 2004-07-22 08:52:29.000000000 +0200
++++ Makefile.in
+@@ -143,7 +143,7 @@ sbindir = @sbindir@
+ sharedstatedir = @sharedstatedir@
+ sysconfdir = @sysconfdir@
+ target_alias = @target_alias@
+-SUBDIRS = src test misc
++SUBDIRS = src test
+ subdir = .
+ ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
+ mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs