/[gentoo-x86]/dev-util/buildbot/buildbot-0.8.6_p1.ebuild
Gentoo

Contents of /dev-util/buildbot/buildbot-0.8.6_p1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.20 - (show annotations) (download)
Sat Sep 21 23:57:06 2013 UTC (10 months, 1 week ago) by hwoarang
Branch: MAIN
CVS Tags: HEAD
Changes since 1.19: +1 -1 lines
FILE REMOVED
remove old

(Portage version: 2.2.6/cvs/Linux x86_64, signed Manifest commit with key C2BA7F3C!)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/buildbot-0.8.6_p1.ebuild,v 1.19 2013/08/03 09:45:39 mgorny Exp $
4
5 EAPI="3"
6 PYTHON_DEPEND="2"
7 SUPPORT_PYTHON_ABIS="1"
8 RESTRICT_PYTHON_ABIS="3.* *-jython"
9 DISTUTILS_SRC_TEST="trial"
10 DISTUTILS_DISABLE_TEST_DEPENDENCY="1"
11
12 inherit distutils user
13
14 MY_PV="${PV/_p/p}"
15 MY_P="${PN}-${MY_PV}"
16
17 DESCRIPTION="BuildBot build automation system"
18 HOMEPAGE="http://trac.buildbot.net/ http://code.google.com/p/buildbot/ http://pypi.python.org/pypi/buildbot"
19 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
20
21 LICENSE="GPL-2"
22 SLOT="0"
23 KEYWORDS="alpha amd64 arm hppa ia64 ppc ppc64 s390 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
24 IUSE="doc examples irc mail manhole test"
25
26 # sqlite3 module of Python 2.5 is not supported.
27 RDEPEND=">=dev-python/jinja-2.1
28 || ( dev-lang/python:2.7 dev-lang/python:2.6 dev-python/simplejson )
29 || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-python/pysqlite:2 )
30 >=dev-python/twisted-core-8.0.0
31 dev-python/twisted-web
32 dev-python/sqlalchemy
33 dev-python/sqlalchemy-migrate
34 irc? ( dev-python/twisted-words )
35 mail? ( dev-python/twisted-mail )
36 manhole? ( dev-python/twisted-conch )"
37 DEPEND="${DEPEND}
38 dev-python/setuptools
39 doc? ( sys-apps/texinfo )
40 test? (
41 dev-python/mock
42 dev-python/twisted-mail
43 dev-python/twisted-web
44 dev-python/twisted-words
45 )"
46
47 S="${WORKDIR}/${MY_P}"
48
49 pkg_setup() {
50 python_pkg_setup
51 enewuser buildbot
52 }
53
54 src_prepare() {
55 distutils_src_prepare
56 # https://github.com/buildbot/buildbot/commit/a3abed70546b3742964994517bb27556e06f6e20
57 sed -e "s/sqlalchemy-migrate == 0.6/sqlalchemy-migrate ==0.6, ==0.7/" -i setup.py || die "sed failed"
58 }
59
60 src_compile() {
61 distutils_src_compile
62
63 if use doc; then
64 einfo "Generation of documentation"
65 pushd docs > /dev/null
66 emake buildbot.html buildbot.info
67 popd > /dev/null
68 fi
69 }
70
71 src_install() {
72 distutils_src_install
73
74 doman docs/buildbot.1
75
76 if use doc; then
77 dohtml -r docs/buildbot.html docs/images
78 doinfo docs/buildbot.info
79 fi
80
81 if use examples; then
82 insinto /usr/share/doc/${PF}
83 doins -r contrib docs/examples
84 fi
85
86 newconfd "${FILESDIR}/buildmaster.confd" buildmaster
87 newinitd "${FILESDIR}/buildmaster.initd" buildmaster
88 }
89
90 pkg_postinst() {
91 distutils_pkg_postinst
92
93 elog "The \"buildbot\" user and the \"buildmaster\" init script has been added"
94 elog "to support starting buildbot through Gentoo's init system. To use this,"
95 elog "set up your build master following the documentation, make sure the"
96 elog "resulting directories are owned by the \"buildbot\" user and point"
97 elog "\"${EROOT}etc/conf.d/buildmaster\" at the right location. The scripts can"
98 elog "run as a different user if desired. If you need to run more than one"
99 elog "build master, just copy the scripts."
100 elog
101 elog "Upstream recommends the following when upgrading:"
102 elog "Each time you install a new version of Buildbot, you should run the"
103 elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
104 elog "This will add files and fix (or at least detect) incompatibilities between"
105 elog "your old config and the new code."
106 }

  ViewVC Help
Powered by ViewVC 1.1.20