blob: ca3006fbc0c69068fa6451eb6855ffb827d8128b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8} )
inherit autotools distutils-r1
COMMIT="8e0ba724d85de2c89f48161807e878667b9ed089" # v4.9.0 tag
DESCRIPTION="A file watching service"
HOMEPAGE="https://facebook.github.io/watchman/"
SRC_URI="https://github.com/facebook/watchman/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE="pcre python"
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
RDEPEND="pcre? ( dev-libs/libpcre )
python? ( ${PYTHON_DEPS} )"
DEPEND="${RDEPEND}"
PATCHES=(
"${FILESDIR}/${PV}-python3.patch"
"${FILESDIR}/${PV}-changes.patch"
)
src_prepare() {
default
eautoreconf
}
src_configure() {
econf \
--enable-lenient \
--disable-statedir \
--without-python \
$(use_with pcre)
}
src_compile() {
default
if use python; then
pushd python >/dev/null || die
distutils-r1_src_compile
popd >/dev/null || die
fi
}
src_install() {
default
if use python; then
pushd python >/dev/null || die
distutils-r1_src_install
popd >/dev/null || die
fi
}
|