1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
9 inherit autotools eutils ltprune
11 DESCRIPTION="Control and monitoring library for clsync"
12 HOMEPAGE="http://ut.mephi.ru/oss/clsync https://github.com/xaionaro/clsync"
13 SRC_URI="https://github.com/xaionaro/${MY_PN}/archive/v${PV}.tar.gz -> ${MY_P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
17 IUSE="debug extra-debug extra-hardened hardened static-libs"
18 S="${WORKDIR}/${MY_P}"
21 extra-debug? ( debug )
22 extra-hardened? ( hardened )
25 DEPEND="virtual/pkgconfig"
26 RDEPEND="=app-doc/clsync-docs-0.4*"
35 use hardened && harden_level=1
36 use extra-hardened && harden_level=2
39 use debug && debug_level=1
40 use extra-debug && debug_level=2
43 --docdir="${EPREFIX}/usr/share/doc/${PF}" \
44 --enable-socket-library \
46 --enable-debug=${debug_level} \
47 --enable-paranoid=${harden_level} \
50 --disable-capabilities \
53 --disable-highload-locks \
58 --with-inotify=native \
63 emake DESTDIR="${D}" install
65 use static-libs || find "${ED}" -name "*.a" -delete || die "failed to remove static libs"
67 # docs go into clsync-docs
68 rm -rf "${ED}/usr/share/doc" || die
72 einfo "clsync instances you are going to use _must_ be compiled"
73 einfo "with control-socket support"