Commit 1df4d178 authored by Fabian's avatar Fabian

updated shiboken and pyside for python3

parent 3ef25449
# Maintainer: arlx_ignacy <ziphims@gmail.com>
# Maintainer: Fabian Kosmale <0inkane@googlemail.com>
# Contributor: arlx_ignacy <ziphims@gmail.com>
# Contributor: Douglas Soares de Andrade <douglas@archlinux.org>
# modify these two to whatever Python 3 interpreter you're targetting; on my
# system I use the vanilla python3
_pyver=3
_pyexec=/usr/bin/python$_pyver
pkgname=python3-pyside
pkgver=1.1.1
pkgver=1.1.2
pkgrel=1
pkgdesc='CPython Qt bindings generated using the Shiboken generator. (Python 3 build)'
arch=('i686' 'x86_64')
license=('LGPL')
url='http://www.pyside.org'
depends=('python3-shiboken>=1.1.1' 'python3' 'qt>=4.8' 'phonon' 'mesa')
depends=('python3-shiboken>=1.1.2' 'python3' 'qt>=4.8' 'phonon' 'mesa')
makedepends=('cmake' 'automoc4')
replaces=('pyside-py3')
source=("http://www.pyside.org/files/pyside-qt4.8+$pkgver.tar.bz2"
source=("http://qt-project.org/uploads/pyside/pyside-qt4.8+1.1.2.tar.bz2"
'cmake_fixes.patch')
md5sums=('0176d3746074afe47373d7302e1b4501'
md5sums=('59c8653734b020b0128b82adc98ee704'
'4a538e43dcfcd6c3bd67b8915f0d9769')
build() {
cd "$srcdir/pyside-qt4.8+$pkgver"
msg "Applying patches ..."
# this patch is to use Python 3 libraries & generator
build(){
cd $srcdir/pyside-qt4.8+${pkgver}
patch -p1 -N < ../cmake_fixes.patch
# of course, if you want to undo the patches you can use:
# $ patch -p1 -R < ../cmake_fixes.patch
cd ..
if [ -d build ] ; then
msg "Removing last build ..."
rm -rf build
fi
mkdir build
cd build
cmake ../pyside-qt4.8+$pkgver -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-Dpyside_SUFFIX=-python3
mkdir -p build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release \
-DBUILD_TESTS=OFF \
-DUSE_PYTHON3=1 \
-Dpyside_SUFFIX=-python3
make
}
package() {
cd "$srcdir/build"
cd "$srcdir/pyside-qt4.8+${pkgver}/build/"
make DESTDIR=$pkgdir install
}
......@@ -4,7 +4,7 @@
pkgname=python3-shiboken
pkgver=1.1.2
pkgrel=1
pkgrel=2
pkgdesc='Python binding generator that uses API Extractor and outputs CPython code. (Python 3 build)'
arch=('i686' 'x86_64')
license=('LGPL')
......@@ -42,13 +42,12 @@ build() {
# generator does not build this way
}
package() {
package() {
# install generator
cd "$srcdir/build/generator"
cd "$srcdir/shiboken-${pkgver}/build/generator"
make DESTDIR=$pkgdir install
# install libshiboken
cd "$srcdir/build/libshiboken"
cd "$srcdir/shiboken-${pkgver}/build/libshiboken"
make DESTDIR=$pkgdir install
# get some variables for our purpose
......@@ -72,4 +71,3 @@ package() {
mkdir -m 755 -p $pkgdir/usr/lib/pkgconfig/
install -m 755 ../data/shiboken$SHIBOKEN_SUFFIX.pc $pkgdir/usr/lib/pkgconfig/
}
}
--- src/shiboken-1.1.2/cmake/Modules/FindPython3Libs.cmake 2012-07-04 20:25:37.000000000 +0200
+++ FindPython3Libs.cmake 2012-11-04 01:59:19.125481523 +0100
@@ -27,7 +27,7 @@
# Search for the python framework on Apple.
# CMAKE_FIND_FRAMEWORKS(Python)
-FOREACH(_CURRENT_VERSION 3.2 3.1 3.0)
+FOREACH(_CURRENT_VERSION 3.3 3.2 3.1 3.0)
IF(_CURRENT_VERSION GREATER 3.1)
SET(_32FLAGS "m" "u" "mu" "")
ELSE()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment