2007-04-07 08:19:20 +02:00
|
|
|
# New ports collection makefile for: py-gnutls
|
|
|
|
# Date created: Apr. 06, 2007
|
|
|
|
# Whom: Li-Wen Hsu <lwhsu@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gnutls
|
2007-05-26 09:06:59 +02:00
|
|
|
PORTVERSION= 1.1.1
|
2007-07-01 10:56:16 +02:00
|
|
|
PORTREVISION= 1
|
2007-04-07 08:19:20 +02:00
|
|
|
CATEGORIES= security python
|
2007-05-26 09:06:59 +02:00
|
|
|
MASTER_SITES= CHEESESHOP
|
2007-04-07 08:19:20 +02:00
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
DISTNAME= python-gnutls-${PORTVERSION}
|
|
|
|
|
|
|
|
MAINTAINER= lwhsu@FreeBSD.org
|
|
|
|
COMMENT= Python wrapper for the GNUTLS library
|
|
|
|
|
2007-07-01 10:56:16 +02:00
|
|
|
LIB_DEPENDS= gnutls.13:${PORTSDIR}/security/gnutls
|
2007-04-07 08:19:20 +02:00
|
|
|
|
|
|
|
USE_PYTHON= yes
|
|
|
|
USE_PYDISTUTILS= yes
|
|
|
|
|
|
|
|
EXAMPLESDIR= ${TARGETDIR}/share/examples/py-${PORTNAME}
|
|
|
|
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} -e "s|include_dirs=\[\]|include_dirs=\['${LOCALBASE}/include'\]|" ${WRKSRC}/setup.py
|
|
|
|
${REINPLACE_CMD} -e "s|library_dirs=\[\]|library_dirs=\['${LOCALBASE}/lib'\]|" ${WRKSRC}/setup.py
|
|
|
|
${FIND} ${WRKSRC}/gnutls/library -type f | ${XARGS} ${REINPLACE_CMD} -e 's/libgnutls.so.13/libgnutls.so.15/g'
|
|
|
|
${FIND} ${WRKSRC}/gnutls/library -type f | ${XARGS} ${REINPLACE_CMD} -e 's/libgnutls-extra.so.13/libgnutls-extra.so.15/g'
|
|
|
|
|
2007-06-22 14:13:06 +02:00
|
|
|
.if !defined(NOPORTEXAMPLES)
|
2007-04-07 08:19:20 +02:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
${CP} -R ${WRKSRC}/examples/ ${EXAMPLESDIR}
|
2007-06-22 14:13:06 +02:00
|
|
|
.endif
|
2007-04-07 08:19:20 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${PYTHON_REL} < 250
|
|
|
|
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/ctypes/__init__.py:${PORTSDIR}/devel/py-ctypes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|