Gentoo Archives: gentoo-commits

From: Andrey Utkin <andrey_utkin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/poezio/
Date: Sat, 18 Aug 2018 19:54:37
Message-Id: 1534622001.fcc8dd39855f6ae954fb05d92b513e0f70edf9c4.andrey_utkin@gentoo
1 commit: fcc8dd39855f6ae954fb05d92b513e0f70edf9c4
2 Author: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
3 AuthorDate: Sat Aug 18 17:06:16 2018 +0000
4 Commit: Andrey Utkin <andrey_utkin <AT> gentoo <DOT> org>
5 CommitDate: Sat Aug 18 19:53:21 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcc8dd39
7
8 net-im/poezio: add new package
9
10 Package-Manager: Portage-2.3.40, Repoman-2.3.9
11
12 net-im/poezio/Manifest | 1 +
13 net-im/poezio/metadata.xml | 11 ++++++++
14 net-im/poezio/poezio-0.12.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++
15 net-im/poezio/poezio-9999.ebuild | 60 ++++++++++++++++++++++++++++++++++++++++
16 4 files changed, 132 insertions(+)
17
18 diff --git a/net-im/poezio/Manifest b/net-im/poezio/Manifest
19 new file mode 100644
20 index 00000000000..9187b8c3e15
21 --- /dev/null
22 +++ b/net-im/poezio/Manifest
23 @@ -0,0 +1 @@
24 +DIST poezio-0.12.tar.gz 585750 BLAKE2B d79cab965b39a9ea191c763e1560bedbf46e3107e1b301a651103caf8f9e63b8465925ea01ac4e2e6b747b66cf5d4be8cabd8be80a069fe4eafcf331c7daada8 SHA512 6249daf23c6f4c1b25a9de686abaa62076e1eac7566da0a174ae3a82e3a53b7f2a86145d20d587a7ee43c8b679d90cb381d5afbfc7860459c5a497e97af32ff4
25
26 diff --git a/net-im/poezio/metadata.xml b/net-im/poezio/metadata.xml
27 new file mode 100644
28 index 00000000000..0f3aace8afd
29 --- /dev/null
30 +++ b/net-im/poezio/metadata.xml
31 @@ -0,0 +1,11 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <maintainer type="person">
36 + <email>andrey_utkin@g.o</email>
37 + <name>Andrey Utkin</name>
38 + </maintainer>
39 + <upstream>
40 + <remote-id type="pypi">poezio</remote-id>
41 + </upstream>
42 +</pkgmetadata>
43
44 diff --git a/net-im/poezio/poezio-0.12.ebuild b/net-im/poezio/poezio-0.12.ebuild
45 new file mode 100644
46 index 00000000000..d550ee29c57
47 --- /dev/null
48 +++ b/net-im/poezio/poezio-0.12.ebuild
49 @@ -0,0 +1,60 @@
50 +# Copyright 1999-2018 Gentoo Foundation
51 +# Distributed under the terms of the GNU General Public License v2
52 +
53 +EAPI=7
54 +PYTHON_COMPAT=( python3_{5,6} )
55 +
56 +inherit distutils-r1 readme.gentoo-r1
57 +
58 +DESCRIPTION="Console XMPP client that looks like most famous IRC clients"
59 +HOMEPAGE="https://poez.io/"
60 +LICENSE="ZLIB"
61 +SLOT="0"
62 +IUSE="test"
63 +
64 +if [[ "${PV}" == "9999" ]]; then
65 + EGIT_REPO_URI="https://git.poez.io/${PN}.git"
66 + inherit git-r3
67 +else
68 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
69 + KEYWORDS="~amd64"
70 +fi
71 +
72 +RDEPEND="
73 + dev-python/aiodns[${PYTHON_USEDEP}]
74 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
75 + dev-python/pyasn1[${PYTHON_USEDEP}]
76 + dev-python/slixmpp[${PYTHON_USEDEP}]
77 +"
78 +DEPEND="
79 + test? (
80 + ${RDEPEND}
81 + dev-python/potr
82 + dev-python/pyinotify
83 + )"
84 +
85 +DOC_CONTENTS="
86 +Install these optional runtime dependencies for additional features.
87 +* dev-python/potr for OTR encryption support.
88 +* dev-python/pyinotify for screen autoaway plugin support.
89 +"
90 +DISABLE_AUTOFORMATTING=true
91 +
92 +src_prepare() {
93 + default
94 + # Delete unmaintained plugin which requires an excessive external dep
95 + rm plugins/mpd_client.py || die
96 +}
97 +
98 +src_install() {
99 + distutils-r1_src_install
100 + readme.gentoo_create_doc
101 +}
102 +
103 +pkg_postinst() {
104 + readme.gentoo_print_elog
105 +}
106 +
107 +python_test() {
108 + esetup.py test
109 +}
110
111 diff --git a/net-im/poezio/poezio-9999.ebuild b/net-im/poezio/poezio-9999.ebuild
112 new file mode 100644
113 index 00000000000..d550ee29c57
114 --- /dev/null
115 +++ b/net-im/poezio/poezio-9999.ebuild
116 @@ -0,0 +1,60 @@
117 +# Copyright 1999-2018 Gentoo Foundation
118 +# Distributed under the terms of the GNU General Public License v2
119 +
120 +EAPI=7
121 +PYTHON_COMPAT=( python3_{5,6} )
122 +
123 +inherit distutils-r1 readme.gentoo-r1
124 +
125 +DESCRIPTION="Console XMPP client that looks like most famous IRC clients"
126 +HOMEPAGE="https://poez.io/"
127 +LICENSE="ZLIB"
128 +SLOT="0"
129 +IUSE="test"
130 +
131 +if [[ "${PV}" == "9999" ]]; then
132 + EGIT_REPO_URI="https://git.poez.io/${PN}.git"
133 + inherit git-r3
134 +else
135 + SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
136 + KEYWORDS="~amd64"
137 +fi
138 +
139 +RDEPEND="
140 + dev-python/aiodns[${PYTHON_USEDEP}]
141 + dev-python/pyasn1-modules[${PYTHON_USEDEP}]
142 + dev-python/pyasn1[${PYTHON_USEDEP}]
143 + dev-python/slixmpp[${PYTHON_USEDEP}]
144 +"
145 +DEPEND="
146 + test? (
147 + ${RDEPEND}
148 + dev-python/potr
149 + dev-python/pyinotify
150 + )"
151 +
152 +DOC_CONTENTS="
153 +Install these optional runtime dependencies for additional features.
154 +* dev-python/potr for OTR encryption support.
155 +* dev-python/pyinotify for screen autoaway plugin support.
156 +"
157 +DISABLE_AUTOFORMATTING=true
158 +
159 +src_prepare() {
160 + default
161 + # Delete unmaintained plugin which requires an excessive external dep
162 + rm plugins/mpd_client.py || die
163 +}
164 +
165 +src_install() {
166 + distutils-r1_src_install
167 + readme.gentoo_create_doc
168 +}
169 +
170 +pkg_postinst() {
171 + readme.gentoo_print_elog
172 +}
173 +
174 +python_test() {
175 + esetup.py test
176 +}