Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/libtorrent-rasterbar/
Date: Tue, 31 Dec 2019 12:42:03
Message-Id: 1577796115.e00568edcdd91d0c71d1e03b765af953e3b93db4.zlogene@gentoo
1 commit: e00568edcdd91d0c71d1e03b765af953e3b93db4
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 31 12:41:30 2019 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 31 12:41:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e00568ed
7
8 net-libs/libtorrent-rasterbar: Version bump (v1.1.14)
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 net-libs/libtorrent-rasterbar/Manifest | 1 +
14 .../libtorrent-rasterbar-1.1.14.ebuild | 106 +++++++++++++++++++++
15 2 files changed, 107 insertions(+)
16
17 diff --git a/net-libs/libtorrent-rasterbar/Manifest b/net-libs/libtorrent-rasterbar/Manifest
18 index d5e54c8bfec..b3d08f48dea 100644
19 --- a/net-libs/libtorrent-rasterbar/Manifest
20 +++ b/net-libs/libtorrent-rasterbar/Manifest
21 @@ -1,2 +1,3 @@
22 DIST libtorrent-rasterbar-1.1.13.tar.gz 3896007 BLAKE2B b94f843437be348b10082f19d0b416f909daf15078b1461ab6724ee086d3194f6c378c305174676a3399fc3e6cb23133faaa334ac5dfc9457fb597c65dad7d36 SHA512 021fc54353fdf5063d55ccdc2057dada292bb0008fb92e93e8d94dd89f529630f290fcdc4f4d095e3192522c57fe0f0da260b5ef8e8e15a8c6ac05728f5f7160
23 +DIST libtorrent-rasterbar-1.1.14.tar.gz 4040571 BLAKE2B 38ea1a71e46bf18c9beeb869280e4949b199ab58c32f41e63f1c15c7c32db0d256b741ea707350e9e153695b9cc28e0a95385944bf76dbd5eb2055e66bb0f919 SHA512 b640ada016f8e68a3fb0e033dd33ab79b345b0f691aa722c4256b8cd8524c6e55067ccd1f11584984bbb82c0f64151f0b5223bd2b8431b899ffca46d2d31fff5
24 DIST libtorrent-rasterbar-1.2.3.tar.gz 3591081 BLAKE2B 9766a21c948997b35c6d209940a2d2cfd76b130f1a9d1f611e07d3eeb27f634a3c5eca12c92261139200084b9678913d85f6a56f98ab6894e5def761615c39ad SHA512 11a81c9f4b968ed360740553f8d856a2fad4eb2f6962f6403394e0a4a6b198ef6f04ce92d11fc6bed9aa979c84efd03fb396027dfe6603f394104b4302e04d82
25
26 diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.14.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.14.ebuild
27 new file mode 100644
28 index 00000000000..b3dc8f6c766
29 --- /dev/null
30 +++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.1.14.ebuild
31 @@ -0,0 +1,106 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +PYTHON_COMPAT=( python2_7 python3_{5,6} )
38 +PYTHON_REQ_USE="threads"
39 +DISTUTILS_OPTIONAL=true
40 +DISTUTILS_IN_SOURCE_BUILD=true
41 +
42 +inherit distutils-r1 flag-o-matic
43 +
44 +MY_PV=$(ver_rs 1-2 '_')
45 +
46 +DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability"
47 +HOMEPAGE="https://libtorrent.org"
48 +SRC_URI="https://github.com/arvidn/libtorrent/releases/download/libtorrent-${MY_PV}/${P}.tar.gz"
49 +
50 +LICENSE="BSD"
51 +SLOT="0/9"
52 +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sparc ~x86"
53 +IUSE="debug +dht doc examples libressl python +ssl static-libs test"
54 +
55 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
56 +
57 +RESTRICT="!test? ( test )"
58 +
59 +RDEPEND="
60 + dev-libs/boost:=[threads]
61 + virtual/libiconv
62 + examples? ( !net-p2p/mldonkey )
63 + python? (
64 + ${PYTHON_DEPS}
65 + dev-libs/boost:=[python,${PYTHON_USEDEP}]
66 + )
67 + ssl? (
68 + !libressl? ( dev-libs/openssl:0= )
69 + libressl? ( dev-libs/libressl:= )
70 + )
71 +"
72 +DEPEND="${RDEPEND}
73 + sys-devel/libtool
74 +"
75 +
76 +src_prepare() {
77 + default
78 +
79 + # bug 578026
80 + # prepend -L${S}/... to ensure bindings link against the lib we just built
81 + sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die
82 +
83 + # prepend -I${S}/... to ensure bindings use the right headers
84 + sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die
85 +
86 + use python && distutils-r1_src_prepare
87 +}
88 +
89 +src_configure() {
90 + append-cxxflags -std=c++11 # bug 634506
91 +
92 + local myeconfargs=(
93 + $(use_enable debug)
94 + $(use_enable debug disk-stats)
95 + $(use_enable debug logging)
96 + $(use_enable dht)
97 + $(use_enable examples)
98 + $(use_enable ssl encryption)
99 + $(use_enable static-libs static)
100 + $(use_enable test tests)
101 + --with-libiconv
102 + )
103 + econf "${myeconfargs[@]}"
104 +
105 + if use python; then
106 + python_configure() {
107 + econf "${myeconfargs[@]}" \
108 + --enable-python-binding \
109 + --with-boost-python="boost_${EPYTHON/./}"
110 + }
111 + distutils-r1_src_configure
112 + fi
113 +}
114 +
115 +src_compile() {
116 + default
117 +
118 + python_compile() {
119 + cd "${BUILD_DIR}/../bindings/python" || die
120 + distutils-r1_python_compile
121 + }
122 + use python && distutils-r1_src_compile
123 +}
124 +
125 +src_install() {
126 + use doc && HTML_DOCS+=( "${S}"/docs )
127 +
128 + default
129 +
130 + python_install() {
131 + cd "${BUILD_DIR}/../bindings/python" || die
132 + distutils-r1_python_install
133 + }
134 + use python && distutils-r1_src_install
135 +
136 + find "${D}" -name '*.la' -delete || die
137 +}