On 2026/11/25 14:37, Stuart Henderson wrote: > There are some issues with this, I will take a look
new tar attached, this one is ok sthen
comments inline
| $ diff -r py-pysequoia{.orig,}
| diff -uNp -r py-pysequoia.orig/Makefile py-pysequoia/Makefile
| --- py-pysequoia.orig/Makefile Wed Nov 25 14:36:11 2026
| +++ py-pysequoia/Makefile Wed Nov 25 15:00:08 2026
| @@ -2,31 +2,22 @@ COMMENT= OpenPGP facilities using Sequoia-PGP library
|
| MODPY_DISTV= 0.1.36
| DISTNAME= pysequoia-${MODPY_DISTV}
| -DISTFILES= pysequoia-${MODPY_DISTV}${EXTRACT_SUFX}
this is the default
| -PKGNAME= ${MODPY_PY_PREFIX}${DISTNAME}
| +PKGNAME= py-${DISTNAME}
just use py- here, the module takes care of substs
| CATEGORIES= security devel
|
| -HOMEPAGE= https://pypi.org/project/pysequoia/
| +HOMEPAGE= https://github.com/wiktor-k/pysequoia
this is listed as the homepage on the pypi project, and has a lot more
info about using it
| # Apache 2
| PERMIT_PACKAGE= Yes
|
| -COMPILER= base-clang ports-gcc
| -COMPILER_LANGS= c
this is not C
| +WANTLIB += ${MODCARGO_WANTLIB} m
move up to traditional place
| MODULES= lang/python
| MODPY_PI= Yes
| MODPY_PYBUILD= maturin
|
| -WANTLIB += ${MODCARGO_WANTLIB} m
| -MAKE_ENV += ${MODCARGO_ENV}
MODCARGO_ENV is already passed via MODCARGO_CARGO_RUN which is used in
MODCARGO_BUILD_TARGET etc, which are themselves used by python.port.mk
for maturin or setuptools-rust ports
| -BUILD_DEPENDS= devel/py-setuptools devel/py-setuptools-rust
this uses maturin not setuptools-rust
| -
| RUN_DEPENDS= security/py-cryptography
| -
| -PORTHOME= ${WRKDIR}
for Python ports this PORTHOME setting is generally only needed for
tests in certain cases where it tries writing to $HOME. pysequoia
tests run ok without so let's drop it.
| .include "crates.inc"
|
py-pysequoia.tgz
Description: application/tar-gz
