shiboken: added patch for build against python-3.5

This commit is contained in:
Neofytos Kolokotronis 2016-03-23 13:18:46 +01:00
parent f77379a6cb
commit e415fde3d8
2 changed files with 22 additions and 3 deletions

View File

@ -3,14 +3,22 @@
pkgbase=shiboken
pkgname=(python{2,3}-shiboken shiboken)
pkgver=1.2.4
pkgrel=1
pkgrel=2
arch=('x86_64')
license=('LGPL')
url="http://www.pyside.org"
makedepends=('cmake' 'python2' 'python3' 'qt4' 'libxslt')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/PySide/Shiboken/archive/$pkgver.tar.gz")
md5sums=('c284197d06ad25d78009ff55f18dd512')
source=("$pkgbase-$pkgver.tar.gz::https://github.com/PySide/Shiboken/archive/$pkgver.tar.gz"
'python-3.5.patch')
md5sums=('c284197d06ad25d78009ff55f18dd512'
'40f44162b211f6b88f98373d3a99ce96')
prepare(){
cd "$srcdir/Shiboken-$pkgver"
patch -p1 -i ../python-3.5.patch
}
build(){
cd "$srcdir/Shiboken-$pkgver"
# build python2

11
shiboken/python-3.5.patch Normal file
View File

@ -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()