Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-util/buildbot: buildbot-0.8.8-r1.ebuild ChangeLog
Date: Sat, 28 Sep 2013 10:34:07
Message-Id: 20130928103403.A1CB12004C@flycatcher.gentoo.org
1 pacho 13/09/28 10:34:03
2
3 Modified: ChangeLog
4 Added: buildbot-0.8.8-r1.ebuild
5 Log:
6 Add unit file (#486082 by Evgeniy Dushistov)
7
8 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key A188FBD4)
9
10 Revision Changes Path
11 1.141 dev-util/buildbot/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/ChangeLog?rev=1.141&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/ChangeLog?rev=1.141&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/ChangeLog?r1=1.140&r2=1.141
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-util/buildbot/ChangeLog,v
20 retrieving revision 1.140
21 retrieving revision 1.141
22 diff -u -r1.140 -r1.141
23 --- ChangeLog 21 Sep 2013 23:57:06 -0000 1.140
24 +++ ChangeLog 28 Sep 2013 10:34:03 -0000 1.141
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-util/buildbot
27 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/ChangeLog,v 1.140 2013/09/21 23:57:06 hwoarang Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/ChangeLog,v 1.141 2013/09/28 10:34:03 pacho Exp $
30 +
31 +*buildbot-0.8.8-r1 (28 Sep 2013)
32 +
33 + 28 Sep 2013; Pacho Ramos <pacho@g.o> +buildbot-0.8.8-r1.ebuild,
34 + +files/buildbot.service:
35 + Add unit file (#486082 by Evgeniy Dushistov)
36
37 21 Sep 2013; Markos Chandras <hwoarang@g.o> -buildbot-0.8.3_p1.ebuild,
38 -buildbot-0.8.6_p1.ebuild, -buildbot-0.8.7.ebuild:
39
40
41
42 1.1 dev-util/buildbot/buildbot-0.8.8-r1.ebuild
43
44 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/buildbot-0.8.8-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-util/buildbot/buildbot-0.8.8-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: buildbot-0.8.8-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2013 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-util/buildbot/buildbot-0.8.8-r1.ebuild,v 1.1 2013/09/28 10:34:03 pacho Exp $
52
53 EAPI="5"
54 PYTHON_DEPEND="2"
55 SUPPORT_PYTHON_ABIS="1"
56 RESTRICT_PYTHON_ABIS="3.* *-jython"
57 DISTUTILS_SRC_TEST="trial"
58 DISTUTILS_DISABLE_TEST_DEPENDENCY="1"
59
60 inherit distutils readme.gentoo systemd user
61
62 MY_PV="${PV/_p/p}"
63 MY_P="${PN}-${MY_PV}"
64
65 DESCRIPTION="BuildBot build automation system"
66 HOMEPAGE="http://trac.buildbot.net/ http://code.google.com/p/buildbot/ http://pypi.python.org/pypi/buildbot"
67 SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${MY_P}.tar.gz"
68
69 LICENSE="GPL-2"
70 SLOT="0"
71 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"
72 IUSE="doc examples irc mail manhole test"
73
74 # sqlite3 module of Python 2.5 is not supported.
75 RDEPEND=">=dev-python/jinja-2.1
76 || ( dev-lang/python:2.7 dev-lang/python:2.6 dev-python/simplejson )
77 || ( dev-lang/python:2.7[sqlite] dev-lang/python:2.6[sqlite] dev-python/pysqlite:2 )
78 >=dev-python/twisted-core-8.0.0
79 dev-python/twisted-web
80 dev-python/sqlalchemy
81 dev-python/sqlalchemy-migrate
82 irc? ( dev-python/twisted-words )
83 mail? ( dev-python/twisted-mail )
84 manhole? ( dev-python/twisted-conch )"
85 DEPEND="${DEPEND}
86 dev-python/setuptools
87 doc? ( sys-apps/texinfo )
88 test? (
89 dev-python/mock
90 dev-python/twisted-mail
91 dev-python/twisted-web
92 dev-python/twisted-words
93 )"
94
95 S="${WORKDIR}/${MY_P}"
96
97 pkg_setup() {
98 python_pkg_setup
99 enewuser buildbot
100
101 DOC_CONTENTS="The \"buildbot\" user and the \"buildmaster\" init script has been added
102 to support starting buildbot through Gentoo's init system. To use this,
103 set up your build master following the documentation, make sure the
104 resulting directories are owned by the \"buildbot\" user and point
105 \"${EROOT}etc/conf.d/buildmaster\" at the right location. The scripts can
106 run as a different user if desired. If you need to run more than one
107 build master, just copy the scripts."
108 }
109
110 src_compile() {
111 distutils_src_compile
112
113 if use doc; then
114 einfo "Generation of documentation"
115 pushd docs > /dev/null
116 emake buildbot.html buildbot.info
117 popd > /dev/null
118 fi
119 }
120
121 src_install() {
122 distutils_src_install
123
124 doman docs/buildbot.1
125
126 if use doc; then
127 dohtml -r docs/buildbot.html docs/images
128 doinfo docs/buildbot.info
129 fi
130
131 if use examples; then
132 insinto /usr/share/doc/${PF}
133 doins -r contrib docs/examples
134 fi
135
136 newconfd "${FILESDIR}/buildmaster.confd" buildmaster
137 newinitd "${FILESDIR}/buildmaster.initd" buildmaster
138 systemd_dounit "${FILESDIR}"/${PN}.service
139
140 # In case of multiple masters, it's possible to edit web files
141 # so all master can share the changes. So protect them!
142 # If something else need to be protected, please open a bug
143 # on http://bugs.gentoo.org
144 local cp
145 add_config_protect() {
146 cp+=" $(python_get_sitedir)/${PN}/status/web"
147 }
148 python_execute_function -q add_config_protect
149 echo "CONFIG_PROTECT=\"${cp}\"" \
150 > 85${PN} || die
151 doenvd 85${PN}
152
153 readme.gentoo_create_doc
154 }
155
156 pkg_postinst() {
157 distutils_pkg_postinst
158 readme.gentoo_print_elog
159 elog
160 elog "Upstream recommends the following when upgrading:"
161 elog "Each time you install a new version of Buildbot, you should run the"
162 elog "\"buildbot upgrade-master\" command on each of your pre-existing build masters."
163 elog "This will add files and fix (or at least detect) incompatibilities between"
164 elog "your old config and the new code."
165 }