1 |
commit: 82f9268b82645f711f349f656c4e2b5520bdbc5e |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed May 1 15:51:04 2019 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed May 1 15:51:04 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=82f9268b |
7 |
|
8 |
x11-misc/shared-mime-info: enable LFS |
9 |
|
10 |
Closes: https://bugs.gentoo.org/684884 |
11 |
Package-Manager: Portage-2.3.62_p4, Repoman-2.3.12_p87 |
12 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
13 |
|
14 |
.../shared-mime-info-1.10-r1.ebuild | 58 ++++++++++++++++++++++ |
15 |
1 file changed, 58 insertions(+) |
16 |
|
17 |
diff --git a/x11-misc/shared-mime-info/shared-mime-info-1.10-r1.ebuild b/x11-misc/shared-mime-info/shared-mime-info-1.10-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..cbbfc1e3752 |
20 |
--- /dev/null |
21 |
+++ b/x11-misc/shared-mime-info/shared-mime-info-1.10-r1.ebuild |
22 |
@@ -0,0 +1,58 @@ |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=6 |
27 |
+inherit flag-o-matic xdg-utils |
28 |
+ |
29 |
+DESCRIPTION="The Shared MIME-info Database specification" |
30 |
+HOMEPAGE="https://freedesktop.org/wiki/Software/shared-mime-info" |
31 |
+SRC_URI="https://people.freedesktop.org/~hadess/${P}.tar.xz" |
32 |
+ |
33 |
+LICENSE="GPL-2" |
34 |
+SLOT="0" |
35 |
+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 ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
36 |
+IUSE="test" |
37 |
+ |
38 |
+RDEPEND=">=dev-libs/glib-2 |
39 |
+ dev-libs/libxml2" |
40 |
+DEPEND="${RDEPEND} |
41 |
+ dev-util/intltool |
42 |
+ sys-devel/gettext |
43 |
+ virtual/pkgconfig" |
44 |
+ |
45 |
+DOCS=( ChangeLog HACKING NEWS README ) |
46 |
+ |
47 |
+src_configure() { |
48 |
+ export ac_cv_func_fdatasync=no #487504 |
49 |
+ |
50 |
+ # https://bugs.gentoo.org/684884 |
51 |
+ append-lfs-flags |
52 |
+ |
53 |
+ local myeconfargs=( |
54 |
+ $(use_enable test default-make-check) |
55 |
+ --disable-update-mimedb |
56 |
+ ) |
57 |
+ econf "${myeconfargs[@]}" |
58 |
+} |
59 |
+ |
60 |
+src_compile() { |
61 |
+ # FIXME: 0.91 fails with -j9 every second time like: |
62 |
+ # update_mime_database-update-mime-database.o: file not recognized: File truncated |
63 |
+ # collect2: ld returned 1 exit status |
64 |
+ emake -j1 |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
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 |
+} |