Gentoo Archives: gentoo-commits

From: Craig Andrews <candrews@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-mail/onionrouter/
Date: Wed, 28 Oct 2020 18:32:49
Message-Id: 1603909960.ac1936e82ef20aa73d9ecd7bcb56f7f3ce0cb287.candrews@gentoo
1 commit: ac1936e82ef20aa73d9ecd7bcb56f7f3ce0cb287
2 Author: Craig Andrews <candrews <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 28 18:32:22 2020 +0000
4 Commit: Craig Andrews <candrews <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 28 18:32:40 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ac1936e8
7
8 net-mail/onionrouter: Add live version
9
10 Package-Manager: Portage-3.0.8, Repoman-3.0.2
11 Signed-off-by: Craig Andrews <candrews <AT> gentoo.org>
12
13 net-mail/onionrouter/onionrouter-9999.ebuild | 53 ++++++++++++++++++++++++++++
14 1 file changed, 53 insertions(+)
15
16 diff --git a/net-mail/onionrouter/onionrouter-9999.ebuild b/net-mail/onionrouter/onionrouter-9999.ebuild
17 new file mode 100644
18 index 00000000000..35d74e96b3d
19 --- /dev/null
20 +++ b/net-mail/onionrouter/onionrouter-9999.ebuild
21 @@ -0,0 +1,53 @@
22 +# Copyright 1999-2020 Gentoo Authors
23 +# Distributed under the terms of the GNU General Public License v2
24 +
25 +EAPI=7
26 +
27 +PYTHON_COMPAT=( python3_{7,8,9} )
28 +DISTUTILS_SINGLE_IMPL=1
29 +DISTUTILS_USE_SETUPTOOLS=rdepend
30 +
31 +inherit distutils-r1 systemd
32 +
33 +DESCRIPTION=".onion discovery via SRV DNS lookups for use with postfix"
34 +HOMEPAGE="https://pypi.org/project/onionrouter/ https://github.com/ehloonion/onionrouter/"
35 +if [[ ${PV} == *9999 ]] ; then
36 + SRC_URI=""
37 + EGIT_REPO_URI="https://github.com/ehloonion/onionrouter.git"
38 + inherit git-r3
39 +else
40 + KEYWORDS="~amd64"
41 + SRC_URI="https://pypi.io/packages/source/${PN::1}/${PN}/${P}.tar.gz"
42 +fi
43 +IUSE="test"
44 +RESTRICT="!test? ( test )"
45 +
46 +LICENSE="GPL-3+"
47 +SLOT="0"
48 +
49 +RDEPEND="$(python_gen_cond_dep '
50 + dev-python/dnspython[${PYTHON_USEDEP}]
51 + dev-python/pyyaml[${PYTHON_USEDEP}]
52 +')"
53 +BDEPEND="$(python_gen_cond_dep '
54 + test? (
55 + dev-python/pytest[${PYTHON_USEDEP}]
56 + dev-python/wheel[${PYTHON_USEDEP}]
57 + )
58 +')"
59 +
60 +distutils_enable_tests pytest
61 +
62 +src_prepare() {
63 + # https://github.com/ehloonion/onionrouter/pull/15
64 + cp "${FILESDIR}/conftest.py" "${S}" || die
65 +
66 + distutils-r1_src_prepare
67 +}
68 +
69 +src_install() {
70 + distutils-r1_src_install
71 + systemd_dounit "${FILESDIR}/${PN}.service"
72 + insinto /etc/onionrouter
73 + doins "${S}/onionrouter/configs/onionrouter.ini"
74 +}