- Update to PyQt-4.3

Submitted by:	Danny Pansters <danny@ricin.com> (maintainer via privat mail)
This commit is contained in:
Martin Wilke
2007-09-13 18:15:58 +00:00
parent 3a03155895
commit 71fee7a28f
54 changed files with 2245 additions and 3879 deletions

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= sql
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= databases devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtSql module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= sql qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtSql API for QScintilla2" on \
SIPFILES "Install the QtSql SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtSql.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtSql.api"
.endif
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtSql
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtSql/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,188 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 20:53:10 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtSql":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtSql.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtSql"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -14,7 +14,6 @@
%%SIPFILES%%%%SIPDIR%%/QtSql/qsqlresult.sip
%%SIPFILES%%%%SIPDIR%%/QtSql/qsqltablemodel.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtSql
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= assistant
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,12 +16,12 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtAssistant module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/QtNetwork.so:${PORTSDIR}/net/py-qt4-network
RUN_DEPENDS= ${BUILD_DEPENDS}
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= assistantclient qmake
@@ -30,45 +30,52 @@ OPTIONS= API "Install QtAssistant API for QScintilla2" on \
SIPFILES "Install the QtAssistant SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtAssistant.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtAssistant.api"
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtAssistant
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtAssistant/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,187 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 20:50:50 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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\")")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtAssistant":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtAssistant.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtAssistant"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -2,7 +2,6 @@
%%SIPFILES%%%%SIPDIR%%/QtAssistant/QtAssistantmod.sip
%%SIPFILES%%%%SIPDIR%%/QtAssistant/qassistantclient.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtAssistant
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= core
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -20,7 +20,7 @@ BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${BUILD_DEPENDS}
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= corelib qmake
@@ -30,54 +30,58 @@ OPTIONS= API "Install QtCore API for QScintilla2" 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
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtCore.api"
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${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=""
ARGS+= --trace
.endif
ARGS+= --enable QtCore
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtCore/Makefile
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
${INSTALL_DATA} ${FILESDIR}/Qt.py ${PYTHON_SITELIBDIR}/PyQt4 &&\
cd ${PYTHON_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`
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -0,0 +1,49 @@
# Replacement for the composite module PyQt4.Qt for FreeBSD
# Provides namespace for all installed PyQt4 modules by importing them
from PyQt4.QtCore import *
try:
from PyQt4.QtGui import *
except ImportError:
pass
try:
from PyQt4.QtXml import *
except ImportError:
pass
try:
from PyQt4.QtAssistant import *
except ImportError:
pass
try:
from PyQt4.QtDesigner import *
except ImportError:
pass
try:
from PyQt4.QtNetwork import *
except ImportError:
pass
try:
from PyQt4.QtOpenGL import *
except ImportError:
pass
try:
from PyQt4.QtScript import *
except ImportError:
pass
try:
from PyQt4.QtSql import *
except ImportError:
pass
try:
from PyQt4.QtSvg import *
except ImportError:
pass
try:
from PyQt4.QtTest import *
except ImportError:
pass
try:
from PyQt4.Qsci import *
except:
pass

View File

@@ -1,145 +1,354 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 20:48:21 2007
@@ -140,24 +140,24 @@
def check_modules(self):
pyqt_modules.append("QtCore")
--- configure.py.orig Mon Jul 30 18:11:39 2007
+++ configure.py Fri Aug 10 22:22:34 2007
@@ -29,6 +29,10 @@
- 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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
import sipconfig
+# FreeBSD check and which component (port)
+freebsd, freebsd_port = False, ''
+if sys.platform[:-1] == 'freebsd': freebsd = True
+if freebsd: freebsd_port = os.environ['PYQT4_COMPONENT']
# Initialise the globals.
pyqt_version = 0x040300
@@ -62,7 +66,6 @@
dbuslibdirs = []
dbuslibs = []
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
# Under Windows qmake and the Qt DLLs must be into the system PATH otherwise
# the dynamic linker won't be able to resolve the symbols. On other systems we
# assume we can just run qmake by using its full pathname.
@@ -276,14 +279,23 @@
elif sipcfg.universal:
sipconfig.inform("QtDesigner module disabled with universal binaries.")
else:
- check_module("QtDesigner", "QExtensionFactory",
- "new QExtensionFactory()")
+ if freebsd:
+ if freebsd_port.startswith('designer'):
+ check_module("QtDesigner", "QExtensionFactory",
+ "new QExtensionFactory()")
+ else:
+ check_module("QtDesigner", "QExtensionFactory",
+ "new QExtensionFactory()")
- if os.path.isdir("dbus"):
check_module("QAxContainer", "qaxobject.h", "new QAxObject()",
extra_libs=["QAxContainer"])
if os.path.isdir("dbus"):
- check_dbus()
+ #if os.path.isdir("dbus"):
+ # check_dbus()
+ if freebsd:
+ if freebsd_port == 'dbus':
+ check_dbus()
+ else:
+ check_dbus()
def code(self):
# Note that the order of the dependent modules is important.
@@ -211,31 +211,31 @@
generate_code("QAxContainer", ["QAxContainer", "QtGui", "QtCore"])
cons_xtra_incdirs = []
@@ -304,6 +316,10 @@
cons_xtra_libs.extend(sp_libs)
# 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_code("QtCore")
+ elif freebsd:
+ if freebsd_port == 'core':
+ generate_code("QtCore", extra_include_dirs=sp_incdirs,
+ extra_lib_dirs=sp_libdirs, extra_libs=sp_libs)
else:
generate_code("QtCore", extra_include_dirs=sp_incdirs,
extra_lib_dirs=sp_libdirs, extra_libs=sp_libs)
@@ -472,19 +488,28 @@
sipconfig.inform("Unable to find the following static plugins: %s" % ", ".join(opts.staticplugins))
# 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")
+ if freebsd:
+ if not freebsd_port in ('dbus', 'designerplugin', 'demo', 'doc'):
+ sipconfig.inform("Creating QScintilla API file...")
+
+ else:
+ sipconfig.inform("Creating QScintilla API file...")
- for m in pyqt_modules:
- api = open(m + ".api")
+ #for m in pyqt_modules:
+ # api = open(m + ".api")
+ if not freebsd:
+ # aggregating like below would kill packaging
+ # instead the port installs the seperate module APIs
+ f = open("PyQt4.api", "w")
- for l in api:
- f.write("PyQt4." + l)
+ # for l in api:
+ # f.write("PyQt4." + l)
+ for m in pyqt_modules:
+ api = open(m + ".api")
- api.close()
- os.remove(m + ".api")
+ # api.close()
+ # os.remove(m + ".api")
+ for l in api:
+ f.write("PyQt4." + l)
- f.close()
+ #f.close()
+ api.close()
+ os.remove(m + ".api")
+
+ f.close()
def _static_plugins(self, mname):
"""Return a tuple of the libraries (in platform neutral format) and the
@@ -555,7 +580,13 @@
return libs, libdirs
def module_installs(self):
- return ["__init__.py", "Qt.py", "pyqtconfig.py"]
+ return ["__init__.py", "pyqtconfig.py"]
- return ["__init__.py", "pyqtconfig.py"]
+ if freebsd:
+ if freebsd_port == 'core':
+ return ["__init__.py", "pyqtconfig.py"]
+ else:
+ return []
+ else:
+ return ["__init__.py", "pyqtconfig.py"]
def qpylibs(self):
# See which QPy libraries to build.
@@ -376,7 +376,8 @@
@@ -641,23 +672,43 @@
# Create the pyuic4 wrapper. Use the GUI version on MacOS (so that
# previews work properly and normal console use will work anyway), but
# not on Windows (so that normal console use will work).
- sipconfig.inform("Creating pyuic4 wrapper...")
+ if freebsd:
+ if freebsd_port == 'core':
+ sipconfig.inform("Creating pyuic4 wrapper...")
+
+ uicdir=os.path.join(pyqt_modroot, "uic")
+ wrapper = sipconfig.create_wrapper(os.path.join(uicdir, "pyuic.py"), os.path.join("pyuic", "pyuic4"), (sys.platform == "darwin"))
+
+ sipconfig.inform("Creating pyuic4 Makefile...")
+
+ makefile = sipconfig.PythonModuleMakefile(
+ configuration=sipcfg,
+ dstdir=uicdir,
+ srcdir="uic",
+ dir="pyuic",
+ installs=[[os.path.basename(wrapper), opts.pyqtbindir]]
+ )
+
+ makefile.generate()
+ tool.append("pyuic")
+ else:
+ sipconfig.inform("Creating pyuic4 wrapper...")
- uicdir=os.path.join(pyqt_modroot, "uic")
- wrapper = sipconfig.create_wrapper(os.path.join(uicdir, "pyuic.py"), os.path.join("pyuic", "pyuic4"), (sys.platform == "darwin"))
+ uicdir=os.path.join(pyqt_modroot, "uic")
+ wrapper = sipconfig.create_wrapper(os.path.join(uicdir, "pyuic.py"), os.path.join("pyuic", "pyuic4"), (sys.platform == "darwin"))
- sipconfig.inform("Creating pyuic4 Makefile...")
+ sipconfig.inform("Creating pyuic4 Makefile...")
- makefile = sipconfig.PythonModuleMakefile(
- configuration=sipcfg,
- dstdir=uicdir,
- srcdir="uic",
- dir="pyuic",
- installs=[[os.path.basename(wrapper), opts.pyqtbindir]]
- )
+ makefile = sipconfig.PythonModuleMakefile(
+ configuration=sipcfg,
+ dstdir=uicdir,
+ srcdir="uic",
+ dir="pyuic",
+ installs=[[os.path.basename(wrapper), opts.pyqtbindir]]
+ )
- makefile.generate()
- tool.append("pyuic")
+ makefile.generate()
+ tool.append("pyuic")
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -694,7 +745,10 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
+ if freebsd:
+ pass
+ else:
+ sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
@@ -719,6 +773,12 @@
glob.glob("%s/lib/libpython%d.%d*" % (ducfg["prefix"], py_major, py_minor))):
lib_dir_flag = quote("-L%s/lib" % ducfg["prefix"])
link = "%s -lpython%d.%d" % (lib_dir_flag, py_major, py_minor)
+ elif freebsd:
+ # We do have shared libpython, but also static. Alas
+ # static is built *first*, and to distutils it looks as
+ # if we have static py only
+ lib_dir_flag = quote("-L%s/lib" % ducfg["prefix"])
+ link = "%s -lpython%d.%d" % (lib_dir_flag, py_major, py_minor)
else:
sipconfig.inform("Qt Designer plugin disabled because Python library is static")
enabled = False
@@ -791,19 +851,44 @@
sipconfig.inform("The %s %s library is in %s." % (lib_type, qt_lib, qt_libdir))
sipconfig.inform("The Qt binaries are in %s." % qt_bindir)
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
- sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
- sipconfig.inform("The PyQt Python package will be installed in %s." % opts.pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opts.plugindir, "designer"))
+ if freebsd:
+ if not freebsd_port in ('dbus', 'demo', 'designerplugin'):
+ sipconfig.inform("This PyQt module will be built: %s." % pyqt_modules[-1])
+ sipconfig.inform("The PyQt Python package will be installed in %s." % opts.pyqtmoddir)
+ if freebsd_port == 'designerplugin':
+ sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opts.plugindir, "designer"))
+ else:
+ sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
+ sipconfig.inform("The PyQt Python package will be installed in %s." % opts.pyqtmoddir)
+ sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opts.plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
if opts.api:
- sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opts.qscidir, "api", "python"))
+ if freebsd:
+ if not freebsd_port in ('dbus', 'demo', 'doc', 'designerplugin'):
+ sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opts.qscidir, "api", "python"))
+ else:
+ sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opts.qscidir, "api", "python"))
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
if pydbusmoddir:
- sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
+ if freebsd:
+ if freebsd_port == 'dbus':
+ sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
+ else:
+ sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ sipconfig.inform("pyuic4 will be installed in %s." % opt_pyqtbindir)
- sipconfig.inform("The PyQt .sip files will be installed in %s." % opts.pyqtsipdir)
+ if freebsd:
+ if not freebsd_port in ('dbus', 'demo', 'designerplugin'):
+ sipconfig.inform("The PyQt .sip files will be installed in %s." % opts.pyqtsipdir)
+ else:
+ sipconfig.inform("The PyQt .sip files will be installed in %s." % opts.pyqtsipdir)
if opt_vendorcheck:
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opts.pyqtbindir)
+ if freebsd:
+ if freebsd_port == 'core':
+ sipconfig.inform("pyuic4 will be installed in %s." % opts.pyqtbindir)
+ elif freebsd_port == 'xml':
+ sipconfig.inform("pyrcc4 and pylupdate4 will be installed in %s." % opts.pyqtbindir)
+ else:
+ sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opts.pyqtbindir)
if opts.vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -873,7 +874,7 @@
sipconfig.error("This version of PyQt and the %s edition of Qt have incompatible licenses." % qted)
@@ -1171,7 +1256,11 @@
of libraries.
extra_sip_flags is an optional list of additional flags to pass to SIP.
"""
- sipconfig.inform("Generating the C++ source for the %s module..." % mname)
+ if freebsd:
+ if mname != 'Qt':
+ sipconfig.inform("Generating the C++ source for the %s module..." % mname)
+ else:
+ sipconfig.inform("Generating the C++ source for the %s module..." % mname)
# 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."
@@ -895,7 +896,7 @@
mk_clean_dir(mname)
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):
@@ -1434,7 +1435,7 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
@@ -1243,7 +1332,11 @@
sipconfig.error("Unable to create the C++ code.")
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtCore.api", os.path.join(opt_qscidir, "api", "python")))
# Generate the Makefile.
- sipconfig.inform("Creating the Makefile for the %s module..." % mname)
+ if freebsd:
+ if mname != 'Qt':
+ sipconfig.inform("Creating the Makefile for the %s module..." % mname)
+ else:
+ sipconfig.inform("Creating the Makefile for the %s module..." % mname)
installs = []
@@ -1786,13 +1879,25 @@
p.print_help()
sys.exit(2)
+ if freebsd:
+ # avoid picking up the Qt3 headers instead
+ macros['INCDIR'] = '.'
+
sipcfg.set_build_macros(macros)
# Check Qt is what we need.
pyqt = check_qt_installation(macros)
# Check the licenses are compatible.
- check_license()
+ if not freebsd:
+ check_license()
+ else:
+ print
+ sipconfig.inform("NOTE: This port uses the GPL licensed version of PyQt4.")
+ sipconfig.inform("If you require a commercial license or are unsure, please")
+ sipconfig.inform("read http://www.riverbankcomputing.co.uk/pyqt/index.php\n")
+ print
+ # Sorry, we can't hang auto builds for confirmation and GPL doesn't need it
# Check which modules to build.
pyqt.check_modules()
@@ -1815,9 +1920,18 @@
installs=[(pyqt.module_installs(), pyqt_modroot)]
if opts.api:
- installs.append(("PyQt4.api", os.path.join(opts.qscidir, "api", "python")))
+ if freebsd:
+ # Don't break package lists
+ if not freebsd_port in ('dbus', 'designerplugin', 'demo', 'doc'):
+ apifile = pyqt_modules[-1] + '.api'
+ installs.append((apifile, os.path.join(opts.qscidir, "api", "python")))
+ else:
+ installs.append(("PyQt4.api", os.path.join(opts.qscidir, "api", "python")))
- xtra_modules = ["Qt"]
+ if freebsd:
+ xtra_modules = []
+ else:
+ xtra_modules = ["Qt"]
if opts.bigqt:
xtra_modules.append("_qt")
@@ -1828,14 +1942,31 @@
if opts.mwg_qwt_dir:
xtra_modules.append("Qwt5")
+ if freebsd:
+ if freebsd_port == 'dbus':
+ s = pyqt.tools()
+ elif freebsd_port == 'designer':
+ s = pyqt.qpylibs() + [pyqt_modules[-1]]
+ elif freebsd_port == 'designerplugin':
+ s = pyqt.tools()
+ else:
+ s = [pyqt_modules[-1]]
+ if freebsd_port in ('core', 'xml'):
+ s += pyqt.tools()
+ else: s = pyqt.qpylibs() + pyqt_modules + xtra_modules + pyqt.tools()
+
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + xtra_modules + pyqt.tools(),
+ subdirs=s,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ if freebsd:
+ if freebsd_port == 'core':
+ create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ else:
+ create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -1,17 +1,11 @@
bin/pyuic4
%%PYTHON_SITELIBDIR%%/PyQt4/Qt.py
%%PYTHON_SITELIBDIR%%/PyQt4/Qt.pyc
%%PYTHON_SITELIBDIR%%/PyQt4/Qt.pyo
%%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
@@ -78,9 +72,11 @@ bin/pyuic4
%%SIPFILES%%%%SIPDIR%%/QtCore/qchar.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qcoreapplication.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qcoreevent.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qcryptographichash.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qdatastream.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qdatetime.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qdir.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qdiriterator.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qeventloop.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qfile.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qfileinfo.sip
@@ -98,6 +94,7 @@ bin/pyuic4
%%SIPFILES%%%%SIPDIR%%/QtCore/qmimedata.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qmutex.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qnamespace.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qnumeric.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qobject.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qobjectcleanuphandler.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qobjectdefs.sip
@@ -129,15 +126,13 @@ bin/pyuic4
%%SIPFILES%%%%SIPDIR%%/QtCore/qvariant.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qvector.sip
%%SIPFILES%%%%SIPDIR%%/QtCore/qwaitcondition.sip
%%ELTREE%%@dirrm %%PYTHON_SITELIBDIR%%/PyQt4/elementtree
%%API%%%%APIFILE%%
@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

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= dbus
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,33 +16,45 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, D-BUS module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core \
${PYTHON_PKGNAMEPREFIX}dbus>=0.8:${PORTSDIR}/devel/py-dbus
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip \
${PYTHON_PKGNAMEPREFIX}dbus>=0.8:${PORTSDIR}/devel/py-dbus \
${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
RUN_DEPENDS= ${BUILD_DEPENDS}
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= corelib qmake moc
OPTIONS= DEBUG "Enable debugging in generated code" off \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -s ${LOCALBASE}/include/dbus-1.0/dbus/
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtCore
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/dbus/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,193 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 21:03:18 2007
@@ -138,23 +138,23 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
if os.path.isdir("dbus"):
check_dbus()
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -458,19 +459,19 @@
sipconfig.inform("The %s Qt library is in %s." % (qt_lib, qt_libdir))
sipconfig.inform("The Qt binaries are in %s." % qt_bindir)
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
- sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
- sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
+ #sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
- if opt_api:
- sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
+ #if opt_api:
+ # sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
if pydbusmoddir:
sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
- sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
+ #sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1433,17 +1435,17 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
- if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ #if opt_api:
+ # installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt.tools(),
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= designer
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,59 +16,67 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtDesigner module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui \
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml \
${PYTHON_SITELIBDIR}/PyQt4/QtScript.so:${PORTSDIR}/devel/py-qt4-script
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= designer moc qmake
QT_COMPONENTS= designer moc gui xml qmake
OPTIONS= API "Install QtDesigner API for QScintilla2" on \
DEBUG "Enable debugging in generated code" off \
SIPFILES "Install the QtDesigner SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtDesigner.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtDesigner.api"
.endif
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtDesigner
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtDesigner/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,194 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 21:26:39 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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\")")
if sipcfg.universal:
sipconfig.inform("QtDesigner module disabled with universal binaries")
else:
check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -400,7 +401,7 @@
glob.glob("%s/lib/libpython%d.%d*" % (ducfg["prefix"], py_major, py_minor))):
link = "-L%s/lib -lpython%d.%d" % (ducfg["prefix"], py_major, py_minor)
else:
- sipconfig.inform("Qt Designer plugin disabled because Python library is static")
+ #sipconfig.inform("Qt Designer plugin disabled because Python library is static")
enabled = False
pysh_lib = ducfg["LDLIBRARY"]
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtDesigner":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1433,17 +1435,19 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
+ pyqt_modules = ["QtDesigner"]
+
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtDesigner.api", os.path.join(opt_qscidir, "api", "python")))
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt.qpylibs() + pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -25,7 +25,6 @@
%%SIPFILES%%%%SIPDIR%%/QtDesigner/qpydesignertaskmenuextension.sip
%%SIPFILES%%%%SIPDIR%%/QtDesigner/taskmenu.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtDesigner
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= designerplugin
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,33 +16,42 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtDesigner plugin
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer \
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= designer moc qmake xml
QT_COMPONENTS= designer moc gui xml qmake
OPTIONS= DEBUG "Enable debugging in generated code" off \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtDesigner
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-configure:
${REINPLACE_CMD} -e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/designer/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,204 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 21:36:39 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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\")")
if sipcfg.universal:
sipconfig.inform("QtDesigner module disabled with universal binaries")
else:
check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -396,7 +397,10 @@
# We need to work out how to specify the right framework
# version.
link = "-framework Python"
- elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") and
+ # FreeBSD python port configures and builds for static first,
+ # then builds for shared later, so this test won't work:
+ #elif ("--enable-shared" in ducfg.get("CONFIG_ARGS", "") and
+ elif (sys.platform[:-1] == "freebsd" and
glob.glob("%s/lib/libpython%d.%d*" % (ducfg["prefix"], py_major, py_minor))):
link = "-L%s/lib -lpython%d.%d" % (ducfg["prefix"], py_major, py_minor)
else:
@@ -458,19 +462,19 @@
sipconfig.inform("The %s Qt library is in %s." % (qt_lib, qt_libdir))
sipconfig.inform("The Qt binaries are in %s." % qt_bindir)
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
- sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
- sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
+ #sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
+ #sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
- if opt_api:
- sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
+ #if opt_api:
+ # sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
if pydbusmoddir:
sipconfig.inform("The dbus support module will be installed in %s." % pydbusmoddir)
- sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
+ #sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +812,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +878,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."
@@ -895,7 +900,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):
@@ -1433,17 +1438,17 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
- if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ #if opt_api:
+ # installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt.qpylibs() + pyqt.tools(),
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -1,5 +1,4 @@
@cwd %%LOCALBASE%%
lib/plugins/designer/libpythonplugin.so
@exec mkdir -p %D/lib/plugins/designer/python
@dirrmtry lib/plugins/designer/python
@dirrmtry lib/plugins/designer
lib/qt4/plugins/designer/libpythonplugin.so
@exec mkdir -p %D/lib/qt4/plugins/designer/python
@dirrmtry lib/qt4/plugins/designer/python
@dirrmtry lib/qt4/plugins/designer

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= test
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtTest module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= qtestlib qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtTest API for QScintilla2" on \
SIPFILES "Install the QtTest SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtTest.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtTest.api"
.endif
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtTest
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtTest/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,187 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 21:51:43 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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("QtXml", "qdom.h", "new QDomDocument()")
+ #check_module("QtAssistant", "qassistantclient.h", "new QAssistantClient(\"foo\")")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtTest":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtTest.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtTest"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= svg
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= graphics devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtSvg module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= svg qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtSvg API for QScintilla2" on \
SIPFILES "Install the QtSvg SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtSvg.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtSvg.api"
.endif
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtSvg
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtSvg/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,188 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 22:02:17 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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("QtTest", "QtTest", "QTest::qSleep(0)")
+ #check_module("QtXml", "qdom.h", "new QDomDocument()")
+ #check_module("QtAssistant", "qassistantclient.h", "new QAssistantClient(\"foo\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtSvg":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtSvg.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtSvg"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -1,10 +1,10 @@
%%PYTHON_SITELIBDIR%%/PyQt4/QtSvg.so
%%SIPFILES%%%%SIPDIR%%/QtSvg/QtSvgmod.sip
%%SIPFILES%%%%SIPDIR%%/QtSvg/qgraphicssvgitem.sip
%%SIPFILES%%%%SIPDIR%%/QtSvg/qsvggenerator.sip
%%SIPFILES%%%%SIPDIR%%/QtSvg/qsvgrenderer.sip
%%SIPFILES%%%%SIPDIR%%/QtSvg/qsvgwidget.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtSvg
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= demo
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= misc devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -14,7 +14,7 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4-
DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, demo and examples
COMMENT= Python bindings for the Qt4 toolkit, demo and other examples
USE_PYTHON= yes
@@ -32,12 +32,12 @@ RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
${PYTHON_SITELIBDIR}/PyQt4/QtXml.so:${PORTSDIR}/textproc/py-qt4-xml \
${PYTHON_SITELIBDIR}/PyQt4/QtAssistant.so:${PORTSDIR}/devel/py-qt4-assistant \
${PYTHON_SITELIBDIR}/PyQt4/QtOpenGL.so:${PORTSDIR}/x11/py-qt4-opengl \
${PYTHON_SITELIBDIR}/PyQt4/Qsci.so:${PORTSDIR}/devel/py-qt4-qscintilla2 \
${PYTHON_SITELIBDIR}/PyQt4/QtScript.so:${PORTSDIR}/devel/py-qt4-script \
${PYTHON_SITELIBDIR}/PyQt4/QtSql.so:${PORTSDIR}/databases/py-qt4-sql \
${PYTHON_SITELIBDIR}/PyQt4/QtSvg.so:${PORTSDIR}/graphics/py-qt4-svg \
${PYTHON_SITELIBDIR}/PyQt4/QtTest.so:${PORTSDIR}/devel/py-qt4-test \
${PYTHON_SITELIBDIR}/PyQt4/QtDesigner.so:${PORTSDIR}/devel/py-qt4-designer \
${LOCALBASE}/lib/plugins/designer/libpythonplugin.so:${PORTSDIR}/devel/py-qt4-designerplugin \
${LOCALBASE}/lib/qt4/plugins/designer/libpythonplugin.so:${PORTSDIR}/devel/py-qt4-designerplugin \
${PYTHON_SITELIBDIR}/dbus/mainloop/qt.so:${PORTSDIR}/devel/py-qt4-dbus
.if !defined(NOPORTDOCS)
RUN_DEPENDS+= ${LOCALBASE}/share/doc/py-qt4/pyqt4ref.html:${PORTSDIR}/misc/py-qt4-doc
@@ -45,13 +45,20 @@ RUN_DEPENDS+= ${LOCALBASE}/share/doc/py-qt4/pyqt4ref.html:${PORTSDIR}/misc/py-qt
.endif
do-build:
( cd ${WRKSRC}/examples && \
${PYTHON_CMD} ${PYTHON_LIBDIR}/py_compile.py \
`ls */*.py */*/*.py */*/*/*.py` )
.if !defined(NOPORTEXAMPLES)
cd ${WRKSRC}/examples &&\
${PYTHON_CMD} ${PYTHON_LIBDIR}/py_compile.py\
`ls */*.py */*/*.py */*/*/*.py`
.endif
do-install:
( cd ${WRKSRC} && \
${MKDIR} -m 0755 ${EXAMPLESDIR} && \
${CP} -R examples/ ${EXAMPLESDIR} )
.if !defined(NOPORTEXAMPLES)
cd ${WRKSRC} &&\
${RM} -f examples/designer/plugins/plugins.py.orig &&\
${MKDIR} ${EXAMPLESDIR} &&\
${CP} -R examples/ ${EXAMPLESDIR}
.else
@${ECHO} "NOPORTEXAMPLES is set -- installing nothing."
.endif
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -0,0 +1,22 @@
--- examples/designer/plugins/plugins.py.orig Thu Aug 9 23:42:04 2007
+++ examples/designer/plugins/plugins.py Thu Aug 9 23:47:13 2007
@@ -11,6 +11,10 @@
from PyQt4 import QtCore, QtGui
+# FreeBSD check
+freebsd = False
+if sys.platform[:-1] == 'freebsd': freebsd = True
+
# Set a specified environment variable with a directory name.
def setEnvironment(env, var_name, dir_name):
@@ -56,6 +60,8 @@
if sys.platform == "darwin":
designer_bin.append("/Designer.app/Contents/MacOS/Designer")
+elif freebsd:
+ designer_bin.append("/designer-qt4")
else:
designer_bin.append("/designer")

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,8 @@
# $FreeBSD$
PORTNAME= doc
PORTVERSION= 4.2
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= misc devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,16 +17,18 @@ MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, documentation
NO_BUILD= yes
USE_PYTHON= yes
USE_PYTHON= 2.5+
DOCSDIR= ${PREFIX}/share/doc/py-qt4
.include <bsd.port.pre.mk>
do-install:
( cd ${WRKSRC} && \
${MKDIR} -m 0755 ${DOCSDIR} && \
${INSTALL_DATA} ChangeLog NEWS README THANKS ${DOCSDIR} && \
${CP} -R doc/ ${DOCSDIR} )
.if !defined(NOPORTDOCS)
cd ${WRKSRC} &&\
${MKDIR} ${DOCSDIR} &&\
${INSTALL_DATA} ChangeLog NEWS README THANKS ${DOCSDIR} &&\
${CP} -R doc/ ${DOCSDIR}
.else
@${ECHO} "NOPORTDOCS is set -- installing nothing."
.endif
.include <bsd.port.post.mk>
.include <bsd.port.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

File diff suppressed because it is too large Load Diff

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= network
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= net devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtNetwork module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= network qmake
@@ -29,44 +29,52 @@ OPTIONS= API "Install QtNetwork API for QScintilla2" on \
SIPFILES "Install the QtNetwork SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtNetwork.api"
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtNetwork
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS} )
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtNetwork/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,188 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 22:01:38 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #pyqt_modules.append("QtCore")
- check_module("QtGui", "qwidget.h", "new QWidget()")
+ #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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtNetwork":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtNetwork.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtNetwork"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -1,18 +1,24 @@
%%PYTHON_SITELIBDIR%%/PyQt4/QtNetwork.so
%%SIPFILES%%%%SIPDIR%%/QtNetwork/QtNetworkmod.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qabstractsocket.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qauthenticator.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qftp.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qhostaddress.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qhostinfo.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qhttp.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qnetworkinterface.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qnetworkproxy.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qssl.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qsslcertificate.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qsslcipher.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qsslerror.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qsslkey.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qsslsocket.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qtcpserver.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qtcpsocket.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qudpsocket.sip
%%SIPFILES%%%%SIPDIR%%/QtNetwork/qurlinfo.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtNetwork
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= xml
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= textproc devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtXml module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= xml qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtXml API for QScintilla2" on \
SIPFILES "Install the QtXml SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtXml.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtXml.api"
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtXml
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtXml/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,177 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 22:09:06 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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("QtAssistant", "qassistantclient.h", "new QAssistantClient(\"foo\")")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -460,7 +460,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +470,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ sipconfig.inform("pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +808,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtXml":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +874,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."
@@ -895,7 +896,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):
@@ -1434,16 +1435,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtXml.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtXml"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules + pyqt.tools(),
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -4,8 +4,8 @@ bin/pyrcc4
%%SIPFILES%%%%SIPDIR%%/QtXml/QtXmlmod.sip
%%SIPFILES%%%%SIPDIR%%/QtXml/qdom.sip
%%SIPFILES%%%%SIPDIR%%/QtXml/qxml.sip
%%SIPFILES%%%%SIPDIR%%/QtXml/qxmlstream.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtXml
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= gui
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= x11-toolkits devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtGui module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtCore.so:${PORTSDIR}/devel/py-qt4-core
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= gui imageformats iconengines qmake
@@ -29,45 +29,52 @@ OPTIONS= API "Install QtGui API for QScintilla2" on \
SIPFILES "Install the QtGui SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtGui.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= -u
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtGui.api"
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtGui
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtGui/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,188 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 22:14:40 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtGui":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtGui.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtGui"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -21,6 +21,7 @@
%%SIPFILES%%%%SIPDIR%%/QtGui/qclipboard.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcolor.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcolordialog.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcolumnview.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcombobox.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcompleter.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qcursor.sip
@@ -38,6 +39,7 @@
%%SIPFILES%%%%SIPDIR%%/QtGui/qerrormessage.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qevent.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qfiledialog.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qfileiconprovider.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qfocusframe.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qfont.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qfontcombobox.sip
@@ -75,6 +77,8 @@
%%SIPFILES%%%%SIPDIR%%/QtGui/qlistwidget.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmainwindow.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmatrix.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmdiarea.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmdisubwindow.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmenu.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmenubar.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qmessagebox.sip
@@ -144,6 +148,7 @@
%%SIPFILES%%%%SIPDIR%%/QtGui/qtoolbox.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtoolbutton.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtooltip.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtransform.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtreeview.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtreewidget.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qtreewidgetitemiterator.sip
@@ -155,12 +160,12 @@
%%SIPFILES%%%%SIPDIR%%/QtGui/qwidget.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qwidgetaction.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qwindowdefs.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qwizard.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qworkspace.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qx11embed_x11.sip
%%SIPFILES%%%%SIPDIR%%/QtGui/qx11info_x11.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtGui
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%SIPFILES%%@dirrm %%SIPDIR%%/QtGui
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api
%%API%%@dirrmtry share/qt4/qsci

View File

@@ -5,8 +5,8 @@
# $FreeBSD$
PORTNAME= opengl
PORTVERSION= 4.2
PORTREVISION= 1
PORTVERSION= 4.3
PORTREVISION= # zero
CATEGORIES= x11 devel python
MASTER_SITES= http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/ \
http://freebsd.ricin.com/ports/distfiles/
@@ -16,11 +16,11 @@ DISTNAME= PyQt-x11-gpl-${PORTVERSION}
MAINTAINER= danny@ricin.com
COMMENT= Python bindings for the Qt4 toolkit, QtOpenGL module
BUILD_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
RUN_DEPENDS= ${BUILD_DEPENDS}
BUILD_DEPENDS= ${LOCALBASE}/bin/sip:${PORTSDIR}/devel/py-sip
RUN_DEPENDS= ${PYTHON_SITELIBDIR}/PyQt4/QtGui.so:${PORTSDIR}/x11-toolkits/py-qt4-gui
HAS_CONFIGURE= yes
USE_PYTHON= 2.3+
USE_PYTHON= 2.5+
USE_QT_VER= 4
QT_COMPONENTS= opengl qmake
@@ -29,44 +29,52 @@ OPTIONS= API "Install QtOpenGL API for QScintilla2" on \
SIPFILES "Install the QtOpenGL SIP files" on \
TRACING "Enable tracing in generated code" off
PATCHDIR= ${PORTSDIR}/devel/py-qt4-core/files
OPTIONSFILE= ${PORT_DBDIR}/py-qt4-${PORTNAME}/options
APIFILE= ${QT_PREFIX}/share/qt4/qsci/api/python/QtOpenGL.api
SIPDIR= ${PREFIX}/share/py-sip
ARGS= -b ${PREFIX}/bin -c -j 2 -d ${PYTHONPREFIX_SITELIBDIR}/PyQt4 \
-q ${QT_PREFIX}/bin/qmake-qt4 -a
CONFIGURE_ENV+= PYQT4_COMPONENT="${PORTNAME}"
ARGS= -b ${PREFIX}/bin\
-d ${PYTHON_SITELIBDIR}\
-q ${QT_PREFIX}/bin/qmake-qt4
.include <bsd.port.pre.mk>
.if defined(WITH_DEBUG)
ARGS+= --debug
.endif
.if defined(WITHOUT_API)
ARGS+= --no-qsci-api
PLIST_SUB+= API="@comment "
PLIST_SUB+= APIFILE="@comment "
.else
LIB_DEPENDS+= qscintilla2.1:${PORTSDIR}/devel/qscintilla2
LIB_DEPENDS+= qscintilla2.2:${PORTSDIR}/devel/qscintilla2
ARGS+= --qsci-api
PLIST_SUB+= API=""
PLIST_SUB+= APIFILE="share/qt4/qsci/api/python/QtOpenGL.api"
.endif
.if defined(WITH_DEBUG)
ARGS+= -u
.endif
.if defined(WITHOUT_SIPFILES)
ARGS+= -v /dev/null
ARGS+= --no-sip-files
PLIST_SUB+= SIPFILES="@comment "
PLIST_SUB+= SIPDIR="@comment "
.else
ARGS+= -v ${SIPDIR}
ARGS+= --sipdir ${SIPDIR}
PLIST_SUB+= SIPFILES=""
PLIST_SUB+= SIPDIR="share/py-sip"
.endif
.if defined(WITH_TRACING)
ARGS+= -r
ARGS+= --trace
.endif
ARGS+= --enable QtOpenGL
do-configure:
( cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} \
${PYTHON_CMD} configure.py ${ARGS} )
post-install:
.if defined(WITHOUT_API)
( ${RM} ${APIFILE} )
.endif
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV}\
${PYTHON_CMD} configure.py ${ARGS}
post-configure:
${REINPLACE_CMD} -e 's|mkspecs/freebsd-g++|share/qt4/mkspecs/freebsd-g++|'\
-e 's|CC = cc|CC = ${CC}|'\
-e 's|CXX = c++|CXX = ${CXX}|'\
-e 's|LINK = c++|LINK = ${CXX}|'\
${WRKSRC}/QtOpenGL/Makefile
.include <bsd.port.post.mk>

View File

@@ -1,3 +1,3 @@
MD5 (PyQt-x11-gpl-4.2.tar.gz) = af4baa7f7441914f9a527ef3cf788fef
SHA256 (PyQt-x11-gpl-4.2.tar.gz) = 6fa8a853a66ae500f36629793e7d4c54896c7ccf6337c2b90ea0175b28aa7ae6
SIZE (PyQt-x11-gpl-4.2.tar.gz) = 5661258
MD5 (PyQt-x11-gpl-4.3.tar.gz) = 3bb0c0064dc6b8b80413f87a14e5553c
SHA256 (PyQt-x11-gpl-4.3.tar.gz) = c184c3df596c13e9ed610aa8fa0504881976c4d972ccab1b739738a95f4ab0e5
SIZE (PyQt-x11-gpl-4.3.tar.gz) = 6036193

View File

@@ -1,188 +0,0 @@
--- configure.py.orig Tue Apr 10 17:59:52 2007
+++ configure.py Thu Apr 12 22:11:13 2007
@@ -138,26 +138,26 @@
}
def check_modules(self):
- pyqt_modules.append("QtCore")
+ #pyqt_modules.append("QtCore")
- check_module("QtGui", "qwidget.h", "new QWidget()")
- check_module("QtNetwork", "qhostaddress.h", "new QHostAddress()")
+ #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("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\")")
+
+ #if sipcfg.universal:
+ # sipconfig.inform("QtDesigner module disabled with universal binaries")
+ #else:
+ # check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
- if sipcfg.universal:
- sipconfig.inform("QtDesigner module disabled with universal binaries")
- else:
- check_module("QtDesigner", "QExtensionFactory", "new QExtensionFactory()")
-
- check_module("QAxContainer", "qaxobject.h", "new QAxObject()", "QAxContainer")
+ #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.
@@ -211,31 +211,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 []
def qpylibs(self):
# See which QPy libraries to build.
@@ -308,7 +308,7 @@
tool.append("dbus")
# Only include ElementTree for older versions of Python.
- if sipcfg.py_version < 0x020500:
+ """if sipcfg.py_version < 0x020500:
sipconfig.inform("Creating elementtree Makefile...")
makefile = sipconfig.PythonModuleMakefile(
@@ -339,7 +339,7 @@
)
makefile.generate()
- tool.append("pyuic")
+ tool.append("pyuic")"""
if "QtXml" in pyqt_modules:
sipconfig.inform("Creating pylupdate4 Makefile...")
@@ -376,7 +376,8 @@
makefile.generate()
tool.append("pyrcc")
else:
- sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ #sipconfig.inform("pylupdate4 and pyrcc4 will not be built because the Qt XML module is missing.")
+ pass
if "QtDesigner" in pyqt_modules:
enabled = True
@@ -460,7 +461,7 @@
sipconfig.inform("The Qt mkspecs directory is in %s." % qt_datadir)
sipconfig.inform("These PyQt modules will be built: %s." % string.join(pyqt_modules))
sipconfig.inform("The PyQt modules will be installed in %s." % opt_pyqtmoddir)
- sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
+ #sipconfig.inform("The Designer plugin will be installed in %s." % os.path.join(opt_plugindir, "designer"))
if opt_api:
sipconfig.inform("The QScintilla API file will be installed in %s." % os.path.join(opt_qscidir, "api", "python"))
@@ -470,7 +471,7 @@
sipconfig.inform("The PyQt .sip files will be installed in %s." % opt_pyqtsipdir)
- sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
+ #sipconfig.inform("pyuic4, pyrcc4 and pylupdate4 will be installed in %s." % opt_pyqtbindir)
if opt_vendorcheck:
sipconfig.inform("PyQt will only be usable with signed interpreters.")
@@ -808,7 +809,8 @@
sipfiles = []
for s in glob.glob("sip/" + mname + "/*.sip"):
- sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
+ if mname == "QtOpenGL":
+ sipfiles.append(os.path.join("..", "sip", mname, os.path.basename(s)))
installs.append([sipfiles, os.path.join(opt_pyqtsipdir, mname)])
@@ -873,7 +875,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."
@@ -895,7 +897,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):
@@ -1434,16 +1436,18 @@
installs=[(pyqt.module_installs(), opt_pyqtmoddir)]
if opt_api:
- installs.append(("PyQt4.api", os.path.join(opt_qscidir, "api", "python")))
+ installs.append(("QtOpenGL.api", os.path.join(opt_qscidir, "api", "python")))
+
+ pyqt_modules = ["QtOpenGL"]
sipconfig.ParentMakefile(
configuration=sipcfg,
- subdirs=pyqt.qpylibs() + pyqt_modules + pyqt.tools(),
+ subdirs=pyqt_modules,
installs=installs
).generate()
# Install the configuration module.
- create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
+ #create_config("pyqtconfig.py", "pyqtconfig.py.in", macros)
###############################################################################

View File

@@ -5,7 +5,6 @@
%%SIPFILES%%%%SIPDIR%%/QtOpenGL/qglframebufferobject.sip
%%SIPFILES%%%%SIPDIR%%/QtOpenGL/qglpixelbuffer.sip
%%SIPFILES%%@dirrm %%SIPDIR%%/QtOpenGL
@cwd %%LOCALBASE%%
%%API%%%%APIFILE%%
%%API%%@dirrmtry share/qt4/qsci/api/python
%%API%%@dirrmtry share/qt4/qsci/api