Add PyQt-3.7 for Qt3, the base module and tools.

This commit is contained in:
drochner 2003-07-22 17:22:48 +00:00
parent e85ff06350
commit 5e83fcad58
7 changed files with 158 additions and 0 deletions

6
x11/py-qt3-base/DESCR Normal file
View file

@ -0,0 +1,6 @@
These are the Python bindings for Qt. You must also have the SIP Python
bindings generator installed.
The homepage is http://www.riverbankcomputing.co.uk/pyqt/.
The homepage of SIP is http://www.riverbankcomputing.co.uk/sip/.

44
x11/py-qt3-base/Makefile Normal file
View file

@ -0,0 +1,44 @@
# $NetBSD: Makefile,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
#
DISTNAME= PyQt-x11-gpl-3.7
PKGNAME= ${PYPKGPREFIX}-qt3-base-3.7
CATEGORIES= x11
MASTER_SITES= http://www.river-bank.demon.co.uk/download/PyQt/
MAINTAINER= tech-pkg@netbsd.org
HOMEPAGE= http://www.riverbankcomputing.co.uk/pyqt/
COMMENT= Python binding for qt3
USE_BUILDLINK2= yes
USE_X11= yes
USE_LIBTOOL= yes
USE_GMAKE= yes
BUILDLINK_DEPENDS.qt3-tools= qt3-tools>=3.1.2nb2
CONFIGURE_ARGS= -q ${QTDIR} -m ${GMAKE} -p ${SIPBIN} -b ""
PYTHON_VERSIONS_ACCEPTED= 22pth 21pth
PY_PATCHPLIST= yes
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
MAKE_ENV+= QTPREFIX=${QTDIR}
do-configure:
(cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${PYTHONBIN} build.py ${CONFIGURE_ARGS})
do-install:
(cd ${WRKSRC}/qt && ${INSTALL_DATA} qt.py ${PREFIX}/${PYSITELIB})
(cd ${WRKSRC}/qt && ${LIBTOOL} --mode=install ${INSTALL_DATA} \
libqtcmodule.la ${PREFIX}/${PYSITELIB})
(cd ${WRKSRC}/pylupdate3 && ${INSTALL_PROGRAM} pylupdate \
${PREFIX}/bin/pylupdate${PYVERSSUFFIX})
(cd ${WRKSRC}/pyuic3 && ${INSTALL_PROGRAM} pyuic \
${PREFIX}/bin/pyuic${PYVERSSUFFIX})
.include "../../lang/python/extension.mk"
.include "../../x11/py-qt3-sip/buildlink2.mk"
.include "../../x11/qt3-libs/buildlink2.mk"
.include "../../x11/qt3-tools/buildlink2.mk"
.include "../../mk/bsd.pkg.mk"

9
x11/py-qt3-base/PLIST Normal file
View file

@ -0,0 +1,9 @@
@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
bin/pylupdate${PYVERSSUFFIX}
bin/pyuic${PYVERSSUFFIX}
${PYSITELIB}/libqtcmodule.a
${PYSITELIB}/libqtcmodule.la
${PYSITELIB}/libqtcmodule.so
${PYSITELIB}/libqtcmodule.so.1
${PYSITELIB}/libqtcmodule.so.1.0
${PYSITELIB}/qt.py

View file

@ -0,0 +1,27 @@
# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
.if !defined(PY_QT3_BASE_BUILDLINK2_MK)
PY_QT3_BASE_BUILDLINK2_MK= # defined
.include "../../lang/python/pyversion.mk"
BUILDLINK_PACKAGES+= pyqt3base
BUILDLINK_DEPENDS.pyqt3base?= ${PYPKGPREFIX}-qt3-base-[0-9]*
BUILDLINK_PKGSRCDIR.pyqt3base?= ../../x11/py-qt3-base
EVAL_PREFIX+= BUILDLINK_PREFIX.pyqt3base=pyqt3base
BUILDLINK_PREFIX.pyqt3base_DEFAULT= ${LOCALBASE}
# LDFLAGS for this are inherited from py-qt3-sip
BUILDLINK_FILES.pyqt3base+= ${PYSITELIB}/libqtcmodule.*
BUILDLINK_TARGETS+= pyqt3base-buildlink
pyqt3base-buildlink: _BUILDLINK_USE
.include "../../x11/py-qt3-sip/buildlink2.mk"
.include "../../x11/qt3-libs/buildlink2.mk"
BUILDLINK_DEPENDS.qt3-tools= qt3-tools>=3.1.2nb2
.include "../../x11/qt3-tools/buildlink2.mk"
.endif # PY_QT3_BASE_BUILDLINK2_MK

6
x11/py-qt3-base/distinfo Normal file
View file

@ -0,0 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
SHA1 (PyQt-x11-gpl-3.7.tar.gz) = 190d1f1b25a696fa2e4fa0327a24c63ef1495e46
Size (PyQt-x11-gpl-3.7.tar.gz) = 728162 bytes
SHA1 (patch-aa) = 29287952965dc9d5d75fcb450f615148d6dc06cf
SHA1 (patch-ab) = b54e094a1777ad9f93dadc2638ad2d11049f5fba

View file

@ -0,0 +1,47 @@
$NetBSD: patch-aa,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
--- build.py.orig 2003-07-05 12:52:49.000000000 +0200
+++ build.py 2003-07-22 11:44:51.000000000 +0200
@@ -162,12 +162,13 @@
global pyFullVers, pyVersNr
pyFullVers = string.split(sys.version)[0]
+ pyFullVersn = string.replace(pyFullVers, 'p', '.');
- vl = string.split(re.findall("[0-9.]*",pyFullVers)[0],".")
+ vl = string.split(re.findall("[0-9.]*",pyFullVersn)[0],".")
major = vl[0]
minor = vl[1]
- pyVers = major + "." + minor
+ pyVers = sys.version[0:3]
pyVersNr = int(major) * 10 + int(minor)
global platMake, platCopy, platMkdir, platRmdir
@@ -592,7 +593,7 @@
incdirs = incdirs + " " + escape(qtIncDir)
# Find the QScintilla header files.
- if qtVersion >= 0x030000:
+ if 0:
global sciIncDir
if not sciIncDir:
@@ -717,7 +718,7 @@
print "Type 'no' to decline the terms of the license."
print
- while 1:
+ while 0:
try:
resp = raw_input("Do you accept the terms of the license? ")
except:
@@ -959,7 +960,7 @@
tuneCompiler()
# Check which PyQt modules will build.
- if qtVersion >= 0x020000:
+ if 0:
inform("Checking which additional PyQt modules to build.");
tryModule("qtcanvas","qcanvas.h","QCanvas()")

View file

@ -0,0 +1,19 @@
$NetBSD: patch-ab,v 1.1.1.1 2003/07/22 17:22:48 drochner Exp $
--- sip/qtmod.sip.orig 2003-07-05 12:53:03.000000000 +0200
+++ sip/qtmod.sip 2003-07-22 11:39:50.000000000 +0200
@@ -246,12 +246,12 @@
TEMPLATE = lib
TARGET = @BL_TARGET@
-DESTDIR = @BL_DESTDIR@
+#DESTDIR = @BL_DESTDIR@
CONFIG += qt warn_off @BL_DEBUG@ @BL_SIP@ @BL_DLL@ @BL_THREAD@
INCLUDEPATH = @BL_INCLUDEPATH@
DEFINES = SIP_MAKE_MODULE_DLL @BL_DEFINES@
-sip3:unix:LIBS += @BL_QASSISTANTCLIENT@ -L@BL_SIPMODDIR@ -lsip
+sip3:unix:LIBS += @BL_QASSISTANTCLIENT@ -L@BL_SIPMODDIR@ -Wl,-R@BL_SIPMODDIR@ -lsip
sip3:win32:LIBS += @BL_QASSISTANTCLIENT@ @BL_SIPMODDIR@\libsip.lib @BL_PYLIB@
sip4:unix:LIBS += @BL_QASSISTANTCLIENT@