2013-02-03 18:16:07 +00:00
|
|
|
# Created by: Danny Pansters <danny@ricin.com>
|
2007-03-27 10:16:57 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= demo
|
2008-03-20 12:40:00 +00:00
|
|
|
PORTVERSION= ${PYQT4_VERSION}
|
2008-07-25 22:24:16 +00:00
|
|
|
PORTEPOCH= 1
|
2007-03-27 10:16:57 +00:00
|
|
|
CATEGORIES= misc devel python
|
2008-03-20 12:40:00 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITES_PYQT4}
|
2007-03-27 10:16:57 +00:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}qt4-
|
2008-03-20 12:40:00 +00:00
|
|
|
DISTNAME= ${PYQT4_DISTNAME}
|
2007-03-27 10:16:57 +00:00
|
|
|
|
2009-02-14 22:58:55 +00:00
|
|
|
MAINTAINER= kde@FreeBSD.org
|
2008-03-20 12:40:00 +00:00
|
|
|
COMMENT= Python bindings for the Qt4 toolkit, Qt demo and examples
|
2007-03-27 10:16:57 +00:00
|
|
|
|
2011-10-16 22:50:48 +00:00
|
|
|
DISTINFO_FILE= ${PYQT4_DISTINFO_FILE}
|
2007-03-27 10:16:57 +00:00
|
|
|
USE_PYTHON= yes
|
|
|
|
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-qt4
|
2014-02-13 14:25:26 +00:00
|
|
|
|
2013-02-03 18:16:07 +00:00
|
|
|
.include "${.CURDIR}/../../devel/py-qt4/bsd.pyqt.mk"
|
2014-02-13 14:25:26 +00:00
|
|
|
|
|
|
|
.for component in ${PYQT4_COMPONENTS:Ndemo}
|
|
|
|
PYQT4_RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}qt4-${component}>=0:${PORTSDIR}/${${component}_PORT}
|
|
|
|
.endfor
|
2007-03-27 10:16:57 +00:00
|
|
|
|
Update PyQt to 4.11.1, QScintilla to 2.8.3 and SIP to 4.16.2.
... And bump PORTREVISION on ports that depend on devel/qscintilla2 due to
the shlib version change.
This is brought to you by the KDE on FreeBSD team. Besides updating to newer
upstream releases, this commit also contains a lot of under-the-hood changes
to the PyQt/QScintilla/SIP ports. Their Makefiles had accumulated a lot of
cruft over time, so it was time for some summer cleaning:
- General, belated changes:
* Use OPTIONS helpers wherever possible, stop including
<bsd.port.options.mk> when not necessary, stop checking for
${PORT_OPTIONS:MDOCS} and ${PORT_OPTIONS:MEXAMPLES} when not necessary,
add options such as DOCS and/or DEBUG where they were only checked for.
- QScintilla ports:
* Drop the API option from py-qt4-qscintilla2. It had been broken ever
since staging support was added, and its existence does not make much
sense: QScintilla is a hard dependency regardless of the state of this
option anyway, they all come from the same tarball and the configuration
script assumes the .api file will always be installed.
- PyQt ports:
* The configure.py patch shared by all PyQt ports has been trimmed down to
the minimum. Changes for Qt3 compatibility or for things that are just
not needed anymore have been removed.
* Several post-configure targets in the PyQt ports have been removed, as
they had no effect on the way the ports were built whatsoever.
* In some cases, instead of calling Python's py_compile.py on `ls *.py
*/*.py */*/*.py` to generate .pyc and .pyo files, we just call
compileall.py, which is made for this kind of task.
* The patch + sed hack to build py-qt4-dbussupport has been replaced by
only extracting the dbus/ directory for that port and excluding it from
all others.
* Move the bulk of the code in all Makefiles to bsd.pyqt.mk, like the
non-Python Qt ports do with bsd.qt.mk and the QT_DIST variable. A large
portion of all PyQt Makefiles were very similar and contained a lot of
boilerplate code that can be shared among all of them since they all
come from the same tarball. bsd.pyqt.mk now has a PYQT4_DIST variable
that, when set, automatically sets several common variables and the
do-configure target for a port. This allows us to considerably reduce
the size of all the py-qt4-* Makefiles.
* To make the above possible and also to allow us to use as many OPTIONS
helpers as possible, the ARGS variable is now called CONFIGURE_ARGS.
That's what it was used for anyway.
PR: 191990
2014-07-23 19:53:11 +00:00
|
|
|
# Remove some empty __pycache__/ directories that are wrongly part of the
|
|
|
|
# tarball and cause check-plist failures.
|
|
|
|
post-patch:
|
|
|
|
${RMDIR} ${WRKSRC}/examples/opengl/textures/__pycache__
|
|
|
|
${RMDIR} ${WRKSRC}/examples/widgets/stylesheet/__pycache__
|
|
|
|
|
2007-03-27 10:16:57 +00:00
|
|
|
do-build:
|
2014-02-13 14:25:26 +00:00
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${WRKSRC}/examples
|
2007-03-27 10:16:57 +00:00
|
|
|
|
|
|
|
do-install:
|
2009-02-14 22:58:55 +00:00
|
|
|
${RM} -f ${WRKSRC}/examples/designer/plugins/plugins.py.orig
|
2013-10-15 21:52:33 +00:00
|
|
|
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
|
2007-03-27 10:16:57 +00:00
|
|
|
|
2010-05-11 10:43:10 +00:00
|
|
|
.include <bsd.port.mk>
|