63 lines
1.5 KiB
Bash
63 lines
1.5 KiB
Bash
# Copyright 1999-2013 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/app-admin/ansible/ansible-9999.ebuild,v 1.10 2013/05/25 07:47:28 pinkbyte Exp $
|
|
|
|
EAPI="5"
|
|
|
|
PYTHON_COMPAT=( python{2_6,2_7} )
|
|
|
|
EGIT_REPO_URI="git://github.com/ansible/ansible.git"
|
|
EGIT_BRANCH="devel"
|
|
|
|
inherit distutils-r1 git-2 readme.gentoo
|
|
|
|
DESCRIPTION="Radically simple deployment, model-driven configuration management, and command execution framework"
|
|
HOMEPAGE="http://ansible.cc/"
|
|
SRC_URI=""
|
|
|
|
KEYWORDS=""
|
|
LICENSE="GPL-3"
|
|
SLOT="0"
|
|
IUSE="examples test"
|
|
|
|
DEPEND="test? (
|
|
dev-python/nose
|
|
dev-vcs/git
|
|
)"
|
|
RDEPEND="
|
|
dev-python/jinja
|
|
dev-python/pyyaml
|
|
dev-python/paramiko
|
|
net-misc/sshpass
|
|
virtual/ssh
|
|
"
|
|
|
|
DOC_CONTENTS="You can define parameters through shell variables OR use config files
|
|
Examples of config files installed in /usr/share/doc/${P}/examples\n\n
|
|
You have to create ansible hosts file!\n
|
|
More info on http://ansible.cc/docs/gettingstarted.html"
|
|
|
|
src_prepare() {
|
|
distutils-r1_src_prepare
|
|
# Skip tests which need ssh access
|
|
sed -i 's:PYTHONPATH=./lib nosetests.*:\0 -e \\(TestPlayBook.py\\|TestRunner.py\\):' Makefile || die "sed failed"
|
|
}
|
|
|
|
src_test() {
|
|
make tests || die "tests failed"
|
|
}
|
|
|
|
src_install() {
|
|
distutils-r1_src_install
|
|
readme.gentoo_create_doc
|
|
|
|
doman docs/man/man1/*.1
|
|
if use examples; then
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
fi
|
|
# Hint: do not install example config files into /etc
|
|
# let this choice to user
|
|
|
|
newenvd "${FILESDIR}"/${PN}.env 95ansible
|
|
}
|