From 04c764254e9ced418fae2f1e2bb7fc0efe399254 Mon Sep 17 00:00:00 2001 From: Lars Wendler Date: Mon, 15 Jun 2020 21:48:49 +0200 Subject: x11-misc/shared-mime-info: Revbump to fix install path of pkgconfig file Bug: https://bugs.gentoo.org/728404 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Lars Wendler --- .../shared-mime-info-2.0-r1.ebuild | 47 ------------------- .../shared-mime-info-2.0-r2.ebuild | 52 ++++++++++++++++++++++ 2 files changed, 52 insertions(+), 47 deletions(-) delete mode 100644 x11-misc/shared-mime-info/shared-mime-info-2.0-r1.ebuild create mode 100644 x11-misc/shared-mime-info/shared-mime-info-2.0-r2.ebuild (limited to 'x11-misc/shared-mime-info') diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.0-r1.ebuild b/x11-misc/shared-mime-info/shared-mime-info-2.0-r1.ebuild deleted file mode 100644 index f58d431e714f..000000000000 --- a/x11-misc/shared-mime-info/shared-mime-info-2.0-r1.ebuild +++ /dev/null @@ -1,47 +0,0 @@ -# Copyright 1999-2020 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -HASH=0440063a2e6823a4b1a6fb2f2af8350f # don't forget to update on version bumps -inherit meson xdg-utils - -DESCRIPTION="The Shared MIME-info Database specification" -HOMEPAGE="https://gitlab.freedesktop.org/xdg/shared-mime-info" -SRC_URI="https://gitlab.freedesktop.org/xdg/${PN}/uploads/${HASH}/${P}.tar.xz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" - -# requires installed xdgmime binary -RESTRICT="test" - -BDEPEND=" - app-text/xmlto - dev-util/itstool - sys-devel/gettext - virtual/pkgconfig -" -RDEPEND=" - dev-libs/glib:2 - dev-libs/libxml2 -" -DEPEND="${RDEPEND}" - -DOCS=( HACKING.md NEWS README.md ) - -src_install() { - meson_src_install - - # 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 -} diff --git a/x11-misc/shared-mime-info/shared-mime-info-2.0-r2.ebuild b/x11-misc/shared-mime-info/shared-mime-info-2.0-r2.ebuild new file mode 100644 index 000000000000..b21ac6101294 --- /dev/null +++ b/x11-misc/shared-mime-info/shared-mime-info-2.0-r2.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +HASH=0440063a2e6823a4b1a6fb2f2af8350f # don't forget to update on version bumps +inherit meson xdg-utils + +DESCRIPTION="The Shared MIME-info Database specification" +HOMEPAGE="https://gitlab.freedesktop.org/xdg/shared-mime-info" +SRC_URI="https://gitlab.freedesktop.org/xdg/${PN}/uploads/${HASH}/${P}.tar.xz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +# requires installed xdgmime binary +RESTRICT="test" + +BDEPEND=" + app-text/xmlto + dev-util/itstool + sys-devel/gettext + virtual/pkgconfig +" +RDEPEND=" + dev-libs/glib:2 + dev-libs/libxml2 +" +DEPEND="${RDEPEND}" + +DOCS=( HACKING.md NEWS README.md ) + +src_install() { + meson_src_install + + # 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 + + # Move pkgconfig file to /usr/share/pkgconfig #728404 + dodir /usr/share/pkgconfig + mv "${ED}"/usr/{$(get_libdir),share}/pkgconfig/${PN}.pc || die + rm "${ED}"/usr/$(get_libdir) -r || die +} + +pkg_postinst() { + use prefix && export XDG_DATA_DIRS="${EPREFIX}"/usr/share + xdg_mimeinfo_database_update +} -- cgit v1.2.3-65-gdbad