Gentoo Archives: gentoo-commits

From: Lars Wendler <polynomial-c@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-misc/shared-mime-info/
Date: Wed, 04 Jul 2018 09:28:37
Message-Id: 1530696501.dbcface2a65f30131529c0782d20ce44f9fbb5fd.polynomial-c@gentoo
1 commit: dbcface2a65f30131529c0782d20ce44f9fbb5fd
2 Author: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 4 09:28:21 2018 +0000
4 Commit: Lars Wendler <polynomial-c <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 4 09:28:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dbcface2
7
8 x11-misc/shared-mime-info: Bump to version 1.10
9
10 Package-Manager: Portage-2.3.41, Repoman-2.3.9
11
12 x11-misc/shared-mime-info/Manifest | 1 +
13 .../shared-mime-info/shared-mime-info-1.10.ebuild | 55 ++++++++++++++++++++++
14 2 files changed, 56 insertions(+)
15
16 diff --git a/x11-misc/shared-mime-info/Manifest b/x11-misc/shared-mime-info/Manifest
17 index 5a6321e2d9f..b680337e32b 100644
18 --- a/x11-misc/shared-mime-info/Manifest
19 +++ b/x11-misc/shared-mime-info/Manifest
20 @@ -1 +1,2 @@
21 +DIST shared-mime-info-1.10.tar.xz 616800 BLAKE2B a63c97aba9184e7926db01968aef2a741ef089a46ab9365eb8dad5a78f585f90171751baeaa3bc62ed0a37eed6e93d60598fbe1e7e63168106fc8aa05f2f5cc8 SHA512 efc2b63cae11e6b0332f8607ba57a885dec68a23ac299bbda3eb6e2c7ed071c7c40dba73e9cf23ab675fcaa86ea3777fa931a9f25000a08ec6a748734c88beda
22 DIST shared-mime-info-1.9.tar.xz 607648 BLAKE2B 6ac4c0dbe3862be78dc4fb5711ca3c8137ae9dee83752b1811991f44bae0ba83036fb10c598c4a098933df8914a67212db97c8bcfefc80febd2ce3e4673846d7 SHA512 b4ab7bfec4cbc827fe0d459040967afb714c073ad27ec9ad46e51ebc49c56b2a85501a3c8c5c199b4cb5359fc46580d6f2dfdb49da1670216d5d2b56758de491
23
24 diff --git a/x11-misc/shared-mime-info/shared-mime-info-1.10.ebuild b/x11-misc/shared-mime-info/shared-mime-info-1.10.ebuild
25 new file mode 100644
26 index 00000000000..7242b28967f
27 --- /dev/null
28 +++ b/x11-misc/shared-mime-info/shared-mime-info-1.10.ebuild
29 @@ -0,0 +1,55 @@
30 +# Copyright 1999-2018 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +inherit xdg-utils
35 +
36 +DESCRIPTION="The Shared MIME-info Database specification"
37 +HOMEPAGE="https://freedesktop.org/wiki/Software/shared-mime-info"
38 +SRC_URI="https://people.freedesktop.org/~hadess/${P}.tar.xz"
39 +
40 +LICENSE="GPL-2"
41 +SLOT="0"
42 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
43 +IUSE="test"
44 +
45 +RDEPEND=">=dev-libs/glib-2
46 + dev-libs/libxml2"
47 +DEPEND="${RDEPEND}
48 + dev-util/intltool
49 + sys-devel/gettext
50 + virtual/pkgconfig"
51 +
52 +DOCS=( ChangeLog HACKING NEWS README )
53 +
54 +src_configure() {
55 + export ac_cv_func_fdatasync=no #487504
56 +
57 + local myeconfargs=(
58 + $(use_enable test default-make-check)
59 + --disable-update-mimedb
60 + )
61 + econf "${myeconfargs[@]}"
62 +}
63 +
64 +src_compile() {
65 + # FIXME: 0.91 fails with -j9 every second time like:
66 + # update_mime_database-update-mime-database.o: file not recognized: File truncated
67 + # collect2: ld returned 1 exit status
68 + emake -j1
69 +}
70 +
71 +src_install() {
72 + default
73 +
74 + # in prefix, install an env.d entry such that prefix patch is used/added
75 + if use prefix; then
76 + echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > "${T}"/50mimeinfo || die
77 + doenvd "${T}"/50mimeinfo
78 + fi
79 +}
80 +
81 +pkg_postinst() {
82 + use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share
83 + xdg_mimeinfo_database_update
84 +}