Gentoo Archives: gentoo-commits

From: Mikhail Pukhlikov <cynede@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/wsta/
Date: Sat, 08 Oct 2016 07:19:27
Message-Id: 1475911154.647e257148c3298383434fedb231e194eff11c4e.cynede@gentoo
1 commit: 647e257148c3298383434fedb231e194eff11c4e
2 Author: Espen Henriksen <dev <AT> henriksen <DOT> is>
3 AuthorDate: Wed Oct 5 20:14:44 2016 +0000
4 Commit: Mikhail Pukhlikov <cynede <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 8 07:19:14 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=647e2571
7
8 dev-util/wsta: New package
9
10 This adds a new package to the tree, wsta, the WebSocket transfer agent.
11 wsta is a CLI tool written in rust for interfacing with WebSockets.
12
13 Gentoo-Bug: https://bugs.gentoo.org/596288
14
15 Package-Manager: portage-2.3.0
16
17 dev-util/wsta/Manifest | 1 +
18 dev-util/wsta/metadata.xml | 23 +++++++++++++++++++++++
19 dev-util/wsta/wsta-0.4.1.ebuild | 35 +++++++++++++++++++++++++++++++++++
20 3 files changed, 59 insertions(+)
21
22 diff --git a/dev-util/wsta/Manifest b/dev-util/wsta/Manifest
23 new file mode 100644
24 index 00000000..1d5bfdd
25 --- /dev/null
26 +++ b/dev-util/wsta/Manifest
27 @@ -0,0 +1 @@
28 +DIST wsta-0.4.1.tar.gz 40143 SHA256 0c031dbf490c98dbc5dab07f16945ba353cd3cd18780094aee17f4782ec0ea57 SHA512 67e783c462a8621f70aa3688a131056b6b90d6c8137bfe3b4d68ed10ad1840e371554d54ba3d4a8a9fb569af200034b5cbf4ebd4ebadb2ab8d57b3e68b284e58 WHIRLPOOL 6cee5abd12e0f7d7006dbac13fc748d47ab07fb68474fd1aaf97e678536801c61abb545cd1187dd0ad34b7100692df4ee12e63dedcb2eaf628b564f82bdad320
29
30 diff --git a/dev-util/wsta/metadata.xml b/dev-util/wsta/metadata.xml
31 new file mode 100644
32 index 00000000..43c0901
33 --- /dev/null
34 +++ b/dev-util/wsta/metadata.xml
35 @@ -0,0 +1,23 @@
36 +<?xml version="1.0" encoding="UTF-8"?>
37 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
38 +<pkgmetadata>
39 + <maintainer type="person">
40 + <email>dev+gentoobugzilla@×××××××××.is</email>
41 + <name>Espen H</name>
42 + </maintainer>
43 + <maintainer type="project">
44 + <email>proxy-maint@g.o</email>
45 + <name>Proxy Maintainers</name>
46 + </maintainer>
47 + <upstream>
48 + <remote-id type="github">esphen/wsta</remote-id>
49 + </upstream>
50 + <longdescription lang="en">
51 + wsta is a CLI tool written in rust for interfacing with WebSockets. wsta has
52 + the philosophy of being an easy tool to learn and thus gets out of your way
53 + to let you work your UNIX magic directly on the WebSocket traffic. The way
54 + wsta does this is to be as pipe-friendly as possible, letting you chain it
55 + into complex pipelines or bash scripts as you see fit, or just keep it simple
56 + and use it as is.
57 + </longdescription>
58 +</pkgmetadata>
59
60 diff --git a/dev-util/wsta/wsta-0.4.1.ebuild b/dev-util/wsta/wsta-0.4.1.ebuild
61 new file mode 100644
62 index 00000000..2557c80
63 --- /dev/null
64 +++ b/dev-util/wsta/wsta-0.4.1.ebuild
65 @@ -0,0 +1,35 @@
66 +# Copyright 1999-2016 Gentoo Foundation
67 +# Distributed under the terms of the GNU General Public License v2
68 +# $Id$
69 +
70 +EAPI=6
71 +
72 +inherit cargo
73 +
74 +DESCRIPTION="A CLI development tool for WebSocket APIs"
75 +HOMEPAGE="https://github.com/esphen/wsta/"
76 +SRC_URI="https://github.com/esphen/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
77 +
78 +SLOT="0"
79 +LICENSE="GPL-3"
80 +KEYWORDS="~amd64 ~x86"
81 +
82 +RDEPEND="dev-libs/openssl:*"
83 +DEPEND="${RDEPEND}
84 + dev-util/cargo
85 + "
86 +
87 +src_compile() {
88 + cargo build --release || die "Compilation failed"
89 +}
90 +
91 +src_test() {
92 + cargo test || die "Tests failed"
93 +}
94 +
95 +src_install() {
96 + einstalldocs
97 +
98 + dobin target/release/${PN}
99 + doman ${PN}.1
100 +}