diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-18 00:13:53 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2012-01-18 00:13:53 +0800 |
commit | 37bc36bbfcf173a2b7c6143b404dec4b6779de13 (patch) | |
tree | 647819c31f2f6327a96ab61c48dd881320f10cfd /devel/desktop-file-utils | |
parent | ab06ef15ac1539eee43b7ca69a093a0edcf01903 (diff) | |
download | marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar.gz marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar.bz2 marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar.lz marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar.xz marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.tar.zst marcuscom-ports-37bc36bbfcf173a2b7c6143b404dec4b6779de13.zip |
- Update to 0.19
- Depend on pkgconfig
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@16653 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel/desktop-file-utils')
-rw-r--r-- | devel/desktop-file-utils/Makefile | 55 | ||||
-rw-r--r-- | devel/desktop-file-utils/distinfo | 2 | ||||
-rw-r--r-- | devel/desktop-file-utils/files/pkg-deinstall.in | 21 | ||||
-rw-r--r-- | devel/desktop-file-utils/files/pkg-install.in | 17 | ||||
-rw-r--r-- | devel/desktop-file-utils/pkg-descr | 4 | ||||
-rw-r--r-- | devel/desktop-file-utils/pkg-plist | 5 |
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..56f969261 --- /dev/null +++ b/devel/desktop-file-utils/Makefile @@ -0,0 +1,55 @@ +# 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.19 +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 + +USE_GNOME= glib20 pkgconfig +USE_XZ= yes +USE_GETTEXT= yes +USE_GMAKE= yes +WANT_GNOME= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --without-lispdir +CONFIGURE_ENV= EMACS="no" +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib + +MAN1= desktop-file-install.1 desktop-file-validate.1 \ + update-desktop-database.1 + +PKGINSTALL= ${WRKDIR}/pkg-install +PKGDEINSTALL= ${WRKDIR}/pkg-deinstall + +PORT_MIMEDIRS= ${LOCALBASE}/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..141f9751e --- /dev/null +++ b/devel/desktop-file-utils/distinfo @@ -0,0 +1,2 @@ +SHA256 (desktop-file-utils-0.19.tar.xz) = 1f805c44fc6943d2d9d2acfe2aa4c6edc1fa17b1807e4e950c8ce50111ddc81b +SIZE (desktop-file-utils-0.19.tar.xz) = 99808 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..dc9fbc711 --- /dev/null +++ b/devel/desktop-file-utils/files/pkg-deinstall.in @@ -0,0 +1,21 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# 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..bafaa46a1 --- /dev/null +++ b/devel/desktop-file-utils/files/pkg-install.in @@ -0,0 +1,17 @@ +#!/bin/sh +# +# $FreeBSD$ +# +# 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..5ea717bb3 --- /dev/null +++ b/devel/desktop-file-utils/pkg-descr @@ -0,0 +1,4 @@ +desktop-file-utils contains a couple of command line utilities for +working with desktop entries, as well as a menu module for GnomeVFS. + +WWW: http://www.freedesktop.org/Software/desktop-file-utils diff --git a/devel/desktop-file-utils/pkg-plist b/devel/desktop-file-utils/pkg-plist new file mode 100644 index 000000000..ea1ca1207 --- /dev/null +++ b/devel/desktop-file-utils/pkg-plist @@ -0,0 +1,5 @@ +bin/desktop-file-edit +bin/desktop-file-install +bin/desktop-file-validate +bin/update-desktop-database +share/emacs/site-lisp/desktop-entry-mode.el |