[arch-commits] Commit in gst-python/trunk (PKGBUILD gst-python-3.8.patch)

Jan Steffens heftig at archlinux.org
Sat Mar 28 15:57:02 UTC 2020


    Date: Saturday, March 28, 2020 @ 15:57:02
  Author: heftig
Revision: 378604

1.16.2-2: remove py2

Modified:
  gst-python/trunk/PKGBUILD
Deleted:
  gst-python/trunk/gst-python-3.8.patch

----------------------+
 PKGBUILD             |   63 +++++++++++++------------------------------------
 gst-python-3.8.patch |   17 -------------
 2 files changed, 17 insertions(+), 63 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-28 15:21:34 UTC (rev 378603)
+++ PKGBUILD	2020-03-28 15:57:02 UTC (rev 378604)
@@ -2,69 +2,40 @@
 # 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)
+pkgname=gst-python
 pkgver=1.16.2
-pkgrel=1
-pkgdesc="GStreamer Python binding overrides"
+pkgrel=2
+pkgdesc="GStreamer Python bindings"
 url="https://gstreamer.freedesktop.org/"
 arch=(x86_64)
 license=(LGPL)
-makedepends=(python-gobject python2-gobject gst-plugins-base-libs git meson)
+depends=(python-gobject gst-plugins-base-libs)
+makedepends=(git meson)
 _commit=5343aeb4151cfca54aa024b53e0cc4e02a27dacf  # tags/1.16.2^0
-source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit"
-         gst-python-3.8.patch)
-sha256sums=('SKIP'
-            '7c916381f561fde3fade9e86a83e0d7ddb661b3e6116e95467674032a21cf8e7')
+source=("git+https://gitlab.freedesktop.org/gstreamer/gst-python.git#commit=$_commit")
+sha256sums=('SKIP')
 
 pkgver() {
-  cd $pkgbase
+  cd $pkgname
   git describe --tags | sed 's/-/+/g'
 }
 
 prepare() {
-  cd $pkgbase
-  patch -p1 -i ../gst-python-3.8.patch
+  cd $pkgname
+  git cherry-pick -n 22f28155d86e27c4134de4ed2861264003fcfd23  # Python 3.8
 }
 
-_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
+  arch-meson $pkgname build
+  ninja -C build
 }
 
 check() {
-  _check python
-  _check python2
+  meson test -C build --print-errorlogs
 }
 
-package_gst-python() {
-  pkgdesc="${pkgdesc//Python/Python 3}"
-  depends=(python-gobject gst-plugins-base-libs)
-
-  _package python
+package() {
+  DESTDIR="$pkgdir" meson install -C build
+  python -m compileall -d /usr/lib "$pkgdir/usr/lib"
+  python -O -m compileall -d /usr/lib "$pkgdir/usr/lib"
 }
-
-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"
-}

Deleted: gst-python-3.8.patch
===================================================================
--- gst-python-3.8.patch	2020-03-28 15:21:34 UTC (rev 378603)
+++ gst-python-3.8.patch	2020-03-28 15:57:02 UTC (rev 378604)
@@ -1,17 +0,0 @@
-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