Import py-sip-qt5 4.19.19.
SIP is a tool for automatically generating Python bindings for C and C++ libraries. This module contains Qt5 bindings that were previously in py-qt5. not yet linked to the build but will be necessary for the upcoming py-qt5 update. Not importing 12.7.x versions as they are python3 only, and we still have some consumers for the python2 FLAVOR of py-qt5. to be tightly kept in sync with devel/py-sip, and tested against py-qt5 updates.. with tweaks from and ok sthen@
This commit is contained in:
parent
4e7a411ee4
commit
d3104b552d
39
x11/py-sip-qt5/Makefile
Normal file
39
x11/py-sip-qt5/Makefile
Normal file
@ -0,0 +1,39 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2020/03/10 09:32:46 landry Exp $
|
||||
|
||||
COMMENT = sip extension for qt5
|
||||
|
||||
# XXX keep in sync with py-sip and carefully test with py-qt5 consumers
|
||||
|
||||
MODPY_EGG_VERSION = 4.19.19
|
||||
DISTNAME = sip-${MODPY_EGG_VERSION}
|
||||
PKGNAME = py-sip-qt5-${MODPY_EGG_VERSION}
|
||||
CATEGORIES = x11
|
||||
|
||||
HOMEPAGE = https://www.riverbankcomputing.com/software/sip/intro
|
||||
|
||||
# SIP license (Python like)
|
||||
PERMIT_PACKAGE= Yes
|
||||
|
||||
WANTLIB = m ${COMPILER_LIBCXX}
|
||||
|
||||
COMPILER = base-clang ports-gcc base-gcc
|
||||
|
||||
MASTER_SITES = https://www.riverbankcomputing.com/static/Downloads/sip/${MODPY_EGG_VERSION}/
|
||||
|
||||
MODULES = lang/python
|
||||
|
||||
FLAVORS = python3
|
||||
FLAVOR ?=
|
||||
|
||||
CONFIGURE_STYLE = simple
|
||||
CONFIGURE_SCRIPT = ${MODPY_BIN} configure.py
|
||||
CONFIGURE_ARGS = --sip-module PyQt5.sip --no-tools
|
||||
|
||||
MAKE_FLAGS = CC="${CC}" CXX="${CXX}"
|
||||
|
||||
NO_TEST = Yes
|
||||
|
||||
pre-configure:
|
||||
${SUBST_CMD} ${WRKSRC}/configure.py
|
||||
|
||||
.include <bsd.port.mk>
|
2
x11/py-sip-qt5/distinfo
Normal file
2
x11/py-sip-qt5/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (sip-4.19.19.tar.gz) = VDa2Gnj0jH6AeOk6a1lFOtM3gPgMZE5fOvOflL4e3kQ=
|
||||
SIZE (sip-4.19.19.tar.gz) = 1058422
|
14
x11/py-sip-qt5/patches/patch-configure_py
Normal file
14
x11/py-sip-qt5/patches/patch-configure_py
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-configure_py,v 1.1.1.1 2020/03/10 09:32:46 landry Exp $
|
||||
|
||||
Index: configure.py
|
||||
--- configure.py.orig
|
||||
+++ configure.py
|
||||
@@ -270,7 +270,7 @@ def create_config(module, template, macros):
|
||||
"sip_version": sip_version,
|
||||
"sip_version_str": sip_version_str,
|
||||
"platform": build_platform,
|
||||
- "sip_bin": os.path.join(sip_bin_dir, "sip"),
|
||||
+ "sip_bin": os.path.join(sip_bin_dir, "sip${MODPY_BIN_SUFFIX}"),
|
||||
"sip_inc_dir": sip_inc_dir,
|
||||
"sip_root_dir": sip_root_dir,
|
||||
"sip_module_dir": sip_module_dir,
|
41
x11/py-sip-qt5/patches/patch-specs_openbsd-g++
Normal file
41
x11/py-sip-qt5/patches/patch-specs_openbsd-g++
Normal file
@ -0,0 +1,41 @@
|
||||
$OpenBSD: patch-specs_openbsd-g++,v 1.1.1.1 2020/03/10 09:32:46 landry Exp $
|
||||
Index: specs/openbsd-g++
|
||||
--- specs/openbsd-g++.orig
|
||||
+++ specs/openbsd-g++
|
||||
@@ -7,7 +7,7 @@ TEMPLATE = app
|
||||
CONFIG += qt warn_on release link_prl
|
||||
QT += core gui
|
||||
|
||||
-QMAKE_CC = gcc
|
||||
+QMAKE_CC = cc
|
||||
QMAKE_LEX = flex
|
||||
QMAKE_LEXFLAGS =
|
||||
QMAKE_YACC = yacc
|
||||
@@ -22,7 +22,7 @@ QMAKE_CFLAGS_SHLIB = -fPIC
|
||||
QMAKE_CFLAGS_YACC = -Wno-unused -Wno-parentheses
|
||||
QMAKE_CFLAGS_THREAD = -pthread
|
||||
|
||||
-QMAKE_CXX = g++
|
||||
+QMAKE_CXX = c++
|
||||
QMAKE_CXXFLAGS = $$QMAKE_CFLAGS
|
||||
QMAKE_CXXFLAGS_DEPS = $$QMAKE_CFLAGS_DEPS
|
||||
QMAKE_CXXFLAGS_WARN_ON = $$QMAKE_CFLAGS_WARN_ON
|
||||
@@ -42,15 +42,15 @@ QMAKE_LIBDIR_QT = $$[QT_INSTALL_LIBS]
|
||||
QMAKE_INCDIR_OPENGL = /usr/X11R6/include
|
||||
QMAKE_LIBDIR_OPENGL = /usr/X11R6/lib
|
||||
|
||||
-QMAKE_LINK = g++
|
||||
-QMAKE_LINK_SHLIB = g++
|
||||
+QMAKE_LINK = c++
|
||||
+QMAKE_LINK_SHLIB = c++
|
||||
QMAKE_LINK_SHLIB_CMD = $$QMAKE_LINK_SHLIB $(LFLAGS) \
|
||||
$$QMAKE_CFLAGS_SHLIB $$QMAKE_LFLAGS \
|
||||
-o $(TARGETD) $(OBJECTS) $(OBJMOC) $(LIBS)
|
||||
QMAKE_LFLAGS =
|
||||
QMAKE_LFLAGS_RELEASE =
|
||||
QMAKE_LFLAGS_DEBUG =
|
||||
-QMAKE_LFLAGS_SHLIB = -shared
|
||||
+QMAKE_LFLAGS_SHLIB = -shared -fPIC
|
||||
QMAKE_LFLAGS_PLUGIN = $$QMAKE_LFLAGS_SHLIB
|
||||
QMAKE_LFLAGS_SONAME = -Wl,-soname,
|
||||
QMAKE_LFLAGS_THREAD = -pthread
|
2
x11/py-sip-qt5/pkg/DESCR
Normal file
2
x11/py-sip-qt5/pkg/DESCR
Normal file
@ -0,0 +1,2 @@
|
||||
SIP is a tool for automatically generating Python bindings for C and C++
|
||||
libraries. This module contains Qt5 bindings that were previously in py-qt5.
|
9
x11/py-sip-qt5/pkg/PLIST
Normal file
9
x11/py-sip-qt5/pkg/PLIST
Normal file
@ -0,0 +1,9 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2020/03/10 09:32:46 landry Exp $
|
||||
@conflict py-qt5-<5.13
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5/
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5/sip.pyi
|
||||
@so lib/python${MODPY_VERSION}/site-packages/PyQt5/sip.so
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5_sip-${MODPY_EGG_VERSION}.dist-info/
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5_sip-${MODPY_EGG_VERSION}.dist-info/INSTALLER
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5_sip-${MODPY_EGG_VERSION}.dist-info/METADATA
|
||||
lib/python${MODPY_VERSION}/site-packages/PyQt5_sip-${MODPY_EGG_VERSION}.dist-info/RECORD
|
Loading…
Reference in New Issue
Block a user