diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-09-28 08:17:07 +0100 |
commit | 5a165c60b9b8c4847067cb83b4be7da785d01f93 (patch) | |
tree | 166b01591366d3479084ea774c888bc84aaa8d4f /dev-util/bam/bam-0.5.1.ebuild | |
parent | a5b65c81168c90928784a1e92cda84ed5d6b9eb3 (diff) |
gentoo resync : 28.09.2019
Diffstat (limited to 'dev-util/bam/bam-0.5.1.ebuild')
-rw-r--r-- | dev-util/bam/bam-0.5.1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/dev-util/bam/bam-0.5.1.ebuild b/dev-util/bam/bam-0.5.1.ebuild new file mode 100644 index 000000000000..7684f85a3ebf --- /dev/null +++ b/dev-util/bam/bam-0.5.1.ebuild @@ -0,0 +1,52 @@ +# 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" + +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 +} |