summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-28 15:59:02 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2007-04-28 15:59:02 +0800
commit4cec741b1fd997fe7ab4b7831df7f452cbc7deb9 (patch)
treebe5184a03e2a124cf35f2314c58090bb4a948104
parent16e39cbf38c065fa574769d963b4c33ca53a2d78 (diff)
downloadmarcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar.gz
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar.bz2
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar.lz
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar.xz
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.tar.zst
marcuscom-ports-4cec741b1fd997fe7ab4b7831df7f452cbc7deb9.zip
share/gnome -> share
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8664 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--devel/desktop-file-utils/Makefile52
-rw-r--r--devel/desktop-file-utils/distinfo3
-rw-r--r--devel/desktop-file-utils/files/pkg-deinstall.in21
-rw-r--r--devel/desktop-file-utils/files/pkg-install.in17
-rw-r--r--devel/desktop-file-utils/pkg-descr7
-rw-r--r--devel/desktop-file-utils/pkg-plist4
6 files changed, 104 insertions, 0 deletions
diff --git a/devel/desktop-file-utils/Makefile b/devel/desktop-file-utils/Makefile
new file mode 100644
index 000000000..b07ed774c
--- /dev/null
+++ b/devel/desktop-file-utils/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: desktop-file-utils
+# Date created: 11 Jun 2004
+# Whom: Jean-Yves Lefort <jylefort@brutele.be>
+#
+# $FreeBSD$
+# $MCom$
+#
+
+PORTNAME= desktop-file-utils
+PORTVERSION= 0.12
+PORTREVISION= 1
+CATEGORIES= devel
+MASTER_SITES= http://freedesktop.org/software/${PORTNAME}/releases/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= A couple of command line utilities for working with desktop entries
+
+LIB_DEPENDS= popt:${PORTSDIR}/devel/popt
+
+USE_GNOME= glib20
+WANT_GNOME= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --without-lispdir
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib" EMACS="no"
+
+PKGINSTALL= ${WRKDIR}/pkg-install
+PKGDEINSTALL= ${WRKDIR}/pkg-deinstall
+
+PORT_MIMEDIRS= ${LOCALBASE}/share/applications \
+ ${X11BASE}/share/applications
+
+MIMEDIRS= ${PORT_MIMEDIRS}
+
+RMDIRS= ${PORT_MIMEDIRS}
+
+post-patch:
+ @${SED} -e 's|%%MIMEDIRS%%|${MIMEDIRS}| ;\
+ s|%%RMDIRS%%|${RMDIRS}| ; \
+ s|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
+ < ${FILESDIR}/pkg-deinstall.in > ${PKGDEINSTALL}
+ @${SED} -e 's|%%PORT_MIMEDIRS%%|${PORT_MIMEDIRS}|' \
+ < ${FILESDIR}/pkg-install.in > ${PKGINSTALL}
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/misc/desktop-entry-mode.el \
+ ${PREFIX}/share/emacs/site-lisp/desktop-entry-mode.el
+.if !defined(PACKAGE_BUILDING)
+ @${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+.endif
+
+.include <bsd.port.mk>
diff --git a/devel/desktop-file-utils/distinfo b/devel/desktop-file-utils/distinfo
new file mode 100644
index 000000000..9646bf3c9
--- /dev/null
+++ b/devel/desktop-file-utils/distinfo
@@ -0,0 +1,3 @@
+MD5 (desktop-file-utils-0.12.tar.gz) = 335b91ec70ea1c08f87dfde8c5926e7b
+SHA256 (desktop-file-utils-0.12.tar.gz) = 7db6ade355d56913cecd098a5bec1037bca42e7c7e4b7257c7f7f9f655c5e606
+SIZE (desktop-file-utils-0.12.tar.gz) = 348418
diff --git a/devel/desktop-file-utils/files/pkg-deinstall.in b/devel/desktop-file-utils/files/pkg-deinstall.in
new file mode 100644
index 000000000..eabb3f04f
--- /dev/null
+++ b/devel/desktop-file-utils/files/pkg-deinstall.in
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/devel/desktop-file-utils/files/pkg-deinstall.in,v 1.3 2006/02/26 01:03:37 marcus Exp $
+#
+# Remove leftover mimeinfo.cache files.
+
+if [ "$2" != "POST-DEINSTALL" ]; then
+ exit 0
+fi
+
+for mdir in %%MIMEDIRS%%; do
+ if [ -f ${mdir}/mimeinfo.cache ]; then
+ rm -f ${mdir}/mimeinfo.cache
+ fi
+done
+
+for pmdir in $(echo %%RMDIRS%% | sort -r); do
+ rmdir ${pmdir} 2>/dev/null
+done
+
+exit 0
diff --git a/devel/desktop-file-utils/files/pkg-install.in b/devel/desktop-file-utils/files/pkg-install.in
new file mode 100644
index 000000000..b8c6c8e36
--- /dev/null
+++ b/devel/desktop-file-utils/files/pkg-install.in
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/devel/desktop-file-utils/files/pkg-install.in,v 1.1 2005/01/13 07:09:24 marcus Exp $
+#
+# Initialize the desktop directories and MIME cache.
+
+if [ "$2" != "POST-INSTALL" ]; then
+ exit 0
+fi
+
+for pmdir in %%PORT_MIMEDIRS%%; do
+ mkdir -p ${pmdir}
+done
+
+${PKG_PREFIX}/bin/update-desktop-database -q
+
+exit 0
diff --git a/devel/desktop-file-utils/pkg-descr b/devel/desktop-file-utils/pkg-descr
new file mode 100644
index 000000000..23e223758
--- /dev/null
+++ b/devel/desktop-file-utils/pkg-descr
@@ -0,0 +1,7 @@
+desktop-file-utils contains a couple of command line utilities for
+working with desktop entries, aswell as a menu module for GnomeVFS.
+
+WWW: http://www.freedesktop.org/Software/desktop-file-utils
+
+- Jean-Yves Lefort
+jylefort@brutele.be
diff --git a/devel/desktop-file-utils/pkg-plist b/devel/desktop-file-utils/pkg-plist
new file mode 100644
index 000000000..18d19eb05
--- /dev/null
+++ b/devel/desktop-file-utils/pkg-plist
@@ -0,0 +1,4 @@
+bin/desktop-file-install
+bin/desktop-file-validate
+bin/update-desktop-database
+share/emacs/site-lisp/desktop-entry-mode.el