Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-proxy/trojan/
Date: Sun, 21 Oct 2018 18:07:32
Message-Id: 1540145244.ead6a7f8ebc9e6ccd003575200421e97c91a85f7.mgorny@gentoo
1 commit: ead6a7f8ebc9e6ccd003575200421e97c91a85f7
2 Author: YangMame <yangmame <AT> icloud <DOT> com>
3 AuthorDate: Sun Oct 21 02:01:27 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sun Oct 21 18:07:24 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ead6a7f8
7
8 net-proxy/trojan: version bump to 1.9.0
9
10 Signed-off-by: Xin Yang <yangmame <AT> icloud.com>
11 Closes: https://github.com/gentoo/gentoo/pull/10181
12 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
13
14 net-proxy/trojan/Manifest | 1 +
15 net-proxy/trojan/trojan-1.9.0.ebuild | 46 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 47 insertions(+)
17
18 diff --git a/net-proxy/trojan/Manifest b/net-proxy/trojan/Manifest
19 index 958dea17ea5..a19c9e2df55 100644
20 --- a/net-proxy/trojan/Manifest
21 +++ b/net-proxy/trojan/Manifest
22 @@ -1 +1,2 @@
23 DIST trojan-1.8.1.tar.gz 37199 BLAKE2B be93a119ca95e5f4151db6ab58ffaa123d5bd304247d7835ca34ba870808d7e246d551c204d60ffb2a982f2fcb2c35ada1d9823e7f931b36377f99ebd0f48bd6 SHA512 1e2b8e2ddb02b2009181a980781574e6e6375c98475bda4096b70a9c00e61c5ca445f28730e195a5179b85bf5464a6dcb1bcb6ba8dc841d95c9a111f8f87c511
24 +DIST trojan-1.9.0.tar.gz 37704 BLAKE2B 5ddfab3408c0f665e0c43e1f23d4d5df6c2222d38f3525b524b6689e5b25603f928f718bcba7bbd077b7db1c241aea629d01c8dbefc1d35c3dc3d29757c04885 SHA512 3d671d1944bf79879bde8ba74d9c3270e475ff1c5d35ff1ef367391fdce223bd24e4c1072ae8506002e5ee10944bfbe10cfb434e8908c9670535c38b275293fa
25
26 diff --git a/net-proxy/trojan/trojan-1.9.0.ebuild b/net-proxy/trojan/trojan-1.9.0.ebuild
27 new file mode 100644
28 index 00000000000..b6c8edf97d8
29 --- /dev/null
30 +++ b/net-proxy/trojan/trojan-1.9.0.ebuild
31 @@ -0,0 +1,46 @@
32 +# Copyright 1999-2018 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +
37 +PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} )
38 +
39 +inherit cmake-utils python-any-r1
40 +
41 +DESCRIPTION="An unidentifiable mechanism that helps you bypass GFW"
42 +HOMEPAGE="https://github.com/trojan-gfw/${PN}"
43 +SRC_URI="https://github.com/trojan-gfw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3+"
46 +SLOT="0"
47 +KEYWORDS="~amd64 ~arm ~arm64 ~x86"
48 +IUSE="mysql test"
49 +RESTRICT="!test? ( test )"
50 +
51 +RDEPEND="
52 + >=dev-libs/boost-1.54.0:=
53 + >=dev-libs/openssl-1.0.2:=
54 + mysql? ( dev-db/mysql-connector-c:= )
55 +"
56 +DEPEND="
57 + ${RDEPEND}
58 + test? ( net-misc/curl ${PYTHON_DEPS} )
59 +"
60 +
61 +src_configure() {
62 + local mycmakeargs=(
63 + -DENABLE_MYSQL=$(usex mysql)
64 + -DSYSTEMD_SERVICE=ON
65 + -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
66 + )
67 + cmake-utils_src_configure
68 +}
69 +
70 +src_install() {
71 + cmake-utils_src_install
72 + newinitd "${FILESDIR}/trojan.initd" trojan
73 +}
74 +
75 +src_test() {
76 + cmake-utils_src_test -j1
77 +}