2004-08-04 15:46:14 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.4 2004/08/04 19:46:14 xsa Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
|
|
|
NOT_FOR_ARCHS= ${NO_SHARED_ARCHS}
|
2003-11-01 10:24:06 -05:00
|
|
|
|
|
|
|
COMMENT= "LDAP client API for Python"
|
|
|
|
|
2004-02-17 15:47:45 -05:00
|
|
|
VERSION= 2.0.0pre19
|
2003-11-01 10:24:06 -05:00
|
|
|
DISTNAME= python-ldap-${VERSION}
|
|
|
|
PKGNAME= py-ldap-${VERSION}
|
|
|
|
CATEGORIES= databases
|
|
|
|
|
|
|
|
HOMEPAGE= http://python-ldap.sourceforge.net/
|
|
|
|
|
|
|
|
MAINTAINER= Marc Balmer <marc@msys.ch>
|
|
|
|
|
|
|
|
# Python
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2004-02-17 15:47:45 -05:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
|
|
|
|
|
|
|
|
FLAVORS= 2.1 2.2 2.3
|
2003-11-01 10:24:06 -05:00
|
|
|
FLAVOR?= 2.1
|
|
|
|
|
2004-08-04 15:46:14 -04:00
|
|
|
MODULES= lang/python
|
2004-02-17 15:47:45 -05:00
|
|
|
|
|
|
|
.if ${FLAVOR} == "2.1" || ${FLAVOR} == "2.2" || ${FLAVOR} == "2.3"
|
2003-11-01 10:24:06 -05:00
|
|
|
MODPY_VERSION= ${FLAVOR}
|
2004-02-17 15:47:45 -05:00
|
|
|
.else
|
|
|
|
ERRORS+= "Fatal: Conflicting flavor: ${FLAVOR}"
|
2003-11-01 10:24:06 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
LIB_DEPENDS= ldap,lber::databases/openldap
|
|
|
|
|
2004-02-17 15:47:45 -05:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-ldap
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}; tar cf - Demo | tar xf - -C ${EXAMPLESDIR}
|
|
|
|
|
|
|
|
do-regress: fake
|
|
|
|
@cd ${WRKSRC}/Tests/Lib && ${MAKE_ENV} \
|
|
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
|
|
${MODPY_BIN} ./test_ldapurl.py
|
2003-11-01 10:24:06 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|