From 7877f6d2e2f47d9a7b8f095c59cf61c0765a0b82 Mon Sep 17 00:00:00 2001 From: ajacoutot Date: Tue, 15 Jan 2008 13:26:00 +0000 Subject: [PATCH] Import py-qt3-3.17.4 Python bindings for Qt3. based on an original submission by Lars Hansson with some modifications by simon@ ok simon@ --- x11/py-qt3/Makefile | 64 +++++++ x11/py-qt3/distinfo | 5 + x11/py-qt3/patches/patch-configure_py | 30 +++ x11/py-qt3/pkg/DESCR | 1 + x11/py-qt3/pkg/PLIST | 253 ++++++++++++++++++++++++++ 5 files changed, 353 insertions(+) create mode 100644 x11/py-qt3/Makefile create mode 100644 x11/py-qt3/distinfo create mode 100644 x11/py-qt3/patches/patch-configure_py create mode 100644 x11/py-qt3/pkg/DESCR create mode 100644 x11/py-qt3/pkg/PLIST diff --git a/x11/py-qt3/Makefile b/x11/py-qt3/Makefile new file mode 100644 index 00000000000..effd9d46ecc --- /dev/null +++ b/x11/py-qt3/Makefile @@ -0,0 +1,64 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2008/01/15 13:26:00 ajacoutot Exp $ + +SHARED_ONLY= Yes + +COMMENT= python Qt3 bindings + +V= 3.17.4 +DISTNAME= PyQt-x11-gpl-${V} +PKGNAME= py-qt3-${V} + +CATEGORIES= x11 devel + +HOMEPAGE= http://www.riverbankcomputing.co.uk/pyqt/index.php + +MAINTAINER= Lars Hansson + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +WANTLIB= GL GLU X11 Xext Xmu c m pthread stdc++ + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= ::devel/py-sip +LIB_DEPENDS= qui.>=2::x11/qt3 + +NO_REGRESS= Yes + +MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/ + +MODULES= x11/qt3 \ + lang/python + +#MODQT_OVERRIDE_UIC=No + +USE_X11= Yes + +CONFIGURE_STYLE=simple +CONFIGURE_SCRIPT=${MODPY_BIN} configure.py +CONFIGURE_ARGS= -w \ + -b ${PREFIX}/bin \ + -d ${MODPY_SITEPKG} \ + -g ${MODQT_INCDIR} \ + -l ${MODPY_INCDIR} \ + -m ${MODQT_LIBDIR} \ + -q ${MODQT3_LIBDIR} \ + -v ${PREFIX}/share/sip \ + -y qt-mt \ + INCDIR_QT=${MODQT_INCDIR} \ + LIBDIR=${LOCALBASE}/lib \ + LIBDIR_QT=${MODQT_LIBDIR} \ + CC=${CC} \ + CXX=${CXX} \ + CFLAGS="${CFLAGS}" \ + CXXFLAGS="${CXXFLAGS}" + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-qt3 + cp -R ${WRKSRC}/doc/* ${PREFIX}/share/doc/py-qt3 + chown -R ${SHAREOWN}:${SHAREGRP} ${PREFIX}/share/doc/py-qt3/* + +.include diff --git a/x11/py-qt3/distinfo b/x11/py-qt3/distinfo new file mode 100644 index 00000000000..626f1fadd37 --- /dev/null +++ b/x11/py-qt3/distinfo @@ -0,0 +1,5 @@ +MD5 (PyQt-x11-gpl-3.17.4.tar.gz) = Df/kvIehEC1h7pcruGjGWg== +RMD160 (PyQt-x11-gpl-3.17.4.tar.gz) = d7HKlkZa5zdUX73R9jvQa7CJp0s= +SHA1 (PyQt-x11-gpl-3.17.4.tar.gz) = yqATBgbyhZSgm0Amddw7wjmgplg= +SHA256 (PyQt-x11-gpl-3.17.4.tar.gz) = GTFAAGLUMq8immhi5fvWVU57FrcKXqh0eNAmzol55lw= +SIZE (PyQt-x11-gpl-3.17.4.tar.gz) = 803925 diff --git a/x11/py-qt3/patches/patch-configure_py b/x11/py-qt3/patches/patch-configure_py new file mode 100644 index 00000000000..6a7e5ab303d --- /dev/null +++ b/x11/py-qt3/patches/patch-configure_py @@ -0,0 +1,30 @@ +$OpenBSD: patch-configure_py,v 1.1.1.1 2008/01/15 13:26:00 ajacoutot Exp $ +--- configure.py.orig Thu Dec 6 15:28:06 2007 ++++ configure.py Tue Jan 15 09:38:26 2008 +@@ -1004,7 +1004,7 @@ def check_license(): + + while 1: + try: +- resp = raw_input("Do you accept the terms of the license? ") ++ resp = "yes" + except: + resp = "" + +@@ -1084,15 +1084,11 @@ def check_qt_installation(macros): + macros["LIBDIR_QT"] = qt_libdir + + # Check the Qt header files have been installed. Quietly check for Qt v4. +- qt4_d = os.path.join(qt_incdir, "QtCore") + +- qglobal = os.path.join(qt4_d, "qglobal.h") ++ qglobal = os.path.join(qt_incdir, "qglobal.h") + + if not os.access(qglobal, os.F_OK): +- qglobal = os.path.join(qt_incdir, "qglobal.h") +- +- if not os.access(qglobal, os.F_OK): +- sipconfig.error("qglobal.h could not be found in %s." % qt_incdir) ++ sipconfig.error("qglobal.h could not be found in %s." % qt_incdir) + + # Get the Qt version number. + global qt_version diff --git a/x11/py-qt3/pkg/DESCR b/x11/py-qt3/pkg/DESCR new file mode 100644 index 00000000000..ab0611ad52b --- /dev/null +++ b/x11/py-qt3/pkg/DESCR @@ -0,0 +1 @@ +Python bindings for Qt3. diff --git a/x11/py-qt3/pkg/PLIST b/x11/py-qt3/pkg/PLIST new file mode 100644 index 00000000000..9fef2957d1f --- /dev/null +++ b/x11/py-qt3/pkg/PLIST @@ -0,0 +1,253 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2008/01/15 13:26:00 ajacoutot Exp $ +bin/pylupdate +bin/pyuic +lib/python${MODPY_VERSION}/site-packages/pyqtconfig.py +lib/python${MODPY_VERSION}/site-packages/qt.so +lib/python${MODPY_VERSION}/site-packages/qtcanvas.so +lib/python${MODPY_VERSION}/site-packages/qtgl.so +lib/python${MODPY_VERSION}/site-packages/qtnetwork.so +lib/python${MODPY_VERSION}/site-packages/qtsql.so +lib/python${MODPY_VERSION}/site-packages/qttable.so +lib/python${MODPY_VERSION}/site-packages/qtui.so +lib/python${MODPY_VERSION}/site-packages/qtxml.so +share/doc/py-qt3/ +share/doc/py-qt3/PyQt.html +share/doc/py-qt3/PyQt.sgml +share/doc/py-qt3/qtdocs.sip +share/sip/ +share/sip/qt/ +share/sip/qt/copying.sip +share/sip/qt/qaccel.sip +share/sip/qt/qaction.sip +share/sip/qt/qapplication.sip +share/sip/qt/qarray.sip +share/sip/qt/qassistantclient.sip +share/sip/qt/qbitmap.sip +share/sip/qt/qbrush.sip +share/sip/qt/qbutton.sip +share/sip/qt/qbuttongroup.sip +share/sip/qt/qbytearray.sip +share/sip/qt/qcdestyle.sip +share/sip/qt/qcheckbox.sip +share/sip/qt/qclipboard.sip +share/sip/qt/qcolor.sip +share/sip/qt/qcolordialog.sip +share/sip/qt/qcolorgroup.sip +share/sip/qt/qcombobox.sip +share/sip/qt/qcommonstyle.sip +share/sip/qt/qcstring.sip +share/sip/qt/qcursor.sip +share/sip/qt/qdatastream.sip +share/sip/qt/qdatetime.sip +share/sip/qt/qdatetimeedit.sip +share/sip/qt/qdesktopwidget.sip +share/sip/qt/qdial.sip +share/sip/qt/qdialog.sip +share/sip/qt/qdir.sip +share/sip/qt/qdockarea.sip +share/sip/qt/qdockwindow.sip +share/sip/qt/qdragobject.sip +share/sip/qt/qdrawutil.sip +share/sip/qt/qdropsite.sip +share/sip/qt/qerrormessage.sip +share/sip/qt/qevent.sip +share/sip/qt/qeventloop.sip +share/sip/qt/qfile.sip +share/sip/qt/qfiledialog.sip +share/sip/qt/qfileinfo.sip +share/sip/qt/qfont.sip +share/sip/qt/qfontdatabase.sip +share/sip/qt/qfontdialog.sip +share/sip/qt/qfontinfo.sip +share/sip/qt/qfontmetrics.sip +share/sip/qt/qframe.sip +share/sip/qt/qglobal.sip +share/sip/qt/qgmanager.sip +share/sip/qt/qgrid.sip +share/sip/qt/qgridview.sip +share/sip/qt/qgroupbox.sip +share/sip/qt/qhbox.sip +share/sip/qt/qhbuttongroup.sip +share/sip/qt/qheader.sip +share/sip/qt/qhgroupbox.sip +share/sip/qt/qiconset.sip +share/sip/qt/qiconview.sip +share/sip/qt/qimage.sip +share/sip/qt/qinputdialog.sip +share/sip/qt/qinterlacestyle.sip +share/sip/qt/qiodevice.sip +share/sip/qt/qkeycode.sip +share/sip/qt/qkeysequence.sip +share/sip/qt/qlabel.sip +share/sip/qt/qlayout.sip +share/sip/qt/qlcdnumber.sip +share/sip/qt/qlibrary.sip +share/sip/qt/qlineedit.sip +share/sip/qt/qlist.sip +share/sip/qt/qlistbox.sip +share/sip/qt/qlistview.sip +share/sip/qt/qlocale.sip +share/sip/qt/qmainwindow.sip +share/sip/qt/qmemarray.sip +share/sip/qt/qmenubar.sip +share/sip/qt/qmenudata.sip +share/sip/qt/qmessagebox.sip +share/sip/qt/qmetaobject.sip +share/sip/qt/qmime.sip +share/sip/qt/qmotifplusstyle.sip +share/sip/qt/qmotifstyle.sip +share/sip/qt/qmovie.sip +share/sip/qt/qmultilinedit.sip +share/sip/qt/qmutex.sip +share/sip/qt/qnamespace.sip +share/sip/qt/qnetworkprotocol.sip +share/sip/qt/qobject.sip +share/sip/qt/qobjectcleanuphandler.sip +share/sip/qt/qobjectlist.sip +share/sip/qt/qpaintdevice.sip +share/sip/qt/qpaintdevicemetrics.sip +share/sip/qt/qpainter.sip +share/sip/qt/qpair.sip +share/sip/qt/qpalette.sip +share/sip/qt/qpen.sip +share/sip/qt/qpicture.sip +share/sip/qt/qpixmap.sip +share/sip/qt/qpixmapcache.sip +share/sip/qt/qplatinumstyle.sip +share/sip/qt/qpoint.sip +share/sip/qt/qpointarray.sip +share/sip/qt/qpopupmenu.sip +share/sip/qt/qprintdialog.sip +share/sip/qt/qprinter.sip +share/sip/qt/qprocess.sip +share/sip/qt/qprogressbar.sip +share/sip/qt/qprogressdialog.sip +share/sip/qt/qptrlist.sip +share/sip/qt/qpushbutton.sip +share/sip/qt/qradiobutton.sip +share/sip/qt/qrangecontrol.sip +share/sip/qt/qrect.sip +share/sip/qt/qregexp.sip +share/sip/qt/qregion.sip +share/sip/qt/qscrollbar.sip +share/sip/qt/qscrollview.sip +share/sip/qt/qsemaphore.sip +share/sip/qt/qsemimodal.sip +share/sip/qt/qsessionmanager.sip +share/sip/qt/qsettings.sip +share/sip/qt/qsgistyle.sip +share/sip/qt/qsignalmapper.sip +share/sip/qt/qsimplerichtext.sip +share/sip/qt/qsize.sip +share/sip/qt/qsizegrip.sip +share/sip/qt/qsizepolicy.sip +share/sip/qt/qslider.sip +share/sip/qt/qsocketnotifier.sip +share/sip/qt/qsound.sip +share/sip/qt/qspinbox.sip +share/sip/qt/qsplashscreen.sip +share/sip/qt/qsplitter.sip +share/sip/qt/qstatusbar.sip +share/sip/qt/qstring.sip +share/sip/qt/qstringlist.sip +share/sip/qt/qstrlist.sip +share/sip/qt/qstyle.sip +share/sip/qt/qstylefactory.sip +share/sip/qt/qstylesheet.sip +share/sip/qt/qsyntaxhighlighter.sip +share/sip/qt/qtabbar.sip +share/sip/qt/qtabdialog.sip +share/sip/qt/qtableview.sip +share/sip/qt/qtabwidget.sip +share/sip/qt/qtextbrowser.sip +share/sip/qt/qtextcodec.sip +share/sip/qt/qtextedit.sip +share/sip/qt/qtextstream.sip +share/sip/qt/qtextview.sip +share/sip/qt/qthread.sip +share/sip/qt/qtimer.sip +share/sip/qt/qtmod.sip +share/sip/qt/qtoolbar.sip +share/sip/qt/qtoolbox.sip +share/sip/qt/qtoolbutton.sip +share/sip/qt/qtooltip.sip +share/sip/qt/qtranslator.sip +share/sip/qt/qurl.sip +share/sip/qt/qurlinfo.sip +share/sip/qt/qurloperator.sip +share/sip/qt/quuid.sip +share/sip/qt/qvalidator.sip +share/sip/qt/qvaluelist.sip +share/sip/qt/qvariant.sip +share/sip/qt/qvbox.sip +share/sip/qt/qvbuttongroup.sip +share/sip/qt/qvgroupbox.sip +share/sip/qt/qwaitcondition.sip +share/sip/qt/qwhatsthis.sip +share/sip/qt/qwidget.sip +share/sip/qt/qwidgetlist.sip +share/sip/qt/qwidgetstack.sip +share/sip/qt/qwindow.sip +share/sip/qt/qwindowdefs.sip +share/sip/qt/qwindowdefs_qws.sip +share/sip/qt/qwindowdefs_x11.sip +share/sip/qt/qwindowsstyle.sip +share/sip/qt/qwindowsxpstyle.sip +share/sip/qt/qwizard.sip +share/sip/qt/qwmatrix.sip +share/sip/qt/qworkspace.sip +share/sip/qt/versions.sip +share/sip/qtcanvas/ +share/sip/qtcanvas/copying.sip +share/sip/qtcanvas/qcanvas.sip +share/sip/qtcanvas/qtcanvasmod.sip +share/sip/qtgl/ +share/sip/qtgl/copying.sip +share/sip/qtgl/qgl.sip +share/sip/qtgl/qglcolormap.sip +share/sip/qtgl/qtglmod.sip +share/sip/qtnetwork/ +share/sip/qtnetwork/copying.sip +share/sip/qtnetwork/qdns.sip +share/sip/qtnetwork/qftp.sip +share/sip/qtnetwork/qhostaddress.sip +share/sip/qtnetwork/qhttp.sip +share/sip/qtnetwork/qlocalfs.sip +share/sip/qtnetwork/qnetwork.sip +share/sip/qtnetwork/qserversocket.sip +share/sip/qtnetwork/qsocket.sip +share/sip/qtnetwork/qsocketdevice.sip +share/sip/qtnetwork/qtnetworkmod.sip +share/sip/qtsql/ +share/sip/qtsql/copying.sip +share/sip/qtsql/qdatabrowser.sip +share/sip/qtsql/qdatatable.sip +share/sip/qtsql/qdataview.sip +share/sip/qtsql/qeditorfactory.sip +share/sip/qtsql/qsql.sip +share/sip/qtsql/qsqlcursor.sip +share/sip/qtsql/qsqldatabase.sip +share/sip/qtsql/qsqldriver.sip +share/sip/qtsql/qsqleditorfactory.sip +share/sip/qtsql/qsqlerror.sip +share/sip/qtsql/qsqlfield.sip +share/sip/qtsql/qsqlform.sip +share/sip/qtsql/qsqlindex.sip +share/sip/qtsql/qsqlpropertymap.sip +share/sip/qtsql/qsqlquery.sip +share/sip/qtsql/qsqlrecord.sip +share/sip/qtsql/qsqlresult.sip +share/sip/qtsql/qsqlselectcursor.sip +share/sip/qtsql/qtsqlmod.sip +share/sip/qttable/ +share/sip/qttable/copying.sip +share/sip/qttable/qtable.sip +share/sip/qttable/qttablemod.sip +share/sip/qtui/ +share/sip/qtui/copying.sip +share/sip/qtui/qtuimod.sip +share/sip/qtui/qwidgetfactory.sip +share/sip/qtxml/ +share/sip/qtxml/copying.sip +share/sip/qtxml/qdom.sip +share/sip/qtxml/qtxmlmod.sip