python3-pivy: update to 0.6.5

This commit is contained in:
Andrew J. Hesford 2020-10-07 09:55:56 -04:00
parent cc45280cc3
commit 700d470d33
2 changed files with 6 additions and 42 deletions

View File

@ -1,36 +0,0 @@
From 73cd928fe1a9c2abbe6f28844a7fc695ad11d7cf Mon Sep 17 00:00:00 2001
From: Peter Lama <peterldev94@gmail.com>
Date: Fri, 24 Aug 2018 17:25:47 -0700
Subject: [PATCH] Fix issue #39: PyUnicode_AsUTF8 returns const char*
Even with python 2, it doesn't seem like char* is needed
--- Inventor/nodes/SoMarkerSet.i
+++ Inventor/nodes/SoMarkerSet.i
@@ -5,7 +5,7 @@
short WIDTH, HEIGHT;
size.getValue(WIDTH, HEIGHT);
short BYTEWIDTH = (WIDTH + 7) / 2;
- char* coin_marker;
+ const char* coin_marker;
#ifdef PY_2
if (PyString_Check(string))
{
@@ -49,4 +49,4 @@
delete[] bitmapbytes;
bitmapbytes = NULL;
}
-}
\ No newline at end of file
+}
--- Inventor/sensors/SoSensor.i
+++ Inventor/sensors/SoSensor.i
@@ -4,7 +4,7 @@ SoSensorPythonCB(void * data, SoSensor * sensor)
{
PyGILState_STATE gil = PyGILState_Ensure();
swig_type_info * swig_type = 0;
- char * sensor_cast_name = NULL;
+ const char * sensor_cast_name = NULL;
PyObject * func, * arglist;
PyObject * result, * pysensor;

View File

@ -1,17 +1,17 @@
# Template file for 'python3-pivy'
pkgname=python3-pivy
version=0.6.4
revision=2
wrksrc="Coin3D-pivy-a84100beff22"
version=0.6.5
revision=1
wrksrc="pivy-${version}"
build_style=python3-module
hostmakedepends="python3-devel swig"
makedepends="python3-devel coin3-devel qt5-devel"
short_desc="Python3 bindings for the high-level 3D graphics library Coin"
maintainer="yopito <pierre.bourgin@free.fr>"
license="0BSD"
homepage="https://bitbucket.org/Coin3D/pivy"
distfiles="https://bitbucket.org/Coin3D/pivy/get/${version}.tar.gz"
checksum=2ee684dbf0f52c05b491c5423013fd82e679614bffee23641485248c8a790c4e
homepage="https://github.com/coin3d/pivy"
distfiles="${homepage}/archive/${version}.tar.gz"
checksum=16f2e339e5c59a6438266abe491013a20f53267e596850efad1559564a2c1719
case "$XBPS_TARGET_MACHINE" in
ppc64*);;