diff options
author | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-07-01 11:57:13 +0400 |
---|---|---|
committer | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2024-07-01 11:57:13 +0400 |
commit | 8b02779f777e5e5e8d71a02e010f9a5c1a9246f9 (patch) | |
tree | 77fd1949adb0ed1c40d198815a0431c5fa84eb83 /www-plugins | |
parent | net-im/manyverse-bin: remove empty line of ebuild (diff) | |
download | guru-8b02779f777e5e5e8d71a02e010f9a5c1a9246f9.tar.gz guru-8b02779f777e5e5e8d71a02e010f9a5c1a9246f9.tar.bz2 guru-8b02779f777e5e5e8d71a02e010f9a5c1a9246f9.zip |
www-plugins/native-client: new package
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'www-plugins')
-rw-r--r-- | www-plugins/native-client/Manifest | 1 | ||||
-rw-r--r-- | www-plugins/native-client/files/com.add0n.native_client.json | 22 | ||||
-rw-r--r-- | www-plugins/native-client/files/run.sh | 1 | ||||
-rw-r--r-- | www-plugins/native-client/metadata.xml | 11 | ||||
-rw-r--r-- | www-plugins/native-client/native-client-0.4.7.ebuild | 32 |
5 files changed, 67 insertions, 0 deletions
diff --git a/www-plugins/native-client/Manifest b/www-plugins/native-client/Manifest new file mode 100644 index 000000000..245567bce --- /dev/null +++ b/www-plugins/native-client/Manifest @@ -0,0 +1 @@ +DIST native-client-0.4.7.tar.gz 59920186 BLAKE2B 3ecfef4bbc03fde2b268aed7962139356faa6722f857268c3ccbfda92b05e5af7b24e9e7ef267ccb171d92a0e805002c458956479cf5a40636d1f65e7d459b51 SHA512 d668700046bc4342baf829ed85e6058e95d52f72d610f039f940857f466b2cfcf8fe3a338144b79769feaa8c0197569ae566bb2fd94115d60a9beb70f94d436f diff --git a/www-plugins/native-client/files/com.add0n.native_client.json b/www-plugins/native-client/files/com.add0n.native_client.json new file mode 100644 index 000000000..00698e2de --- /dev/null +++ b/www-plugins/native-client/files/com.add0n.native_client.json @@ -0,0 +1,22 @@ +{ + "name": "com.add0n.native_client", + "description": "Node Host for Native Messaging", + "path": "/usr/lib/mozilla/native-messaging-hosts/com.add0n.native_client/run.sh", + "type": "stdio", + "allowed_extensions": [ + "{3e0ac434-26e0-4c03-b757-3078486800c3}", + "{cee1ccee-5508-4927-a929-9a557e63bbc8}", + "{ccad95df-add6-4d8a-aa5c-cdc384075bab}", + "{c7636e52-8aba-4717-9652-01922ee61eb3}", + "{d1646fcf-76ad-49c5-b8b2-e496e9b71189}", + "{cfd8df21-e05f-46e9-8ea1-af5e5177d492}", + "{1fb1ffdc-b95d-451e-be52-7303adf9a0d3}", + "{533953f8-ffb6-421c-af1a-5a02a792ab51}", + "{48f5395d-5c00-41cd-9a5e-fd2f8d9b74c2}", + "{03e07985-30b0-4ae0-8b3e-0c7519b9bdf6}", + "{708bb4c5-336d-4a30-9126-8bf5d773bb41}", + "{5510b212-951a-439c-ae73-b1ebbc68055f}", + "{f91bc9ee-ae11-4850-8e6b-ed4b0262ce3b}", + "{dc393f22-0d98-44d4-8a2c-9dd72208e9f7}" + ] +} diff --git a/www-plugins/native-client/files/run.sh b/www-plugins/native-client/files/run.sh new file mode 100644 index 000000000..422c14a5a --- /dev/null +++ b/www-plugins/native-client/files/run.sh @@ -0,0 +1 @@ +node /usr/lib/mozilla/native-messaging-hosts/host.js diff --git a/www-plugins/native-client/metadata.xml b/www-plugins/native-client/metadata.xml new file mode 100644 index 000000000..e498e95b2 --- /dev/null +++ b/www-plugins/native-client/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person" proxied="yes"> + <email>zdanevich.vitaly@ya.ru</email> + <name>Vitaly Zdanevich</name> + </maintainer> + <upstream> + <remote-id type="github">belaviyo/native-client</remote-id> + </upstream> +</pkgmetadata> diff --git a/www-plugins/native-client/native-client-0.4.7.ebuild b/www-plugins/native-client/native-client-0.4.7.ebuild new file mode 100644 index 000000000..9f7b093c6 --- /dev/null +++ b/www-plugins/native-client/native-client-0.4.7.ebuild @@ -0,0 +1,32 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Node wrapper for Native Messaging: for web extension to call mpv, for example" +HOMEPAGE="https://github.com/belaviyo/native-client" + +SRC_URI="https://github.com/belaviyo/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~amd64" + +# TODO add USE flags with browser names +BDEPEND=" + net-libs/nodejs + || ( + www-client/firefox + www-client/firefox-bin + www-client/firefox-developer-bin + ) +" + +src_install() { + p=/usr/lib/mozilla/native-messaging-hosts/com.add0n.native_client/ + + insinto $p + doins "$FILESDIR/com.add0n.native_client.json" + doins host.js + doins "$FILESDIR/run.sh" +} |