NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py311-unittest2 listed in the above command, you can pick from the names under the Packages section.
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
devel/py-unittest2: limit supported python versions
File
"/wrkdirs/usr/ports/devel/py-unittest2/work-py310/unittest2-1.1.0/unittest2/compatibility.py",
line 143, in <module>
class ChainMap(collections.MutableMapping):
AttributeError: module 'collections' has no attribute 'MutableMapping'
Approved by: portmgr blanket
Switch all pypi.python.org WWWs to a new PyPi home pypi.org where
they now redirect to anyway. All new urls checked to return 200,
I've fixed a couple of them in the process.
Approved by: portmgr blanket, mat
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
(Only the first 15 lines of the commit message are shown above )
devel/py-unittest2: Revive deleted port
This port is still of value. The built-in unittest in Python 2.7 is
missing features provided by unittest2 which backports from Python 3.x.
Example code which produces a failure with 2.7's built-in unittest:
import unittest2
import unittest
class ExampleUT(unittest.TestCase):
def test_unittest(self):
for i in [1, 2, 3]:
with self.subTest(i=i):
(Only the first 15 lines of the commit message are shown above )
devel/py-unittest2: mark deprecated
This port is outdated and it have no consumers anymore. The only
consumer was textproc/py-python-gettext and it was only needed
for Python versions lesser than 2.7.
Mark it deprecated and set to expire at 2016-09-21.
devel/py-unittest2: Update LICENSE w/ references
- Update LICENSE (BSD3CLAUSE)
This one was fun to find. As rm@ mentioned in a previous commit, no
LICENSE file exists in the Google Code or hg.python.org repositories.
There is a "New BSD License" reference on the unittest-ext homepage [1]
but wasnt a direct reference to the source in question, so it was not
considered good enough.
Gold was struck grepping BSD in the sources, which leads to the setup.py
header, that includes a URL reference to:
http://www.voidspace.org.uk/python/license.shtml
BSD 3-clause. Voila!
[1] http://code.google.com/p/unittest-ext/
Approved by: portmgr (blanket)
- convert to using auto-generated packing list
- limit python version to 2.x only
- bump PORTREVISION
Anticipating possible license question: I have no info about
clauses number used in the license for this port. There is no
license file in the distribution, and upstream web-page also
doesn't answering that.
unittest2 is a backport of the new features added to the
unittest testing framework in Python 2.7. It is tested to
on Python 2.4 - 2.7.
WWW: http://pypi.python.org/pypi/unittest2
Submitted by: Ruslan Mahmatkhanov <cvs-src@yandex.ru> (via GitHub)