summaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-04-22 16:56:19 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2013-04-22 16:56:19 +0800
commit4d91bbf09909e314ae0093914269ccb33963fa3f (patch)
tree4fe6ae04b7514d87543c87d5071284963bc1250b /misc
parent30fc839d1eb2af926b99b910ec6e9daf64116a2e (diff)
downloadmarcuscom-ports-4d91bbf09909e314ae0093914269ccb33963fa3f.tar.gz
marcuscom-ports-4d91bbf09909e314ae0093914269ccb33963fa3f.tar.zst
marcuscom-ports-4d91bbf09909e314ae0093914269ccb33963fa3f.zip
Update shared-mime-info to 1.1.
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@18382 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'misc')
-rw-r--r--misc/shared-mime-info/Makefile42
-rw-r--r--misc/shared-mime-info/distinfo2
-rw-r--r--misc/shared-mime-info/files/patch-update-mime-database.c21
-rw-r--r--misc/shared-mime-info/files/pkg-install.in12
-rw-r--r--misc/shared-mime-info/pkg-descr6
-rw-r--r--misc/shared-mime-info/pkg-plist106
6 files changed, 189 insertions, 0 deletions
diff --git a/misc/shared-mime-info/Makefile b/misc/shared-mime-info/Makefile
new file mode 100644
index 000000000..213ec62f8
--- /dev/null
+++ b/misc/shared-mime-info/Makefile
@@ -0,0 +1,42 @@
+# Created by: olgeni@FreeBSD.org
+# $FreeBSD: head/misc/shared-mime-info/Makefile 314767 2013-03-20 21:45:00Z kwm $
+# $MCom$
+
+PORTNAME= shared-mime-info
+PORTVERSION= 1.1
+CATEGORIES= misc gnome
+MASTER_SITES= http://people.freedesktop.org/~hadess/
+
+MAINTAINER= gnome@FreeBSD.org
+COMMENT= MIME types database from the freedesktop.org project
+
+USE_XZ= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-update-mimedb
+USE_GETTEXT= yes
+USE_GMAKE= yes
+USE_PKGCONFIG= build
+USES= pathfix
+USE_GNOME= glib20 libxml2 intltool intlhack
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+#MAKE_JOBS_UNSAFE= yes
+
+MAN1= update-mime-database.1
+
+SUB_FILES= pkg-install
+SUB_LIST= MIMEDIRS="${MIMEDIRS:O:u}"
+
+MIMEDIRS= ${LOCALBASE}/share/mime \
+ ${PREFIX}/share/mime
+MIMESUBDIRS= application audio image inode message model multipart \
+ packages text video x-epoc x-content
+
+post-patch:
+ @${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
+ ${WRKSRC}/update-mime-database.c
+
+post-install:
+ @${SETENV} "PKG_PREFIX=${PREFIX}" ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
+
+.include <bsd.port.mk>
diff --git a/misc/shared-mime-info/distinfo b/misc/shared-mime-info/distinfo
new file mode 100644
index 000000000..492b651d4
--- /dev/null
+++ b/misc/shared-mime-info/distinfo
@@ -0,0 +1,2 @@
+SHA256 (shared-mime-info-1.1.tar.xz) = 184d094b157a9ec2607ad26a1a1837e6e07f3fcbeb38d8b6d412906156f9e06c
+SIZE (shared-mime-info-1.1.tar.xz) = 506660
diff --git a/misc/shared-mime-info/files/patch-update-mime-database.c b/misc/shared-mime-info/files/patch-update-mime-database.c
new file mode 100644
index 000000000..3fb1a99b8
--- /dev/null
+++ b/misc/shared-mime-info/files/patch-update-mime-database.c
@@ -0,0 +1,21 @@
+--- update-mime-database.c.orig 2007-07-02 04:00:13.000000000 -0500
++++ update-mime-database.c 2008-01-28 23:42:30.000000000 -0600
+@@ -445,7 +446,8 @@
+ }
+ }
+
+- xmlFree(lang);
++ if (lang)
++ xmlFree(lang);
+ }
+
+ /* 'node' is a <mime-type> node from a source file, whose type is 'type'.
+@@ -1510,7 +1512,7 @@
+
+ env = getenv("XDG_DATA_DIRS");
+ if (!env)
+- env = "/usr/local/share/"PATH_SEPARATOR"/usr/share/";
++ env = "/usr/local/share/";
+ dirs = g_strsplit(env, PATH_SEPARATOR, 0);
+ g_return_if_fail(dirs != NULL);
+ for (n = 0; dirs[n]; n++)
diff --git a/misc/shared-mime-info/files/pkg-install.in b/misc/shared-mime-info/files/pkg-install.in
new file mode 100644
index 000000000..b2c3db6d3
--- /dev/null
+++ b/misc/shared-mime-info/files/pkg-install.in
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+case $2 in
+POST-INSTALL)
+ for mdir in %%MIMEDIRS%%; do
+ if [ -d ${mdir} ]; then
+ %%PREFIX%%/bin/update-mime-database ${mdir}
+ fi
+ done
+ exit 0
+ ;;
+esac
diff --git a/misc/shared-mime-info/pkg-descr b/misc/shared-mime-info/pkg-descr
new file mode 100644
index 000000000..852d2904d
--- /dev/null
+++ b/misc/shared-mime-info/pkg-descr
@@ -0,0 +1,6 @@
+The freedesktop.org project provides a shared MIME database to avoid
+inconsistencies between desktops. This database has been created by
+converting the existing KDE and GNOME databases to a common format and
+merging them together.
+
+WWW: http://www.freedesktop.org/wiki/Software/shared-mime-info
diff --git a/misc/shared-mime-info/pkg-plist b/misc/shared-mime-info/pkg-plist
new file mode 100644
index 000000000..a8bed26fb
--- /dev/null
+++ b/misc/shared-mime-info/pkg-plist
@@ -0,0 +1,106 @@
+bin/update-mime-database
+libdata/pkgconfig/shared-mime-info.pc
+share/locale/ar/LC_MESSAGES/shared-mime-info.mo
+share/locale/az/LC_MESSAGES/shared-mime-info.mo
+share/locale/be@latin/LC_MESSAGES/shared-mime-info.mo
+share/locale/bg/LC_MESSAGES/shared-mime-info.mo
+share/locale/bg_BG/LC_MESSAGES/shared-mime-info.mo
+share/locale/bn_IN/LC_MESSAGES/shared-mime-info.mo
+share/locale/ca/LC_MESSAGES/shared-mime-info.mo
+share/locale/ca@valencia/LC_MESSAGES/shared-mime-info.mo
+share/locale/cs/LC_MESSAGES/shared-mime-info.mo
+share/locale/cy/LC_MESSAGES/shared-mime-info.mo
+share/locale/da/LC_MESSAGES/shared-mime-info.mo
+share/locale/de/LC_MESSAGES/shared-mime-info.mo
+share/locale/el/LC_MESSAGES/shared-mime-info.mo
+share/locale/en_GB/LC_MESSAGES/shared-mime-info.mo
+share/locale/eo/LC_MESSAGES/shared-mime-info.mo
+share/locale/es/LC_MESSAGES/shared-mime-info.mo
+share/locale/eu/LC_MESSAGES/shared-mime-info.mo
+share/locale/fa/LC_MESSAGES/shared-mime-info.mo
+share/locale/fa_IR/LC_MESSAGES/shared-mime-info.mo
+share/locale/fi/LC_MESSAGES/shared-mime-info.mo
+share/locale/fo/LC_MESSAGES/shared-mime-info.mo
+share/locale/fr/LC_MESSAGES/shared-mime-info.mo
+share/locale/ga/LC_MESSAGES/shared-mime-info.mo
+share/locale/gl/LC_MESSAGES/shared-mime-info.mo
+share/locale/he/LC_MESSAGES/shared-mime-info.mo
+share/locale/hi/LC_MESSAGES/shared-mime-info.mo
+share/locale/hr/LC_MESSAGES/shared-mime-info.mo
+share/locale/hu/LC_MESSAGES/shared-mime-info.mo
+share/locale/ia/LC_MESSAGES/shared-mime-info.mo
+share/locale/id/LC_MESSAGES/shared-mime-info.mo
+share/locale/it/LC_MESSAGES/shared-mime-info.mo
+share/locale/ja/LC_MESSAGES/shared-mime-info.mo
+share/locale/ka/LC_MESSAGES/shared-mime-info.mo
+share/locale/kk/LC_MESSAGES/shared-mime-info.mo
+share/locale/ko/LC_MESSAGES/shared-mime-info.mo
+share/locale/lt/LC_MESSAGES/shared-mime-info.mo
+share/locale/lv/LC_MESSAGES/shared-mime-info.mo
+share/locale/ms/LC_MESSAGES/shared-mime-info.mo
+share/locale/nb/LC_MESSAGES/shared-mime-info.mo
+share/locale/nl/LC_MESSAGES/shared-mime-info.mo
+share/locale/nn/LC_MESSAGES/shared-mime-info.mo
+share/locale/pa/LC_MESSAGES/shared-mime-info.mo
+share/locale/pl/LC_MESSAGES/shared-mime-info.mo
+share/locale/pt/LC_MESSAGES/shared-mime-info.mo
+share/locale/pt_BR/LC_MESSAGES/shared-mime-info.mo
+share/locale/ro/LC_MESSAGES/shared-mime-info.mo
+share/locale/ru/LC_MESSAGES/shared-mime-info.mo
+share/locale/rw/LC_MESSAGES/shared-mime-info.mo
+share/locale/sk/LC_MESSAGES/shared-mime-info.mo
+share/locale/sl/LC_MESSAGES/shared-mime-info.mo
+share/locale/sq/LC_MESSAGES/shared-mime-info.mo
+share/locale/sr/LC_MESSAGES/shared-mime-info.mo
+share/locale/sr@latin/LC_MESSAGES/shared-mime-info.mo
+share/locale/sv/LC_MESSAGES/shared-mime-info.mo
+share/locale/te/LC_MESSAGES/shared-mime-info.mo
+share/locale/tr/LC_MESSAGES/shared-mime-info.mo
+share/locale/uk/LC_MESSAGES/shared-mime-info.mo
+share/locale/vi/LC_MESSAGES/shared-mime-info.mo
+share/locale/wa/LC_MESSAGES/shared-mime-info.mo
+share/locale/zh_CN/LC_MESSAGES/shared-mime-info.mo
+share/locale/zh_HK/LC_MESSAGES/shared-mime-info.mo
+share/locale/zh_TW/LC_MESSAGES/shared-mime-info.mo
+share/mime/packages/freedesktop.org.xml
+@rmtry share/mime/XMLnamespaces
+@rmtry share/mime/aliases
+@rmtry share/mime/generic-icons
+@rmtry share/mime/globs
+@rmtry share/mime/globs2
+@rmtry share/mime/icons
+@rmtry share/mime/magic
+@rmtry share/mime/mime.cache
+@rmtry share/mime/subclasses
+@rmtry share/mime/treemagic
+@rmtry share/mime/types
+@rmtry share/mime/version
+@unexec rm -fr %D/share/mime/x-epoc 2>/dev/null || true
+@unexec rm -fr %D/share/mime/x-content 2>/dev/null || true
+@unexec rm -fr %D/share/mime/video 2>/dev/null || true
+@unexec rm -fr %D/share/mime/text 2>/dev/null || true
+@dirrmtry share/mime/packages
+@unexec rm -fr %D/share/mime/multipart 2>/dev/null || true
+@unexec rm -fr %D/share/mime/model 2>/dev/null || true
+@unexec rm -fr %D/share/mime/message 2>/dev/null || true
+@unexec rm -fr %D/share/mime/inode 2>/dev/null || true
+@unexec rm -fr %D/share/mime/image 2>/dev/null || true
+@unexec rm -fr %D/share/mime/audio 2>/dev/null || true
+@unexec rm -fr %D/share/mime/application 2>/dev/null || true
+@dirrmtry share/mime
+@dirrmtry share/locale/zh_HK/LC_MESSAGES
+@dirrmtry share/locale/zh_HK
+@dirrmtry share/locale/te/LC_MESSAGES
+@dirrmtry share/locale/te
+@dirrmtry share/locale/rw/LC_MESSAGES
+@dirrmtry share/locale/rw
+@dirrmtry share/locale/kk/LC_MESSAGES
+@dirrmtry share/locale/kk
+@dirrmtry share/locale/ia/LC_MESSAGES
+@dirrmtry share/locale/ia
+@dirrmtry share/locale/fo/LC_MESSAGES
+@dirrmtry share/locale/fo
+@dirrmtry share/locale/bg_BG/LC_MESSAGES
+@dirrmtry share/locale/bg_BG
+@dirrmtry share/locale/be@latin/LC_MESSAGES
+@dirrmtry share/locale/be@latin