1 |
sping 12/10/29 16:18:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: drqueue-0.64.4.ebuild |
5 |
Log: |
6 |
media-gfx/drqueue: 0.64.4 |
7 |
|
8 |
(Portage version: 2.1.10.65/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.7 media-gfx/drqueue/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/drqueue/ChangeLog?rev=1.7&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/drqueue/ChangeLog?rev=1.7&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/drqueue/ChangeLog?r1=1.6&r2=1.7 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v |
20 |
retrieving revision 1.6 |
21 |
retrieving revision 1.7 |
22 |
diff -u -r1.6 -r1.7 |
23 |
--- ChangeLog 1 Jun 2012 02:37:14 -0000 1.6 |
24 |
+++ ChangeLog 29 Oct 2012 16:18:41 -0000 1.7 |
25 |
@@ -1,6 +1,12 @@ |
26 |
# ChangeLog for media-gfx/drqueue |
27 |
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v 1.6 2012/06/01 02:37:14 zmedico Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/ChangeLog,v 1.7 2012/10/29 16:18:41 sping Exp $ |
30 |
+ |
31 |
+*drqueue-0.64.4 (29 Oct 2012) |
32 |
+ |
33 |
+ 29 Oct 2012; Sebastian Pipping <sping@g.o> +drqueue-0.64.4.ebuild, |
34 |
+ +files/drqueue-0.64.4-fpic.patch, +files/drqueue-0.64.4-git.patch: |
35 |
+ Bump to 0.64.4 |
36 |
|
37 |
01 Jun 2012; Zac Medico <zmedico@g.o> drqueue-0.64.3-r1.ebuild, |
38 |
drqueue-9999.ebuild: |
39 |
|
40 |
|
41 |
|
42 |
1.1 media-gfx/drqueue/drqueue-0.64.4.ebuild |
43 |
|
44 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/drqueue/drqueue-0.64.4.ebuild?rev=1.1&view=markup |
45 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-gfx/drqueue/drqueue-0.64.4.ebuild?rev=1.1&content-type=text/plain |
46 |
|
47 |
Index: drqueue-0.64.4.ebuild |
48 |
=================================================================== |
49 |
# Copyright 1999-2012 Gentoo Foundation |
50 |
# Distributed under the terms of the GNU General Public License v2 |
51 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.4.ebuild,v 1.1 2012/10/29 16:18:41 sping Exp $ |
52 |
|
53 |
EAPI="3" |
54 |
PYTHON_DEPEND="python? 2" |
55 |
SUPPORT_PYTHON_ABIS="1" |
56 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
57 |
|
58 |
inherit eutils distutils user |
59 |
|
60 |
DESCRIPTION="Render farm managing software" |
61 |
HOMEPAGE="http://www.drqueue.org/" |
62 |
SRC_URI="http://drqueue.org/files/${PN}.${PV}.tgz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="0" |
66 |
KEYWORDS="~amd64 ~x86" |
67 |
IUSE="X python ruby" |
68 |
|
69 |
RDEPEND="X? ( x11-libs/gtk+:2 ) |
70 |
ruby? ( dev-lang/ruby ) |
71 |
app-shells/tcsh" |
72 |
|
73 |
DEPEND="${RDEPEND} |
74 |
python? ( dev-lang/swig ) |
75 |
ruby? ( dev-lang/swig ) |
76 |
python? ( dev-python/setuptools ) |
77 |
>=dev-util/scons-0.97" |
78 |
|
79 |
S=${WORKDIR}/DrQueue-${PV} |
80 |
|
81 |
pkg_setup() { |
82 |
enewgroup drqueue |
83 |
enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue |
84 |
|
85 |
use python && python_pkg_setup |
86 |
} |
87 |
|
88 |
src_prepare() { |
89 |
epatch "${FILESDIR}"/${P}-fpic.patch |
90 |
epatch "${FILESDIR}"/${P}-git.patch |
91 |
|
92 |
# Workaround broken SWIG path |
93 |
ln -s ../libdrqueue python/libdrqueue || die |
94 |
} |
95 |
|
96 |
src_compile() { |
97 |
python --version |
98 |
|
99 |
if use X; then |
100 |
scons ${MAKEOPTS} build_drman=yes || die "scons failed" |
101 |
else |
102 |
scons ${MAKEOPTS} build_drqman=no || die "scons failed" |
103 |
fi |
104 |
|
105 |
if use python; then |
106 |
einfo "compiling python bindings" |
107 |
cd "${S}"/python/ |
108 |
distutils_src_compile |
109 |
fi |
110 |
|
111 |
if use ruby; then |
112 |
einfo "compiling ruby bindings" |
113 |
cd "${S}"/ruby/ |
114 |
ruby extconf.rb |
115 |
emake || die "emake failed" |
116 |
fi |
117 |
} |
118 |
|
119 |
pkg_preinst() { |
120 |
# stop daemons since script is being updated |
121 |
[ -n "$(pidof drqsd)" -a -x /etc/init.d/drqsd ] && \ |
122 |
/etc/init.d/drqsd stop |
123 |
[ -n "$(pidof drqmd)" -a -x /etc/init.d/drqmd ] && \ |
124 |
/etc/init.d/drqmd stop |
125 |
} |
126 |
|
127 |
src_install() { |
128 |
dodir /var/lib |
129 |
scons PREFIX="${D}"/var/lib install || die "install failed" |
130 |
|
131 |
# not really needed |
132 |
rm -R "${D}"/var/lib/drqueue/bin/viewcmd || die "rm failed" |
133 |
|
134 |
# install {conf,init,env}.d files |
135 |
for i in drqmd drqsd ; do |
136 |
newinitd "${FILESDIR}"/${PN}-0.64.3-etc-initd-${i} ${i} || die "newinitd failed" |
137 |
newconfd "${FILESDIR}"/${PN}-0.64.3-etc-confd-${i} ${i} || die "newconfd failed" |
138 |
done |
139 |
newenvd "${FILESDIR}"/${PN}-0.64.3-etc-envd-02drqueue 02drqueue || die "newenvd failed" |
140 |
|
141 |
# create the drqueue pid directory |
142 |
dodir /var/run/drqueue |
143 |
keepdir /var/run/drqueue |
144 |
|
145 |
# move logs dir to /var/log |
146 |
dodir /var/log |
147 |
mv "${D}"/var/lib/drqueue/logs "${D}"/var/log/drqueue |
148 |
|
149 |
# fix bins and make links for /usr/bin |
150 |
dodir /usr/bin |
151 |
local commands=( blockhost cjob jobfinfo \ |
152 |
jobinfo master requeue sendjob slave ) |
153 |
if use X ; then |
154 |
commands=( ${commands[@]} drqman ) |
155 |
else |
156 |
# Remove drqman leftovers |
157 |
for i in etc/drqman.rc etc/drqman.conf bin/drqman ; do |
158 |
rm -v "${D}"/var/lib/drqueue/$i || die "rm failed" |
159 |
done |
160 |
fi |
161 |
for cmd in ${commands[@]} ; do |
162 |
dosed 's|SHLIB=\$DRQUEUE_ROOT/bin/shlib|SHLIB=/var/lib/drqueue/bin/shlib|' \ |
163 |
/var/lib/drqueue/bin/${cmd} || die "dosed failed" |
164 |
dosym /var/lib/drqueue/bin/${cmd} /usr/bin/ \ |
165 |
|| die "dosym failed" |
166 |
done |
167 |
|
168 |
# install documentation |
169 |
dodoc AUTHORS ChangeLog INSTALL \ |
170 |
NEWS README README.mentalray \ |
171 |
README.python setenv || die "dodoc failed" |
172 |
|
173 |
if use python; then |
174 |
cd "${S}"/python/ |
175 |
distutils_src_install |
176 |
dodir /var/lib/${PN}/python |
177 |
|
178 |
# Install DRKeewee web service and example python scripts |
179 |
insinto /var/lib/${PN}/python |
180 |
doins -r DrKeewee examples || die "doins failed" |
181 |
python_convert_shebangs -r 2 "${ED}var/lib/${PN}/python" |
182 |
fi |
183 |
|
184 |
if use ruby; then |
185 |
cd "${S}"/ruby/ |
186 |
emake DESTDIR="${D}" install || die "emake failed" |
187 |
fi |
188 |
} |
189 |
|
190 |
pkg_postinst() { |
191 |
einfo "Edit /etc/conf.d/drqsd /etc/env.d/02drqueue" |
192 |
einfo "and /etc/conf.d/drqmd DRQUEUE_MASTER=\"hostname\"" |
193 |
einfo "to reflect your master's hostname." |
194 |
if use python ; then |
195 |
einfo |
196 |
einfo "DrKeewee can be found in /var/lib/drqueue/python" |
197 |
|
198 |
distutils_pkg_postinst |
199 |
fi |
200 |
} |
201 |
|
202 |
pkg_postrm() { |
203 |
use python && distutils_pkg_postrm |
204 |
} |