mirror of
https://git.freebsd.org/ports.git
synced 2025-05-05 07:57:38 -04:00
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>
55 lines
1.9 KiB
Makefile
55 lines
1.9 KiB
Makefile
PORTNAME= django-hijack
|
|
PORTVERSION= 3.4.1
|
|
CATEGORIES= www python
|
|
MASTER_SITES= PYPI \
|
|
https://ports.caomhin.org/:npmcache
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX} \
|
|
${PORTNAME}-npm-cache-${DISTVERSION}${EXTRACT_SUFX}:npmcache
|
|
|
|
MAINTAINER= ports@caomhin.org
|
|
COMMENT= Allows Django superusers to login as other users
|
|
WWW= https://github.com/arteria/django-hijack
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-runner>0:devel/py-pytest-runner@${PY_FLAVOR} \
|
|
npm:www/npm
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pytest-django>0:devel/py-pytest-django@${PY_FLAVOR}
|
|
|
|
USES= gettext-tools:build python
|
|
USE_PYTHON= distutils autoplist
|
|
|
|
MAKE_ENV= npm_config_offline=true
|
|
TEST_ENV= DJANGO_SETTINGS_MODULES=hijack.tests.test_app.settings PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
NO_ARCH= yes
|
|
|
|
_MY_NPMCACHE= ${WRKDIR}/.npm
|
|
|
|
# Add remaining files (e.g. *.po) that aren't recorded by setuptools
|
|
# during install.
|
|
post-install:
|
|
@${FIND} ${STAGEDIR} -type f -o -type l | \
|
|
${SORT} | ${SED} -e 's|${STAGEDIR}||' \
|
|
> ${WRKDIR}/.PLIST.pymodtmp
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
|
|
|
|
# Helper target to make the generation of the npm cache easier
|
|
make-npm-cache: extract
|
|
@${RM} -r ${_MY_NPMCACHE}
|
|
@cd ${WRKSRC}/ \
|
|
&& ${SETENV} HOME=${WRKDIR} ${LOCALBASE}/bin/npm ci
|
|
@cd ${_MY_NPMCACHE} \
|
|
&& ${RM} _locks anonymous-cli-metrics.json
|
|
@cd ${WRKDIR} \
|
|
&& ${TAR} -czf ${PORTNAME}-npm-cache-${DISTVERSION}${EXTRACT_SUFX} .npm \
|
|
&& ${ECHO_CMD} "Please upload the file ${WRKDIR}/${PORTNAME}-npm-cache-${DISTVERSION}${EXTRACT_SUFX}"
|
|
|
|
.include <bsd.port.mk>
|