summaryrefslogtreecommitdiff
path: root/x11/py-qt3-qscintilla
diff options
context:
space:
mode:
authordrochner <drochner>2003-07-22 17:27:05 +0000
committerdrochner <drochner>2003-07-22 17:27:05 +0000
commit32af1b50070bd68d23d2a5eac453657def964355 (patch)
tree0631f6fbded991bcccfa8b9f63c631115c4780cd /x11/py-qt3-qscintilla
parent4e1e0953edee23e00948b429dc8052d90bd7a8cb (diff)
downloadpkgsrc-32af1b50070bd68d23d2a5eac453657def964355.tar.gz
Add PyQt-3.7 for Qt3, the qscintilla wrapper.
Diffstat (limited to 'x11/py-qt3-qscintilla')
-rw-r--r--x11/py-qt3-qscintilla/DESCR6
-rw-r--r--x11/py-qt3-qscintilla/Makefile44
-rw-r--r--x11/py-qt3-qscintilla/PLIST7
-rw-r--r--x11/py-qt3-qscintilla/buildlink2.mk14
-rw-r--r--x11/py-qt3-qscintilla/distinfo6
-rw-r--r--x11/py-qt3-qscintilla/patches/patch-aa125
-rw-r--r--x11/py-qt3-qscintilla/patches/patch-ab19
7 files changed, 221 insertions, 0 deletions
diff --git a/x11/py-qt3-qscintilla/DESCR b/x11/py-qt3-qscintilla/DESCR
new file mode 100644
index 00000000000..5749991f597
--- /dev/null
+++ b/x11/py-qt3-qscintilla/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-qscintilla/Makefile b/x11/py-qt3-qscintilla/Makefile
new file mode 100644
index 00000000000..bbe23cd79fe
--- /dev/null
+++ b/x11/py-qt3-qscintilla/Makefile
@@ -0,0 +1,44 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+#
+
+DISTNAME= PyQt-x11-gpl-3.7
+PKGNAME= ${PYPKGPREFIX}-qt3-qscintilla-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
+
+CONFIGURE_ARGS= -q ${QTDIR} -m ${GMAKE} -p ${SIPBIN}
+
+PYTHON_VERSIONS_ACCEPTED= 22pth 21pth
+PY_PATCHPLIST= yes
+
+MAKE_ENV+= QTPREFIX=${QTDIR}
+
+do-configure:
+ (cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
+ ${PYTHONBIN} build.py ${CONFIGURE_ARGS})
+
+PYQTMODULES= qtext
+
+do-install:
+ (for f in ${PYQTMODULES}; do \
+ (cd ${WRKSRC}/$${f} && ( \
+ ${INSTALL_DATA} $${f}.py ${PREFIX}/${PYSITELIB}; \
+ ${LIBTOOL} --mode=install ${INSTALL_DATA} \
+ lib$${f}cmodule.la ${PREFIX}/${PYSITELIB} \
+ ) \
+ ); \
+ done)
+
+.include "../../lang/python/extension.mk"
+.include "../../x11/py-qt3-base/buildlink2.mk"
+.include "../../x11/qt3-qscintilla/buildlink2.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/x11/py-qt3-qscintilla/PLIST b/x11/py-qt3-qscintilla/PLIST
new file mode 100644
index 00000000000..8e81a408b47
--- /dev/null
+++ b/x11/py-qt3-qscintilla/PLIST
@@ -0,0 +1,7 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+${PYSITELIB}/libqtextcmodule.a
+${PYSITELIB}/libqtextcmodule.la
+${PYSITELIB}/libqtextcmodule.so
+${PYSITELIB}/libqtextcmodule.so.1
+${PYSITELIB}/libqtextcmodule.so.1.0
+${PYSITELIB}/qtext.py
diff --git a/x11/py-qt3-qscintilla/buildlink2.mk b/x11/py-qt3-qscintilla/buildlink2.mk
new file mode 100644
index 00000000000..d7d973baec4
--- /dev/null
+++ b/x11/py-qt3-qscintilla/buildlink2.mk
@@ -0,0 +1,14 @@
+# $NetBSD: buildlink2.mk,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+
+.if !defined(PY_QT3_SCINTILLA_BUILDLINK2_MK)
+PY_QT3_SCINTILLA_BUILDLINK2_MK= # defined
+
+.include "../../lang/python/pyversion.mk"
+
+BUILDLINK_PACKAGES+= pyqt3scintilla
+BUILDLINK_DEPENDS.pyqt3scintilla?= ${PYPKGPREFIX}-qt3-qscintilla-[0-9]*
+BUILDLINK_PKGSRCDIR.pyqt3scintilla?= ../../x11/py-qt3-qscintilla
+
+.include "../../x11/py-qt3-base/buildlink2.mk"
+
+.endif # PY_QT3_SCINTILLA_BUILDLINK2_MK
diff --git a/x11/py-qt3-qscintilla/distinfo b/x11/py-qt3-qscintilla/distinfo
new file mode 100644
index 00000000000..f689004659b
--- /dev/null
+++ b/x11/py-qt3-qscintilla/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+
+SHA1 (PyQt-x11-gpl-3.7.tar.gz) = 190d1f1b25a696fa2e4fa0327a24c63ef1495e46
+Size (PyQt-x11-gpl-3.7.tar.gz) = 728162 bytes
+SHA1 (patch-aa) = 6dea71ea38e310e716fdbb635ab0331df500d304
+SHA1 (patch-ab) = d672949e9d993e18f3536c8a96f1527727e7e512
diff --git a/x11/py-qt3-qscintilla/patches/patch-aa b/x11/py-qt3-qscintilla/patches/patch-aa
new file mode 100644
index 00000000000..1731232bb2f
--- /dev/null
+++ b/x11/py-qt3-qscintilla/patches/patch-aa
@@ -0,0 +1,125 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+
+--- build.py.orig 2003-07-05 12:52:49.000000000 +0200
++++ build.py 2003-07-22 17:45:49.000000000 +0200
+@@ -50,7 +50,7 @@
+ pyVersNr = None
+ makefileGen = None
+ makeBin = None
+-buildModules = ["qt"]
++buildModules = []
+ proPatches = {}
+ makefilePatches = {}
+ tempBuildDir = None
+@@ -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
+@@ -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:
+@@ -962,26 +963,26 @@
+ if qtVersion >= 0x020000:
+ inform("Checking which additional PyQt modules to build.");
+
+- tryModule("qtcanvas","qcanvas.h","QCanvas()")
+- tryModule("qtnetwork","qsocket.h","QSocket()")
+- tryModule("qttable","qtable.h","QTable()")
+- tryModule("qtxml","qdom.h","QDomImplementation()")
++# tryModule("qtcanvas","qcanvas.h","QCanvas()")
++# tryModule("qtnetwork","qsocket.h","QSocket()")
++# tryModule("qttable","qtable.h","QTable()")
++# tryModule("qtxml","qdom.h","QDomImplementation()")
+
+- if qtVersion >= 0x030000:
++ if 0:
+ tryModule("qtsql","qsql.h","QSql()")
+
+ # We need a different Makefile for the qtgl module.
+- proPatches["TOPENGL"] = [re.compile("@TEST_OPENGL@",re.M), "opengl"]
+- buildMakefile("qttest.pro")
++# proPatches["TOPENGL"] = [re.compile("@TEST_OPENGL@",re.M), "opengl"]
++# buildMakefile("qttest.pro")
+
+- tryModule("qtgl","qgl.h","QGLWidget()")
++# tryModule("qtgl","qgl.h","QGLWidget()")
+
+ # Put things back.
+- proPatches["TOPENGL"] = [re.compile("@TEST_OPENGL@",re.M), ""]
+- buildMakefile("qttest.pro")
++# proPatches["TOPENGL"] = [re.compile("@TEST_OPENGL@",re.M), ""]
++# buildMakefile("qttest.pro")
+
+ # Check for the qui library.
+- if qtVersion >= 0x030000:
++ if 0:
+ if sys.platform == "win32":
+ quilib = "$(QTDIR)\\lib\\qui.lib"
+ else:
+@@ -993,8 +994,8 @@
+ tryModule("qtui","qwidgetfactory.h","QWidgetFactory()")
+
+ # Put things back.
+- proPatches["TQUILIB"] = [re.compile("@TEST_QUILIB@",re.M), ""]
+- buildMakefile("qttest.pro")
++# proPatches["TQUILIB"] = [re.compile("@TEST_QUILIB@",re.M), ""]
++# buildMakefile("qttest.pro")
+
+ # Check the location of the QScintilla library.
+ if sciVersion >= 0:
+@@ -1551,23 +1552,23 @@
+ subdirs = subdirs + " qtpe"
+
+ # See which version of pyuic to build.
+- proPatches["BINDIR"] = [re.compile("@BL_BINDIR@",re.M), escape(platBinDir)]
++# proPatches["BINDIR"] = [re.compile("@BL_BINDIR@",re.M), escape(platBinDir)]
+
+- if qtVersion >= 0x030000:
+- inform("Creating Makefile for pyuic3.")
+- subdirs = subdirs + " pyuic3"
+- olddir = pushDir("pyuic3")
+- elif qtVersion >= 0x020000:
+- inform("Creating Makefile for pyuic2.")
+- subdirs = subdirs + " pyuic2"
+- olddir = pushDir("pyuic2")
+-
+- buildMakefile("pyuic.pro")
+- fixInstallTarget()
+- popDir(olddir)
++# if qtVersion >= 0x030000:
++# inform("Creating Makefile for pyuic3.")
++# subdirs = subdirs + " pyuic3"
++# olddir = pushDir("pyuic3")
++# elif qtVersion >= 0x020000:
++# inform("Creating Makefile for pyuic2.")
++# subdirs = subdirs + " pyuic2"
++# olddir = pushDir("pyuic2")
++
++# buildMakefile("pyuic.pro")
++# fixInstallTarget()
++# popDir(olddir)
+
+ # Build pylupdate if Qt v3.0 or later.
+- if qtVersion >= 0x030000:
++ if 0:
+ inform("Creating Makefile for pylupdate3.")
+ subdirs = subdirs + " pylupdate3"
+ olddir = pushDir("pylupdate3")
diff --git a/x11/py-qt3-qscintilla/patches/patch-ab b/x11/py-qt3-qscintilla/patches/patch-ab
new file mode 100644
index 00000000000..88b3325d75f
--- /dev/null
+++ b/x11/py-qt3-qscintilla/patches/patch-ab
@@ -0,0 +1,19 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/07/22 17:27:05 drochner Exp $
+
+--- sip/qtextmod.sip.orig 2003-07-22 17:36:33.000000000 +0200
++++ sip/qtextmod.sip 2003-07-22 17:37:40.000000000 +0200
+@@ -81,12 +81,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 QEXTSCINTILLA_DLL @BL_DEFINES@
+
+-sip3:unix:LIBS += -L@BL_DESTDIR@ -lqtcmodule -L@BL_SIPMODDIR@ -lsip -L@BL_SCILIBDIR@ -lqscintilla
++sip3:unix:LIBS += -L@BL_DESTDIR@ -lqtcmodule -L@BL_SIPMODDIR@ -Wl,-R@BL_SIPMODDIR@ -lsip -L@BL_SCILIBDIR@ -lqscintilla
+ sip3:win32:LIBS += @BL_DESTDIR@\libqtc.lib @BL_SIPMODDIR@\libsip.lib @BL_PYLIB@ @BL_SCILIBDIR@\qscintilla.lib
+
+ sip4:unix:LIBS += -L@BL_SCILIBDIR@ -lqscintilla