Skip to content

Commit 0878172

Browse files
committed
shared-mime-info: update to 2.2.
shared-mime-info 2.2 (2022-03-27) * model/3mf: new * Match shared libraries with version suffix * model/obj: add mtllib and Blender comment based magic * model/mtl: add Blender comment magic, increase newmtl range * model/obj, model/mtl: new types * Add Electron Archive Format type application/x-asar * text/x-qml: Lower match priority to avoid conflicts with Python * Move '*.blend' to top of Blender glob list * Adding SPARQL media types * application/zip: Add `*.zipx` glob and test fixture * Added DSD mime type * Differentiate comic book archives * FITS: Add missing `application/fits` and legacy globs * Add Godot engine files * Add FlashForge "xgcode" mime-type * text/x-objc++src: new type * image/heif: test .hif extension too * image/hif: add *.hif glob * image/heif: add another test case * image/heif: add magics * Add a build-tools option to allow installing only the mime data * Add compressed SVG glob pattern `*.svg.gz` * Add Apple Wallet pass type application/vnd.apple.pkpass * migrate from custom itstool to builtin msgfmt for creating translated XML * Make the remaining plain text types subclasses of text/plain * audio/mobile-xmf: separate from audio/x-xmf * Adding ZIM file * Make text/x-mrml a subclass of application/xml * image/avif: move acronym and expansion to separate fields from comment * freedesktop_generate.sh: Don't hardcode ninja * Add text/x-mpl2 * application/x-apple-systemprofiler+xml: require _SPCommandLineArguments in plist * image/jpeg: add test case with embedded property list XML * audio/vnd.dts.hd: include parent type magic in magic match * model/gltf+json: new type * model/gltf-binary: new type * application/x-object: add *.mod and a test case * application/x-mod: add some ProTracker magics and a test case * image/jxl: include test files in test list * tests: add trailing linefeed to mime-detection list * Make application/x-mswinurl a subclass of text/plain * Change description for *.desktop files to "desktop entry" * application/x-x509-ca-cert: add magics and test cases * application/pkix-cert: add BEGIN/END X509 CERTIFICATE magic * application/pkix-crl: add magic and test case * application/pkix-cert: add magic and test case * image/jxl: new type * Added .sc filename extension for Scala source code, as it is occasionally used * application/schema+json: new type * Add text/x-crystal * application/x-krita: remove stray period from comment * adding org-mode * Add Elixir source code mime type * Add two new offsets for .kra and .krz * text/x-python3: add *.pyi glob (Python stub files) * image/x-canon-cr3: new * image/x-xpixmap: make XPM3 magic more specific * image/x-xpixmap: add XPM2 magic * application/x-troff-man: add *.[1-9] glob * application/toml: new type * Lower priority of "BEGIN {" for perl, awk uses that too * Add Smacker video type video/vnd.radgamettools.smacker * Clarify database license * meson: make xmlto optional, build spec only if found * application/x-7z-compressed: add *.7z.001 glob * Add Bink video type video/vnd.radgamettools.bink * image/x-nikon-nrw: add test case * image/x-nikon-nrw: new type * application/x-vhdx-disk: improve acronym and its expansion * application/ovf: new * application/x-qed-disk: new * application/x-vdi-disk: new * application/x-vmdk-disk: new * application/x-vhd-disk, /x-vhdx-disk: new * application/vnd.apple.numbers, .pages: add older magics and test cases * Add text/x-dart * application/vnd.apple.numbers, /vnd.apple.pages: new types * xdgmime: configure as submodule shared-mime-info 2.1 (2020-12-31) * New maintainers: David Faure and Ville Skyttä * Adapt to xdgmime behaviour change: in case of multiple glob matches, and the magic match is unrelated to all of them, ignore the magic and pick one of the glob matches. xdgmime was actually deviating from the spec on this. (#138) * Improve text/vnd.trolltech.linguist magic to reduce false positives for MPEG TS files (#10) * audio/mpeg: add layer 2, 2.5, and 1 protected magics (#46) * Add many aliases for image/x-tga * audio/x-mod: improve magic for 669 Composer files (#144) * Add mime-type image/ktx2 (Khronos image texture format version 2) * application/oxps: differentiate from /vnd.ms-xpsdocument * Make image/g3fax the canonical name for image/fax-g3 * Make text/vnd.trolltech.linguist the canonical name for text/vnd.qt.linguist * Make application/vnd.smaf the canonical name for application/x-smaf * Make application/vnd.apple.keynote the canonical name for application/x-iwork-keynote-sffkey * Add mime-type image/astc (Adaptive Scalable Texture Compression files) * Add mime-type for SageMath script files (*.sage) * Add mime-type for Kaitai Struct * Remove application/x-dc-rom * Add mime-type for MAME compressed hard disk image (application/x-mame-chd) * Add mime-types application/nintendo-3ds-executable, application/x-nintendo-3ds-rom * Add mime-types application/x-dreamcast-rom, application/x-gd-rom-cue, application/x-discjuggler-cd-image * Add mime-type application/x-compressed-iso (*.cso) * Remove image/avif-sequence * Fix application/x-sharedlib vs application/x-executable confusion for PIE executables (#11) shared-mime-info 2.0 (2020-06-05) * 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 shared-mime-info 1.15 (2019-10-30) * Add Kindle 8 eBook format * Fix some HTML files being detected as XML shared-mime-info 1.14 (2019-09-20) * Add mime-type for QCOW images * Fix matching SVG files in some circumstances (again) shared-mime-info 1.13.1 (2019-09-11) * Fix matching SVG files in some circumstances shared-mime-info 1.13 (2019-09-11) * Add code of conduct document * Use itstool and gettext to generate translations * Add content-tree type for OSTree USB repositories * Add match for MPEG-4 v1 videos * Adjust a lot of user readable mime-type descriptions * Fix WOFF/WOFF2 mime-types * Prefer text/html to XHTML for *.html files * Better magic for text/html files * Fix SVG magic for files embedded in HTML * Add *.sgd as a glob for Mega Drive ROMs Specification: - Mention that sub-class-of can be aliases Tools: - Enable Large File Support in update-mime-database Test suite: - Make test suite failures fatal - Add test for duplicate mime-types - Fix WarpScript test - Generate the specification in the CI, to avoid it becoming syntactically invalid shared-mime-info 1.12 (2019-01-17) * Fix build from tarball shared-mime-info 1.11 (2019-01-17) * Add mime-type for reStructuredText * Add mime-type for Groovy scripting language * Add mime-type for Gradle build tool * Add mime-type for Maven * Add mime-type for WarpScript source code * Add mime-type for zstd and tar.zst archives * Change the preferred suffix for image/jpeg from .jpeg to .jpg * Assign *.html to XHTML pages * Better detection for *.key files (Apple Keynote vs. GPG keys) * Give weight to one of the appimage patterns Tools: - Link to GitLab for contributions and bug reports - Loads of memory and file descriptor leak fixes Spec: - Clarify the availability of C character escape support
1 parent f6365e4 commit 0878172

6 files changed

Lines changed: 30 additions & 55 deletions

File tree

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,28 @@
1-
# $NetBSD: Makefile,v 1.74 2022/04/18 19:10:45 adam Exp $
1+
# $NetBSD: Makefile,v 1.75 2022/10/13 11:08:43 wiz Exp $
22

3-
DISTNAME= shared-mime-info-1.10
4-
PKGREVISION= 6
3+
DISTNAME= shared-mime-info-2.2
54
CATEGORIES= databases
6-
MASTER_SITES= http://people.freedesktop.org/~hadess/
7-
EXTRACT_SUFX= .tar.xz
5+
MASTER_SITES= https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/${PKGVERSION_NOREV}/
6+
EXTRACT_SUFX= .tar.bz2
87

98
MAINTAINER= pkgsrc-users@NetBSD.org
109
HOMEPAGE= https://www.freedesktop.org/wiki/Software/shared-mime-info
1110
COMMENT= Core database of common types
1211
LICENSE= gnu-gpl-v2
1312

14-
GNU_CONFIGURE= YES
15-
USE_LANGUAGES+= c99
16-
USE_LIBTOOL= YES
17-
USE_PKGLOCALEDIR= YES
18-
USE_TOOLS+= gmake intltool msgfmt pkg-config xgettext
19-
MAKE_JOBS_SAFE= no
20-
21-
CONFIGURE_ARGS+= --disable-update-mimedb
13+
TOOL_DEPENDS+= gettext-tools>=0.19.8:../../devel/gettext-tools
14+
TOOL_DEPENDS+= xmlto>=0:../../textproc/xmlto
2215

23-
# patched in Makefile.in
24-
CHECK_PORTABILITY_SKIP+= Makefile.am
16+
USE_LANGUAGES+= c99
17+
USE_TOOLS+= bash:test intltool msgfmt pkg-config xgettext
2518

2619
.include "../../mk/bsd.prefs.mk"
2720

21+
# msgfmt: unknown option --xml
22+
.if ${OPSYS} == "NetBSD"
23+
TOOLS_PLATFORM.msgfmt=
24+
.endif
25+
2826
CPPFLAGS+= -DPREFIX="\"${PREFIX}\""
2927

3028
FILES_SUBST+= MIMEDB_PATH="${PREFIX}/share/mime"
@@ -33,7 +31,10 @@ FILES_SUBST+= UPDATE_MIMEDB="${PREFIX}/bin/update-mime-database"
3331
PRINT_PLIST_AWK+= /^share\/mime\/packages/ { print; next; }
3432
PRINT_PLIST_AWK+= /^share\/mime/ { next; }
3533

34+
# for tests
35+
.include "../../lang/python/tool.mk"
3636
.include "../../devel/gettext-lib/buildlink3.mk"
3737
.include "../../devel/glib2/buildlink3.mk"
3838
.include "../../textproc/libxml2/buildlink3.mk"
39+
.include "../../devel/meson/build.mk"
3940
.include "../../mk/bsd.pkg.mk"

databases/shared-mime-info/PLIST

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1-
@comment $NetBSD: PLIST,v 1.24 2018/08/16 12:45:23 wiz Exp $
1+
@comment $NetBSD: PLIST,v 1.25 2022/10/13 11:08:43 wiz Exp $
22
bin/update-mime-database
33
man/man1/update-mime-database.1
4+
share/gettext/its/shared-mime-info.its
5+
share/gettext/its/shared-mime-info.loc
6+
share/locale/af/LC_MESSAGES/shared-mime-info.mo
47
share/locale/ar/LC_MESSAGES/shared-mime-info.mo
58
share/locale/as/LC_MESSAGES/shared-mime-info.mo
69
share/locale/ast/LC_MESSAGES/shared-mime-info.mo
@@ -41,6 +44,7 @@ share/locale/ka/LC_MESSAGES/shared-mime-info.mo
4144
share/locale/kk/LC_MESSAGES/shared-mime-info.mo
4245
share/locale/kn/LC_MESSAGES/shared-mime-info.mo
4346
share/locale/ko/LC_MESSAGES/shared-mime-info.mo
47+
share/locale/ky/LC_MESSAGES/shared-mime-info.mo
4448
share/locale/lt/LC_MESSAGES/shared-mime-info.mo
4549
share/locale/lv/LC_MESSAGES/shared-mime-info.mo
4650
share/locale/ml/LC_MESSAGES/shared-mime-info.mo
Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
1-
$NetBSD: distinfo,v 1.38 2021/10/26 10:10:04 nia Exp $
1+
$NetBSD: distinfo,v 1.39 2022/10/13 11:08:43 wiz Exp $
22

3-
BLAKE2s (shared-mime-info-1.10.tar.xz) = ef40f02b9fc7705abdc44220b262474e6c1abd97365eb3f329e18ad1c57332e3
4-
SHA512 (shared-mime-info-1.10.tar.xz) = efc2b63cae11e6b0332f8607ba57a885dec68a23ac299bbda3eb6e2c7ed071c7c40dba73e9cf23ab675fcaa86ea3777fa931a9f25000a08ec6a748734c88beda
5-
Size (shared-mime-info-1.10.tar.xz) = 616800 bytes
6-
SHA1 (patch-Makefile.am) = 73de6b316926b29103dc9152401563d01c152b0a
7-
SHA1 (patch-Makefile.in) = d7237ae74b408332cbf9e3d50a08118bcbf062b7
8-
SHA1 (patch-aa) = 2e55e6051412b06b2661f88673cb14154eef2c8a
3+
BLAKE2s (shared-mime-info-2.2.tar.bz2) = b9c873ddc28ef0760605e5a2a0e088660ed23841df6fa41e84e3d96c701698d4
4+
SHA512 (shared-mime-info-2.2.tar.bz2) = e32e78435b6bbcdd5abcd1b7708a715d14310f920742e762ce1d4a4f27c1215dbd6493f816d3bf8cf32cf8635a4cee031cf7ea7bad56c4034302273f25da1065
5+
Size (shared-mime-info-2.2.tar.bz2) = 6428871 bytes
6+
SHA1 (patch-src_update-mime-database.c) = c4477e3f1e1a71931be67df2556cdcf9357acb95

databases/shared-mime-info/patches/patch-Makefile.am

Lines changed: 0 additions & 13 deletions
This file was deleted.

databases/shared-mime-info/patches/patch-Makefile.in

Lines changed: 0 additions & 15 deletions
This file was deleted.

databases/shared-mime-info/patches/patch-aa renamed to databases/shared-mime-info/patches/patch-src_update-mime-database.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
$NetBSD: patch-aa,v 1.8 2014/04/25 08:53:21 wiz Exp $
1+
$NetBSD: patch-src_update-mime-database.c,v 1.1 2022/10/13 11:08:43 wiz Exp $
22

33
Adapt paths for pkgsrc.
44

5-
--- update-mime-database.c.orig 2013-07-09 22:10:53.000000000 +0000
6-
+++ update-mime-database.c
7-
@@ -2135,7 +2135,7 @@ static void check_in_path_xdg_data(const
5+
--- src/update-mime-database.c.orig 2022-03-27 10:19:00.000000000 +0000
6+
+++ src/update-mime-database.c
7+
@@ -2174,7 +2174,7 @@ static void check_in_path_xdg_data(const
88

99
env = getenv("XDG_DATA_DIRS");
1010
if (!env)

0 commit comments

Comments
 (0)