[arch-commits] Commit in shiboken/repos (6 files)

Felix Yan fyan at archlinux.org
Mon Sep 21 07:24:34 UTC 2015


    Date: Monday, September 21, 2015 @ 09:24:34
  Author: fyan
Revision: 141352

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

Added:
  shiboken/repos/community-staging-i686/
  shiboken/repos/community-staging-i686/PKGBUILD
    (from rev 141351, shiboken/trunk/PKGBUILD)
  shiboken/repos/community-staging-i686/python-3.5.patch
    (from rev 141351, shiboken/trunk/python-3.5.patch)
  shiboken/repos/community-staging-x86_64/
  shiboken/repos/community-staging-x86_64/PKGBUILD
    (from rev 141351, shiboken/trunk/PKGBUILD)
  shiboken/repos/community-staging-x86_64/python-3.5.patch
    (from rev 141351, shiboken/trunk/python-3.5.patch)

-------------------------------------------+
 community-staging-i686/PKGBUILD           |   96 ++++++++++++++++++++++++++++
 community-staging-i686/python-3.5.patch   |   11 +++
 community-staging-x86_64/PKGBUILD         |   96 ++++++++++++++++++++++++++++
 community-staging-x86_64/python-3.5.patch |   11 +++
 4 files changed, 214 insertions(+)

Copied: shiboken/repos/community-staging-i686/PKGBUILD (from rev 141351, shiboken/trunk/PKGBUILD)
===================================================================
--- community-staging-i686/PKGBUILD	                        (rev 0)
+++ community-staging-i686/PKGBUILD	2015-09-21 07:24:34 UTC (rev 141352)
@@ -0,0 +1,96 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Matthias Maennich <arch at maennich.net>
+
+pkgbase=shiboken
+pkgname=(python{2,}-shiboken shiboken)
+pkgver=1.2.2
+pkgrel=6
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://www.pyside.org"
+makedepends=('cmake' 'python2' 'python' 'qt4' 'libxslt')
+source=("http://download.qt-project.org/official_releases/pyside/$pkgbase-$pkgver.tar.bz2"
+        python-3.5.patch)
+md5sums=('9f5bee9d414ce51be07ff7a20054a48d'
+         '0433387f1716148883d15a7f6360f1e3')
+
+prepare(){
+    cd "$srcdir/shiboken-$pkgver"
+    patch -p1 -i ../python-3.5.patch
+}
+
+build(){
+    cd "$srcdir/shiboken-$pkgver"
+    # build python2
+    mkdir -p build-py2 && cd build-py2
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+              -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+              -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+              -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+
+    # build python3
+    cd "$srcdir/shiboken-$pkgver"
+    mkdir -p build-py3 && cd build-py3
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DUSE_PYTHON3=yes            \
+              -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+}
+
+package_shiboken() {
+  pkgdesc="CPython bindings generator for C++ libraries"
+  depends=(python qt4 libxslt)
+  optdepends=("python2-shiboken: for compilation against python2"
+              "python-shiboken: for compilation against python")
+
+  # Header files/ /usr/bin/shiboke, pkgconfig, man page
+  cd "$srcdir/shiboken-$pkgver/build-py3"
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  cd data
+  install -Dm 644 ShibokenConfig-python2.7.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+  install -Dm 644 shiboken.pc "$pkgdir/usr/lib/pkgconfig/shiboken-py2.pc"
+
+  rm -rf "$pkgdir/usr/lib/python"*
+  rm -rf "$pkgdir/usr/lib/libshiboken"*
+  rm -rf "$pkgdir/usr/lib/pkgconfig/"
+  rm "$pkgdir"/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig*python*.cmake
+}
+package_python2-shiboken() {
+  pkgdesc="Support library for Python2 bindings"
+  depends=("qt4>=4.8" "libxslt" "python2" "shiboken")
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  cd data
+  install -Dm 644 ShibokenConfig-python2.7.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+  mv "$pkgdir"/usr/lib/pkgconfig/shiboken{,-py2}.pc
+
+  rm -rf "$pkgdir"/usr/{include,bin,share}
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfigVersion.cmake"
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig.cmake"
+}
+
+package_python-shiboken() {
+  pkgdesc="Support library for Python bindings"
+  depends=("qt4>=4.8" "libxslt" "python" "shiboken")
+
+  cd "$srcdir/shiboken-$pkgver/build-py3"
+  make DESTDIR="$pkgdir" install
+
+  rm -rf "$pkgdir"/usr/{include,bin,share}
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfigVersion.cmake"
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig.cmake"
+}
+

Copied: shiboken/repos/community-staging-i686/python-3.5.patch (from rev 141351, shiboken/trunk/python-3.5.patch)
===================================================================
--- community-staging-i686/python-3.5.patch	                        (rev 0)
+++ community-staging-i686/python-3.5.patch	2015-09-21 07:24:34 UTC (rev 141352)
@@ -0,0 +1,11 @@
+--- a/cmake/Modules/FindPython3Libs.cmake	2014-04-22 23:42:48.000000000 +0800
++++ b/cmake/Modules/FindPython3Libs.cmake	2015-09-21 15:17:27.014598399 +0800
+@@ -27,7 +27,7 @@
+ # Search for the python framework on Apple.
+ # CMAKE_FIND_FRAMEWORKS(Python)
+ 
+-FOREACH(_CURRENT_VERSION 3.4 3.3 3.2 3.1 3.0)
++FOREACH(_CURRENT_VERSION 3.5 3.4 3.3 3.2 3.1 3.0)
+   IF(_CURRENT_VERSION GREATER 3.1)
+       SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "")
+   ELSE()

Copied: shiboken/repos/community-staging-x86_64/PKGBUILD (from rev 141351, shiboken/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2015-09-21 07:24:34 UTC (rev 141352)
@@ -0,0 +1,96 @@
+# Maintainer: Florian Pritz <bluewind at xinu.at>
+# Contributor: Jelle van der Waa <jelle at vdwaa.nl>
+# Contributor: Hugo Osvaldo Barrera <hugo at barrera.io>
+# Contributor: Matthias Maennich <arch at maennich.net>
+
+pkgbase=shiboken
+pkgname=(python{2,}-shiboken shiboken)
+pkgver=1.2.2
+pkgrel=6
+arch=('i686' 'x86_64')
+license=('LGPL')
+url="http://www.pyside.org"
+makedepends=('cmake' 'python2' 'python' 'qt4' 'libxslt')
+source=("http://download.qt-project.org/official_releases/pyside/$pkgbase-$pkgver.tar.bz2"
+        python-3.5.patch)
+md5sums=('9f5bee9d414ce51be07ff7a20054a48d'
+         '0433387f1716148883d15a7f6360f1e3')
+
+prepare(){
+    cd "$srcdir/shiboken-$pkgver"
+    patch -p1 -i ../python-3.5.patch
+}
+
+build(){
+    cd "$srcdir/shiboken-$pkgver"
+    # build python2
+    mkdir -p build-py2 && cd build-py2
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DPYTHON_EXECUTABLE=/usr/bin/python2 \
+              -DPYTHON_LIBRARY=/usr/lib/libpython2.7.so \
+              -DPYTHON_INCLUDE_DIR=/usr/include/python2.7 \
+              -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+
+    # build python3
+    cd "$srcdir/shiboken-$pkgver"
+    mkdir -p build-py3 && cd build-py3
+    cmake ../ -DCMAKE_INSTALL_PREFIX=/usr  \
+              -DCMAKE_BUILD_TYPE=Release   \
+              -DBUILD_TESTS=OFF            \
+              -DUSE_PYTHON3=yes            \
+              -DQT_QMAKE_EXECUTABLE=qmake-qt4
+    make
+}
+
+package_shiboken() {
+  pkgdesc="CPython bindings generator for C++ libraries"
+  depends=(python qt4 libxslt)
+  optdepends=("python2-shiboken: for compilation against python2"
+              "python-shiboken: for compilation against python")
+
+  # Header files/ /usr/bin/shiboke, pkgconfig, man page
+  cd "$srcdir/shiboken-$pkgver/build-py3"
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  cd data
+  install -Dm 644 ShibokenConfig-python2.7.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+  install -Dm 644 shiboken.pc "$pkgdir/usr/lib/pkgconfig/shiboken-py2.pc"
+
+  rm -rf "$pkgdir/usr/lib/python"*
+  rm -rf "$pkgdir/usr/lib/libshiboken"*
+  rm -rf "$pkgdir/usr/lib/pkgconfig/"
+  rm "$pkgdir"/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig*python*.cmake
+}
+package_python2-shiboken() {
+  pkgdesc="Support library for Python2 bindings"
+  depends=("qt4>=4.8" "libxslt" "python2" "shiboken")
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  make DESTDIR="$pkgdir" install
+
+  cd "$srcdir/shiboken-$pkgver/build-py2"
+  cd data
+  install -Dm 644 ShibokenConfig-python2.7.cmake "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/"
+  mv "$pkgdir"/usr/lib/pkgconfig/shiboken{,-py2}.pc
+
+  rm -rf "$pkgdir"/usr/{include,bin,share}
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfigVersion.cmake"
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig.cmake"
+}
+
+package_python-shiboken() {
+  pkgdesc="Support library for Python bindings"
+  depends=("qt4>=4.8" "libxslt" "python" "shiboken")
+
+  cd "$srcdir/shiboken-$pkgver/build-py3"
+  make DESTDIR="$pkgdir" install
+
+  rm -rf "$pkgdir"/usr/{include,bin,share}
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfigVersion.cmake"
+  rm "$pkgdir/usr/lib/cmake/Shiboken-$pkgver/ShibokenConfig.cmake"
+}
+

Copied: shiboken/repos/community-staging-x86_64/python-3.5.patch (from rev 141351, shiboken/trunk/python-3.5.patch)
===================================================================
--- community-staging-x86_64/python-3.5.patch	                        (rev 0)
+++ community-staging-x86_64/python-3.5.patch	2015-09-21 07:24:34 UTC (rev 141352)
@@ -0,0 +1,11 @@
+--- a/cmake/Modules/FindPython3Libs.cmake	2014-04-22 23:42:48.000000000 +0800
++++ b/cmake/Modules/FindPython3Libs.cmake	2015-09-21 15:17:27.014598399 +0800
+@@ -27,7 +27,7 @@
+ # Search for the python framework on Apple.
+ # CMAKE_FIND_FRAMEWORKS(Python)
+ 
+-FOREACH(_CURRENT_VERSION 3.4 3.3 3.2 3.1 3.0)
++FOREACH(_CURRENT_VERSION 3.5 3.4 3.3 3.2 3.1 3.0)
+   IF(_CURRENT_VERSION GREATER 3.1)
+       SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "")
+   ELSE()



More information about the arch-commits mailing list