[arch-commits] Commit in python-pyside/repos (4 files)

Felix Yan fyan at archlinux.org
Mon Sep 21 08:19:04 UTC 2015


    Date: Monday, September 21, 2015 @ 10:19:04
  Author: fyan
Revision: 141367

archrelease: copy trunk to community-staging-i686, community-staging-x86_64

Added:
  python-pyside/repos/community-staging-i686/
  python-pyside/repos/community-staging-i686/PKGBUILD
    (from rev 141366, python-pyside/trunk/PKGBUILD)
  python-pyside/repos/community-staging-x86_64/
  python-pyside/repos/community-staging-x86_64/PKGBUILD
    (from rev 141366, python-pyside/trunk/PKGBUILD)

-----------------------------------+
 community-staging-i686/PKGBUILD   |   85 ++++++++++++++++++++++++++++++++++++
 community-staging-x86_64/PKGBUILD |   85 ++++++++++++++++++++++++++++++++++++
 2 files changed, 170 insertions(+)

Copied: python-pyside/repos/community-staging-i686/PKGBUILD (from rev 141366, python-pyside/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-21 08:19:04 UTC (rev 141367)
@@ -0,0 +1,85 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+# Contributor: Matthias Maennich <arch at maennich.net>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Jan-Erik Meyer-Luetgens <nyan at meyer-luetgens dot de>
+pkgbase=python-pyside
+pkgname=(python-pyside-common python2-pyside python-pyside)
+_pkgrealname=pyside
+pkgver=1.2.2
+pkgrel=6
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://qt-project.org/wiki/PySide"
+_qtver=4.8
+makedepends=('python' 'python2' "qt4>=${_qtver}" "python"{,2}"-shiboken>=$pkgver"
+             'cmake' 'qtwebkit' 'phonon')
+source=("http://download.qt-project.org/official_releases/pyside/${_pkgrealname}-qt${_qtver}+$pkgver.tar.bz2")
+md5sums=('1969c2ff90eefaa4b200d234059d2287')
+
+build(){
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver"
+    mkdir -p build_py3
+    cd build_py3
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF \
+      -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver"
+    mkdir -p build_py2
+    cd build_py2
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF \
+      -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
+      -DPYTHON_SUFFIX=-python2.7
+    make
+}
+
+package_python-pyside-common(){
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Common Files)"
+    # cmake will use Python 3 version by default
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py3"
+    make DESTDIR="$pkgdir" install
+
+    rm -rf "$pkgdir"/usr/lib/pkgconfig
+    rm -rf "$pkgdir"/usr/lib/python* "$pkgdir"/usr/lib/libpyside.*
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig*python*.cmake
+}
+
+package_python-pyside(){
+    depends=('python' "qt4>=${_qtver}" "python-shiboken>=$pkgver" "python-pyside-common=$pkgver-$pkgrel")
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 3 version)"
+    optdepends=('qtwebkit: for PySide.QtWebKit'
+                'phonon: for PySide.phonon')
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py3"
+    make DESTDIR="$pkgdir" install
+
+    mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+      "$pkgdir"/usr/lib/pkgconfig/pyside-py3.pc
+
+    rm -rf "$pkgdir"/usr/include
+    rm -rf "$pkgdir"/usr/share
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}
+
+package_python2-pyside(){
+    depends=('python2' "qt4>=${_qtver}" "python2-shiboken>=$pkgver" "python-pyside-common=$pkgver-$pkgrel")
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 2 version)"
+    optdepends=('qtwebkit: for PySide.QtWebKit'
+                'phonon: for PySide.phonon')
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py2"
+    make DESTDIR="$pkgdir" install
+
+    mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+      "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+    sed -i 's#^Requires: shiboken$#Requires: shiboken-py2#' "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+    rm -rf "$pkgdir"/usr/include
+    rm -rf "$pkgdir"/usr/share
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}
+

Copied: python-pyside/repos/community-staging-x86_64/PKGBUILD (from rev 141366, python-pyside/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-21 08:19:04 UTC (rev 141367)
@@ -0,0 +1,85 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: lilydjwg <lilydjwg at gmail.com>
+# Contributor: Matthias Maennich <arch at maennich.net>
+# Contributor: Massimiliano Torromeo <massimiliano.torromeo at gmail.com>
+# Contributor: Jan-Erik Meyer-Luetgens <nyan at meyer-luetgens dot de>
+pkgbase=python-pyside
+pkgname=(python-pyside-common python2-pyside python-pyside)
+_pkgrealname=pyside
+pkgver=1.2.2
+pkgrel=6
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://qt-project.org/wiki/PySide"
+_qtver=4.8
+makedepends=('python' 'python2' "qt4>=${_qtver}" "python"{,2}"-shiboken>=$pkgver"
+             'cmake' 'qtwebkit' 'phonon')
+source=("http://download.qt-project.org/official_releases/pyside/${_pkgrealname}-qt${_qtver}+$pkgver.tar.bz2")
+md5sums=('1969c2ff90eefaa4b200d234059d2287')
+
+build(){
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver"
+    mkdir -p build_py3
+    cd build_py3
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF \
+      -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver"
+    mkdir -p build_py2
+    cd build_py2
+    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF \
+      -DQT_PHONON_INCLUDE_DIR=/usr/include/qt4/phonon -DQT_QMAKE_EXECUTABLE=qmake-qt4 \
+      -DPYTHON_SUFFIX=-python2.7
+    make
+}
+
+package_python-pyside-common(){
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Common Files)"
+    # cmake will use Python 3 version by default
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py3"
+    make DESTDIR="$pkgdir" install
+
+    rm -rf "$pkgdir"/usr/lib/pkgconfig
+    rm -rf "$pkgdir"/usr/lib/python* "$pkgdir"/usr/lib/libpyside.*
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig*python*.cmake
+}
+
+package_python-pyside(){
+    depends=('python' "qt4>=${_qtver}" "python-shiboken>=$pkgver" "python-pyside-common=$pkgver-$pkgrel")
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 3 version)"
+    optdepends=('qtwebkit: for PySide.QtWebKit'
+                'phonon: for PySide.phonon')
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py3"
+    make DESTDIR="$pkgdir" install
+
+    mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+      "$pkgdir"/usr/lib/pkgconfig/pyside-py3.pc
+
+    rm -rf "$pkgdir"/usr/include
+    rm -rf "$pkgdir"/usr/share
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}
+
+package_python2-pyside(){
+    depends=('python2' "qt4>=${_qtver}" "python2-shiboken>=$pkgver" "python-pyside-common=$pkgver-$pkgrel")
+    pkgdesc="Provides LGPL Qt bindings for Python and related tools for binding generation (Python 2 version)"
+    optdepends=('qtwebkit: for PySide.QtWebKit'
+                'phonon: for PySide.phonon')
+
+    cd "$srcdir/${_pkgrealname}-qt${_qtver}+$pkgver/build_py2"
+    make DESTDIR="$pkgdir" install
+
+    mv "$pkgdir"/usr/lib/pkgconfig/pyside.pc \
+      "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+    sed -i 's#^Requires: shiboken$#Requires: shiboken-py2#' "$pkgdir"/usr/lib/pkgconfig/pyside-py2.pc
+
+    rm -rf "$pkgdir"/usr/include
+    rm -rf "$pkgdir"/usr/share
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfig.cmake
+    rm "$pkgdir"/usr/lib/cmake/PySide-$pkgver/PySideConfigVersion.cmake
+}
+



More information about the arch-commits mailing list