/[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.4 - (hide annotations) (download)
Sun Aug 19 21:09:32 2012 UTC (23 months, 1 week ago) by ottxor
Branch: MAIN
Changes since 1.3: +3 -3 lines
added prefix keywords

(Portage version: 2.2.0_alpha121/cvs/Linux i686)

1 patrick 1.1 # Copyright 1999-2012 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 ottxor 1.4 # $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/buildbot-0.8.6_p1.ebuild,v 1.3 2012/06/08 07:42:34 radhermit Exp $
4 patrick 1.1
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 radhermit 1.3 inherit distutils user
13 patrick 1.1
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 ottxor 1.4 KEYWORDS="~alpha ~amd64 ~arm ~hppa ~x86 ~x86-interix ~amd64-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris"
24 patrick 1.1 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-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 ottxor 1.4 elog "\"${EROOT}etc/conf.d/buildmaster\" at the right location. The scripts can"
98 patrick 1.1 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