diff --git a/programming/language/python3/gst-python3/actions.py b/programming/language/python3/gst-python3/actions.py index 726dea9a01..2aaaf3eaee 100644 --- a/programming/language/python3/gst-python3/actions.py +++ b/programming/language/python3/gst-python3/actions.py @@ -4,22 +4,19 @@ # Licensed under the GNU General Public License, version 3. # See the file http://www.gnu.org/licenses/gpl.txt -from pisi.actionsapi import autotools -from pisi.actionsapi import pisitools -from pisi.actionsapi import shelltools -from pisi.actionsapi import get +from pisi.actionsapi import get +from pisi.actionsapi import mesontools +from pisi.actionsapi import pisitools def setup(): - shelltools.export("PYTHON", "/usr/bin/python3.8") - autotools.autoreconf("-vfi") - autotools.configure("--disable-static") - - pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ") + mesontools.configure() def build(): - autotools.make() + mesontools.build() + +def check(): + mesontools.build("test") def install(): - autotools.rawInstall("DESTDIR=%s" % get.installDIR()) - + mesontools.install() pisitools.dodoc("AUTHORS", "ChangeLog" ,"COPYING", "README", "TODO") diff --git a/programming/language/python3/gst-python3/files/gst-python-3.8.patch b/programming/language/python3/gst-python3/files/gst-python-3.8.patch new file mode 100644 index 0000000000..4b6912aba1 --- /dev/null +++ b/programming/language/python3/gst-python3/files/gst-python-3.8.patch @@ -0,0 +1,17 @@ +diff --git a/meson.build b/meson.build +index 0c0a5ae..b3e66a1 100644 +--- a/meson.build ++++ b/meson.build +@@ -24,7 +24,11 @@ pygobject_dep = dependency('pygobject-3.0', fallback: ['pygobject', 'pygobject_d + + pymod = import('python') + python = pymod.find_installation(get_option('python')) +-python_dep = python.dependency(required : true) ++if get_option('python').endswith('2') ++ python_dep = python.dependency(required : true) ++else ++ python_dep = dependency('python3-embed', required : true) ++endif + + python_abi_flags = python.get_variable('ABIFLAGS', '') + pylib_loc = get_option('libpython-dir') diff --git a/programming/language/python3/gst-python3/pspec.xml b/programming/language/python3/gst-python3/pspec.xml index 7325862f92..571a361b10 100644 --- a/programming/language/python3/gst-python3/pspec.xml +++ b/programming/language/python3/gst-python3/pspec.xml @@ -14,13 +14,17 @@ gst-python3 is a Python frontend to GStreamer. https://gstreamer.freedesktop.org/src/gst-python/gst-python-1.16.2.tar.xz + meson + glib2-devel python3-pygobject3-devel python-pygobject3-devel - glib2-devel gstreamer-devel - python3-devel + python3-devel gst-plugins-base-devel + + gst-python-3.8.patch + @@ -40,7 +44,7 @@ - 2020-01-19 + 2020-01-22 1.16.2 Version bump. Mustafa Cinasal @@ -89,4 +93,4 @@ groni@pisilinux.org - + \ No newline at end of file