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

Jan Steffens heftig at archlinux.org
Fri Dec 6 20:45:11 UTC 2019


    Date: Friday, December 6, 2019 @ 20:45:10
  Author: heftig
Revision: 370508

archrelease: copy trunk to extra-x86_64

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

----------------------+
 PKGBUILD             |  147 +++++++++++++++++++++++--------------------------
 gst-python-3.8.patch |   34 +++++------
 2 files changed, 87 insertions(+), 94 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2019-12-06 20:45:09 UTC (rev 370507)
+++ PKGBUILD	2019-12-06 20:45:10 UTC (rev 370508)
@@ -1,77 +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.1
-pkgrel=3
-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/extra-x86_64/PKGBUILD (from rev 370506, gst-python/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-06 20:45:10 UTC (rev 370508)
@@ -0,0 +1,70 @@
+# 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"
+}

Deleted: gst-python-3.8.patch
===================================================================
--- gst-python-3.8.patch	2019-12-06 20:45:09 UTC (rev 370507)
+++ gst-python-3.8.patch	2019-12-06 20:45:10 UTC (rev 370508)
@@ -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')

Copied: gst-python/repos/extra-x86_64/gst-python-3.8.patch (from rev 370506, gst-python/trunk/gst-python-3.8.patch)
===================================================================
--- gst-python-3.8.patch	                        (rev 0)
+++ gst-python-3.8.patch	2019-12-06 20:45:10 UTC (rev 370508)
@@ -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