1 |
commit: 2a834040f130a2a0357054571d8cc8cf752a5d74 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jan 1 03:26:57 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 1 03:26:57 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2a834040 |
7 |
|
8 |
x11-misc/shared-mime-info: bump to 2.1 |
9 |
|
10 |
Package-Manager: Portage-3.0.9, Repoman-3.0.2 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
x11-misc/shared-mime-info/Manifest | 1 + |
14 |
.../shared-mime-info/shared-mime-info-2.1.ebuild | 48 ++++++++++++++++++++++ |
15 |
2 files changed, 49 insertions(+) |
16 |
|
17 |
diff --git a/x11-misc/shared-mime-info/Manifest b/x11-misc/shared-mime-info/Manifest |
18 |
index 1592c665785..7655cafc3f8 100644 |
19 |
--- a/x11-misc/shared-mime-info/Manifest |
20 |
+++ b/x11-misc/shared-mime-info/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST shared-mime-info-1.10.tar.xz 616800 BLAKE2B a63c97aba9184e7926db01968aef2a741ef089a46ab9365eb8dad5a78f585f90171751baeaa3bc62ed0a37eed6e93d60598fbe1e7e63168106fc8aa05f2f5cc8 SHA512 efc2b63cae11e6b0332f8607ba57a885dec68a23ac299bbda3eb6e2c7ed071c7c40dba73e9cf23ab675fcaa86ea3777fa931a9f25000a08ec6a748734c88beda |
23 |
DIST shared-mime-info-1.15.tar.xz 772708 BLAKE2B 763c7b5f1128882cb8a027ee7fb35daa5d141ccab07ba7aeae5139b94c1ed1c5702741b30c8803b7796bb6eb66fa02fde41d14e078b1960003bd3ba5e0de4e1a SHA512 3666aa500dfa6a28bd0524400c47fa16d90ae61f8c80f350fd895972319ec2f511618b8a7fa3cbde621edee46fde19e4506bda62f0bd2d0ede1b08d7bdb9aef2 |
24 |
DIST shared-mime-info-2.0.tar.xz 5015272 BLAKE2B 8bac4790177f8b72a8c74799d7abca360ad11a922635aa1207eead78674192b300cf0096f5943a65aa3991c8403b145adb24f5e7746db7ea6ceeab64978608c3 SHA512 f4a1ea9a408ffcff325e57585dec5862405e9fd6c79e444048039f3061676501c40168cecf8935d002644a702a21f08f0f7c680ef6a65fdf188e0d892f3cc085 |
25 |
+DIST shared-mime-info-2.1.tar.xz 5202496 BLAKE2B e8dfc7efe78feb5a38c8115a2b332f46c3dac2f89dffad0834fa7b77560b3ef528e779ab9e42822288f85d8c434fd590859db682f3f99494aa6a4387c985e912 SHA512 87e308281e83c4cf889594f7c2e8dcb4d0d0d3910124c3816fdb886ba7d6113b2581711adcb17032b47f9b8d8b7001fab58daa52b7da7c0ef87915e341d6f1b0 |
26 |
|
27 |
diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.1.ebuild b/x11-misc/shared-mime-info/shared-mime-info-2.1.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..bd0c3287878 |
30 |
--- /dev/null |
31 |
+++ b/x11-misc/shared-mime-info/shared-mime-info-2.1.ebuild |
32 |
@@ -0,0 +1,48 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=7 |
37 |
+ |
38 |
+HASH=0ee50652091363ab0d17e335e5e74fbe # don't forget to update on version bumps |
39 |
+inherit meson xdg-utils |
40 |
+ |
41 |
+DESCRIPTION="The Shared MIME-info Database specification" |
42 |
+HOMEPAGE="https://gitlab.freedesktop.org/xdg/shared-mime-info" |
43 |
+SRC_URI="https://gitlab.freedesktop.org/xdg/${PN}/uploads/${HASH}/${P}.tar.xz" |
44 |
+ |
45 |
+LICENSE="GPL-2" |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
48 |
+ |
49 |
+# requires installed xdgmime binary |
50 |
+RESTRICT="test" |
51 |
+ |
52 |
+BDEPEND=" |
53 |
+ app-text/docbook-xml-dtd:4.1.2 |
54 |
+ app-text/xmlto |
55 |
+ dev-util/itstool |
56 |
+ sys-devel/gettext |
57 |
+ virtual/pkgconfig |
58 |
+" |
59 |
+RDEPEND=" |
60 |
+ dev-libs/glib:2 |
61 |
+ dev-libs/libxml2 |
62 |
+" |
63 |
+DEPEND="${RDEPEND}" |
64 |
+ |
65 |
+DOCS=( HACKING.md NEWS README.md ) |
66 |
+ |
67 |
+src_install() { |
68 |
+ meson_src_install |
69 |
+ |
70 |
+ # in prefix, install an env.d entry such that prefix patch is used/added |
71 |
+ if use prefix; then |
72 |
+ echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > "${T}"/50mimeinfo || die |
73 |
+ doenvd "${T}"/50mimeinfo |
74 |
+ fi |
75 |
+} |
76 |
+ |
77 |
+pkg_postinst() { |
78 |
+ use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share |
79 |
+ xdg_mimeinfo_database_update |
80 |
+} |