Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-libs/librsync/files/, net-libs/librsync/
Date: Wed, 15 Nov 2017 20:52:28
Message-Id: 1510779136.062d4fa546fea8d8b2812c8d19d3343784184d3c.slyfox@gentoo
1 commit: 062d4fa546fea8d8b2812c8d19d3343784184d3c
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 15 20:51:44 2017 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 15 20:52:16 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=062d4fa5
7
8 net-libs/librsync: bump up to 2.0.1, bug #635834
9
10 Fixes md4 support on big-endian platforms.
11
12 Bug: https://github.com/librsync/librsync/issues/132
13 Closes: https://bugs.gentoo.org/635834
14 Package-Manager: Portage-2.3.14, Repoman-2.3.6
15
16 net-libs/librsync/Manifest | 1 +
17 .../librsync/files/librsync-2.0.1-libdir.patch | 15 ++++++++++++
18 net-libs/librsync/librsync-2.0.1.ebuild | 27 ++++++++++++++++++++++
19 3 files changed, 43 insertions(+)
20
21 diff --git a/net-libs/librsync/Manifest b/net-libs/librsync/Manifest
22 index 224f662d0ab..29c6ce2775f 100644
23 --- a/net-libs/librsync/Manifest
24 +++ b/net-libs/librsync/Manifest
25 @@ -1,2 +1,3 @@
26 DIST librsync-0.9.7.tar.gz 453802 SHA256 6633e4605662763a03bb6388529cbdfd3b11a9ec55b8845351c1bd9a92bc41d6 SHA512 339362fd01c94411849d3e4a6e95db1bef6cffa0475b1af49d73f11be0421a12d4c73ecbf1a272af01b2a21cec81b4a801c1f7d735e107d0242707fb4c45f9ef WHIRLPOOL 7cf5cc675c4bf4e041d9132f0a8311f83e827bfa7dd75180f3153cabeab41a94011e1a9b56e63a61dbe119444e2c24a39054986d97b686db99293ad9177b2bf7
27 DIST librsync-2.0.0.tar.gz 155049 SHA256 b5c4dd114289832039397789e42d4ff0d1108ada89ce74f1999398593fae2169 SHA512 1a88dcc3aa60949e058c57eb0df3e0086823c493de40fed927246f5aada6274db57202074456a0ce5d9aa8b81b41836b0d6221ded6a75d43829572584177e8c0 WHIRLPOOL a09e76a712ca21a37bc3d06cf2f97a0e7201cfcf82c18cbebf3f07bfd453ac3503d18c900b7c1136e0319ec7f3b7c4a6c43611648c78b31fe13c7298ccf016e0
28 +DIST librsync-2.0.1.tar.gz 169765 SHA256 6fce69041aa4fc72a21f1ab280a7299b82df2b1fa0a25d8695fd527e6752625e SHA512 70c1ed0f3a8ad8c1201ce67b5411c4aabb4c78ba9d60e4ee658d9a8818c6511322abd53b583869b8927a29b0f105e1a5c9b05efa748eb435e8fc3b7be3344e04 WHIRLPOOL cc1a9fbd5fd2b83fadc6cb8426d6b58b09f0c8d71462efa883ee2fda0778c65f8ab2a04b5047e6d7401f78a5d3f223b0848ec4d0accf8d05e6237a70d2f42b5d
29
30 diff --git a/net-libs/librsync/files/librsync-2.0.1-libdir.patch b/net-libs/librsync/files/librsync-2.0.1-libdir.patch
31 new file mode 100644
32 index 00000000000..50460dfdbf1
33 --- /dev/null
34 +++ b/net-libs/librsync/files/librsync-2.0.1-libdir.patch
35 @@ -0,0 +1,15 @@
36 +diff --git a/CMakeLists.txt b/CMakeLists.txt
37 +index f40bf1d..b123d09 100644
38 +--- a/CMakeLists.txt
39 ++++ b/CMakeLists.txt
40 +@@ -333,5 +333,9 @@ endif (ENABLE_COMPRESSION)
41 + set_target_properties(rsync PROPERTIES VERSION ${LIBRSYNC_VERSION}
42 + SOVERSION ${LIBRSYNC_MAJOR_VERSION})
43 +-install(TARGETS rsync ${INSTALL_TARGETS_DEFAULT_ARGS} DESTINATION lib)
44 ++
45 ++if (NOT TARGET_LIBDIR)
46 ++ set(TARGET_LIBDIR lib)
47 ++endif()
48 ++install(TARGETS rsync ${INSTALL_TARGETS_DEFAULT_ARGS} DESTINATION ${TARGET_LIBDIR})
49 +
50 +
51
52 diff --git a/net-libs/librsync/librsync-2.0.1.ebuild b/net-libs/librsync/librsync-2.0.1.ebuild
53 new file mode 100644
54 index 00000000000..931a6a6f450
55 --- /dev/null
56 +++ b/net-libs/librsync/librsync-2.0.1.ebuild
57 @@ -0,0 +1,27 @@
58 +# Copyright 1999-2017 Gentoo Foundation
59 +# Distributed under the terms of the GNU General Public License v2
60 +
61 +EAPI=6
62 +
63 +inherit cmake-utils
64 +
65 +DESCRIPTION="Remote delta-compression library"
66 +HOMEPAGE="http://librsync.sourcefrog.net/"
67 +SRC_URI="https://github.com/librsync/librsync/archive/v${PV}.tar.gz -> ${P}.tar.gz"
68 +
69 +LICENSE="LGPL-2.1"
70 +SLOT="0"
71 +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
72 +
73 +RDEPEND="dev-libs/popt"
74 +DEPEND="${RDEPEND}"
75 +
76 +PATCHES=("${FILESDIR}"/${PN}-2.0.1-libdir.patch)
77 +
78 +src_configure() {
79 + local mycmakeargs=(
80 + -DTARGET_LIBDIR=$(get_libdir)
81 + )
82 +
83 + cmake-utils_src_configure
84 +}