blob: ea6fa1cfbb486155e541c2318c71c09cad3d4294 (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-embedded/bitbake/bitbake-1.10.2.ebuild,v 1.2 2011/01/26 16:40:21 arfrever Exp $
EAPI="3"
PYTHON_DEPEND="2:2.5"
inherit distutils
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="git://git.openembedded.org/bitbake.git"
inherit git
SRC_URI=""
KEYWORDS="~amd64 ~ppc ~x86"
else
SRC_URI="mirror://berlios/${PN}/${P}.tar.gz"
KEYWORDS="~amd64 ~ppc ~x86"
fi
DESCRIPTION="package management tool for OpenEmbedded"
HOMEPAGE="http://developer.berlios.de/projects/bitbake/"
LICENSE="GPL-2"
SLOT="0"
IUSE="doc"
RDEPEND="|| ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-lang/python:2.5[sqlite] >=dev-python/pysqlite-2.3.2 )"
DEPEND="${RDEPEND}
doc? ( dev-libs/libxslt )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
}
src_prepare() {
if ! use doc ; then
sed -i -e 's:doctype = "html":doctype = "none":' \
-e 's:("share/doc/bitbake-%s/manual.*))::' setup.py
echo "none:" >> doc/manual/Makefile
else
sed -i -e "s:\(share/doc/bitbake-%s.* %\) __version__:\1 \"${PV}\":" setup.py
fi
}
|