Skip to content

Commit

Permalink
security/py-bcrypt: Fix *_DEPENDS: Remove py-six
Browse files Browse the repository at this point in the history
- Update WWW
- Convert to USE_PYTHON=pep517
- Convert to USE_PYTHON=pytest
- Bump PORTREVISION for dependency and package change
  • Loading branch information
sunpoet committed Dec 25, 2023
1 parent 80fb01f commit 9d7189c
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions security/py-bcrypt/Makefile
@@ -1,29 +1,28 @@
PORTNAME= bcrypt
PORTVERSION= 3.2.2
PORTREVISION= 1
CATEGORIES= security python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= python@FreeBSD.org
COMMENT= Modern password hashing for your software and your servers
WWW= https://github.com/pyca/bcrypt/
WWW= https://github.com/pyca/bcrypt

LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.1.0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.1.0:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}six>=1.4.1:devel/py-six@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=3.2.1:devel/py-pytest@${PY_FLAVOR}
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.1:devel/py-cffi@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools>=42.0.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.1:devel/py-cffi@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent distutils
USE_PYTHON= autoplist concurrent pep517 pytest

do-test:
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}

post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/bcrypt/_bcrypt*.so
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR} -name '*.so' -exec ${STRIP_CMD} {} +

.include <bsd.port.mk>

0 comments on commit 9d7189c

Please sign in to comment.