media-libs/mlt: Fix installing Python & Ruby files
authorMichał Górny <mgorny@gentoo.org>
Wed, 28 Aug 2019 17:56:34 +0000 (19:56 +0200)
committerMichał Górny <mgorny@gentoo.org>
Wed, 28 Aug 2019 19:41:15 +0000 (21:41 +0200)
Signed-off-by: Michał Górny <mgorny@gentoo.org>
media-libs/mlt/mlt-6.16.0-r1.ebuild
media-libs/mlt/mlt-6.16.0-r2.ebuild

index 76fc970c2228ecb7c17fea845ff52dd292597192..dc4435ed36013fa8c6f51ac6192c1b8b4cc5c79c 100644 (file)
@@ -209,17 +209,16 @@ src_install() {
 
        if use python; then
                cd "${S}"/src/swig/python || die
-               insinto $(python_get_sitedir)
-               doins mlt.py
-               exeinto $(python_get_sitedir)
-               doexe _mlt.so
+               python_domodule mlt.py _mlt.so
+               chmod +x "${D}$(python_get_sitedir)/_mlt.so" || die
                dodoc play.py
                python_optimize
        fi
 
        if use ruby; then
                cd "${S}"/src/swig/ruby || die
-               exeinto $("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
+               local rubydir=$("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
+               exeinto "${rubydir#${EPREFIX}}"
                doexe mlt.so
                dodoc play.rb thumbs.rb
        fi
index 31ed25573ff9e097c4de0448c81e1b59214b6a3a..f509af5ceede18737b943e0c1bafdb2d889e9c6e 100644 (file)
@@ -209,17 +209,16 @@ src_install() {
 
        if use python; then
                cd "${S}"/src/swig/python || die
-               insinto $(python_get_sitedir)
-               doins mlt.py
-               exeinto $(python_get_sitedir)
-               doexe _mlt.so
+               python_domodule mlt.py _mlt.so
+               chmod +x "${D}$(python_get_sitedir)/_mlt.so" || die
                dodoc play.py
                python_optimize
        fi
 
        if use ruby; then
                cd "${S}"/src/swig/ruby || die
-               exeinto $("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
+               local rubydir=$("${EPREFIX}"/usr/bin/${USE_RUBY} -r rbconfig -e 'print RbConfig::CONFIG["sitearchdir"]')
+               exeinto "${rubydir#${EPREFIX}}"
                doexe mlt.so
                dodoc play.rb thumbs.rb
        fi