[arch-commits] Commit in gst-python/repos (3 files)
Felix Yan
felixonmars at archlinux.org
Sat Oct 26 11:03:51 UTC 2019
Date: Saturday, October 26, 2019 @ 11:03:50
Author: felixonmars
Revision: 365831
archrelease: copy trunk to staging-x86_64
Added:
gst-python/repos/staging-x86_64/
gst-python/repos/staging-x86_64/PKGBUILD
(from rev 365830, gst-python/trunk/PKGBUILD)
gst-python/repos/staging-x86_64/gst-python-3.8.patch
(from rev 365830, gst-python/trunk/gst-python-3.8.patch)
----------------------+
PKGBUILD | 77 +++++++++++++++++++++++++++++++++++++++++++++++++
gst-python-3.8.patch | 17 ++++++++++
2 files changed, 94 insertions(+)
Copied: gst-python/repos/staging-x86_64/PKGBUILD (from rev 365830, gst-python/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-26 11:03:50 UTC (rev 365831)
@@ -0,0 +1,77 @@
+# Maintainer: Jan Alexander Steffens (heftig) <jan.steffens at gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch at gmail.com>
+# Contributor: Jan de Groot <jgc at archlinux.org>
+
+pkgbase=gst-python
+pkgname=(gst-python gst-python2)
+pkgver=1.16.1
+pkgrel=2
+pkgdesc="GStreamer Python binding overrides"
+url="https://gstreamer.freedesktop.org/"
+arch=(x86_64)
+license=(LGPL)
+makedepends=(python-gobject python2-gobject gst-plugins-base-libs git meson)
+_commit=16a98f94aaf576557505db76f9b8b5b7175de293 # tags/1.16.1^0
+source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit"
+ "gst-common::git+https://gitlab.freedesktop.org/gstreamer/common.git"
+ gst-python-3.8.patch)
+sha256sums=('SKIP'
+ 'SKIP'
+ '7c916381f561fde3fade9e86a83e0d7ddb661b3e6116e95467674032a21cf8e7')
+
+pkgver() {
+ cd $pkgbase
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd $pkgbase
+
+ git submodule init
+ git config --local submodule.common.url "$srcdir/gst-common"
+ git submodule update
+
+ patch -p1 -i ../gst-python-3.8.patch
+}
+
+_build() {
+ arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
+ ninja -C build-$1
+}
+
+_check() {
+ meson test -C build-$1 --print-errorlogs
+}
+
+_package() {
+ DESTDIR="$pkgdir" meson install -C build-$1
+ $1 -m compileall -d /usr/lib "$pkgdir/usr/lib"
+ $1 -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
+}
+
+build() {
+ _build python
+ _build python2
+}
+
+check() {
+ _check python
+ _check python2
+}
+
+package_gst-python() {
+ pkgdesc="${pkgdesc//Python/Python 3}"
+ depends=(python-gobject gst-plugins-base-libs)
+
+ _package python
+}
+
+package_gst-python2() {
+ pkgdesc="${pkgdesc//Python/Python 2}"
+ depends=(python2-gobject gst-plugins-base-libs)
+
+ _package python2
+
+ # Remove conflicting loader
+ rm -r "$pkgdir/usr/lib/gstreamer-1.0"
+}
Copied: gst-python/repos/staging-x86_64/gst-python-3.8.patch (from rev 365830, gst-python/trunk/gst-python-3.8.patch)
===================================================================
--- staging-x86_64/gst-python-3.8.patch (rev 0)
+++ staging-x86_64/gst-python-3.8.patch 2019-10-26 11:03:50 UTC (rev 365831)
@@ -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')
More information about the arch-commits
mailing list