2010-11-14 19:22:45 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2010/11/15 00:22:53 espie Exp $
|
2004-01-29 12:13:37 -05:00
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
SHARED_ONLY= Yes
|
2003-11-01 10:24:06 -05:00
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
COMMENT-main= LDAP client API for Python
|
|
|
|
COMMENT-examples= example programs for the LDAP client API for Python
|
2003-11-01 10:24:06 -05:00
|
|
|
|
2008-01-14 06:11:33 -05:00
|
|
|
V= 2.3.1
|
2008-01-11 04:03:16 -05:00
|
|
|
DISTNAME= python-ldap-${V}
|
2010-08-30 16:59:41 -04:00
|
|
|
PKGNAME-main= py-ldap-${V}
|
2010-09-03 08:34:55 -04:00
|
|
|
REVISION-main = 4
|
2010-08-30 16:59:41 -04:00
|
|
|
FULLPKGNAME-examples= py-ldap-examples-${V}
|
|
|
|
REVISION-examples = 3
|
2010-02-26 14:10:57 -05:00
|
|
|
FULLPKGPATH-examples= databases/py-ldap,-examples
|
2003-11-01 10:24:06 -05:00
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
CATEGORIES= databases
|
2003-11-01 10:24:06 -05:00
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
HOMEPAGE= http://python-ldap.sourceforge.net/
|
|
|
|
|
2003-11-01 10:24:06 -05:00
|
|
|
# Python
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
WANTLIB-main= crypto ssl
|
|
|
|
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
|
|
|
|
|
2008-02-08 05:12:15 -05:00
|
|
|
MODULES= lang/python
|
|
|
|
MODPY_VERSION= ${FLAVOR:S/python//}
|
|
|
|
|
2010-11-14 19:22:45 -05:00
|
|
|
LIB_DEPENDS-main= databases/openldap \
|
|
|
|
security/cyrus-sasl2
|
|
|
|
WANTLIB-main += ldap_r>=7 lber>=7 sasl2>=2
|
2008-01-11 04:03:16 -05:00
|
|
|
|
2010-09-03 08:34:55 -04:00
|
|
|
FLAVORS= python2.4 python2.6
|
2010-08-30 16:59:41 -04:00
|
|
|
FLAVOR?= python2.6
|
2008-01-11 04:03:16 -05:00
|
|
|
|
2008-02-08 05:12:15 -05:00
|
|
|
.if ${FLAVOR:L:Mpython2.4} && !${FLAVOR:L:Npython2.4}
|
|
|
|
MULTI_PACKAGES= -main
|
2010-09-03 08:34:55 -04:00
|
|
|
.elif ${FLAVOR:L:Mpython2.6} && !${FLAVOR:L:Npython2.6}
|
2008-02-08 05:12:15 -05:00
|
|
|
MULTI_PACKAGES= -main -examples
|
|
|
|
.else
|
2008-01-11 04:03:16 -05:00
|
|
|
ERRORS+= "Fatal: You must select one version: ${FLAVORS}"
|
|
|
|
.endif
|
2004-12-18 09:28:35 -05:00
|
|
|
|
2008-01-11 04:03:16 -05:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-ldap
|
2004-02-17 15:47:45 -05:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}; tar cf - Demo | tar xf - -C ${EXAMPLESDIR}
|
2008-01-11 04:03:16 -05:00
|
|
|
find ${WRKINST} -name \*.egg-info -exec rm {} \;
|
2004-02-17 15:47:45 -05:00
|
|
|
|
|
|
|
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>
|