Gentoo Archives: gentoo-commits

From: "Sebastian Pipping (sping)" <sping@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-gfx/drqueue: drqueue-0.64.3-r1.ebuild drqueue-9999.ebuild ChangeLog metadata.xml
Date: Fri, 29 Jan 2010 15:47:59
Message-Id: E1Nat4e-0006Y8-4Y@stork.gentoo.org
1 sping 10/01/29 15:47:56
2
3 Added: drqueue-0.64.3-r1.ebuild drqueue-9999.ebuild
4 ChangeLog metadata.xml
5 Log:
6 media-gfx/drqueue: New package (fixes bug #69553)
7 (Portage version: 2.2_rc61/cvs/Linux i686)
8
9 Revision Changes Path
10 1.1 media-gfx/drqueue/drqueue-0.64.3-r1.ebuild
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild?rev=1.1&content-type=text/plain
14
15 Index: drqueue-0.64.3-r1.ebuild
16 ===================================================================
17 # Copyright 1999-2010 Gentoo Foundation
18 # Distributed under the terms of the GNU General Public License v2
19 # $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.3-r1.ebuild,v 1.1 2010/01/29 15:47:55 sping Exp $
20
21 EAPI="2"
22
23 inherit eutils distutils
24
25 DESCRIPTION="Render farm managing software"
26 HOMEPAGE="http://www.drqueue.org/"
27 SRC_URI="http://drqueue.org/files/1-Sources_all_platforms/${PN}.${PV}.tgz"
28
29 LICENSE="GPL-2"
30 SLOT="0"
31 KEYWORDS="~amd64 ~x86"
32 IUSE="X python ruby"
33
34 RDEPEND="X? ( >=x11-libs/gtk+-2 )
35 python? ( dev-lang/python )
36 ruby? ( dev-lang/ruby )
37 app-shells/tcsh"
38
39 DEPEND="${RDEPEND}
40 python? ( dev-lang/swig )
41 ruby? ( dev-lang/swig )
42 python? ( >=dev-python/setuptools-0.6_rc6 )
43 >=dev-util/scons-0.97"
44
45 pkg_setup() {
46 enewgroup drqueue
47 enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue
48 }
49
50 src_prepare() {
51 epatch "${FILESDIR}"/${P}-compile-flags.patch \
52 "${FILESDIR}"/${P}-sconstruct.patch
53 }
54
55 src_compile() {
56 if use X; then
57 scons ${MAKEOPTS} build_drman=yes || die "scons failed"
58 else
59 scons ${MAKEOPTS} build_drqman=no || die "scons failed"
60 fi
61
62 if use python; then
63 einfo "compiling python bindings"
64 cd "${S}"/python/
65 distutils_src_compile
66 fi
67
68 if use ruby; then
69 einfo "compiling ruby bindings"
70 cd "${S}"/ruby/
71 ruby extconf.rb
72 emake || die "emake failed"
73 fi
74 }
75
76 pkg_preinst() {
77 # stop daemons since script is being updated
78 [ -n "$(pidof drqsd)" -a -x /etc/init.d/drqsd ] && \
79 /etc/init.d/drqsd stop
80 [ -n "$(pidof drqmd)" -a -x /etc/init.d/drqmd ] && \
81 /etc/init.d/drqmd stop
82 }
83
84 src_install() {
85 dodir /var/lib
86 scons PREFIX="${D}"/var/lib install || die "install failed"
87
88 # not really needed
89 rm -R "${D}"/var/lib/drqueue/bin/viewcmd || die "rm failed"
90
91 # install {conf,init,env}.d files
92 for i in drqmd drqsd ; do
93 newinitd "${FILESDIR}"/${PN}-0.64.3-etc-initd-${i} ${i} || die "newinitd failed"
94 newconfd "${FILESDIR}"/${PN}-0.64.3-etc-confd-${i} ${i} || die "newconfd failed"
95 done
96 newenvd "${FILESDIR}"/${PN}-0.64.3-etc-envd-02drqueue 02drqueue || die "newenvd failed"
97
98 # create the drqueue pid directory
99 dodir /var/run/drqueue
100 keepdir /var/run/drqueue
101
102 # move logs dir to /var/log
103 dodir /var/log
104 mv "${D}"/var/lib/drqueue/logs "${D}"/var/log/drqueue
105
106 # fix bins and make links for /usr/bin
107 dodir /usr/bin
108 for cmd in blockhost cjob drqman jobfinfo \
109 jobinfo master requeue sendjob slave ; do
110 dosed 's|SHLIB=\$DRQUEUE_ROOT/bin/shlib|SHLIB=/var/lib/drqueue/bin/shlib|' \
111 /var/lib/drqueue/bin/${cmd} || die "dosed failed"
112 dosym /var/lib/drqueue/bin/${cmd} /usr/bin/ \
113 || die "dosym failed"
114 done
115
116 # install documentation
117 dodoc AUTHORS ChangeLog INSTALL \
118 NEWS README README.mentalray \
119 README.python setenv || die "dodoc failed"
120
121 if use python; then
122 cd "${S}"/python/
123 distutils_src_install
124 dodir /var/lib/${PN}/python
125
126 # Install DRKeewee web service and example python scripts
127 insinto /var/lib/${PN}/python
128 doins -r DrKeewee examples || die "doins failed"
129 fi
130
131 if use ruby; then
132 cd "${S}"/ruby/
133 emake DESTDIR="${D}" install || die "emake failed"
134 fi
135 }
136
137 pkg_postinst() {
138 einfo "Edit /etc/conf.d/drqsd /etc/env.d/02drqueue"
139 einfo "and /etc/conf.d/drqmd DRQUEUE_MASTER=\"hostname\""
140 einfo "to reflect your master's hostname."
141 if use python ; then
142 einfo ""
143 einfo "DrKeewee can be found in /var/lib/drqueue/python"
144
145 python_mod_optimize "$(python_get_sitedir)"/drqueue
146 fi
147 }
148
149 pkg_postrm() {
150 use python && python_mod_cleanup "$(python_get_sitedir)"/drqueue
151 }
152
153
154
155 1.1 media-gfx/drqueue/drqueue-9999.ebuild
156
157 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/drqueue-9999.ebuild?rev=1.1&view=markup
158 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/drqueue-9999.ebuild?rev=1.1&content-type=text/plain
159
160 Index: drqueue-9999.ebuild
161 ===================================================================
162 # Copyright 1999-2010 Gentoo Foundation
163 # Distributed under the terms of the GNU General Public License v2
164 # $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-9999.ebuild,v 1.1 2010/01/29 15:47:55 sping Exp $
165
166 EAPI="2"
167
168 inherit eutils distutils git
169
170 DESCRIPTION="Render farm managing software"
171 HOMEPAGE="http://www.drqueue.org/"
172 EGIT_REPO_URI="git://gitorious.org/drqueue-git/drqueue-git.git"
173
174 LICENSE="GPL-2"
175 SLOT="0"
176 KEYWORDS=""
177 IUSE="X python ruby"
178
179 RDEPEND="X? ( >=x11-libs/gtk+-2 )
180 python? ( dev-lang/python )
181 ruby? ( dev-lang/ruby )
182 app-shells/tcsh"
183
184 DEPEND="${RDEPEND}
185 python? ( dev-lang/swig )
186 ruby? ( dev-lang/swig )
187 python? ( >=dev-python/setuptools-0.6_rc6 )
188 >=dev-util/scons-0.97"
189
190 pkg_setup() {
191 enewgroup drqueue
192 enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue
193 }
194
195 src_compile() {
196 if use X; then
197 scons ${MAKEOPTS} build_drman=yes || die "scons failed"
198 else
199 scons ${MAKEOPTS} build_drqman=no || die "scons failed"
200 fi
201
202 if use python; then
203 einfo "compiling python bindings"
204 cd "${S}"/python/
205 distutils_src_compile
206 fi
207
208 if use ruby; then
209 einfo "compiling ruby bindings"
210 cd "${S}"/ruby/
211 ruby extconf.rb
212 emake || die "emake failed"
213 fi
214 }
215
216 pkg_preinst() {
217 # stop daemons since script is being updated
218 [ -n "$(pidof drqsd)" -a -x /etc/init.d/drqsd ] && \
219 /etc/init.d/drqsd stop
220 [ -n "$(pidof drqmd)" -a -x /etc/init.d/drqmd ] && \
221 /etc/init.d/drqmd stop
222 }
223
224 src_install() {
225 dodir /var/lib
226 scons PREFIX="${D}"/var/lib install || die "install failed"
227
228 # not really needed
229 rm -R "${D}"/var/lib/drqueue/bin/viewcmd || die "rm failed"
230
231 # install {conf,init,env}.d files
232 for i in drqmd drqsd ; do
233 newinitd "${FILESDIR}"/${PN}-0.64.3-etc-initd-${i} ${i} || die "newinitd failed"
234 newconfd "${FILESDIR}"/${PN}-0.64.3-etc-confd-${i} ${i} || die "newconfd failed"
235 done
236 newenvd "${FILESDIR}"/${PN}-0.64.3-etc-envd-02drqueue 02drqueue || die "newenvd failed"
237
238 # create the drqueue pid directory
239 dodir /var/run/drqueue
240 keepdir /var/run/drqueue
241
242 # move logs dir to /var/log
243 dodir /var/log
244 mv "${D}"/var/lib/drqueue/logs "${D}"/var/log/drqueue
245
246 # fix bins and make links for /usr/bin
247 dodir /usr/bin
248 for cmd in blockhost cjob drqman jobfinfo \
249 jobinfo master requeue sendjob slave ; do
250 dosed 's|SHLIB=\$DRQUEUE_ROOT/bin/shlib|SHLIB=/var/lib/drqueue/bin/shlib|' \
251 /var/lib/drqueue/bin/${cmd} || die "dosed failed"
252 dosym /var/lib/drqueue/bin/${cmd} /usr/bin/ \
253 || die "dosym failed"
254 done
255
256 # install documentation
257 dodoc AUTHORS ChangeLog INSTALL \
258 NEWS README README.mentalray \
259 README.python README.shell_variables \
260 setenv || die "dodoc failed"
261
262 if use python; then
263 cd "${S}"/python/
264 distutils_src_install
265 dodir /var/lib/${PN}/python
266
267 # Install DRKeewee web service and example python scripts
268 insinto /var/lib/${PN}/python
269 doins -r DrKeewee examples || die "doins failed"
270 fi
271
272 if use ruby; then
273 cd "${S}"/ruby/
274 emake DESTDIR="${D}" install || die "emake failed"
275 fi
276 }
277
278 pkg_postinst() {
279 einfo "Edit /etc/conf.d/drqsd /etc/env.d/02drqueue"
280 einfo "and /etc/conf.d/drqmd DRQUEUE_MASTER=\"hostname\""
281 einfo "to reflect your master's hostname."
282 if use python ; then
283 einfo ""
284 einfo "DrKeewee can be found in /var/lib/drqueue/python"
285
286 python_mod_optimize "$(python_get_sitedir)"/drqueue
287 fi
288 }
289
290 pkg_postrm() {
291 use python && python_mod_cleanup "$(python_get_sitedir)"/drqueue
292 }
293
294
295
296 1.1 media-gfx/drqueue/ChangeLog
297
298 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/ChangeLog?rev=1.1&view=markup
299 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/ChangeLog?rev=1.1&content-type=text/plain
300
301 Index: ChangeLog
302 ===================================================================
303 # ChangeLog for media-gfx/drqueue
304 # Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
305 # $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v 1.1 2010/01/29 15:47:55 sping Exp $
306
307 *drqueue-9999 (29 Jan 2010)
308 *drqueue-0.64.3-r1 (29 Jan 2010)
309
310 29 Jan 2010; Sebastian Pipping <sping@g.o>
311 +drqueue-0.64.3-r1.ebuild, +files/drqueue-0.64.3-compile-flags.patch,
312 +files/drqueue-0.64.3-etc-confd-drqmd,
313 +files/drqueue-0.64.3-etc-confd-drqsd,
314 +files/drqueue-0.64.3-etc-envd-02drqueue,
315 +files/drqueue-0.64.3-etc-initd-drqmd,
316 +files/drqueue-0.64.3-etc-initd-drqsd,
317 +files/drqueue-0.64.3-sconstruct.patch, +drqueue-9999.ebuild,
318 +metadata.xml:
319 New package (fixes bug #69553)
320
321
322
323
324 1.1 media-gfx/drqueue/metadata.xml
325
326 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/metadata.xml?rev=1.1&view=markup
327 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/drqueue/metadata.xml?rev=1.1&content-type=text/plain
328
329 Index: metadata.xml
330 ===================================================================
331 <?xml version="1.0" encoding="UTF-8"?>
332 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
333 <pkgmetadata>
334 <herd>no-herd</herd>
335 <maintainer>
336 <email>sping@g.o</email>
337 <name>Sebastian Pipping</name>
338 </maintainer>
339 </pkgmetadata>