dev-js/jmp: initial import

Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
This commit is contained in:
Alessandro Barbieri
2021-09-29 15:07:50 +02:00
parent 01cfe6cf57
commit 1bd7f7988e
4 changed files with 58 additions and 0 deletions

1
dev-js/jmp/Manifest Normal file
View File

@@ -0,0 +1 @@
DIST jmp-2.0.0.tgz 10391 BLAKE2B 4b4ac9f1dcd2170b8ea6f4ce476ebe785546fb0be2dc4bf4a8745ce1c9dcbd4fdd91004ea571ff37e42a411952a2e18e8acd9bed339778c6bf987a94d0bd85d8 SHA512 5404df5951c4ad0240d9732d9908c94071f243f8718c7326b32f9e826c1193f47315c850078c63ad1d625f8f7a559afe1f285caf8cef2fe22491294860ac7a63

View File

@@ -0,0 +1,24 @@
diff -ur a/index.js b/index.js
--- a/index.js 1985-10-26 09:15:00.000000000 +0100
+++ b/index.js 2021-02-15 16:02:25.296238209 +0100
@@ -33,7 +33,7 @@
*/
var crypto = require("crypto");
-var uuid = require("uuid/v4");
+const { v4: uuidv4 } = require('uuid');
var zmq = require("zeromq");
var DEBUG = global.DEBUG || false;
diff -ur a/test/index.js b/test/index.js
--- a/test/index.js 1985-10-26 09:15:00.000000000 +0100
+++ b/test/index.js 2021-02-15 16:02:01.816099481 +0100
@@ -37,7 +37,7 @@
var assert = require("assert");
var crypto = require("crypto");
-var uuid = require("uuid/v4");
+const { v4: uuidv4 } = require('uuid');
var jmp = require("..");
var zmq = jmp.zmq;

View File

@@ -0,0 +1,21 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit node
DESCRIPTION="create, parse and reply to messages of the Jupyter Messaging Protocol"
HOMEPAGE="
https://github.com/n-riesco/jmp
https://www.npmjs.com/package/jmp
"
LICENSE="BSD"
KEYWORDS="~amd64"
PATCHES=( "${FILESDIR}/uuid.patch" )
RDEPEND="
${NODEJS_RDEPEND}
dev-js/uuid
dev-js/zeromq
"

12
dev-js/jmp/metadata.xml Normal file
View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>lssndrbarbieri@gmail.com</email>
<name>Alessandro Barbieri</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/n-riesco/jmp/issues</bugs-to>
<remote-id type="github">n-riesco/jmp</remote-id>
</upstream>
</pkgmetadata>