7a7be631b4
@pkgpath markers; from ajacoutot@ - tweak from me: @pkgpath markers for these go in PFRAG.python2.6-* files rather than straight in PLIST-*, so that they are only added to 2.6 packages, otherwise pkg_add -u will see that either 2.4 or 2.6 versions are valid updates and will have to ask every time, ok ajacoutot@
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
# $OpenBSD: Makefile,v 1.23 2010/09/03 12:34:55 sthen Exp $
|
|
|
|
SHARED_ONLY= Yes
|
|
|
|
COMMENT-main= LDAP client API for Python
|
|
COMMENT-examples= example programs for the LDAP client API for Python
|
|
|
|
V= 2.3.1
|
|
DISTNAME= python-ldap-${V}
|
|
PKGNAME-main= py-ldap-${V}
|
|
REVISION-main = 4
|
|
FULLPKGNAME-examples= py-ldap-examples-${V}
|
|
REVISION-examples = 3
|
|
FULLPKGPATH-examples= databases/py-ldap,-examples
|
|
|
|
CATEGORIES= databases
|
|
|
|
HOMEPAGE= http://python-ldap.sourceforge.net/
|
|
|
|
# Python
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
WANTLIB-main= crypto ssl
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=python-ldap/}
|
|
|
|
MODULES= lang/python
|
|
MODPY_VERSION= ${FLAVOR:S/python//}
|
|
|
|
LIB_DEPENDS-main= ldap_r.>=7,lber.>=7::databases/openldap \
|
|
sasl2.>=2::security/cyrus-sasl2
|
|
|
|
FLAVORS= python2.4 python2.6
|
|
FLAVOR?= python2.6
|
|
|
|
.if ${FLAVOR:L:Mpython2.4} && !${FLAVOR:L:Npython2.4}
|
|
MULTI_PACKAGES= -main
|
|
.elif ${FLAVOR:L:Mpython2.6} && !${FLAVOR:L:Npython2.6}
|
|
MULTI_PACKAGES= -main -examples
|
|
.else
|
|
ERRORS+= "Fatal: You must select one version: ${FLAVORS}"
|
|
.endif
|
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-ldap
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}; tar cf - Demo | tar xf - -C ${EXAMPLESDIR}
|
|
find ${WRKINST} -name \*.egg-info -exec rm {} \;
|
|
|
|
do-regress: fake
|
|
@cd ${WRKSRC}/Tests/Lib && ${MAKE_ENV} \
|
|
PYTHONPATH=${WRKINST}${MODPY_SITEPKG} \
|
|
${MODPY_BIN} ./test_ldapurl.py
|
|
|
|
.include <bsd.port.mk>
|