1 |
commit: 1124643be34aba191c99f74e825136fc660a3ce9 |
2 |
Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 28 19:06:46 2020 +0000 |
4 |
Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 28 19:07:13 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1124643b |
7 |
|
8 |
net-libs/libtorrent-rasterbar: Version bump (v1.2.9) |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org> |
12 |
|
13 |
net-libs/libtorrent-rasterbar/Manifest | 1 + |
14 |
.../libtorrent-rasterbar-1.2.9.ebuild | 111 +++++++++++++++++++++ |
15 |
2 files changed, 112 insertions(+) |
16 |
|
17 |
diff --git a/net-libs/libtorrent-rasterbar/Manifest b/net-libs/libtorrent-rasterbar/Manifest |
18 |
index 53a17d46bb2..3ca7975df12 100644 |
19 |
--- a/net-libs/libtorrent-rasterbar/Manifest |
20 |
+++ b/net-libs/libtorrent-rasterbar/Manifest |
21 |
@@ -1,4 +1,5 @@ |
22 |
DIST libtorrent-1.2.8.tar.gz 3583174 BLAKE2B ead7e28f7c29422526f8eab5611d98ba9a6d3827edf45c3819951a7ffb6f360debb818083bf0fa46e573005c3b9df3d3b4b3515c0498515449708b166e181705 SHA512 2a36412fb399f066de9768f4afd87ddbfc10fcd2a0b3a8be0a43bec6914497e71d9d4ffe4ff8ccc5544a048f799ccba6ce086ab6199f4dee66d1341f02d73f9a |
23 |
+DIST libtorrent-1.2.9.tar.gz 3584800 BLAKE2B 5160056e227a54992ca4e490ffe0088d080aa9bade7a76f55eac26a644bab720c39a70b90d94f465ec711893249a084d9f77fa496be770585094b9b3ea4a1cdd SHA512 c547d96470f6a89f22adc0f5579ffb98b877a46f0a163698c49f1de57f23af60a7b0d3c1ca482e3ed8d3e35124d14a1d16a53e455f4d69f347fcb33c6ded75a8 |
24 |
DIST libtorrent-rasterbar-1.1.14.tar.gz 4040571 BLAKE2B 38ea1a71e46bf18c9beeb869280e4949b199ab58c32f41e63f1c15c7c32db0d256b741ea707350e9e153695b9cc28e0a95385944bf76dbd5eb2055e66bb0f919 SHA512 b640ada016f8e68a3fb0e033dd33ab79b345b0f691aa722c4256b8cd8524c6e55067ccd1f11584984bbb82c0f64151f0b5223bd2b8431b899ffca46d2d31fff5 |
25 |
DIST libtorrent-rasterbar-1.2.6.tar.gz 3611015 BLAKE2B 39323c223927272a4eb9bb93ad70acd62165b9b3eb3f4f45cb76f99a23b1e131b526c8d8370fbd7cc30c7e776a5f9b7990c989ceaa3566272adc25df639fc5ba SHA512 9f03e28449b08e18a98a1f1bf0571f470c56fabd2becde5bde56ad566611c8519b0b387939f285a552d1f0382446633b67d00b6b5ff7083e4d1420a3ce9232fc |
26 |
DIST libtorrent-rasterbar-1.2.7.tar.gz 4105179 BLAKE2B 126bb0b287c0573f755e918b3cf32a0a98c14b3b41f676d7842ea58deecc141b046b4bc18579cb9c20b324fb1361794ee6afedeff64d0b76f1bb6a95b82e10f7 SHA512 60dfb31b1300b3aa2219227b3a263ba73aedb54a90aa940c117027651779cb972d6e1badf9519f6ad7947233b54df608b829bab34493ceda9e4cb8913041a752 |
27 |
|
28 |
diff --git a/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.9.ebuild b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.9.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..ec2c3393a34 |
31 |
--- /dev/null |
32 |
+++ b/net-libs/libtorrent-rasterbar/libtorrent-rasterbar-1.2.9.ebuild |
33 |
@@ -0,0 +1,111 @@ |
34 |
+# Copyright 1999-2020 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{7,8} ) |
40 |
+PYTHON_REQ_USE="threads(+)" |
41 |
+DISTUTILS_OPTIONAL=true |
42 |
+DISTUTILS_IN_SOURCE_BUILD=true |
43 |
+ |
44 |
+inherit autotools distutils-r1 |
45 |
+ |
46 |
+DESCRIPTION="C++ BitTorrent implementation focusing on efficiency and scalability" |
47 |
+HOMEPAGE="https://libtorrent.org https://github.com/arvidn/libtorrent" |
48 |
+SRC_URI="https://github.com/arvidn/libtorrent/archive/libtorrent-${PV}.tar.gz" |
49 |
+ |
50 |
+LICENSE="BSD" |
51 |
+SLOT="0/10" |
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 |
+S="${WORKDIR}/libtorrent-libtorrent-${PV}" |
60 |
+ |
61 |
+RDEPEND=" |
62 |
+ dev-libs/boost:=[threads] |
63 |
+ virtual/libiconv |
64 |
+ examples? ( !net-p2p/mldonkey ) |
65 |
+ python? ( |
66 |
+ ${PYTHON_DEPS} |
67 |
+ dev-libs/boost:=[python,${PYTHON_USEDEP}] |
68 |
+ ) |
69 |
+ ssl? ( |
70 |
+ !libressl? ( dev-libs/openssl:0= ) |
71 |
+ libressl? ( dev-libs/libressl:= ) |
72 |
+ ) |
73 |
+" |
74 |
+DEPEND="${RDEPEND} |
75 |
+ sys-devel/libtool |
76 |
+" |
77 |
+ |
78 |
+src_prepare() { |
79 |
+ mkdir -p "${S}"/build-aux || die |
80 |
+ touch "${S}"/build-aux/config.rpath || die |
81 |
+ eautoreconf |
82 |
+ |
83 |
+ default |
84 |
+ |
85 |
+ # bug 578026 |
86 |
+ # prepend -L${S}/... to ensure bindings link against the lib we just built |
87 |
+ sed -i -e "s|^|-L${S}/src/.libs |" bindings/python/link_flags.in || die |
88 |
+ |
89 |
+ # prepend -I${S}/... to ensure bindings use the right headers |
90 |
+ sed -i -e "s|^|-I${S}/src/include |" bindings/python/compile_flags.in || die |
91 |
+ |
92 |
+ use python && distutils-r1_src_prepare |
93 |
+} |
94 |
+ |
95 |
+src_configure() { |
96 |
+ |
97 |
+ local myeconfargs=( |
98 |
+ $(use_enable debug) |
99 |
+ $(use_enable debug export-all) |
100 |
+ $(use_enable debug logging) |
101 |
+ $(use_enable dht) |
102 |
+ $(use_enable examples) |
103 |
+ $(use_enable ssl encryption) |
104 |
+ $(use_enable static-libs static) |
105 |
+ $(use_enable test tests) |
106 |
+ --with-boost |
107 |
+ --with-libiconv |
108 |
+ --enable-logging |
109 |
+ ) |
110 |
+ econf "${myeconfargs[@]}" |
111 |
+ |
112 |
+ if use python; then |
113 |
+ python_configure() { |
114 |
+ econf "${myeconfargs[@]}" \ |
115 |
+ --enable-python-binding \ |
116 |
+ --with-boost-python="boost_${EPYTHON/./}" |
117 |
+ } |
118 |
+ distutils-r1_src_configure |
119 |
+ fi |
120 |
+} |
121 |
+ |
122 |
+src_compile() { |
123 |
+ default |
124 |
+ |
125 |
+ python_compile() { |
126 |
+ cd "${BUILD_DIR}/../bindings/python" || die |
127 |
+ distutils-r1_python_compile |
128 |
+ } |
129 |
+ use python && distutils-r1_src_compile |
130 |
+} |
131 |
+ |
132 |
+src_install() { |
133 |
+ use doc && HTML_DOCS+=( "${S}"/docs ) |
134 |
+ |
135 |
+ default |
136 |
+ |
137 |
+ python_install() { |
138 |
+ cd "${BUILD_DIR}/../bindings/python" || die |
139 |
+ distutils-r1_python_install |
140 |
+ } |
141 |
+ use python && distutils-r1_src_install |
142 |
+ |
143 |
+ find "${D}" -name '*.la' -delete || die |
144 |
+} |