# $Id$
EAPI=5
-PYTHON_DEPEND="python? 2:2.6"
-inherit eutils toolchain-funcs multilib python
+PYTHON_COMPAT=( python2_7 )
+inherit eutils toolchain-funcs multilib python-single-r1
DESCRIPTION="An open source multimedia framework, designed and developed for television broadcasting"
HOMEPAGE="http://www.mltframework.org/"
compressed-lumas? ( || ( media-gfx/imagemagick[png]
media-gfx/graphicsmagick[imagemagick,png] ) )
lua? ( ${SWIG_DEPEND} virtual/pkgconfig )
- python? ( ${SWIG_DEPEND} )
+ python? ( ${SWIG_DEPEND} ${PYTHON_DEPS} )
ruby? ( ${SWIG_DEPEND} )"
# java? ( ${SWIG_DEPEND} >=virtual/jdk-1.5 )
# perl? ( ${SWIG_DEPEND} )
# tcl? ( ${SWIG_DEPEND} )
pkg_setup() {
- python_set_active_version 2
- python_pkg_setup
+ python-single-r1_pkg_setup
}
src_prepare() {
exeinto $(python_get_sitedir)
doexe _mlt.so
dodoc play.py
+ python_optimize
fi
if use ruby; then
fi
# TODO: java perl php tcl
}
-
-pkg_postinst() {
- if use python; then
- python_mod_optimize mlt.py
- fi
-}
-
-pkg_postrm() {
- if use python; then
- python_mod_cleanup mlt.py
- fi
-}