b6ec06f079
Ports 02f27a83b4 fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters. USE_LOCALE was introduced to let ports use another
locale if they needed it. The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.
Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE. The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.
PR: 295945
Exp-run by: antoine
44 lines
1.2 KiB
Makefile
44 lines
1.2 KiB
Makefile
PORTNAME= ldap0
|
|
PORTVERSION= 1.4.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= net python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= girgen@FreeBSD.org
|
|
COMMENT= Module package for implementing LDAP clients
|
|
WWW= https://gitlab.com/ae-dir/python-ldap0
|
|
|
|
LICENSE= PSFL
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyasn1>=0.4.5:devel/py-pyasn1@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}pyasn1-modules>=0.2.5:devel/py-pyasn1-modules@${PY_FLAVOR}
|
|
# Cyrus needs PLAIN / CRAM-MD5 / DIGEST-MD5 enabled
|
|
TEST_DEPENDS= ${LOCALBASE}/libexec/slapd:net/openldap${OPENLDAP_VER}-server
|
|
|
|
USES= ldap:24 localbase python
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
USE_GITLAB= yes
|
|
GL_ACCOUNT= ae-dir
|
|
GL_PROJECT= python-ldap0
|
|
GL_TAGNAME= 70b3aad8593d34c82f6bca1eca53f1c8938d345d
|
|
|
|
PYDISTUTILS_BUILD_TARGET= build_ext
|
|
PYDISTUTILS_BUILDARGS+= --inplace
|
|
|
|
# Add LOGLEVEL=DEBUG to debug tests
|
|
TEST_ENV= LDAPNOINIT=1 \
|
|
SLAPD=${LOCALBASE}/libexec/slapd \
|
|
SCHEMA=${LOCALBASE}/etc/openldap/schema \
|
|
BIN=${LOCALBASE}/bin \
|
|
SBIN=${LOCALBASE}/sbin \
|
|
TMP=${WRKDIR}
|
|
|
|
post-install:
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/_libldap0*.so
|
|
|
|
do-test:
|
|
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
.include <bsd.port.mk>
|