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-p2p/airdcpp-webclient/files/, net-p2p/airdcpp-webclient/
Date: Sat, 24 Jun 2017 05:43:55
Message-Id: 1498282586.6a014f15595971edd3b1cc957bb65c8122a8da02.mgorny@gentoo
1 commit: 6a014f15595971edd3b1cc957bb65c8122a8da02
2 Author: Louis Sautier <sautier.louis <AT> gmail <DOT> com>
3 AuthorDate: Sat Jun 10 11:40:20 2017 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 24 05:36:26 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a014f15
7
8 net-p2p/airdcpp-webclient: bump to 2.1.0, add Python 3.6, minor changes
9
10 Package-Manager: Portage-2.3.6, Repoman-2.3.2
11
12 net-p2p/airdcpp-webclient/Manifest | 1 +
13 .../airdcpp-webclient-2.1.0.ebuild | 68 ++++++++++++++++++++++
14 ...airdcpp-webclient-2.1.0-disable-automagic.patch | 40 +++++++++++++
15 3 files changed, 109 insertions(+)
16
17 diff --git a/net-p2p/airdcpp-webclient/Manifest b/net-p2p/airdcpp-webclient/Manifest
18 index 80f155d9f18..e223aa66ff5 100644
19 --- a/net-p2p/airdcpp-webclient/Manifest
20 +++ b/net-p2p/airdcpp-webclient/Manifest
21 @@ -1,2 +1,3 @@
22 DIST airdcpp-webclient-1.4.1.tar.gz 743631 SHA256 9acb61366c91a7aaa03cae58e9aee28ccac05ffe9dff0ec947836fa81967f27f SHA512 7b973251574cb5b49942efa868cef9f689fcf8d804be632ad17c445be98ab55ca9973c5fe9dce052d542006d47a7850af7d236953010c2c0e3158c54e448afe1 WHIRLPOOL e43ccfddc50dbdd0ce8a3cd5b00fc4c844ed69051967d67cca9c9c72b073227d1d20ac510d34b07161c231c7c7d69b945d60872d8756a0ef2c91dfe4a843fe06
23 DIST airdcpp-webclient-2.0.1.tar.gz 843348 SHA256 312466c20b6c3125b6bf88b26f23618f67546722bb0372089537c5a88cc3460b SHA512 2c31712816a59560f248f42b3ad3ffe5d2f76a64860bf515a537b79dda5a579bac17d5d8ba46d9d57554a0b93b9384696a299b2f2096e05c62ea4b97e42d06bc WHIRLPOOL e78d998d8398eb705599ed0f249242d460586288c5649b810606321334a7ea66bd2cb9f119789eec19038e1e3d9ce376a93e96bd18fe15bba10d7a80c97ee580
24 +DIST airdcpp-webclient-2.1.0.tar.gz 844435 SHA256 a8d8a33e3974d23009359709da0bee85e8983e3ea1fe78f21a867078f93b81fa SHA512 755555d30183e772ad5d2e38a813f548e3322ca034b759200f289a834ae21b64f56102f57a13832a837e8a11324efe74a860e941a0f28a02d1f843aed92a328f WHIRLPOOL 5a0a61bcf0ad1de1706786fc2080aeba0ae634386957876a20d1ca638d3fc8b724f5c866d59588f4958a6010fc192d474f1cfe7ff04d4403106ba631b800739b
25
26 diff --git a/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0.ebuild b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0.ebuild
27 new file mode 100644
28 index 00000000000..cee109040c4
29 --- /dev/null
30 +++ b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.1.0.ebuild
31 @@ -0,0 +1,68 @@
32 +# Copyright 1999-2017 Gentoo Foundation
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( python{2_7,3_{4,5,6}} pypy{,3} )
37 +
38 +inherit cmake-utils python-any-r1 user
39 +
40 +DESCRIPTION="Cross-platform Direct Connect client"
41 +HOMEPAGE="https://airdcpp-web.github.io/"
42 +SRC_URI="https://github.com/airdcpp-web/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
43 +
44 +KEYWORDS="~amd64 ~x86"
45 +LICENSE="GPL-2+"
46 +SLOT="0"
47 +IUSE="nat-pmp +tbb +webui"
48 +
49 +RDEPEND="
50 + app-arch/bzip2
51 + dev-cpp/websocketpp
52 + dev-libs/boost:=
53 + dev-libs/geoip
54 + dev-libs/leveldb:=
55 + dev-libs/openssl:0=[-bindist]
56 + net-libs/miniupnpc:=
57 + sys-libs/zlib
58 + virtual/libiconv
59 + nat-pmp? ( net-libs/libnatpmp:= )
60 + tbb? ( dev-cpp/tbb:= )
61 +"
62 +DEPEND="
63 + virtual/pkgconfig
64 + ${PYTHON_DEPS}
65 + ${RDEPEND}
66 +"
67 +PDEPEND="webui? ( www-apps/airdcpp-webui )"
68 +
69 +# https://github.com/airdcpp-web/airdcpp-webclient/pull/248
70 +PATCHES=( "${FILESDIR}/${P}-disable-automagic.patch" )
71 +
72 +pkg_setup() {
73 + python-any-r1_pkg_setup
74 + enewgroup airdcppd
75 + enewuser airdcppd -1 -1 /var/lib/airdcppd airdcppd
76 +}
77 +
78 +src_configure() {
79 + local mycmakeargs=(
80 + -DINSTALL_WEB_UI=OFF
81 + -DENABLE_NATPMP=$(usex nat-pmp)
82 + -DENABLE_TBB=$(usex tbb)
83 + )
84 + cmake-utils_src_configure
85 +}
86 +
87 +src_install() {
88 + cmake-utils_src_install
89 + newconfd "${FILESDIR}/airdcppd.confd" airdcppd
90 + newinitd "${FILESDIR}/airdcppd.initd" airdcppd
91 + keepdir /var/lib/airdcppd
92 + fowners airdcppd:airdcppd /var/lib/airdcppd
93 +}
94 +
95 +pkg_postinst() {
96 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
97 + elog "Run 'airdcppd --configure' to set up ports and authentication"
98 + fi
99 +}
100
101 diff --git a/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.1.0-disable-automagic.patch b/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.1.0-disable-automagic.patch
102 new file mode 100644
103 index 00000000000..4e8360e6967
104 --- /dev/null
105 +++ b/net-p2p/airdcpp-webclient/files/airdcpp-webclient-2.1.0-disable-automagic.patch
106 @@ -0,0 +1,40 @@
107 +commit 8ca829a832db304769ac0d107471ab23d4ce3cce
108 +Author: Louis Sautier <sautier.louis@×××××.com>
109 +Date: Wed Jun 21 23:10:03 2017 +0200
110 +
111 + Add options to disable libnatpnp and tbb support
112 +
113 +diff --git a/CMakeLists.txt b/CMakeLists.txt
114 +index 4d8a49c7..826fce3b 100644
115 +--- a/CMakeLists.txt
116 ++++ b/CMakeLists.txt
117 +@@ -47,6 +47,10 @@ endif()
118 +
119 +
120 + # OPTIONS
121 ++OPTION(ENABLE_NATPMP "Enable support for the NAT-PMP protocol via libnatpmp"
122 ++ ON)
123 ++OPTION(ENABLE_TBB "Enable support of the TBB library to improve performance"
124 ++ ON)
125 +
126 + # 1.x had a different default value
127 + unset(INSTALL_RUNTIME_PATH CACHE)
128 +@@ -99,12 +103,16 @@ find_package (OpenSSL REQUIRED)
129 + find_package (Threads REQUIRED)
130 + find_package (Iconv REQUIRED)
131 + find_package (Miniupnpc REQUIRED)
132 +-find_package (LibNatpmp)
133 ++if(ENABLE_NATPMP)
134 ++ find_package (LibNatpmp)
135 ++endif()
136 + find_package (Git)
137 + find_package (LevelDB REQUIRED)
138 + find_package (websocketpp REQUIRED)
139 + find_package (Backtrace)
140 +-find_package (TBB)
141 ++if(ENABLE_TBB)
142 ++ find_package (TBB)
143 ++endif()
144 +
145 + if (NOT BUILD_SHARED_LIBS)
146 + # Shared LevelDB libraries are linked against Snappy already