Commit graph

27 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
Martin Wilke
e74e7e0f95 - Fix shebangs
Submitted by:	Jochen Neumeister
2017-04-28 12:34:53 +00:00
Jan Beich
4be855d6a6 math/py-numpy: track PORTEPOCH in consumers 2016-10-28 17:13:24 +00:00
Dmitry Marakasov
1701f697db - Change condition to fix build with fmake when using python3.x
PR:		209514
Approved by:	portmgr blanket
2016-05-27 19:42:12 +00:00
Mathieu Arnold
8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00
Kubilay Kocak
275db1ead5 graphics/py-graphviz: Move to py-pygraphviz, Fix 3.x build
There are numerous graphviz related packages in PyPI, including:
graphviz, graphviz-python and pygraphviz.

This port, py-graphviz, is not and does not provide the same package
as the 'graphviz' package on PyPI (CHEESESHOP).

Further, it blocks the creation of a correctly named py-graphviz port,
is a POLA violation in terms of users expecting to find and recieve
the package they expect based on a standard search, and is likely to
create confusion among other ports if they depend on a python graphviz
package, which could result in incorrect packages/dependencies.

This is why among other reasons, Python packages should be named
exactly what they are called in PyPI, or inside install_requires,
setup_requires or tests_requires as dependencies in other packages.

This change moves py-graphviz to py-pygraphviz to correct the above
incorrect naming.

While I'm here:

- Remove backup (http) MASTER_SITES, CHEESESHOP is highly-available
  and provides a Geo-aware CDN by Fastly.
- Remove {BUILD,RUN}_DEPENDS in favour of the actual LIB_DEPENDS
- Use PYDISTUTILS_* framework variables to customise the build instead
  of hack patching setup.py
- Enable autoplist, fixing builds on Python 3.x [1]
- Enable concurrent (Python version) installation
  - Hack patch setup.py to preclude docs installation, as it adds a
    directory to --record and breaks pkg-plist output [2]
- Remove DOCSDIR override (no longer necessary)
- Assign MAINTAINER'ship to python@
- Add TEST_DEPENDS and test target
- pkg-descr: Match WWW URL to setup.py:homepage field
- pkg-descr: Improve package description text (matching upstream)

While I'm sweeping dependencies:

- Fix a typo in science/gramps: s|>-|>=

[2] https://wiki.freebsd.org/Python (Open task for install_data bug)

Reported by:	Ben Woods (via IRC) [1]
2016-02-07 09:44:24 +00:00
Ruslan Makhmatkhanov
9c73f6b26d math/py-networkx: let it build with python3
Drop the python version limit, by asking user to uncheck some options,
that will not work with python3 for now.

PR:		204594
Submitted by:	John W. O'Brien <john@saltant.com>
Approved by:	dikshie@sfc.wide.ad.jp (maintainer)
2016-01-05 08:42:05 +00:00
Ruslan Makhmatkhanov
2f9e0ad0c5 math/py-networkx: update to 1.10
- update to 1.10
- add YAML option (on by default)
- remove gratuitous word from option descriptions
- USE_PYTHON=concurrent instead of setting EXAMPLESDIR
- alphabetize USE_PYTHON
- discard pkg-message given all options are enabled by default

While here limit python version to 2.x, because it's dependencies
graphics/py-graphviz and math/py-matplotlib failed to configure
with python3.

PR:		204594
Submitted by:	John W. O'Brien <john@saltant.com>
Approved by:	dikshie@sfc.wide.ad.jp (maintainer)
2015-11-19 18:36:58 +00:00
Thomas Zander
886e3ad113 Allow for many run dependencies to be OPTIONs,
as by upstream suggestion

PR:		201349
Submitted by:	john@saltant.com
Approved by:	maintainer timeout
2015-07-25 10:44:35 +00:00
Wen Heping
ad1156102c - Update to 1.9.1
PR:		200679
Submitted by:	yuri@rawbw.com
Approved by:	maintainer
2015-06-14 15:40:33 +00:00
Dmitry Marakasov
cce3a74ecd - Don't cat pkg-message from Makefiles
Approved by:	portmgr blanket
2015-05-27 00:15:04 +00:00
Marcus von Appen
214bd533a7 - Convert ports of math/ to new USES=python
Approved by:	portmgr (implicit)
2014-10-21 16:54:54 +00:00
Steve Wills
d1de335ba1 - Switch from easy_install to USE_PYDISTUTILS=yes
- Add EXAMPLES OPTION
- Use shebangfix

PR:		ports/187882
Submitted by:	Johannes Jost Meixner <xmj@chaot.net>
Approved by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
2014-03-28 19:41:53 +00:00
Dmitry Sivachenko
2b0bf6ce11 Fix plist when port is used with python-3.
Approved by:	maintainer
2013-12-23 15:09:56 +00:00
Baptiste Daroussin
ce5e457020 Add NO_STAGE all over the place in preparation for the staging support (cat: math) 2013-09-20 20:55:04 +00:00
Dmitry Sivachenko
83b977db3c Update to version 1.8.1.
Approved by:	maintainer
2013-08-23 12:33:02 +00:00
Wen Heping
47805b1371 - Update to 1.7
PR:		178972
Submitted by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
2013-05-26 14:52:24 +00:00
Pav Lucistnik
ba1a5e5dee - Kill examples handling in setup.py, since they are installed manually by port
Reported by:	pointyhat
2012-01-21 20:05:59 +00:00
Dmitry Sivachenko
ba4fd6e685 Update to version 1.6.
Use setup-tools.

Reviewed by:	maintainer
2012-01-10 14:12:20 +00:00
Li-Wen Hsu
bd18823475 - Update to 1.5 [1]
- Remove unneeded patch
- Respect DOCSDIR
- This port does not support NOPORTDOCS (yet)

PR:		ports/159140 [1]
Submitted by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
2011-08-15 19:05:54 +00:00
Martin Wilke
45be0f9e94 - Update to 1.4
PR:		154301
Submitted by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
Feature safe:	yes
2011-01-29 06:23:16 +00:00
Wen Heping
6f2b6dd37a - Update to 1.3
PR:		ports/153554
Submitted by:	dikshie <dikshie@sfc.wide.ad.jp> (maintainer)
2010-12-31 02:59:37 +00:00
Li-Wen Hsu
929701874b - Update to 1.2
PR:		ports/149282
Submitted by:	dikshie <dikshie AT sfc.wide.ad.jp> (maintainer)
2010-08-04 17:16:32 +00:00
Wen Heping
b64ed3c4b4 - Update to 1.0.1 and fix the fetch error
Submitted by:	dikshie@sfc.wide.ad.jp (maintainer,via Email)
2010-01-14 05:59:31 +00:00
Wen Heping
a5f5da7f60 - Update to 1.0
PR:		ports/142512
Submitted by:	Wen Heping <myself>
Approved by:	maintainer
2010-01-10 04:15:51 +00:00
Martin Wilke
1d228e5cbf - Update to 0.99
PR:		128991
Submitted by:	Wen Heping <wenheping@gmail.com>
Approved by:	maintainer
2008-11-23 16:26:39 +00:00
Li-Wen Hsu
cd5f0925eb Add py-networkx 0.36, tools for complex network.
PR:		ports/124620
Submitted by:	dikshie <dikshie AT sfc.wide.ad.jp>
2008-06-15 21:16:01 +00:00