From 7bc9c63c9da678a7e6fceb095d56c634afd22c56 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 15 Dec 2019 18:09:03 +0000 Subject: gentoo resync : 15.12.2019 --- www-plugins/passff-host/Manifest | 3 ++ www-plugins/passff-host/passff-host-1.2.1.ebuild | 57 ++++++++++++++++++++++++ 2 files changed, 60 insertions(+) create mode 100644 www-plugins/passff-host/passff-host-1.2.1.ebuild (limited to 'www-plugins/passff-host') diff --git a/www-plugins/passff-host/Manifest b/www-plugins/passff-host/Manifest index 5399e05c9cd7..961d275298fc 100644 --- a/www-plugins/passff-host/Manifest +++ b/www-plugins/passff-host/Manifest @@ -1,4 +1,7 @@ DIST passff-host-1.2.0.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 DIST passff-host-1.2.0.py 3658 BLAKE2B 2b8fbd2c0e11cdc12804d4430b1028a45a7ff5abb1446d4c85d98b4b45b7cc78c86c0a801952f8810b8061abcbe1109d858d125717bc80f8194f510b39828c36 SHA512 8e3a61562b511895b07d6fe4edb6326d7cb6c14a8032dbcc4927b9a1c25a1a103042cd7dbbb6e417019fea768f30e32ff60fc4483b165968ec920fbfd40971b0 +DIST passff-host-1.2.1.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 +DIST passff-host-1.2.1.py 3666 BLAKE2B 6a95defc3b1abe91f95e83ab20e9d0e533da2ae0e2153d2b50abf0a77aeb426b6b0a0ed042c00912a434dadbf53a9091fa772df9b9f5c330982a9ab49b891bc8 SHA512 5fe848fe0d6a75b679ee18fd5d32fda963853b91ad382fc19780104d44d1052a7191188946af470722dab883f0318ec38980fc24f052aeb5c54cac98f810ee15 EBUILD passff-host-1.2.0-r1.ebuild 1413 BLAKE2B 30fab74d8ff9c299eade2dd3b6a56ce9c7851d86b644afab8b2d47f9c9b9e5cedf02087b3203641f1d02bdac665bee2f5e1ffb146814a7911580aea404a6fa65 SHA512 056c4ae493322f44f06472e465ff4d6c443f8bda042ac277b586bce4bd6dd5259f72da99b51e2cd1c5a3023e805de509af17ceda755bdef1ab29d41ca34ae892 +EBUILD passff-host-1.2.1.ebuild 1413 BLAKE2B 30fab74d8ff9c299eade2dd3b6a56ce9c7851d86b644afab8b2d47f9c9b9e5cedf02087b3203641f1d02bdac665bee2f5e1ffb146814a7911580aea404a6fa65 SHA512 056c4ae493322f44f06472e465ff4d6c443f8bda042ac277b586bce4bd6dd5259f72da99b51e2cd1c5a3023e805de509af17ceda755bdef1ab29d41ca34ae892 MISC metadata.xml 675 BLAKE2B 1db912c207b9b70e56ac1256af5d600ba8f3aa97ce22d2de3c56e752442a757c2cb32dd871c62cd96bca2f2c4016f8efd6853eb2c173b7123012ad26a9f32b6b SHA512 6da18aa19b6c64a80e7197e9a2cd22fc2f72c178890ac413237422b73df5360754cbe00da559c121f4482c53b2b6aa6decd6cbbcf7ff3f868d2b6cf314d964df diff --git a/www-plugins/passff-host/passff-host-1.2.1.ebuild b/www-plugins/passff-host/passff-host-1.2.1.ebuild new file mode 100644 index 000000000000..790ceb426225 --- /dev/null +++ b/www-plugins/passff-host/passff-host-1.2.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 2018-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_5 python3_6 python3_7 ) + +inherit python-single-r1 + +DESCRIPTION="Host app for the PassFF WebExtension" +HOMEPAGE="https://github.com/passff/passff-host" + +SRC_URI=" + https://github.com/passff/passff-host/releases/download/${PV}/passff.py -> ${P}.py + https://github.com/passff/passff-host/releases/download/${PV}/passff.json -> ${P}.json +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="chrome chromium firefox vivaldi" +REQUIRED_USE=" + ${PYTHON_REQUIRED_USE} + || ( chrome chromium firefox vivaldi ) +" + +RDEPEND="${PYTHON_DEPS}" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${P}.json" . || die + cp "${DISTDIR}/${P}.py" . || die +} + +src_prepare() { + default + python_fix_shebang "${P}.py" +} + +src_install() { + local target_dirs=() + + use chrome && target_dirs+=( "/etc/opt/chrome/native-messaging-hosts" ) + use chromium && target_dirs+=( "/etc/chromium/native-messaging-hosts" ) + use firefox && target_dirs+=( "/usr/$(get_libdir)/mozilla/native-messaging-hosts" ) + use vivaldi && target_dirs+=( "/etc/vivaldi/native-messaging-hosts" ) + + for target_dir in "${target_dirs[@]}"; do + sed "s;PLACEHOLDER;${target_dir}/passff.py;g" "${P}.json" > "passff.json" || die + + insinto "${target_dir}" + doins passff.json + exeinto "${target_dir}" + newexe "${P}.py" passff.py + done +} -- cgit v1.2.3