[arch-commits] Commit in gst-python/repos/extra-x86_64 (3 files)

Jan Steffens heftig at archlinux.org
Sat Mar 28 15:58:27 UTC 2020


    Date: Saturday, March 28, 2020 @ 15:58:27
  Author: heftig
Revision: 378605

archrelease: copy trunk to extra-x86_64

Added:
  gst-python/repos/extra-x86_64/PKGBUILD
    (from rev 378604, gst-python/trunk/PKGBUILD)
Deleted:
  gst-python/repos/extra-x86_64/PKGBUILD
  gst-python/repos/extra-x86_64/gst-python-3.8.patch

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

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-03-28 15:57:02 UTC (rev 378604)
+++ PKGBUILD	2020-03-28 15:58:27 UTC (rev 378605)
@@ -1,70 +0,0 @@
-# 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.2
-pkgrel=1
-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=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')
-
-pkgver() {
-  cd $pkgbase
-  git describe --tags | sed 's/-/+/g'
-}
-
-prepare() {
-  cd $pkgbase
-  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/extra-x86_64/PKGBUILD (from rev 378604, gst-python/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-03-28 15:58:27 UTC (rev 378605)
@@ -0,0 +1,41 @@
+# 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>
+
+pkgname=gst-python
+pkgver=1.16.2
+pkgrel=2
+pkgdesc="GStreamer Python bindings"
+url="https://gstreamer.freedesktop.org/"
+arch=(x86_64)
+license=(LGPL)
+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")
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgname
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgname
+  git cherry-pick -n 22f28155d86e27c4134de4ed2861264003fcfd23  # Python 3.8
+}
+
+build() {
+  arch-meson $pkgname build
+  ninja -C build
+}
+
+check() {
+  meson test -C build --print-errorlogs
+}
+
+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"
+}

Deleted: gst-python-3.8.patch
===================================================================
--- gst-python-3.8.patch	2020-03-28 15:57:02 UTC (rev 378604)
+++ gst-python-3.8.patch	2020-03-28 15:58:27 UTC (rev 378605)
@@ -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