blob: 28b19976824ff6f42f9833896460e1cdf7c074de (
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
|
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python2_7 )
inherit python-any-r1 toolchain-funcs
DESCRIPTION="Fast and flexible Lua-based build system"
HOMEPAGE="https://matricks.github.com/bam/"
SRC_URI="https://github.com/matricks/bam/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="ZLIB"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc test"
RESTRICT="!test? ( test )"
RDEPEND=">=dev-lang/lua-5.3:="
DEPEND="${RDEPEND}"
BDEPEND="doc? (
${PYTHON_DEPS}
media-gfx/graphviz
)
test? ( ${PYTHON_DEPS} )"
pkg_setup() {
if use doc || use test; then
python-any-r1_pkg_setup
fi
}
src_prepare() {
default
# There is no such file licence.txt
sed -e '/license\.txt/d' -i scripts/gendocs.py || die
tc-export CC
}
src_compile() {
emake ${PN}
if use doc; then
"${EPYTHON}" scripts/gendocs.py || die "doc generation failed"
fi
}
src_install() {
dobin ${PN}
if use doc; then
dodoc docs/${PN}{.html,_logo.png}
fi
}
|