Gentoo Archives: gentoo-commits

From: Andrew Savchenko <bircoph@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libclsync/
Date: Fri, 30 Sep 2016 12:04:02
Message-Id: 1475237030.ad4f3583dc62407e096048f3f72f8f6e72419cc9.bircoph@gentoo
1 commit: ad4f3583dc62407e096048f3f72f8f6e72419cc9
2 Author: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 30 12:03:27 2016 +0000
4 Commit: Andrew Savchenko <bircoph <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 30 12:03:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad4f3583
7
8 dev-libs/libclsync: version bump
9
10 Bump to 0.4.2, update ebuild to EAPI 6.
11
12 Package-Manager: portage-2.3.1
13 Signed-off-by: Andrew Savchenko <bircoph <AT> gentoo.org>
14
15 dev-libs/libclsync/Manifest | 1 +
16 dev-libs/libclsync/libclsync-0.4.2.ebuild | 72 +++++++++++++++++++++++++++++++
17 2 files changed, 73 insertions(+)
18
19 diff --git a/dev-libs/libclsync/Manifest b/dev-libs/libclsync/Manifest
20 index 22e7548..994df4e 100644
21 --- a/dev-libs/libclsync/Manifest
22 +++ b/dev-libs/libclsync/Manifest
23 @@ -1 +1,2 @@
24 DIST clsync-0.4.1.tar.gz 253890 SHA256 3f14a72d7c3c1747ea908e373f25bd1918ce00450492fbb7094549db6bf21e27 SHA512 875280f706026d44806b92c22fa58d016136b2792f67a6b7e77f932465081da7a1ebaf22c25e538e4b58bfe04cd1cd5450ecab99c3df53ddd2a0fa966442d444 WHIRLPOOL 10ab11821766f7d16d03993069ac4da5fe362a1e5977ea6721e49ada7044d3659e59b507b03be4de09609b0a0ca9d7878407d7b6e1f40df5dbe1d041dac373cb
25 +DIST clsync-0.4.2.tar.gz 256042 SHA256 1af63b86c1d0bd663311f2129792446dc8fc4def5559f76658b51b69a8d0c3bd SHA512 d14a2efc4bf58d9d5c7a3fe5634cacdd182cd7cd814b0e9ebd99024a7282b056d1f7ceeec6903666391c3572d599a18e205af818b098ed7768d5c0e0f4cd1200 WHIRLPOOL a59446337282cb63455b43bbbf17ad1213e39713d9c267ca5ee8785d863bc90e7b99e5938e4d5be02f3103a98b1bb5d5a628580160952d821e6caaad72fa2679
26
27 diff --git a/dev-libs/libclsync/libclsync-0.4.2.ebuild b/dev-libs/libclsync/libclsync-0.4.2.ebuild
28 new file mode 100644
29 index 00000000..094b8d9
30 --- /dev/null
31 +++ b/dev-libs/libclsync/libclsync-0.4.2.ebuild
32 @@ -0,0 +1,72 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI=6
38 +
39 +MY_PN=${PN#lib}
40 +MY_P="${MY_PN}-${PV}"
41 +
42 +inherit autotools eutils
43 +
44 +DESCRIPTION="Control and monitoring library for clsync"
45 +HOMEPAGE="http://ut.mephi.ru/oss/clsync https://github.com/xaionaro/clsync"
46 +SRC_URI="https://github.com/xaionaro/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
47 +LICENSE="GPL-3+"
48 +SLOT="0"
49 +KEYWORDS="~amd64 ~x86"
50 +IUSE="debug extra-debug extra-hardened hardened static-libs"
51 +S="${WORKDIR}/${MY_P}"
52 +
53 +REQUIRED_USE="
54 + extra-debug? ( debug )
55 + extra-hardened? ( hardened )
56 +"
57 +
58 +DEPEND="virtual/pkgconfig"
59 +RDEPEND="
60 + =app-admin/clsync-0.4*[control-socket]
61 + =app-doc/clsync-docs-0.4*"
62 +
63 +src_prepare() {
64 + eapply_user
65 + eautoreconf
66 +}
67 +
68 +src_configure() {
69 + local harden_level=0
70 + use hardened && harden_level=1
71 + use extra-hardened && harden_level=2
72 +
73 + local debug_level=0
74 + use debug && debug_level=1
75 + use extra-debug && debug_level=2
76 +
77 + econf \
78 + --docdir="${EPREFIX}/usr/share/doc/${PF}" \
79 + --enable-socket-library \
80 + --disable-clsync \
81 + --enable-debug=${debug_level} \
82 + --enable-paranoid=${harden_level} \
83 + --without-bsm \
84 + --without-kqueue \
85 + --disable-capabilities \
86 + --disable-cluster \
87 + --enable-socket \
88 + --disable-highload-locks \
89 + --disable-unshare \
90 + --disable-seccomp \
91 + --without-libcgroup \
92 + --without-gio \
93 + --with-inotify=native \
94 + --without-mhash
95 +}
96 +
97 +src_install() {
98 + emake DESTDIR="${D}" install
99 + prune_libtool_files
100 + use static-libs || find "${ED}" -name "*.a" -delete || die "failed to remove static libs"
101 +
102 + # docs go into clsync-docs
103 + rm -rf "${ED}/usr/share/doc" || die
104 +}