[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)

2020-11-09 Thread Felix Yan via arch-commits
Date: Monday, November 9, 2020 @ 14:09:30
  Author: felixonmars
Revision: 399729

archrelease: copy trunk to staging-x86_64

Added:
  pygobject/repos/staging-x86_64/
  pygobject/repos/staging-x86_64/PKGBUILD
(from rev 399728, pygobject/trunk/PKGBUILD)

--+
 PKGBUILD |   48 
 1 file changed, 48 insertions(+)

Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 399728, 
pygobject/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-11-09 14:09:30 UTC (rev 399729)
@@ -0,0 +1,48 @@
+# Maintainer: Jan Alexander Steffens (heftig) 
+# Contributor: Ionut Biru 
+
+pkgbase=pygobject
+pkgname=(python-gobject)
+pkgver=3.38.0
+pkgrel=2
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject";
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime python)
+makedepends=(python-cairo gobject-introspection git meson)
+checkdepends=(python-pytest gtk3 xorg-server-xvfb)
+optdepends=('cairo: Cairo bindings')
+provides=("pygobject-devel=$pkgver")
+conflicts=(pygobject-devel)
+replaces=('pygobject-devel<=3.36.1-1')
+_commit=63825d8eb0acbaf516fcd5064a891f31534dc4e5  # tags/3.38.0^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd pygobject
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd pygobject
+}
+
+build() {
+  arch-meson pygobject build
+  meson compile -C build
+}
+
+check() {
+  xvfb-run -s '-screen 0 1920x1080x24 -nolisten local' \
+meson test -C build --print-errorlogs
+}
+
+package_python-gobject() {
+  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"
+}
+
+# vim:set sw=2 et:


[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)

2020-04-08 Thread Felix Yan via arch-commits
Date: Thursday, April 9, 2020 @ 01:31:46
  Author: felixonmars
Revision: 379887

archrelease: copy trunk to staging-x86_64

Added:
  pygobject/repos/staging-x86_64/
  pygobject/repos/staging-x86_64/PKGBUILD
(from rev 379886, pygobject/trunk/PKGBUILD)

--+
 PKGBUILD |   85 +
 1 file changed, 85 insertions(+)

Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 379886, 
pygobject/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2020-04-09 01:31:46 UTC (rev 379887)
@@ -0,0 +1,85 @@
+# Maintainer: Jan Alexander Steffens (heftig) 
+# Contributor: Ionut Biru 
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.36.0
+pkgrel=2
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject";
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git meson)
+checkdepends=(python{,2}-pytest gtk3 xorg-server-xvfb)
+optdepends=('cairo: Cairo bindings')
+_commit=43cf6c15bfe853c1f9a37d89c1edf416106777ea  # tags/3.36.0^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgbase
+  # tests: don't use strict mode for xfail with the excepthook plugin
+  git cherry-pick -n dae0500166068d78150855bdef94f0bee18b31dd
+}
+
+_build() {
+  arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
+  ninja -C build-$1
+}
+
+_check() {
+  xvfb-run 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_python-gobject() {
+  depends=("pygobject-devel=$pkgver" python)
+
+  _package python
+
+### Split -devel
+  mkdir -p "$srcdir/devel"
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_python2-gobject() {
+  pkgdesc="${pkgdesc/Python/Python2}"
+  depends=("pygobject-devel=$pkgver" python2)
+
+  _package python2
+
+### Remove -devel
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_pygobject-devel() {
+  pkgdesc="Common development files for pygobject"
+  optdepends=()
+
+  mkdir -p "$pkgdir/usr/lib"
+  mv devel/include "$pkgdir/usr"
+  mv devel/pkgconfig "$pkgdir/usr/lib"
+}
+
+# vim:set sw=2 et:


[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)

2019-10-25 Thread Evangelos Foutras via arch-commits
Date: Saturday, October 26, 2019 @ 05:29:02
  Author: foutrelis
Revision: 365790

archrelease: copy trunk to staging-x86_64

Added:
  pygobject/repos/staging-x86_64/
  pygobject/repos/staging-x86_64/PKGBUILD
(from rev 365789, pygobject/trunk/PKGBUILD)

--+
 PKGBUILD |   83 +
 1 file changed, 83 insertions(+)

Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 365789, 
pygobject/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2019-10-26 05:29:02 UTC (rev 365790)
@@ -0,0 +1,83 @@
+# Maintainer: Jan Alexander Steffens (heftig) 
+# Contributor: Ionut Biru 
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.34.0
+pkgrel=2
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject";
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git meson)
+checkdepends=(python{,2}-pytest gtk3 xorg-server-xvfb)
+optdepends=('cairo: Cairo bindings')
+_commit=fae47858d24e9fbd6745c094db0064c5506de5cb  # tags/3.34.0^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  cd $pkgbase
+}
+
+_build() {
+  arch-meson $pkgbase build-$1 -D python=/usr/bin/$1
+  ninja -C build-$1
+}
+
+_check() {
+  xvfb-run 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_python-gobject() {
+  depends=("pygobject-devel=$pkgver" python)
+
+  _package python
+
+### Split -devel
+  mkdir -p "$srcdir/devel"
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_python2-gobject() {
+  pkgdesc="${pkgdesc/Python/Python2}"
+  depends=("pygobject-devel=$pkgver" python2)
+
+  _package python2
+
+### Remove -devel
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_pygobject-devel() {
+  pkgdesc="Common development files for pygobject"
+  optdepends=()
+
+  mkdir -p "$pkgdir/usr/lib"
+  mv devel/include "$pkgdir/usr"
+  mv devel/pkgconfig "$pkgdir/usr/lib"
+}
+
+# vim:set sw=2 et:


[arch-commits] Commit in pygobject/repos (staging-x86_64 staging-x86_64/PKGBUILD)

2018-07-19 Thread Felix Yan via arch-commits
Date: Thursday, July 19, 2018 @ 07:12:20
  Author: felixonmars
Revision: 329018

archrelease: copy trunk to staging-x86_64

Added:
  pygobject/repos/staging-x86_64/
  pygobject/repos/staging-x86_64/PKGBUILD
(from rev 329017, pygobject/trunk/PKGBUILD)

--+
 PKGBUILD |   68 +
 1 file changed, 68 insertions(+)

Copied: pygobject/repos/staging-x86_64/PKGBUILD (from rev 329017, 
pygobject/trunk/PKGBUILD)
===
--- staging-x86_64/PKGBUILD (rev 0)
+++ staging-x86_64/PKGBUILD 2018-07-19 07:12:20 UTC (rev 329018)
@@ -0,0 +1,68 @@
+# $Id$
+# Contributor: Ionut Biru 
+
+pkgbase=pygobject
+pkgname=(python-gobject python2-gobject pygobject-devel)
+pkgver=3.28.3
+pkgrel=2
+pkgdesc="Python Bindings for GLib/GObject/GIO/GTK+"
+url="https://wiki.gnome.org/Projects/PyGObject";
+arch=(x86_64)
+license=(LGPL)
+depends=(gobject-introspection-runtime)
+makedepends=(python{,2}-cairo gobject-introspection git autoconf-archive)
+optdepends=('cairo: Cairo bindings')
+_commit=8c84ef95c9a76de9189feedfebc8963db29d6bf0  # tags/3.28.3^0
+source=("git+https://gitlab.gnome.org/GNOME/pygobject.git#commit=$_commit";)
+sha256sums=('SKIP')
+
+pkgver() {
+  cd $pkgbase
+  git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+  mkdir build-py{2,3} devel
+  cd $pkgbase
+  NOCONFIGURE=1 ./autogen.sh
+}
+
+_build() (
+  cd build-py$1
+  ../$pkgbase/configure --prefix=/usr --with-python=/usr/bin/python$1
+  sed -i 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
+  make
+)
+
+build() {
+  _build 2
+  _build 3
+}
+
+package_python-gobject() {
+  depends=("pygobject-devel=$pkgver" python)
+
+  cd build-py3
+  make DESTDIR="$pkgdir" install
+  mv "$pkgdir"/usr/{include,lib/pkgconfig} "$srcdir/devel"
+}
+
+package_python2-gobject() {
+  pkgdesc="${pkgdesc/Python/Python2}"
+  depends=("pygobject-devel=$pkgver" python2)
+
+  cd build-py2
+  make DESTDIR="$pkgdir" install
+  python2 -m compileall "$pkgdir"/usr/lib/python2.7/site-packages/gi
+  rm -r "$pkgdir"/usr/{include,lib/pkgconfig}
+}
+
+package_pygobject-devel() {
+  pkgdesc="Common development files for pygobject"
+  optdepends=()
+
+  cd devel
+  mkdir -p "$pkgdir/usr/lib"
+  mv include "$pkgdir/usr/"
+  mv pkgconfig "$pkgdir/usr/lib/"
+}