misc/shared-mime-info: update to 2.0
shared-mime-info 2.0 (2020-06-05) [1]: * Port build system to meson, and ship test suite with tarball * Install ITS file to allow gettext to translate mime-type descriptions * Add BPS and IPS patch formats * Lower weight for "use strict" and similar in the perl mimetype * Add new magic for Sega Mega Drive ROMs * Add Common Lisp mime-type * Rename text/x-tcl to text/tcl * Add text/vbscript * Add PySpread spreadsheet mime-types * Add Kotlin source mime-type * Add AVIF image mime-type * Split versions of the Audible audio mime types * Add *.spx glob for audio/x-speex+ogg * Add Apple System Profiler XML mime-type [1] https://gitlab.freedesktop.org/xdg/shared-mime-info/-/releases PR: 248558 Reported by: jbeich
This commit is contained in:
parent
3385c6413c
commit
8418820a5c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=546053
@ -2,10 +2,8 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= shared-mime-info
|
||||
PORTVERSION= 1.10
|
||||
PORTREVISION= 2
|
||||
DISTVERSION= 2.0
|
||||
CATEGORIES= misc gnome
|
||||
MASTER_SITES= https://people.freedesktop.org/~hadess/
|
||||
|
||||
MAINTAINER= desktop@FreeBSD.org
|
||||
COMMENT= MIME types database from the freedesktop.org project
|
||||
@ -13,11 +11,21 @@ COMMENT= MIME types database from the freedesktop.org project
|
||||
LICENSE= GPLv2
|
||||
LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ARGS= --disable-update-mimedb
|
||||
USES= pathfix pkgconfig gettext gmake gnome localbase tar:xz
|
||||
BUILD_DEPENDS= gmake:devel/gmake \
|
||||
itstool:textproc/itstool \
|
||||
xmlto:textproc/xmlto
|
||||
|
||||
USES= gettext gnome localbase meson pathfix pkgconfig shebangfix tar:xz
|
||||
CONFIGURE_ARGS= -Dupdate-mimedb=false \
|
||||
-Dxdgmime-path=${WRKSRC}/src/xdgmime
|
||||
USE_GNOME= glib20 libxml2 intltool
|
||||
MAKE_JOBS_UNSAFE= yes
|
||||
USE_GITLAB= YES
|
||||
GL_SITE= https://gitlab.freedesktop.org/
|
||||
GL_ACCOUNT= xdg
|
||||
GL_PROJECT= shared-mime-info
|
||||
GL_COMMIT= ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1
|
||||
GL_TUPLE= xdg:xdgmime:6663a2288d11b37bc07f5a01b4b85dcd377787e1:xdgmime/src/xdgmime
|
||||
SHEBANG_FILES= ${WRKSRC}/data/freedesktop_generate.sh
|
||||
|
||||
SUB_FILES= pkg-install
|
||||
SUB_LIST= MIMEDIRS="${MIMEDIRS:O:u}"
|
||||
@ -27,13 +35,12 @@ MIMEDIRS= ${LOCALBASE}/share/mime \
|
||||
MIMESUBDIRS= application audio image inode message model multipart \
|
||||
packages text video x-epoc x-content
|
||||
|
||||
OPTIONS_DEFINE= NLS
|
||||
OPTIONS_SUB= yes
|
||||
|
||||
NLS_CONFIGURE_ENABLE= nls
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|g' \
|
||||
${WRKSRC}/update-mime-database.c
|
||||
${REINPLACE_CMD} 's|/usr/local|${LOCALBASE}|g' \
|
||||
${WRKSRC}/src/xdgmime/src/xdgmime.c \
|
||||
${WRKSRC}/src/update-mime-database.c
|
||||
|
||||
pre-configure:
|
||||
cd ${WRKSRC}/src/xdgmime/src && ${SETENV} ${MAKE_ENV} ${GMAKE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,3 +1,5 @@
|
||||
TIMESTAMP = 1550914541
|
||||
SHA256 (shared-mime-info-1.10.tar.xz) = c625a83b4838befc8cafcd54e3619946515d9e44d63d61c4adf7f5513ddfbebf
|
||||
SIZE (shared-mime-info-1.10.tar.xz) = 616800
|
||||
TIMESTAMP = 1596996473
|
||||
SHA256 (xdg-shared-mime-info-ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1_GL0.tar.gz) = b4bf90f61c6f5bb4d8bd2bd19026bc6f0fae1841ebe9d94f0b8cd27afa7d63d2
|
||||
SIZE (xdg-shared-mime-info-ef58b2b2f7ad4070171c6e45e3b3764daa3ff2c1_GL0.tar.gz) = 6515738
|
||||
SHA256 (xdg-xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1_GL0.tar.gz) = 2f4f47c1183b8a532e3ea8baeb8f6abec5b684ef59c4838cd31bfa39059b992e
|
||||
SIZE (xdg-xdgmime-6663a2288d11b37bc07f5a01b4b85dcd377787e1_GL0.tar.gz) = 32265
|
||||
|
@ -0,0 +1,9 @@
|
||||
--- src/xdgmime/src/Makefile.orig 2020-08-24 07:25:48 UTC
|
||||
+++ src/xdgmime/src/Makefile
|
||||
@@ -1,5 +1,5 @@
|
||||
|
||||
-CFLAGS=-Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP
|
||||
+CFLAGS+=-Wall -Wmissing-prototypes -Wno-sign-compare -g -DXDG_PREFIX=xdg_test -DHAVE_MMAP
|
||||
|
||||
all: test-mime test-mime-data print-mime-data
|
||||
|
@ -1,21 +0,0 @@
|
||||
--- 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++)
|
@ -1,79 +1,83 @@
|
||||
bin/update-mime-database
|
||||
libdata/pkgconfig/shared-mime-info.pc
|
||||
man/man1/update-mime-database.1.gz
|
||||
%%NLS%%share/locale/ar/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/as/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ast/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/az/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/be/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/be@latin/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/bg/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/bn_IN/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ca/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ca@valencia/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/cs/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/cy/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/da/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/de/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/el/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/en_GB/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/eo/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/es/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/et/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/eu/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/fa/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/fi/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/fo/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/fr/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/fur/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ga/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/gl/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/gu/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/he/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/hi/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/hr/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/hu/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ia/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/id/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/it/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ja/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ka/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/kk/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/kn/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ko/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/lt/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/lv/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ml/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/mr/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ms/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/nb/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/nl/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/nn/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/oc/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/or/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/pa/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/pl/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/pt/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/pt_BR/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ro/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ru/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/rw/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sk/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sl/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sq/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sr/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sr@latin/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/sv/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/ta/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/te/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/th/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/tr/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/uk/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/vi/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/wa/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/zh_CN/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/zh_HK/LC_MESSAGES/shared-mime-info.mo
|
||||
%%NLS%%share/locale/zh_TW/LC_MESSAGES/shared-mime-info.mo
|
||||
share/gettext/its/shared-mime-info.its
|
||||
share/gettext/its/shared-mime-info.loc
|
||||
share/locale/af/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/ar/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/as/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/ast/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/az/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/be/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/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/et/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/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/fur/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/gu/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/kn/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/ko/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/ky/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/ml/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/mr/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/oc/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/or/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/ta/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/te/LC_MESSAGES/shared-mime-info.mo
|
||||
share/locale/th/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
|
||||
|
Loading…
Reference in New Issue
Block a user