53 lines
1.0 KiB
Bash
53 lines
1.0 KiB
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/dev-util/bam/bam-0.3.2.ebuild,v 1.1 2010/03/24 23:25:56 volkmar Exp $
|
|
|
|
EAPI=3
|
|
|
|
PYTHON_DEPEND="2"
|
|
|
|
inherit eutils python
|
|
|
|
DESCRIPTION="Fast and flexible Lua-based build system"
|
|
HOMEPAGE="http://matricks.github.com/bam/"
|
|
SRC_URI="http://github.com/downloads/matricks/${PN}/${P}.tar.bz2"
|
|
|
|
LICENSE="ZLIB"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="doc test"
|
|
|
|
RDEPEND="dev-lang/lua"
|
|
DEPEND="${RDEPEND}
|
|
doc? ( dev-lang/python )
|
|
test? ( dev-lang/python )"
|
|
|
|
pkg_setup() {
|
|
python_set_active_version 2
|
|
python_pkg_setup
|
|
}
|
|
|
|
src_prepare() {
|
|
cp "${FILESDIR}"/${PV}/Makefile "${S}"/Makefile || die "cp failed"
|
|
|
|
epatch "${FILESDIR}"/${PV}/${P}-test.py.patch
|
|
|
|
python_convert_shebangs -r 2 .
|
|
}
|
|
|
|
src_compile() {
|
|
emake ${PN} || die
|
|
|
|
if use doc; then
|
|
$(PYTHON) scripts/gendocs.py || die "doc generation failed"
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
dobin ${PN} || die
|
|
|
|
if use doc; then
|
|
dohtml docs/${PN}{.html,_logo.png} || die "dohtml failed"
|
|
fi
|
|
}
|