New package: shiboken2 5.11.2

Co-authored-by: maxice8 <thinkabit.ukim@gmail.com>
This commit is contained in:
yopito 2019-02-20 19:04:12 +01:00 committed by maxice8
parent 63c711357a
commit 696480b499
No known key found for this signature in database
GPG key ID: 543B9D4F4299F06B
6 changed files with 97 additions and 0 deletions

View file

@ -1605,6 +1605,7 @@ libgdkglext-x11-1.0.so.0 gtkglext-1.2.0_4
libXaw3d.so.8 libXaw3d-1.6.2_1
libshiboken-python2.7.so.1.2 libshiboken-python-1.2.2_2
libshiboken-python3.6.so.1.2 libshiboken-python3-1.2.2_4
libshiboken2.so.5.11 libshiboken2-5.11.2_1
libpyside-python2.7.so.1.2 libpyside-python-1.2.2_2
libpyside-python3.6.so.1.2 libpyside-python3-1.2.2_6
libupsclient.so.4 libnetwork-ups-tools-2.7.2_1

1
srcpkgs/libshiboken2 Symbolic link
View file

@ -0,0 +1 @@
shiboken2

1
srcpkgs/libshiboken2-devel Symbolic link
View file

@ -0,0 +1 @@
shiboken2

1
srcpkgs/python3-shiboken2 Symbolic link
View file

@ -0,0 +1 @@
shiboken2

View file

@ -0,0 +1,32 @@
--- sources/shiboken2/libshiboken/signature.cpp.ORIG
+++ sources/shiboken2/libshiboken/signature.cpp
@@ -473,12 +473,15 @@
////////////////////////////////////////////////////////////////////////////
// a stack trace for linux-like platforms
#include <stdio.h>
+#if defined(__GLIBC__)
#include <execinfo.h>
+#endif
#include <signal.h>
#include <stdlib.h>
#include <unistd.h>
void handler(int sig) {
+#if defined(__GLIBC__)
void *array[30];
size_t size;
@@ -486,8 +489,13 @@
size = backtrace(array, 30);
// print out all the frames to stderr
+#endif
fprintf(stderr, "Error: signal %d:\n", sig);
+#if defined(__GLIBC__)
backtrace_symbols_fd(array, size, STDERR_FILENO);
+#else
+ fprintf(stderr, "sorry, no backtrace on musl libc\n");
+#endif
exit(1);
}

View file

@ -0,0 +1,61 @@
# Template file for 'shiboken2'
pkgname=shiboken2
version=5.11.2
revision=1
_pkgname="pyside-setup-everywhere-src-${version}"
wrksrc="$_pkgname"
configure_args="-DUSE_PYTHON_VERSION=3 -DCMAKE_INSTALL_PREFIX=/usr
-DCMAKE_BUILD_TYPE=Release -DBUILD_TESTS=OFF"
hostmakedepends="cmake"
makedepends="python3-devel qt5-devel qt5-xmlpatterns-devel clang libxml2-devel
libxslt-devel python3-numpy"
short_desc="Python binding generator of Qt5 C++ API"
maintainer="yopito <pierre.bourgin@free.fr>"
license="GPL-3.0-or-later"
homepage="https://wiki.qt.io/Qt_for_Python/Shiboken"
distfiles="https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src/${_pkgname}.tar.xz"
checksum=18f572f1f832e476083d30fccabab167450f2a8cbe5cd9c6e6e4fa078ccb86c2
pre_build() {
# Fix inconsistent naming of .so and .cmake files
sed -i "/get_python_extension_suffix()/d" sources/shiboken2/CMakeLists.txt
}
do_build() {
[ ! -d build ] && mkdir build
pushd build
export CLANG_INSTALL_DIR=/usr
cmake ../sources/shiboken2 ${configure_args}
make ${makejobs}
popd
}
do_install() {
make -C build DESTDIR=${DESTDIR} install
}
libshiboken2-devel_package() {
depends="${sourcepkg}-${version}_${revision}
libshiboken2-${version}_${revision}"
short_desc+=" - common development files"
pkg_install() {
vmove usr/include
vmove usr/lib/cmake
vmove usr/lib/pkgconfig
vmove "usr/lib/*.so"
}
}
libshiboken2_package() {
short_desc="Python3 shiboken2 bindings - shared library"
pkg_install() {
vmove "usr/lib/*.so.*"
}
}
python3-shiboken2_package() {
short_desc="Python3 shiboken2 bindings"
pkg_install() {
vmove ${py3_sitelib}
}
}