summaryrefslogtreecommitdiff
path: root/x11/py-qt3-base
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2003-07-22 17:22:48 +0000
committerdrochner <drochner@pkgsrc.org>2003-07-22 17:22:48 +0000
commit5e83fcad58ae2948fc221a9815ac6b6ac647b417 (patch)
tree5f947e698e298f79a9276b5c90ceaa7936860f1a /x11/py-qt3-base
parente85ff06350484fa15a8bb1e1daa3a8ea0c1111d8 (diff)
downloadpkgsrc-5e83fcad58ae2948fc221a9815ac6b6ac647b417.tar.gz
Add PyQt-3.7 for Qt3, the base module and tools.
Diffstat (limited to 'x11/py-qt3-base')
-rw-r--r--x11/py-qt3-base/DESCR6
-rw-r--r--x11/py-qt3-base/Makefile44
-rw-r--r--x11/py-qt3-base/PLIST9
-rw-r--r--x11/py-qt3-base/buildlink2.mk27
-rw-r--r--x11/py-qt3-base/distinfo6
-rw-r--r--x11/py-qt3-base/patches/patch-aa47
-rw-r--r--x11/py-qt3-base/patches/patch-ab19
7 files changed, 158 insertions, 0 deletions
diff --git a/x11/py-qt3-base/DESCR b/x11/py-qt3-base/DESCR
new file mode 100644
index 00000000000..5749991f597
--- /dev/null
+++ b/x11/py-qt3-base/DESCR
@@ -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/.
diff --git a/x11/py-qt3-base/Makefile b/x11/py-qt3-base/Makefile
new file mode 100644
index 00000000000..27758a0aae4
--- /dev/null
+++ b/x11/py-qt3-base/Makefile
@@ -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"
diff --git a/x11/py-qt3-base/PLIST b/x11/py-qt3-base/PLIST
new file mode 100644
index 00000000000..e48953af8ae
--- /dev/null
+++ b/x11/py-qt3-base/PLIST
@@ -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
diff --git a/x11/py-qt3-base/buildlink2.mk b/x11/py-qt3-base/buildlink2.mk
new file mode 100644
index 00000000000..19fb636892f
--- /dev/null
+++ b/x11/py-qt3-base/buildlink2.mk
@@ -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
diff --git a/x11/py-qt3-base/distinfo b/x11/py-qt3-base/distinfo
new file mode 100644
index 00000000000..54331b63b8a
--- /dev/null
+++ b/x11/py-qt3-base/distinfo
@@ -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
diff --git a/x11/py-qt3-base/patches/patch-aa b/x11/py-qt3-base/patches/patch-aa
new file mode 100644
index 00000000000..90938b081bd
--- /dev/null
+++ b/x11/py-qt3-base/patches/patch-aa
@@ -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()")
diff --git a/x11/py-qt3-base/patches/patch-ab b/x11/py-qt3-base/patches/patch-ab
new file mode 100644
index 00000000000..21bdc587d40
--- /dev/null
+++ b/x11/py-qt3-base/patches/patch-ab
@@ -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@