Commit graph

33 commits

Author SHA1 Message Date
Mathieu Arnold
551be3c723 Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored.  They will
  automatically get flavors (py27, py34, py35, py36) depending on what
  versions they support.

  There is also a USE_PYTHON=flavors for ports that do not use distutils
  but need FLAVORS to be set.  A USE_PYTHON=noflavors can be set if
  using distutils but flavors are not wanted.

  A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
  added to cope with Python ports that did not have the Python
  PKGNAMEPREFIX but are flavored.

  USES=python now also exports a PY_FLAVOR variable that contains the
  current python flavor.  It can be used in dependency lines when the
  port itself is not python flavored.  For example, deskutils/calibre.

  By default, all the flavors are generated.  To only generate flavors
  for the versions in PYTHON2_DEFAULT and PYTHON3_DEFAULT, define
  BUILD_DEFAULT_PYTHON_FLAVORS in your make.conf.

  In all the ports with Python dependencies, the *_DEPENDS entries MUST
  end with the flavor so that the framework knows which to build/use.
  This is done by appending '@${PY_FLAVOR}' after the origin (or
  @${FLAVOR} if in a Python module with Python flavors, as the content
  will be the same).  For example:

    RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR}

PR:		223071
Reviewed by:	portmgr, python
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D12464
2017-11-30 15:50:30 +00:00
Antoine Brodin
7a201481ce - py-qt5-*: Fix build when using non default version of python, in this case
sip is installed as sip-${PYTHON_VER}

- py-qt*-demo: Fix packaging with python3, those ports have a python2 pkg-plist
  so USE_PYTHON=py3kplist must be used to convert it

PR:		219641
2017-11-01 07:32:34 +00:00
Mathieu Arnold
eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00
Mathieu Arnold
f899c758a6 When there is a do-install target, do not use a post-install target, do
everything at once.  Sometime, rename post-install into a options helper
target.

I did not fix ports that were such a mess that I could not figure out
what they really wanted to do.  I also did not change ports that had
some version of an auto-plist code in post-install, for the same reason.

With hat:	portmgr
Sponsored by:	Absolight
2016-07-19 11:04:13 +00:00
Kurt Jaeger
942ca95103 devel/py-qt4-core cleanups in py-qt4-*
- Cleanup work on the py-qt4 ports, leading to a reduced runtime footprint.

PR:		209283
Submitted by:	groot@kde.org (kde), rakuco
2016-05-28 12:32:21 +00:00
Raphael Kubo da Costa
66b08a476e Properly all compileall.py.
Do it like we already do in devel/py-qt4-core: call compileall.py with -d so
that the .pyc and .pyo files do not have ${STAGEDIR} in them.

While at it, also call python with -O to generate .pyo files.
2015-12-13 19:58:30 +00:00
Raphael Kubo da Costa
b15d595457 Update PyQt4 to 4.11.4, SIP to 4.17 and QScintilla2 to 2.9.1.
Bring in some long overdue updates, some of which are required for us to
later land the PyQt5 ports.

One big change with this update is that the PyQt4 ports now install their
.sip files into share/py-sip/PyQt4 instead of share/py-sip. This way we do
not end up with directories like share/py-sip/QtCore, which are especially
confusing once PyQt5 lands and starts installing files with the same names.

Other noteworthy items:
- PORTREVISION has been bumped on ports depending on devel/qscintilla2
  because libqscintilla2.so's SOVERSION has changed.
- graphics/seexpr has been converted to USE_PYQT, as the file it used to
  define a build-time dependency on x11-toolkits/py-qt4-gui has moved.

Once again, big thanks to Tobias Berner <tcberner@gmail.com> and Guido Falsi
(madpilot@) for their initial work on these ports as part of the effort to
land PyQt5 into the tree (see D2910 in Phabricator for an earlier version of
the PyQt5 patch set).

PR:		205143
2015-12-13 12:45:25 +00:00
Raphael Kubo da Costa
31469ae565 PyQt: Replace bsd.pyqt.mk with Uses/pyqt.mk.
In preparation for landing PyQt5 ports, generalize devel/py-qt4's
bsd.pyqt.mk and make it a proper file in Uses/.

Ports wishing to depend on PyQt4 ports can now do the following:
  USES=		pyqt:4
  USE_PYQT=	foo bar_build baz_run

Other changes include the renaming of the PYQT4_DIST variable to PYQT_DIST
and the introduction of the PYQT_SIPDIR plist substitution variable. The
rest of the contents of Uses/pyqt.mk are pretty much identical to what we
had in bsd.pyqt.mk with additional processing of USE_PYQT.

Even though this patch touches files in many different ports, the goal is
for it to be a no-op from an end-user perspective (so that the basic
infrastructure is landed before the other, riskier changes): no dependencies
have been changed, PyQt/SIP/QScintilla have not been upgraded and the plists
should remain exactly the same, since PYQT_SIPDIR currently contains the
same value that used to be hardcoded in the plists.

Huge thanks to Guido Falsi (madpilot@) for spearheading most of the work: he
took the initiative to work on PyQt5 and sent D2910 to Phabricator with the
original version of this patch. Tobias Berner (tcberner@gmail.com) later
applied it to kde@'s experimental area51 repositories and did some more work
on it.
2015-12-08 16:49:43 +00:00
Raphael Kubo da Costa
88c2b62927 py-qt4-demo: Fix runtime dependency list.
r344123 broke it by replacing RUN_DEPENDS with PYQT4_RUN_DEPENDS. The latter
has no meaning, so the port stopped depending on all other PyQt4 ports.

MFH:		2015Q4
2015-12-06 21:17:52 +00:00
Raphael Kubo da Costa
e3dad0e904 Update PyQt and its dependencies.
* PyQt4 has been updated to 4.11.3.
* QScintilla has been updated to 2.8.4.
* SIP has been updated to 4.16.5.

This update is much smaller than the previous one, as there has been no
further need for clean ups in the ports infrastructure.

Pretty much the entire patch set has been originally contributed by Tobias
Berner, who sent it to the KDE on FreeBSD mailing list. Thanks a lot!

PR:		198016
Submitted by:	Tobias Berner <tcberner@gmail.com>
2015-03-04 23:20:47 +00:00
Alonso Schaich
c05e144deb Replace USE_PYTHON* by USES=python.
This commit consists of area51's r10314 and r10356 patchsets.

Approved by:	rakuco (mentor)
2014-10-05 18:25:00 +00:00
Raphael Kubo da Costa
c3f9087c48 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
Max Brazhnikov
bf3f41f8fc misc/py-qt4-demo:
- Use plist instead of PORTEXAMPLES, otherwise the package is bogus when
  NOPORTEXAMPLES is set
- Use compileall.py to byte-compile installed examples
- Use options helpers
2014-02-13 14:25:26 +00:00
Raphael Kubo da Costa
d6119cb107 Update SIP to 4.15.2 and PyQt to 4.10.3.
This commit also adds proper staging support to all the ports being updated.

In collaboration with Schaich Alonso <alonsoschaich@fastmail.fm> and
Tomasz Kowalczyk <kowalczfbsd@gmail.com>.
2013-10-15 21:52:33 +00:00
Baptiste Daroussin
8ac99398e2 Add NO_STAGE all over the place in preparation for the staging support (cat: misc) 2013-09-20 20:50:57 +00:00
Max Brazhnikov
481aa3dd68 KDE/FreeBSD team presents:
SIP 4.14.3
 QScintilla 2.7
 PyQt 4.9.6

The area51 repository features commits by jhale and myself.

Changes:
- Trim Makefile header
- Convert to new option framework
2013-02-03 18:16:07 +00:00
Alberto Villa
cd3fe9e9f2 - Pet Tinderbox and friends.
OPTIONSFILE must be set using ?= to allow overriding.

PR:		163743
PR:		163744
PR:		163745
PR:		163746
Submitted by:	A.J. Kehoe IV (Nanoman) <vOo4vyPj@nanoman.ca>
2012-01-24 23:40:21 +00:00
Alberto Villa
de066f788c - Update PyQt4 to 4.8.5.
- Update SIP to 4.12.4.
- Use common DISTINFO_FILEs.
2011-10-16 22:50:48 +00:00
Max Brazhnikov
43a46c6993 KDE FreeBSD team is glad to present Qt 4.7.1 in ports.
Along with Qt4 the following ports are updated:

PyQt4 ports to 4.8.1
devel/py-sip to 4.11.2
devel/qscintilla2 to 2.4.5
PyKDE3 to 3.16.7
PyQt3 tp 3.18.2-snapshot-20091119

New ports added:
devel/qt4-declarative
devel/py-qt4-declarative
x11/qt4-graphicssystems-opengl

This release has been contributed by:
Thomas Abthorpe (tabthorpe)
Max Brazhnikov (makc)
Dima Panov (fluffy)
Alberto Villa (avilla)

We'd like to thank Martin Wilke (miwi) for exp-run.
2010-12-02 19:47:17 +00:00
Dima Panov
8406d1f1d4 - The FreeBSD KDE team is pleased to announce SIP-4.10.2, PyQt-4.7.3
and QScintilla-2.4.3 for FreeBSD.

With hat on:	kde@
2010-05-11 10:43:10 +00:00
Dirk Meyer
de78af3ac5 - update to 1.4.1
Reviewed by:	exp8 run on pointyhat
Supported by:	miwi
2010-03-28 06:47:48 +00:00
Dirk Meyer
ca9c60461c - update to jpeg-8 2010-02-05 11:46:55 +00:00
Dima Panov
afb550e3cf The KDE FreeBSD team is proud to announce the release of SIP-4.10 and
PyQt-4.7 for FreeBSD. The official update notes can be found at
http://www.riverbankcomputing.com

We'd like to say thanks to all helpers, testers and submitters.
2010-01-30 14:27:27 +00:00
Martin Wilke
c359376791 - Update py-qt4* to 4.6.2
- Update py-sip to 4.9.3

The KDE FreeBSD team would like to say thanks to all the helpers
and submitters.

Tested by:	pointyhat-exp-run (myself)
2009-11-27 00:10:51 +00:00
Max Brazhnikov
2d8b5de9c8 Update PyQt4 ports to 4.4.4, new ports:
devel/py-qt4-help
multimedia/py-qt4-phonon
textproc/py-qt4-xmlpatterns
www/py-qt4-webkit

Update QScintilla2 to 2.3.2, PyQt3 to 3.17.6, PyKDE3 to 3.16.2.

Pass maintainership to kde@FreeBSD.org. Thanks Danny Ricin for his great work.

PR:		based on ports/130219
Submitted by:	Dima Panov" <fluffy at fluffy.khv.ru>
2009-02-14 22:58:55 +00:00
Martin Wilke
38661f2e32 The first iteration of the py-qt4-* ports had a snapshot date as its
PORTVERSION. After that the PORTVERSION became 4.foo. Because this is
numerically lower than before, the PORTEPOCH should have been bumped.

Poked by:	kris@

PR:		125814
Submitted by:	Danny Pansters <danny@ricin.com> (maintainer)
2008-07-25 22:24:16 +00:00
Edwin Groothuis
090059a210 Bump portrevision due to upgrade of devel/gettext.
The affected ports are the ones with gettext as a run-dependency
according to ports/INDEX-7 (5007 of them) and the ones with USE_GETTEXT
in Makefile (29 of them).

PR:             ports/124340
Submitted by:   edwin@
Approved by:    portmgr (pav)
2008-06-06 14:17:21 +00:00
Martin Wilke
6b2bffe139 - Update to 4.3.3
- Configure.py now has a flag to specify component, patch is now simpler
- Update qscintilla2 so version where used
- Use bsd.pyqt.mk

Submitted by:	Danny Pansters <danny@ricin.com> (maintainer via private mail)
2008-03-20 12:40:00 +00:00
Martin Wilke
5d6ad60da0 - Update to 4.3.1
Submitted by:	Danny Pansters <danny@ricin.com> (maintainer)
2007-10-02 09:58:36 +00:00
Martin Wilke
71fee7a28f - Update to PyQt-4.3
Submitted by:	Danny Pansters <danny@ricin.com> (maintainer via privat mail)
2007-09-13 18:15:58 +00:00
Florent Thoumie
d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00
Martin Wilke
ed477c4517 - Update to 4.2
Submitted by:	Danny Pansters <danny@ricin.com> (maintainer via privat mail)
2007-04-17 20:00:41 +00:00
Martin Wilke
8f6e2300a3 PyQt4 is a set of Python bindings for Trolltech's Qt4 application framework.
This package provides the PyQt4 demo and examples.

WWW: http://www.riverbankcomputing.co.uk/pyqt/

PR:		ports/109634
Submitted by:	Danny Pansters <danny at ricin.com>
2007-03-27 10:16:57 +00:00