Commit dbb4bb13 authored by Anthony Mallet's avatar Anthony Mallet

[wip/py-pythonqt] Move to robotpkg

parent 7b8e3b34
......@@ -98,7 +98,6 @@ SUBDIR+= py-prf-ros-controllers
SUBDIR+= py-pycddlib
SUBDIR+= py-qpoases
SUBDIR+= py-qt-gepetto-pythonqt
SUBDIR+= py-pythonqt
SUBDIR+= py-ros-baxter-common
SUBDIR+= py-roscontrol-sot
SUBDIR+= py-scs
......
PythonQt is a dynamic Python binding for Qt. It offers an easy way to embed the Python scripting language into your Qt applications.
# robotpkg Makefile for: wip/py38-PythonQt
# Created: Guilhem Saurel on Wed, 27 May 2020
#
ORG= mevislab
NAME= PythonQt
VERSION= 3.2
DISTNAME= ${NAME}${VERSION}
PKGNAME= ${PKGTAG.python-}${NAME}-${VERSION}
HOMEPAGE= ${MASTER_SITE_GITHUB:=${ORG}/${NAME}}
MASTER_SITES= ${MASTER_SITE_OPENROBOTS:=${NAME}/}
MASTER_REPOSITORY= git ${HOMEPAGE}.git
EXTRACT_SUFX= .zip
CATEGORIES= wip
COMMENT= Dynamic Python binding for Qt Applications
LICENSE= gnu-lgpl-v2.1
MAINTAINER= guilhem.saurel@laas.fr
QMAKE_ARGS+= CONFIG+=release
SUBST_CLASSES+= py-ver
SUBST_STAGE.py-ver= pre-configure
SUBST_MESSAGE.py-ver= fix python version
SUBST_FILES.py-ver= build/python.prf
SUBST_SED.py-ver= -e 's/PYTHON_VERSION=2.7/PYTHON_VERSION=${PYTHON_VERSION}/'
PYTHON_SELF_CONFLICT= yes
do-install:
${RUN}cd ${WRKSRC}; \
${MKDIR} ${DESTDIR}${PREFIX}/lib; \
${MKDIR} ${DESTDIR}${PREFIX}/include/${NAME}/gui; \
${MKDIR} ${DESTDIR}${PREFIX}/include/${NAME}/extensions/${NAME}_QtAll; \
${INSTALL_LIB} lib/*.so \
${DESTDIR}${PREFIX}/lib/; \
${INSTALL_DATA} src/*.h \
${DESTDIR}${PREFIX}/include/${NAME}/; \
${INSTALL_DATA} src/gui/*.h \
${DESTDIR}${PREFIX}/include/${NAME}/gui/; \
${INSTALL_DATA} extensions/${NAME}_QtAll/*.h \
${DESTDIR}${PREFIX}/include/${NAME}/extensions/${NAME}_QtAll/
include ../../wip/mk/sysdep/qt5-qtbase-private.mk
include ../../wip/mk/sysdep/qt5-svg.mk
include ../../pkgtools/install-sh/depend.mk
include ../../mk/sysdep/python.mk
include ../../mk/sysdep/qmake.mk
include ../../mk/sysdep/qt5-qtbase.mk
include ../../mk/sysdep/qt5-multimedia.mk
include ../../mk/sysdep/qt5-xmlpatterns.mk
include ../../mk/language/c.mk
include ../../mk/language/c++.mk
include ../../mk/robotpkg.mk
@comment Wed May 27 11:49:50 CEST 2020
include/PythonQt/PythonQt.h
include/PythonQt/PythonQtBoolResult.h
include/PythonQt/PythonQtClassInfo.h
include/PythonQt/PythonQtClassWrapper.h
include/PythonQt/PythonQtConversion.h
include/PythonQt/PythonQtCppWrapperFactory.h
include/PythonQt/PythonQtDoc.h
include/PythonQt/PythonQtImportFileInterface.h
include/PythonQt/PythonQtImporter.h
include/PythonQt/PythonQtInstanceWrapper.h
include/PythonQt/PythonQtMethodInfo.h
include/PythonQt/PythonQtMisc.h
include/PythonQt/PythonQtObjectPtr.h
include/PythonQt/PythonQtProperty.h
include/PythonQt/PythonQtPythonInclude.h
include/PythonQt/PythonQtQFileImporter.h
include/PythonQt/PythonQtSignal.h
include/PythonQt/PythonQtSignalReceiver.h
include/PythonQt/PythonQtSlot.h
include/PythonQt/PythonQtSlotDecorator.h
include/PythonQt/PythonQtStdDecorators.h
include/PythonQt/PythonQtStdIn.h
include/PythonQt/PythonQtStdOut.h
include/PythonQt/PythonQtSystem.h
include/PythonQt/PythonQtUtils.h
include/PythonQt/PythonQtVariants.h
include/PythonQt/extensions/PythonQt_QtAll/PythonQt_QtAll.h
include/PythonQt/gui/PythonQtScriptingConsole.h
lib/libPythonQt-Qt5-Python${PYTHON_VERSION}.so
lib/libPythonQt_QtAll-Qt5-Python${PYTHON_VERSION}.so
# robotpkg depend.mk for: wip/py38-PythonQt
# Created: Guilhem Saurel on Wed, 27 May 2020
#
DEPEND_DEPTH:= ${DEPEND_DEPTH}+
PY_PYTHONQT_DEPEND_MK:= ${PY_PYTHONQT_DEPEND_MK}+
ifeq (+,$(DEPEND_DEPTH))
DEPEND_PKG+= py-pythonqt
endif
ifeq (+,$(PY_PYTHONQT_DEPEND_MK)) # ------------------------------------------
PREFER.py-pythonqt?= robotpkg
SYSTEM_SEARCH.py-pythonqt= \
'include/PythonQt/PythonQt.h' \
'lib/libPythonQt-Qt5-Python${PYTHON_VERSION}.so'
DEPEND_USE+= py-pythonqt
DEPEND_ABI.py-pythonqt?= ${PKGTAG.python}-PythonQt>=3.2
DEPEND_DIR.py-pythonqt?= ../../wip/py-pythonqt
include ../../mk/sysdep/python.mk
endif # PY_PYTHONQT_DEPEND_MK ------------------------------------------------
DEPEND_DEPTH:= ${DEPEND_DEPTH:+=}
SHA1 (PythonQt3.2.zip) = b85f2cf9a4e546a46dc416bb0e86759983384543
RMD160 (PythonQt3.2.zip) = fa86fc32d86d5464d0bc940e28a740e87bf036eb
Size (PythonQt3.2.zip) = 4539058 bytes
SHA1 (patch-aa) = 8f3a509645cf97519f8ef96536e49f8e08494a72
SHA1 (patch-ab) = cf2e9e49ac0fa32716445cc004c0ee099a7e9263
--- build/python.prf.orig 2020-05-27 11:28:54.244112165 +0200
+++ build/python.prf 2020-05-27 11:29:17.937347840 +0200
@@ -36,6 +36,8 @@
# on linux, python-config is used to autodetect Python.
# make sure that you have installed a matching python-dev package.
- unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
+ system(python$${PYTHON_VERSION}-config --embed --libs) {
+ unix:LIBS += $$system(python$${PYTHON_VERSION}-config --embed --libs)
+ } else: unix:LIBS += $$system(python$${PYTHON_VERSION}-config --libs)
unix:QMAKE_CXXFLAGS += $$system(python$${PYTHON_VERSION}-config --includes)
}
fix build on 16.04
ref https://sourceforge.net/p/pythonqt/discussion/631393/thread/a9358753/
--- extensions/PythonQt_QtAll/PythonQt_QtAll.cpp.orig 2016-07-25 13:06:46.000000000 +0200
+++ extensions/PythonQt_QtAll/PythonQt_QtAll.cpp 2020-06-02 23:08:18.831046707 +0200
@@ -66,10 +66,6 @@
PythonQt_init_QtOpenGL(0);
PythonQt_init_QtXmlPatterns(0);
PythonQt_init_QtMultimedia(0);
- PythonQt_init_QtQml(0);
- PythonQt_init_QtQuick(0);
PythonQt_init_QtUiTools(0);
};
};
-
-
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