Gentoo Archives: gentoo-commits

From: Louis Sautier <sbraz@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-p2p/airdcpp-webclient/
Date: Mon, 10 Dec 2018 13:17:25
Message-Id: 1544447820.8c70f1d4d92270d9f62f37c99741643d666399de.sbraz@gentoo
1 commit: 8c70f1d4d92270d9f62f37c99741643d666399de
2 Author: Louis Sautier <sbraz <AT> gentoo <DOT> org>
3 AuthorDate: Mon Dec 10 13:07:11 2018 +0000
4 Commit: Louis Sautier <sbraz <AT> gentoo <DOT> org>
5 CommitDate: Mon Dec 10 13:17:00 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c70f1d4
7
8 net-p2p/airdcpp-webclient: bump to 2.5.0
9
10 Package-Manager: Portage-2.3.52, Repoman-2.3.12
11 Signed-off-by: Louis Sautier <sbraz <AT> gentoo.org>
12
13 net-p2p/airdcpp-webclient/Manifest | 1 +
14 .../airdcpp-webclient-2.5.0.ebuild | 65 ++++++++++++++++++++++
15 2 files changed, 66 insertions(+)
16
17 diff --git a/net-p2p/airdcpp-webclient/Manifest b/net-p2p/airdcpp-webclient/Manifest
18 index ba2bcfca0c1..53b2aa628bd 100644
19 --- a/net-p2p/airdcpp-webclient/Manifest
20 +++ b/net-p2p/airdcpp-webclient/Manifest
21 @@ -1,2 +1,3 @@
22 DIST airdcpp-webclient-2.3.0.tar.gz 880508 BLAKE2B 426c0582ffad734cae2f66826aa04b2db791a110abc79629f4e3b71a69db354b56d213feae6d807f3b7a3f2906aac00fc50c49eaf3dc7d8e09783f59c99ef4e5 SHA512 b1f47c8f500aa684a8cabcff916b6a1e41230d949a35d57c80f13734f6f88f8c3a31d99f64cc1f6e316d26710da894670f130baf78fec5ecf3a70a70f0d7417a
23 DIST airdcpp-webclient-2.4.0.tar.gz 899040 BLAKE2B a498624fb273ecc756c6d1ce9fc6ebc4b44e0e6788ae41208a308d9e204a4657503e9123c7ed41c9a5d1ffca6a1eda54a3fdddb609244cea54b41605927281d9 SHA512 6598fd6bebae65381dd97763da4a69ce32e4d3f5cb16e5cbd66bd29d973e36c3a616138c84426c462cfd275b39b8d4bd4c0162de9dba3c02b603735ad842a3a7
24 +DIST airdcpp-webclient-2.5.0.tar.gz 900078 BLAKE2B 53f5e096a3a6cc7c77c92bef32a7aaf0fb7b5e49740718252c7b4e233b80c52ca27029ba24fef4f1ab9c4c360da182accffb8ba7de27ef9b0b4aaa011005b689 SHA512 cf0220e3f2096304e393a4bd833e81c1427dbd144a56498712c9e18f2ec14f35d9112ad0ff05f54aad5a57126d68fc46c2bf20806dd7464a5bdb301543b08809
25
26 diff --git a/net-p2p/airdcpp-webclient/airdcpp-webclient-2.5.0.ebuild b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.5.0.ebuild
27 new file mode 100644
28 index 00000000000..0a48a02f89a
29 --- /dev/null
30 +++ b/net-p2p/airdcpp-webclient/airdcpp-webclient-2.5.0.ebuild
31 @@ -0,0 +1,65 @@
32 +# Copyright 1999-2018 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=6
36 +PYTHON_COMPAT=( pypy{,3} python{2_7,3_{4,5,6,7}} )
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/leveldb:=
54 + dev-libs/libmaxminddb:=
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 +pkg_setup() {
70 + python-any-r1_pkg_setup
71 + enewgroup airdcppd
72 + enewuser airdcppd -1 -1 /var/lib/airdcppd airdcppd
73 +}
74 +
75 +src_configure() {
76 + local mycmakeargs=(
77 + -DINSTALL_WEB_UI=OFF
78 + -DENABLE_NATPMP=$(usex nat-pmp)
79 + -DENABLE_TBB=$(usex tbb)
80 + )
81 + cmake-utils_src_configure
82 +}
83 +
84 +src_install() {
85 + cmake-utils_src_install
86 + newconfd "${FILESDIR}/airdcppd.confd" airdcppd
87 + newinitd "${FILESDIR}/airdcppd.initd" airdcppd
88 + keepdir /var/lib/airdcppd
89 + fowners airdcppd:airdcppd /var/lib/airdcppd
90 +}
91 +
92 +pkg_postinst() {
93 + if [[ -z "${REPLACING_VERSIONS}" ]]; then
94 + elog "Run 'airdcppd --configure' to set up ports and authentication"
95 + fi
96 +}