diff options
author | miwi <miwi@FreeBSD.org> | 2007-03-27 17:46:54 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2007-03-27 17:46:54 +0800 |
commit | 17cbe2a939a9a6408bfe6faed44e636acc3ebe16 (patch) | |
tree | df0f6f32de16972c5ebf7271fdab54c892f14293 /devel | |
parent | f0ea2a57945b2f402a0c77237b4a9a34442edba3 (diff) | |
download | freebsd-ports-gnome-17cbe2a939a9a6408bfe6faed44e636acc3ebe16.tar.gz freebsd-ports-gnome-17cbe2a939a9a6408bfe6faed44e636acc3ebe16.tar.zst freebsd-ports-gnome-17cbe2a939a9a6408bfe6faed44e636acc3ebe16.zip |
PyQt4 is a set of Python bindings for Trolltech's Qt4 application framework.
This package provides the QtCore module.
WWW: http://www.riverbankcomputing.co.uk/pyqt/
PR: ports/109619
Submitted by: Danny Pansters <danny at ricin.com>
Diffstat (limited to 'devel')
-rw-r--r-- | devel/Makefile | 1 | ||||
-rw-r--r-- | devel/py-qt4-core/Makefile | 82 | ||||
-rw-r--r-- | devel/py-qt4-core/distinfo | 3 | ||||
-rw-r--r-- | devel/py-qt4-core/files/patch-configure.py | 108 | ||||
-rw-r--r-- | devel/py-qt4-core/pkg-descr | 4 | ||||
-rw-r--r-- | devel/py-qt4-core/pkg-plist | 143 |
6 files changed, 341 insertions, 0 deletions
diff --git a/devel/Makefile b/devel/Makefile index bafe302f4ed0..82bf1b072c1d 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -1837,6 +1837,7 @@ SUBDIR += py-pycallgraph SUBDIR += py-pydasm SUBDIR += py-pytz + SUBDIR += py-qt4-core SUBDIR += py-rbtree SUBDIR += py-repl SUBDIR += py-resourcepackage diff --git a/devel/py-qt4-core/Makefile b/devel/py-qt4-core/Makefile new file mode 100644 index 000000000000..fad292630c25 --- /dev/null +++ b/devel/py-qt4-core/Makefile @@ -0,0 +1,82 @@ +# New ports collection makefile for: py-qt4-core +# Date created: 2007-02-19 +# Whom: Danny Pansters <danny@ricin.com> +# +# $FreeBSD$ + +PORTNAME= core +PORTVERSION= 20070318 +CATEGORIES= devel python +MASTER_SITES= http://www.riverbankcomputing.com/Downloads/Snapshots/PyQt4/ \ + http://freebsd.ricin.com/ports/distfiles/ +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4- +DISTNAME= PyQt-x11-gpl-4-snapshot-${PORTVERSION} + +MAINTAINER= danny@ricin.com +COMMENT= Python bindings for the Qt4 toolkit, QtCore module + +BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip +RUN_DEPENDS= ${BUILD_DEPENDS} + +HAS_CONFIGURE= yes +USE_PYTHON= 2.3+ +USE_QT_VER= 4 +QT_COMPONENTS= corelib qmake + +OPTIONS= API "Install QtCore API for QScintilla2" on \ + DEBUG "Enable debugging in generated code" off \ + SIPFILES "Install the QtCore SIP files" on \ + TRACING "Enable tracing in generated code" off + +OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options +APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtCore.api +SIPDIR= ${PREFIX}/share/py-sip +ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \ + -q ${QT_PREFIX}/bin/qmake-qt4 -a + +.include <bsd.port.pre.mk> + +.if defined(WITH_DEBUG) +ARGS+= -u +.endif +.if defined(WITHOUT_API) +PLIST_SUB+= API="@comment " +PLIST_SUB+= APIFILE="@comment " +.else +LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2 +PLIST_SUB+= API="" +PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtCore.api" +.endif +.if defined(WITHOUT_SIPFILES) +ARGS+= -v /dev/null +PLIST_SUB+= SIPFILES="@comment " +PLIST_SUB+= SIPDIR="@comment " +.else +ARGS+= -v ${SIPDIR} +PLIST_SUB+= SIPFILES="" +PLIST_SUB+= SIPDIR="share/py-sip" +.endif +.if defined(WITH_TRACING) +ARGS+= -r +.endif +.if ${PYTHON_VER} >= 2.5 +PLIST_SUB+= ELTREE="@comment " +.else +PLIST_SUB+= ELTREE="" +.endif + +do-configure: + ( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \ + ${PYTHON_CMD} configure.py ${ARGS} ) + +post-install: + ( cd ${PYTHONPREFIX_SITELIBDIR}/PyQt4 && \ + ${PYTHON_CMD} ${PYTHON_LIBDIR}/py_compile.py \ + `ls *.py */*.py */*/*.py` && \ + ${PYTHON_CMD} -O ${PYTHON_LIBDIR}/py_compile.py \ + `ls *.py */*.py */*/*.py`) +.if defined(WITHOUT_API) + ( ${RM} ${APIFILE} ) +.endif + +.include <bsd.port.post.mk> diff --git a/devel/py-qt4-core/distinfo b/devel/py-qt4-core/distinfo new file mode 100644 index 000000000000..b42fc45ded6f --- /dev/null +++ b/devel/py-qt4-core/distinfo @@ -0,0 +1,3 @@ +MD5 (PyQt-x11-gpl-4-snapshot-20070318.tar.gz) = 538cd5167ccb14a6b6a3ee687432617a +SHA256 (PyQt-x11-gpl-4-snapshot-20070318.tar.gz) = d98516e20b02194264c199deddda2562845efca64315608522cc05a36c9210c7 +SIZE (PyQt-x11-gpl-4-snapshot-20070318.tar.gz) = 1076275 diff --git a/devel/py-qt4-core/files/patch-configure.py b/devel/py-qt4-core/files/patch-configure.py new file mode 100644 index 000000000000..aa0e588eed68 --- /dev/null +++ b/devel/py-qt4-core/files/patch-configure.py @@ -0,0 +1,108 @@ +--- configure.py.orig Mon Feb 19 04:39:13 2007 ++++ configure.py Tue Feb 20 15:38:35 2007 +@@ -135,19 +135,19 @@ + def check_modules(self): + pyqt_modules.append("QtCore") + +- check_module("QtGui", "qwidget.h", "new QWidget()") +- check_module("QtNetwork", "qhostaddress.h", "new QHostAddress()") +- check_module("QtOpenGL", "qgl.h", "new QGLWidget()") +- check_module("QtSql", "qsqldatabase.h", "new QSqlDatabase()") +- check_module("QtSvg", "qsvgwidget.h", "new QSvgWidget()") +- check_module("QtTest", "QtTest", "QTest::qSleep(0)") +- check_module("QtXml", "qdom.h", "new QDomDocument()") +- check_module("QtAssistant", "qassistantclient.h", "new QAssistantClient(\"foo\")") +- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()") +- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer") ++ #check_module("QtGui", "qwidget.h", "new QWidget()") ++ #check_module("QtNetwork", "qhostaddress.h", "new QHostAddress()") ++ #check_module("QtOpenGL", "qgl.h", "new QGLWidget()") ++ #check_module("QtSql", "qsqldatabase.h", "new QSqlDatabase()") ++ #check_module("QtSvg", "qsvgwidget.h", "new QSvgWidget()") ++ #check_module("QtTest", "QtTest", "QTest::qSleep(0)") ++ #check_module("QtXml", "qdom.h", "new QDomDocument()") ++ #check_module("QtAssistant", "qassistantclient.h", "new QAssistantClient(\"foo\")") ++ #check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()") ++ #check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer") + +- if os.path.isdir("dbus"): +- check_dbus() ++ #if os.path.isdir("dbus"): ++ # check_dbus() + + def code(self): + # Note that the order of the dependent modules is important. +@@ -201,31 +201,31 @@ + generate_code("QAxContainer", ["QAxContainer", "QtGui", "QtCore"]) + + # Generate the consolidated module. +- sipconfig.inform("Creating Qt consolidated module...") +- f = open("Qt.py", "w") ++ #sipconfig.inform("Creating Qt consolidated module...") ++ #f = open("Qt.py", "w") + +- for m in pyqt_modules: +- f.write("from PyQt4.%s import *\n" % m) ++ #for m in pyqt_modules: ++ # f.write("from PyQt4.%s import *\n" % m) + +- f.close() ++ #f.close() + + # Generate the QScintilla API file. +- sipconfig.inform("Creating QScintilla API file...") +- f = open("PyQt4.api", "w") ++ #sipconfig.inform("Creating QScintilla API file...") ++ #f = open("PyQt4.api", "w") + +- for m in pyqt_modules: +- api = open(m + ".api") ++ #for m in pyqt_modules: ++ # api = open(m + ".api") + +- for l in api: +- f.write("PyQt4." + l) ++ # for l in api: ++ # f.write("PyQt4." + l) + +- api.close() +- os.remove(m + ".api") ++ # api.close() ++ # os.remove(m + ".api") + +- f.close() ++ #f.close() + + def module_installs(self): +- return ["__init__.py", "Qt.py", "pyqtconfig.py"] ++ return ["__init__.py", "pyqtconfig.py"] + + def qpylibs(self): + # See which QPy libraries to build. +@@ -825,7 +825,7 @@ + sipconfig.error("This version of PyQt and the %s edition of Qt have incompatible licenses." % qted) + + # Confirm the license. +- print ++ """print + print "Type 'L' to view the license." + print "Type 'yes' to accept the terms of the license." + print "Type 'no' to decline the terms of the license." +@@ -847,7 +847,7 @@ + + if resp == "l": + os.system("more LICENSE") +- ++ """ + # If there should be a license file then check it is where it should be. + if lfile: + if os.access(os.path.join("sip", lfile), os.F_OK): +@@ -1367,7 +1367,7 @@ + scidir = os.path.join(qt_datadir, "qsci") + + if opt_api or os.path.isdir(scidir): +- installs.append(("PyQt4.api", os.path.join(scidir, "api", "python"))) ++ installs.append(("QtCore.api", os.path.join(scidir, "api", "python"))) + + sipconfig.ParentMakefile( + configuration=sipcfg, diff --git a/devel/py-qt4-core/pkg-descr b/devel/py-qt4-core/pkg-descr new file mode 100644 index 000000000000..3cdaf892efaf --- /dev/null +++ b/devel/py-qt4-core/pkg-descr @@ -0,0 +1,4 @@ +PyQt4 is a set of Python bindings for Trolltech's Qt4 application framework. +This package provides the QtCore module. + +WWW: http://www.riverbankcomputing.co.uk/pyqt/ diff --git a/devel/py-qt4-core/pkg-plist b/devel/py-qt4-core/pkg-plist new file mode 100644 index 000000000000..f2d84d3fb389 --- /dev/null +++ b/devel/py-qt4-core/pkg-plist @@ -0,0 +1,143 @@ +bin/pyuic4 +%%PYTHON_SITELIBDIR%%/PyQt4/QtCore.so +%%PYTHON_SITELIBDIR%%/PyQt4/__init__.py +%%PYTHON_SITELIBDIR%%/PyQt4/__init__.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/__init__.pyo +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementPath.py +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementPath.pyc +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementPath.pyo +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementTree.py +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementTree.pyc +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/ElementTree.pyo +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/__init__.py +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/__init__.pyc +%%ELTREE%%%%PYTHON_SITELIBDIR%%/PyQt4/elementtree/__init__.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/pyqtconfig.py +%%PYTHON_SITELIBDIR%%/PyQt4/pyqtconfig.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/pyqtconfig.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/__init__.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/__init__.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/__init__.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/compiler.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/compiler.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/compiler.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/indenter.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/indenter.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/indenter.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qobjectcreator.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qobjectcreator.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qobjectcreator.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qtproxies.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qtproxies.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler/qtproxies.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/__init__.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/__init__.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/__init__.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/loader.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/loader.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/loader.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/qobjectcreator.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/qobjectcreator.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader/qobjectcreator.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/__init__.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/__init__.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/__init__.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/exceptions.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/exceptions.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/exceptions.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/objcreator.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/properties.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/pyuic.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/pyuic.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/pyuic.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/uiparser.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/uiparser.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/uiparser.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qaxcontainer.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qaxcontainer.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qaxcontainer.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qscintilla.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qscintilla.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qscintilla.pyo +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qwt.py +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qwt.pyc +%%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins/qwt.pyo +%%SIPFILES%%%%SIPDIR%%/QtCore/QtCoremod.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qabstracteventdispatcher.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qabstractfileengine.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qabstractitemmodel.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qbasictimer.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qbitarray.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qbuffer.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qbytearray.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qbytearraymatcher.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qchar.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qcoreapplication.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qcoreevent.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qdatastream.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qdatetime.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qdir.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qeventloop.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qfile.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qfileinfo.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qfilesystemwatcher.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qfsfileengine.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qglobal.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qiodevice.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qlibrary.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qlibraryinfo.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qline.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qlist.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qlocale.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qmap.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qmetaobject.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qmimedata.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qmutex.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qnamespace.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qobject.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qobjectcleanuphandler.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qobjectdefs.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qpair.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qpluginloader.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qpoint.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qprocess.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qreadwritelock.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qrect.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qregexp.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qresource.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qsemaphore.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qsettings.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qsignalmapper.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qsize.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qsocketnotifier.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qstring.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qstringlist.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qstringmatcher.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtemporaryfile.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtextcodec.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtextstream.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qthread.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtimeline.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtimer.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qtranslator.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qurl.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/quuid.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qvariant.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qvector.sip +%%SIPFILES%%%%SIPDIR%%/QtCore/qwaitcondition.sip +%%ELTREE%%@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/elementtree +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/Compiler +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/Loader +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic/widget-plugins +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/uic +%%SIPFILES%%@dirrm %%SIPDIR%%/QtCore +@dirrm %%PYTHON_SITELIBDIR%%/PyQt4 +@cwd %%LOCALBASE%% +%%API%%%%APIFILE%% +%%API%%@dirrmtry share/qt4/qsci/api/python +%%API%%@dirrmtry share/qt4/qsci/api +%%API%%@dirrmtry share/qt4/qsci |