mirror of
https://git.freebsd.org/ports.git
synced 2025-05-15 00:31:51 -04:00
* Python 3.6 is now gone from the Ports so remove the cruft that was required for it. * Add a workaround to make the port still buildable with Python's distutils by using the "setup.py" from the previous release. Changelog: https://github.com/django-auth-ldap/django-auth-ldap/releases/tag/4.0.0 MFH: 2022Q1
39 lines
1.2 KiB
Makefile
39 lines
1.2 KiB
Makefile
PORTNAME= django-auth-ldap
|
|
PORTVERSION= 4.0.0
|
|
CATEGORIES= www security python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj32-
|
|
|
|
MAINTAINER= kai@FreeBSD.org
|
|
COMMENT= LDAP integration for django.contrib.auth
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>=3.4:devel/py-setuptools_scm@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=2.2:www/py-django32@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}ldap>=3.1:net/py-ldap@${PY_FLAVOR}
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
|
|
CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj31-django-auth-ldap \
|
|
${PYTHON_PKGNAMEPREFIX}django-auth-ldap
|
|
|
|
NO_ARCH= yes
|
|
PORTDOCS= *
|
|
OPTIONS_DEFINE= DOCS
|
|
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR}
|
|
DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E"
|
|
|
|
# Workaround to make the port still buildable with "distutils"
|
|
post-extract:
|
|
@${CP} ${FILESDIR}/setup.py ${WRKSRC}/
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
(cd ${WRKSRC}/build/sphinx/html && \
|
|
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \
|
|
"! -name .buildinfo -and ! -name objects.inv")
|
|
|
|
.include <bsd.port.mk>
|