commit: a3d9b4de7bd23c8a8bd9ff8d4946d1f45e3ffd2d parent: 2c33bf39c82b52b92ae76faa3e9f3433f6ef4098 Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me> Date: Mon, 27 May 2019 23:52:52 +0200 x11-misc/xdg-utils: Import from ::gentooDiffstat:
A | x11-misc/xdg-utils/Manifest | 1 | + |
A | x11-misc/xdg-utils/files/xdg-utils-1.1.3-xdg-open-pcmanfm.patch | 21 | +++++++++++++++++++++ |
A | x11-misc/xdg-utils/metadata.xml | 7 | +++++++ |
A | x11-misc/xdg-utils/xdg-utils-1.1.3-r1.ebuild | 78 | ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
4 files changed, 107 insertions(+), 0 deletions(-)
diff --git a/x11-misc/xdg-utils/Manifest b/x11-misc/xdg-utils/Manifest @@ -0,0 +1 @@ +DIST xdg-utils-1.1.3.tar.gz 297170 BLAKE2B bd281df73d8c966d11b502dd7ec88d96dbc9683503f54b043ae4842f146b6847bd3dd6902cf993771848d9fcb55d26d67f032af2b8aa0795a6d9855535e57d5b SHA512 d1f819a211eb4104a90dfdc6fedcb640fd46b15ccfc8762266f8f538c49d74cb00027b8c1af991fb2a200acb4379986ae375700e06a2aa08fb41a38f883acb3e diff --git a/x11-misc/xdg-utils/files/xdg-utils-1.1.3-xdg-open-pcmanfm.patch b/x11-misc/xdg-utils/files/xdg-utils-1.1.3-xdg-open-pcmanfm.patch @@ -0,0 +1,21 @@ +From 31525d3855f876ddf2e29091b2e8d376f923e09e Mon Sep 17 00:00:00 2001 +From: Rex Dieter <rdieter@gmail.com> +Date: Thu, 24 May 2018 14:40:53 -0500 +Subject: xdg-open: better pcmanfm check (BR106636,BR106161) + +diff --git a/scripts/xdg-open.in b/scripts/xdg-open.in +index 630e63e..bf9da4c 100644 +--- a/scripts/xdg-open.in ++++ b/scripts/xdg-open.in +@@ -451,7 +451,7 @@ open_lxde() + { + + # pcmanfm only knows how to handle file:// urls and filepaths, it seems. +- if pcmanfm --help >/dev/null 2>&1 -a is_file_url_or_path "$1"; then ++ if pcmanfm --help >/dev/null 2>&1 && is_file_url_or_path "$1"; then + local file="$(file_url_to_path "$1")" + + # handle relative paths +-- +cgit v1.1 + diff --git a/x11-misc/xdg-utils/metadata.xml b/x11-misc/xdg-utils/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>freedesktop-bugs@gentoo.org</email> + </maintainer> +</pkgmetadata> diff --git a/x11-misc/xdg-utils/xdg-utils-1.1.3-r1.ebuild b/x11-misc/xdg-utils/xdg-utils-1.1.3-r1.ebuild @@ -0,0 +1,78 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools + +MY_P="${P/_/-}" + +DESCRIPTION="Portland utils for cross-platform/cross-toolkit/cross-desktop interoperability" +HOMEPAGE="https://www.freedesktop.org/wiki/Software/xdg-utils/" +#SRC_URI="https://dev.gentoo.org/~johu/distfiles/${P}.tar.xz" +#SRC_URI="https://people.freedesktop.org/~rdieter/${PN}/${MY_P}.tar.gz +# https://dev.gentoo.org/~ssuominen/${P}-patchset-1.tar.xz" +SRC_URI="https://portland.freedesktop.org/download/${MY_P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="alpha amd64 arm arm64 hppa ia64 ~mips ppc ppc64 s390 ~sh sparc x86 ~amd64-fbsd" +IUSE="doc" + +RDEPEND=" + dev-util/desktop-file-utils + dev-perl/File-MimeInfo + dev-perl/Net-DBus + dev-perl/X11-Protocol + sys-apps/dbus + x11-misc/shared-mime-info + x11-apps/xprop + x11-apps/xset +" +DEPEND=">=app-text/xmlto-0.0.26-r1[text(+)]" + +DOCS=( README RELEASE_NOTES TODO ) # ChangeLog is bogus, see git instead + +RESTRICT="test" # Disabled because of sandbox violation(s) + +PATCHES=( + "${FILESDIR}"/xdg-utils-1.1.3-xdg-open-pcmanfm.patch +) + +#S=${WORKDIR}/${MY_P} + +src_prepare() { + default + # If you choose to do git snapshot instead of patchset, you need to remember + # to run `autoconf` in ./ and `make scripts-clean` in ./scripts/ to refresh + # all the files + if [[ -d "${WORKDIR}/patch" ]]; then + eapply "${WORKDIR}/patch" + fi + eautoreconf +} + +src_configure() { + export ac_cv_path_XMLTO="$(type -P xmlto) --skip-validation" #502166 + default +} + +src_install() { + default + + newdoc scripts/xsl/README README.xsl + use doc && dodoc -r scripts/html + + # Install default XDG_DATA_DIRS, bug #264647 + echo XDG_DATA_DIRS=\"${EPREFIX}/usr/local/share\" > 30xdg-data-local + echo 'COLON_SEPARATED="XDG_DATA_DIRS XDG_CONFIG_DIRS"' >> 30xdg-data-local + doenvd 30xdg-data-local + + echo XDG_DATA_DIRS=\"${EPREFIX}/usr/share\" > 90xdg-data-base + echo XDG_CONFIG_DIRS=\"${EPREFIX}/etc/xdg\" >> 90xdg-data-base + doenvd 90xdg-data-base +} + +pkg_postinst() { + [[ -x $(type -P gtk-update-icon-cache) ]] \ + || elog "Install dev-util/gtk-update-icon-cache for the gtk-update-icon-cache command." +}