[Bug 257920] [NEW PORT] devel/py-pycapnp: Cython wrapping of the C++ Cap'n Proto library

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 31 Aug 2021 01:35:50 +0000
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=257920

Kubilay Kocak <koobs_at_FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|[NEW PORT]                  |[NEW PORT]
                   |devel/py-pycapnp: Python    |devel/py-pycapnp: Cython
                   |bindings of the Cap'n Proto |wrapping of the C++ Cap'n
                   |library                     |Proto library
              Flags|maintainer-feedback+        |maintainer-feedback?(soboma
                   |                            |x_at_FreeBSD.org)
           Severity|Affects Some People         |Affects Only Me

--- Comment #5 from Kubilay Kocak <koobs_at_FreeBSD.org> ---
Review items:

- Match COMMENT to upstream titl,e modulo portlint needs. In this case: "Cython
wrapping of the C++ Cap'n Proto library"

- Package installs files into non Python version specific (shared) locations,
port needs to be made concurrent (installation) safe using
USE_PYTHON=concurrent [1]

- Upstream says it wants a C++14 compiler, probably worth using
USES=compiler:<lang> here. [2]

- Upstream mentions needing special compiler args for 32-bit, does this also
apply to us? [3]

- Using system (ports) LIB_DEPENDS is preferable, by default this uses the
bundled libpcap code. Use --force-system-libcapnp" added to
PYDISTUTILS_BUILDARGS [4]

- Add TEST_DEPENDS and (do-)test target when a package ships a test suite. In
this case TEST_DEPENDS=pytest and do-test: cd ${WRKSRC} && ${PYTHON_CMD} -m
pytest -v -rs -o addopts= should get it to run (please confirm QA)

[1] "console_scripts": ["capnpc-cython = capnp._gen:main"]
[2]  C++14 supported compiler 
[3] 32-bit Linux requires that capnproto be compiled with -fPIC. This is
usually set correctly unless you are compiling canproto yourself. This is also
called -DCMAKE_POSITION_INDEPENDENT_CODE=1 for cmake.
[4] setup.py: force_system_libcapnp = "--force-system-libcapnp" in sys.argv

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Tue Aug 31 2021 - 01:35:50 UTC

Original text of this message