logo

overlay

My (experimental) gentoo overlay
commit: 776a9d39522884dbf0fc175a8da7dda4284a67bc
parent: 085897d60d5dfe7c9352e662e4811731884649ad
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 12 Feb 2018 21:33:43 +0100

www-plugins/passff: init

Diffstat:

Awww-plugins/passff/Manifest3+++
Awww-plugins/passff/passff-1.1.ebuild51+++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 54 insertions(+), 0 deletions(-)

diff --git a/www-plugins/passff/Manifest b/www-plugins/passff/Manifest @@ -0,0 +1,3 @@ +DIST passff-1.1.json 176 SHA256 cd871bcf29d71e53f986fb74b7f2b1867151ba2b2a27318044c7bfaa38827282 SHA512 e4a4b90fb5323c6dbec339b9e67a7d546c6d7a95754fe03b3a4d96396c28de1caba3068b4e936ee0ce0997f865c8b5e53a3da1fb34f0123a04c5889302c28911 WHIRLPOOL 8751e32b1e0ec463700f79e553e4d411cfe9c925db6435ed7c0318541bc3cd4c6b6b77e07e9322cf0c0cb32576cd1ec5a749c4b948a24983cae5629d5c042cef +DIST passff-1.1.py 2256 SHA256 963943bce88cd9a22226e2858fd636b2df719a2b531e4f4da70fdc304355c0d4 SHA512 b5d4aa3d3a9455adece3d291a6e1e05178296e72828ec708cd33541f30e4fbef2385978f24ba27eaefc739e4792f4cbac1830e8dcd15380c7243e11ddbcafe9d WHIRLPOOL eceb57043e528fd715a2cb02f3f73e16f0b95c7c6a70ed6402b5481cdbcb8ce075fc75fc1caa37eb31fbf82dfeb0b8d132ad36883ffabe5c4bb01b7c6e7a8443 +DIST passff-1.1.xpi 47825 SHA256 6b381eb7a2bae83820c3747944f39977f68395086558e0618aa288a90f4dd1cb SHA512 5edb8a3798d5856a1bc3e7ebd9d7ba8bd5aac5f68f4cbfe73936407a3e4fc745ea30fda77bfa5620b332aac1a5f069de1c1da1152c303c130e97e245634cc2a6 WHIRLPOOL f7ca1c0eb4d4a0d8e99db1ccd2713a1b2e3f575d89507899da07e5cc4211e361dcb9ce61d5a0eb453fa3616b7cce067a63d75e7536c15b5b7940aaecee1bb419 diff --git a/www-plugins/passff/passff-1.1.ebuild b/www-plugins/passff/passff-1.1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +DESCRIPTION="zx2c4 pass manager extension for Firefox" +HOMEPAGE="https://github.com/passff/passff" +SRC_URI=" + extension_host? ( + https://github.com/passff/passff/releases/download/${PV}/passff.json -> ${P}.json + https://github.com/passff/passff/releases/download/${PV}/passff.py -> ${P}.py + ) + extension_xpi? ( + https://github.com/passff/passff/releases/download/${PV}/passff.xpi -> ${P}.xpi + ) +" + +LICENSE="GPL-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="extension_xpi +extension_host" + +DEPEND="" +RDEPEND=" + ${DEPEND} + >=dev-lang/python-3.4.0:* +" + +TARGET_DIR="${EROOT}usr/lib/mozilla/native-messaging-hosts" + +src_unpack() { + mkdir "${WORKDIR}/${P}" + for i in ${A}; do + cp ${DISTDIR}/$i "${WORKDIR}/${P}" || die "Failed copying ${i} to workdir" + done +} + +src_compile() { + if use extension_host; then + sed -i "s|PLACEHOLDER|${TARGET_DIR}/${PN}.py|" "${P}.json" + fi +} + +src_install() { + if use extension_host; then + insinto "${TARGET_DIR}" + newins "${P}.json" passff.json + newins "${P}.py" passff.py + chmod +x "${D}${TARGET_DIR}/passff.py" + fi +}