Lines 1-13
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2015 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.4.ebuild,v 1.1 2012/10/29 16:18:41 sping Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-gfx/drqueue/drqueue-0.64.4.ebuild,v 1.1 2012/10/29 16:18:41 sping Exp $ |
4 |
|
4 |
|
5 |
EAPI="3" |
5 |
EAPI=5 |
6 |
PYTHON_DEPEND="python? 2" |
|
|
7 |
SUPPORT_PYTHON_ABIS="1" |
8 |
RESTRICT_PYTHON_ABIS="3.* *-jython" |
9 |
|
6 |
|
10 |
inherit eutils distutils user |
7 |
PYTHON_COMPAT=( python2_7 ) |
|
|
8 |
DISTUTILS_SINGLE_IMPL=1 |
9 |
|
10 |
inherit distutils-r1 user |
11 |
|
11 |
|
12 |
DESCRIPTION="Render farm managing software" |
12 |
DESCRIPTION="Render farm managing software" |
13 |
HOMEPAGE="http://www.drqueue.org/" |
13 |
HOMEPAGE="http://www.drqueue.org/" |
Lines 25-53
Link Here
|
25 |
DEPEND="${RDEPEND} |
25 |
DEPEND="${RDEPEND} |
26 |
python? ( dev-lang/swig ) |
26 |
python? ( dev-lang/swig ) |
27 |
ruby? ( dev-lang/swig ) |
27 |
ruby? ( dev-lang/swig ) |
28 |
python? ( dev-python/setuptools ) |
28 |
python? ( dev-python/setuptools[${PYTHON_USEDEP}] ) |
29 |
>=dev-util/scons-0.97" |
29 |
>=dev-util/scons-0.97" |
30 |
|
30 |
|
31 |
S=${WORKDIR}/DrQueue-${PV} |
31 |
S=${WORKDIR}/DrQueue-${PV} |
32 |
|
32 |
|
|
|
33 |
PATCHES=( "${FILESDIR}"/${P}-fpic.patch |
34 |
"${FILESDIR}"/${P}-git.patch ) |
35 |
|
33 |
pkg_setup() { |
36 |
pkg_setup() { |
34 |
enewgroup drqueue |
37 |
enewgroup drqueue |
35 |
enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue |
38 |
enewuser drqueue -1 /bin/bash /dev/null daemon,drqueue |
36 |
|
39 |
|
37 |
use python && python_pkg_setup |
40 |
python-single-r1_pkg_setup |
38 |
} |
41 |
} |
39 |
|
42 |
|
40 |
src_prepare() { |
43 |
python_prepare() { |
41 |
epatch "${FILESDIR}"/${P}-fpic.patch |
44 |
distutils-r1_python_prepare |
42 |
epatch "${FILESDIR}"/${P}-git.patch |
|
|
43 |
|
44 |
# Workaround broken SWIG path |
45 |
# Workaround broken SWIG path |
45 |
ln -s ../libdrqueue python/libdrqueue || die |
46 |
ln -s ../libdrqueue python/libdrqueue || die |
46 |
} |
47 |
} |
47 |
|
48 |
|
48 |
src_compile() { |
49 |
src_compile() { |
49 |
python --version |
|
|
50 |
|
51 |
if use X; then |
50 |
if use X; then |
52 |
scons ${MAKEOPTS} build_drman=yes || die "scons failed" |
51 |
scons ${MAKEOPTS} build_drman=yes || die "scons failed" |
53 |
else |
52 |
else |
Lines 56-63
Link Here
|
56 |
|
55 |
|
57 |
if use python; then |
56 |
if use python; then |
58 |
einfo "compiling python bindings" |
57 |
einfo "compiling python bindings" |
59 |
cd "${S}"/python/ |
58 |
pushd "${S}"/python/ > /dev/null |
60 |
distutils_src_compile |
59 |
distutils-r1_src_compile |
|
|
60 |
popd > /dev/null |
61 |
fi |
61 |
fi |
62 |
|
62 |
|
63 |
if use ruby; then |
63 |
if use ruby; then |
Lines 111-118
Link Here
|
111 |
done |
111 |
done |
112 |
fi |
112 |
fi |
113 |
for cmd in ${commands[@]} ; do |
113 |
for cmd in ${commands[@]} ; do |
114 |
dosed 's|SHLIB=\$DRQUEUE_ROOT/bin/shlib|SHLIB=/var/lib/drqueue/bin/shlib|' \ |
114 |
sed -e 's|SHLIB=\$DRQUEUE_ROOT/bin/shlib|SHLIB=/var/lib/drqueue/bin/shlib|' \ |
115 |
/var/lib/drqueue/bin/${cmd} || die "dosed failed" |
115 |
-i "${D}"var/lib/drqueue/bin/${cmd} || die "sed failed" |
116 |
dosym /var/lib/drqueue/bin/${cmd} /usr/bin/ \ |
116 |
dosym /var/lib/drqueue/bin/${cmd} /usr/bin/ \ |
117 |
|| die "dosym failed" |
117 |
|| die "dosym failed" |
118 |
done |
118 |
done |
Lines 124-136
Link Here
|
124 |
|
124 |
|
125 |
if use python; then |
125 |
if use python; then |
126 |
cd "${S}"/python/ |
126 |
cd "${S}"/python/ |
127 |
distutils_src_install |
127 |
distutils-r1_src_install |
128 |
dodir /var/lib/${PN}/python |
128 |
dodir /var/lib/${PN}/python |
129 |
|
129 |
|
130 |
# Install DRKeewee web service and example python scripts |
130 |
# Install DRKeewee web service and example python scripts |
131 |
insinto /var/lib/${PN}/python |
131 |
insinto /var/lib/${PN}/python |
132 |
doins -r DrKeewee examples || die "doins failed" |
132 |
doins -r DrKeewee examples || die "doins failed" |
133 |
python_convert_shebangs -r 2 "${ED}var/lib/${PN}/python" |
133 |
python_fix_shebang "${ED}var/lib/${PN}/python" |
134 |
fi |
134 |
fi |
135 |
|
135 |
|
136 |
if use ruby; then |
136 |
if use ruby; then |
Lines 146-156
Link Here
|
146 |
if use python ; then |
146 |
if use python ; then |
147 |
einfo |
147 |
einfo |
148 |
einfo "DrKeewee can be found in /var/lib/drqueue/python" |
148 |
einfo "DrKeewee can be found in /var/lib/drqueue/python" |
149 |
|
|
|
150 |
distutils_pkg_postinst |
151 |
fi |
149 |
fi |
152 |
} |
150 |
} |
153 |
|
|
|
154 |
pkg_postrm() { |
155 |
use python && distutils_pkg_postrm |
156 |
} |