summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYangMame <me@yangmame.org>2019-01-15 10:18:05 +0800
committerPatrice Clement <monsieurp@gentoo.org>2019-01-19 13:10:02 +0100
commit6827f2a4c03ff3d3ee6f888631d53cbf370462ec (patch)
tree8c5e3bfb43edf3d308aca77daf47f0e6ff576d38 /net-proxy/trojan/trojan-1.10.0.ebuild
parentmedia-sound/umurmur: Maintainer retired (diff)
downloadgentoo-6827f2a4c03ff3d3ee6f888631d53cbf370462ec.tar.gz
gentoo-6827f2a4c03ff3d3ee6f888631d53cbf370462ec.tar.bz2
gentoo-6827f2a4c03ff3d3ee6f888631d53cbf370462ec.zip
net-proxy/trojan: version bump to 1.10.0, drop old.
Signed-off-by: Xin Yang <yangmame@icloud.com> Closes: https://github.com/gentoo/gentoo/pull/10835 Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'net-proxy/trojan/trojan-1.10.0.ebuild')
-rw-r--r--net-proxy/trojan/trojan-1.10.0.ebuild47
1 files changed, 47 insertions, 0 deletions
diff --git a/net-proxy/trojan/trojan-1.10.0.ebuild b/net-proxy/trojan/trojan-1.10.0.ebuild
new file mode 100644
index 00000000000..fb823826e18
--- /dev/null
+++ b/net-proxy/trojan/trojan-1.10.0.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_4,3_5,3_6,3_7} )
+
+inherit cmake-utils python-any-r1 systemd
+
+DESCRIPTION="An unidentifiable mechanism that helps you bypass GFW"
+HOMEPAGE="https://github.com/trojan-gfw/${PN}"
+SRC_URI="https://github.com/trojan-gfw/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3+"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~x86"
+IUSE="mysql test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="
+ >=dev-libs/boost-1.54.0:=
+ >=dev-libs/openssl-1.0.2:=
+ mysql? ( dev-db/mysql-connector-c:= )
+"
+DEPEND="
+ ${RDEPEND}
+ test? ( net-misc/curl ${PYTHON_DEPS} )
+"
+
+src_configure() {
+ local mycmakeargs=(
+ -DENABLE_MYSQL=$(usex mysql)
+ -DSYSTEMD_SERVICE=ON
+ -DSYSTEMD_SERVICE_PATH=$(systemd_get_systemunitdir)
+ -DCMAKE_INSTALL_DOCDIR=share/doc/${PF}
+ )
+ cmake-utils_src_configure
+}
+
+src_install() {
+ cmake-utils_src_install
+ newinitd "${FILESDIR}/trojan.initd" trojan
+}
+
+src_test() {
+ cmake-utils_src_test -j1
+}