diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2018-07-04 11:28:21 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2018-07-04 11:28:21 +0200 |
commit | dbcface2a65f30131529c0782d20ce44f9fbb5fd (patch) | |
tree | 4ca0ee7c2c132cd0b9094c05c2d53abf36d26cb7 /x11-misc | |
parent | games-util/nml: Bump to version 0.4.5 (diff) | |
download | gentoo-dbcface2a65f30131529c0782d20ce44f9fbb5fd.tar.gz gentoo-dbcface2a65f30131529c0782d20ce44f9fbb5fd.tar.bz2 gentoo-dbcface2a65f30131529c0782d20ce44f9fbb5fd.zip |
x11-misc/shared-mime-info: Bump to version 1.10
Package-Manager: Portage-2.3.41, Repoman-2.3.9
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/shared-mime-info/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/shared-mime-info/shared-mime-info-1.10.ebuild | 55 |
2 files changed, 56 insertions, 0 deletions
diff --git a/x11-misc/shared-mime-info/Manifest b/x11-misc/shared-mime-info/Manifest index 5a6321e2d9ff..b680337e32bb 100644 --- a/x11-misc/shared-mime-info/Manifest +++ b/x11-misc/shared-mime-info/Manifest @@ -1 +1,2 @@ +DIST shared-mime-info-1.10.tar.xz 616800 BLAKE2B a63c97aba9184e7926db01968aef2a741ef089a46ab9365eb8dad5a78f585f90171751baeaa3bc62ed0a37eed6e93d60598fbe1e7e63168106fc8aa05f2f5cc8 SHA512 efc2b63cae11e6b0332f8607ba57a885dec68a23ac299bbda3eb6e2c7ed071c7c40dba73e9cf23ab675fcaa86ea3777fa931a9f25000a08ec6a748734c88beda DIST shared-mime-info-1.9.tar.xz 607648 BLAKE2B 6ac4c0dbe3862be78dc4fb5711ca3c8137ae9dee83752b1811991f44bae0ba83036fb10c598c4a098933df8914a67212db97c8bcfefc80febd2ce3e4673846d7 SHA512 b4ab7bfec4cbc827fe0d459040967afb714c073ad27ec9ad46e51ebc49c56b2a85501a3c8c5c199b4cb5359fc46580d6f2dfdb49da1670216d5d2b56758de491 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 new file mode 100644 index 000000000000..7242b28967f5 --- /dev/null +++ b/x11-misc/shared-mime-info/shared-mime-info-1.10.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit xdg-utils + +DESCRIPTION="The Shared MIME-info Database specification" +HOMEPAGE="https://freedesktop.org/wiki/Software/shared-mime-info" +SRC_URI="https://people.freedesktop.org/~hadess/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +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" +IUSE="test" + +RDEPEND=">=dev-libs/glib-2 + dev-libs/libxml2" +DEPEND="${RDEPEND} + dev-util/intltool + sys-devel/gettext + virtual/pkgconfig" + +DOCS=( ChangeLog HACKING NEWS README ) + +src_configure() { + export ac_cv_func_fdatasync=no #487504 + + local myeconfargs=( + $(use_enable test default-make-check) + --disable-update-mimedb + ) + econf "${myeconfargs[@]}" +} + +src_compile() { + # FIXME: 0.91 fails with -j9 every second time like: + # update_mime_database-update-mime-database.o: file not recognized: File truncated + # collect2: ld returned 1 exit status + emake -j1 +} + +src_install() { + default + + # in prefix, install an env.d entry such that prefix patch is used/added + if use prefix; then + echo "XDG_DATA_DIRS=\"${EPREFIX}/usr/share\"" > "${T}"/50mimeinfo || die + doenvd "${T}"/50mimeinfo + fi +} + +pkg_postinst() { + use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share + xdg_mimeinfo_database_update +} |