/[gentoo-x86]/app-admin/salt/salt-2015.5.3.ebuild
Gentoo

Contents of /app-admin/salt/salt-2015.5.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Tue Jul 7 23:20:43 2015 UTC (3 years, 1 month ago) by chutzpah
Branch: MAIN
CVS Tags: HEAD
Version bump, remove old.

(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)

1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-admin/salt/salt-2015.5.2.ebuild,v 1.1 2015/06/04 21:51:36 chutzpah Exp $
4
5 EAPI=5
6 PYTHON_COMPAT=(python2_7)
7
8 inherit eutils systemd vim-plugin distutils-r1
9
10 DESCRIPTION="Salt is a remote execution and configuration manager"
11 HOMEPAGE="http://saltstack.org/"
12 SALT_VIM_HASH="20695f68e5895e5ae2b5884b78f5a2cd29897b05"
13
14 if [[ ${PV} == 9999* ]]; then
15 inherit git-r3
16 EGIT_REPO_URI="git://github.com/${PN}stack/${PN}.git"
17 EGIT_BRANCH="develop"
18 SRC_URI=""
19 KEYWORDS=""
20 else
21 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
22 KEYWORDS="~x86 ~amd64"
23 fi
24
25 SRC_URI+=" vim-syntax? ( https://github.com/${PN}stack/${PN}-vim/archive/${SALT_VIM_HASH}.tar.gz -> salt-vim-20141109.tar.gz )"
26
27 LICENSE="Apache-2.0"
28 SLOT="0"
29 IUSE="cherrypy ldap libcloud libvirt gnupg keyring mako mongodb mysql neutron nova"
30 IUSE+=" openssl redis selinux test timelib raet +zeromq vim-syntax"
31
32 RDEPEND="sys-apps/pciutils
33 dev-python/jinja[${PYTHON_USEDEP}]
34 >=dev-python/msgpack-0.3[${PYTHON_USEDEP}]
35 dev-python/pyyaml[${PYTHON_USEDEP}]
36 dev-python/markupsafe[${PYTHON_USEDEP}]
37 >=dev-python/requests-1.0.0[${PYTHON_USEDEP}]
38 dev-python/setuptools[${PYTHON_USEDEP}]
39 >=www-servers/tornado-4.0[${PYTHON_USEDEP}]
40 libcloud? ( >=dev-python/libcloud-0.14.0[${PYTHON_USEDEP}] )
41 mako? ( dev-python/mako[${PYTHON_USEDEP}] )
42 ldap? ( dev-python/python-ldap[${PYTHON_USEDEP}] )
43 openssl? ( dev-python/pyopenssl[${PYTHON_USEDEP}] )
44 libvirt? ( dev-python/libvirt-python[${PYTHON_USEDEP}] )
45 raet? (
46 >=dev-python/libnacl-1.0.0[${PYTHON_USEDEP}]
47 >=dev-python/ioflo-1.1.7[${PYTHON_USEDEP}]
48 >=dev-python/raet-0.6.0[${PYTHON_USEDEP}]
49 )
50 zeromq? (
51 >=dev-python/pyzmq-2.2.0[${PYTHON_USEDEP}]
52 >=dev-python/m2crypto-0.22.3[${PYTHON_USEDEP}]
53 dev-python/pycrypto[${PYTHON_USEDEP}]
54 )
55 cherrypy? ( >=dev-python/cherrypy-3.2.2[${PYTHON_USEDEP}] )
56 mongodb? ( dev-python/pymongo[${PYTHON_USEDEP}] )
57 keyring? ( dev-python/keyring[${PYTHON_USEDEP}] )
58 mysql? ( dev-python/mysql-python[${PYTHON_USEDEP}] )
59 redis? ( dev-python/redis-py[${PYTHON_USEDEP}] )
60 selinux? ( sec-policy/selinux-salt )
61 timelib? ( dev-python/timelib[${PYTHON_USEDEP}] )
62 nova? ( >=dev-python/python-novaclient-2.17.0[${PYTHON_USEDEP}] )
63 neutron? ( >=dev-python/python-neutronclient-2.3.6[${PYTHON_USEDEP}] )
64 gnupg? ( dev-python/python-gnupg[${PYTHON_USEDEP}] )"
65 DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]
66 test? (
67 dev-python/pip[${PYTHON_USEDEP}]
68 dev-python/virtualenv[${PYTHON_USEDEP}]
69 dev-python/mock[${PYTHON_USEDEP}]
70 dev-python/timelib[${PYTHON_USEDEP}]
71 >=dev-python/boto-2.32.1[${PYTHON_USEDEP}]
72 >=dev-python/moto-0.3.6[${PYTHON_USEDEP}]
73 >=dev-python/SaltTesting-2015.2.16[${PYTHON_USEDEP}]
74 ${RDEPEND}
75 )"
76
77 DOCS=(README.rst AUTHORS)
78
79 REQUIRED_USE="|| ( raet zeromq )"
80
81 PATCHES=(
82 "${FILESDIR}/${PN}-2014.7.1-remove-pydsl-includes-test.patch"
83 "${FILESDIR}/${PN}-2015.5.0-archive-test.patch"
84 )
85
86 python_prepare() {
87 # this test fails because it trys to "pip install distribute"
88 rm tests/unit/{modules,states}/zcbuildout_test.py tests/unit/modules/{rh_ip,win_network}_test.py
89 }
90
91 python_install_all() {
92 local svc
93 USE_SETUPTOOLS=1 distutils-r1_python_install_all
94
95 for svc in minion master syndic api; do
96 newinitd "${FILESDIR}"/${svc}-initd-4 salt-${svc}
97 newconfd "${FILESDIR}"/${svc}-confd-1 salt-${svc}
98 systemd_dounit "${FILESDIR}"/salt-${svc}.service
99 done
100
101 insinto /etc/${PN}
102 doins -r conf/*
103
104 use vim-syntax && S="${WORKDIR}/salt-vim-${SALT_VIM_HASH}" \
105 vim-plugin_src_install
106 }
107
108 python_test() {
109 # testsuite likes lots of files
110 ulimit -n 3072
111
112 # using ${T} for the TMPDIR makes some tests needs paths that exceed PATH_MAX
113 USE_SETUPTOOLS=1 SHELL="/bin/bash" TMPDIR="/tmp" \
114 ${EPYTHON} tests/runtests.py \
115 --unit-tests --no-report --verbose || die "testing failed"
116 }

  ViewVC Help
Powered by ViewVC 1.1.20