From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EE953138334 for ; Thu, 7 Jun 2018 06:26:09 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 791DDE07BA; Thu, 7 Jun 2018 06:26:07 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0E547E07BA for ; Thu, 7 Jun 2018 06:26:06 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 4C993335CA7 for ; Thu, 7 Jun 2018 06:26:05 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C39BA2A2 for ; Thu, 7 Jun 2018 06:26:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1528352555.180c91de42c89e14de71abb52c9ca6792425daca.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-plugins/passff-host/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-plugins/passff-host/Manifest www-plugins/passff-host/metadata.xml www-plugins/passff-host/passff-host-1.0.1.ebuild X-VCS-Directories: www-plugins/passff-host/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 180c91de42c89e14de71abb52c9ca6792425daca X-VCS-Branch: master Date: Thu, 7 Jun 2018 06:26:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: f8a3eb97-fef7-4f0e-b899-5f2b2d6dbb87 X-Archives-Hash: cf3e93fbbbec315328146b7aa195766c commit: 180c91de42c89e14de71abb52c9ca6792425daca Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Mon May 14 04:12:14 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Thu Jun 7 06:22:35 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=180c91de www-plugins/passff-host: New Package Closes: https://bugs.gentoo.org/654218 Closes: https://bugs.gentoo.org/656358 www-plugins/passff-host/Manifest | 2 + www-plugins/passff-host/metadata.xml | 20 +++++++++ www-plugins/passff-host/passff-host-1.0.1.ebuild | 56 ++++++++++++++++++++++++ 3 files changed, 78 insertions(+) diff --git a/www-plugins/passff-host/Manifest b/www-plugins/passff-host/Manifest new file mode 100644 index 00000000000..5f1b3eb2ed4 --- /dev/null +++ b/www-plugins/passff-host/Manifest @@ -0,0 +1,2 @@ +DIST passff-host-1.0.1.json 176 BLAKE2B 8eddc19cd0c072d25afff5cfa86a95d960ae7b986727099a04a1d983b887922f9ad77e940a2c80e0838a169afe81fa3f6529a901998bb98a6750ac888a09c264 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 +DIST passff-host-1.0.1.py 3432 BLAKE2B f45054bf9323608b515de559c36ad28705fb9c75de00824b0ed8e05d21545b861ba61194cf25a4db84b55d64f7d08abec27d56bb8d098961e94fbbcb9d7f3707 SHA512 168b4d3cdc9f463a7969adc851c878b5b7ddad7d05415770273510c99d8fa7c80015611df1554f24c8b8cd0f256d3a8f687a325e34105e029487eb4fc5ea7290 diff --git a/www-plugins/passff-host/metadata.xml b/www-plugins/passff-host/metadata.xml new file mode 100644 index 00000000000..1e9cea82ee0 --- /dev/null +++ b/www-plugins/passff-host/metadata.xml @@ -0,0 +1,20 @@ + + + + + contact@hacktivis.me + + + proxy-maint@gentoo.org + Proxy Maintainers + + + Install plugin for chrome (which also includes opera) + Install plugin for chromium + Install plugin for firefox + Install plugin for vivaldi + + + passff/passff-host + + diff --git a/www-plugins/passff-host/passff-host-1.0.1.ebuild b/www-plugins/passff-host/passff-host-1.0.1.ebuild new file mode 100644 index 00000000000..9b984afdc45 --- /dev/null +++ b/www-plugins/passff-host/passff-host-1.0.1.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PYTHON_COMPAT=( python3_4 python3_5 python3_6 ) + +inherit python-single-r1 + +DESCRIPTION="Host app for the PassFF WebExtension" +HOMEPAGE="https://github.com/passff/passff-host" + +# Using raw because of difference between git and release +# See https://github.com/passff/passff-host/issues/18 +SRC_URI=" + https://github.com/passff/passff-host/raw/${PV}/src/passff.py -> ${P}.py + https://github.com/passff/passff-host/raw/${PV}/src/passff.json -> ${P}.json +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="chrome chromium firefox vivaldi" +REQUIRED_USE="|| ( chrome chromium firefox vivaldi )" + +S="${WORKDIR}" + +src_unpack() { + cp "${DISTDIR}/${P}.json" . || die + cp "${DISTDIR}/${P}.py" . || die +} + +src_prepare() { + default + + sed -i "s/_VERSIONHOLDER_/${PV}/" "${P}.py" || die + 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/lib/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};g" "${P}.json" > "passff.json" || die + + insinto "${target_dir}" + doins passff.json + exeinto "${target_dir}" + newexe "${P}.py" passff.py + done +}