Line
Link Here
|
0 |
-- ecasound-2.6.0.ebuild |
0 |
++ ecasound-2.6.0.ebuild |
Lines 1-10
Link Here
|
1 |
# Copyright 1999-2009 Gentoo Foundation |
1 |
# Copyright 1999-2010 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-sound/ecasound/ecasound-2.6.0.ebuild,v 1.6 2009/08/01 06:24:06 ssuominen Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/ecasound/ecasound-2.6.0.ebuild,v 1.6 2009/08/01 06:24:06 ssuominen Exp $ |
4 |
|
4 |
|
5 |
EAPI=2 |
5 |
EAPI=3 |
6 |
|
6 |
|
7 |
inherit eutils multilib python |
7 |
inherit eutils python |
8 |
|
8 |
|
9 |
DESCRIPTION="a package for multitrack audio processing" |
9 |
DESCRIPTION="a package for multitrack audio processing" |
10 |
HOMEPAGE="http://ecasound.seul.org/ecasound" |
10 |
HOMEPAGE="http://ecasound.seul.org/ecasound" |
Lines 34-43
Link Here
|
34 |
local PYConf |
34 |
local PYConf |
35 |
|
35 |
|
36 |
if use python; then |
36 |
if use python; then |
37 |
python_version |
|
|
38 |
PYConf="--enable-pyecasound=c |
37 |
PYConf="--enable-pyecasound=c |
39 |
--with-python-includes=/usr/include/python${PYVER} |
38 |
--with-python-includes=$(python_get_includedir) |
40 |
--with-python-modules=/usr/$(get_libdir)/python${PYVER}" |
39 |
--with-python-modules=$(python_get_libdir)" |
41 |
else |
40 |
else |
42 |
PYConf="$myconf --disable-pyecasound" |
41 |
PYConf="$myconf --disable-pyecasound" |
43 |
fi |
42 |
fi |
Lines 67-82
Link Here
|
67 |
|
66 |
|
68 |
pkg_postinst() { |
67 |
pkg_postinst() { |
69 |
if use python; then |
68 |
if use python; then |
70 |
ebegin "Byte-compiling ${CATEGORY}/${PF} python modules" |
69 |
python_mod_optimize ecacontrol.py eci.py pyeca.py |
71 |
python_version |
|
|
72 |
local PYMODULE |
73 |
for PYMODULE in ecacontrol.py pyeca.py eci.py; do |
74 |
python_mod_compile /usr/$(get_libdir)/python${PYVER}/site-packages/${PYMODULE} |
75 |
done |
76 |
eend $? |
77 |
fi |
70 |
fi |
78 |
} |
71 |
} |
79 |
|
72 |
|
80 |
pkg_postrm() { |
73 |
pkg_postrm() { |
81 |
python_mod_cleanup |
74 |
if use python; then |
|
|
75 |
python_mod_cleanup ecacontrol.py eci.py pyeca.py |
76 |
fi |
82 |
} |
77 |
} |