2013-09-20 18:13:47 +02:00
|
|
|
# Created by: Gea-Suan Lin <gslin@gslin.org>
|
2009-11-25 17:15:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= pylibmc
|
2015-12-07 10:31:52 +01:00
|
|
|
PORTVERSION= 1.5.0
|
2009-11-25 17:15:17 +01:00
|
|
|
CATEGORIES= databases python
|
|
|
|
MASTER_SITES= CHEESESHOP
|
|
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
|
2014-06-30 11:51:53 +02:00
|
|
|
MAINTAINER= koobs@FreeBSD.org
|
2014-12-09 02:55:51 +01:00
|
|
|
COMMENT= Quick and small memcached client for Python
|
2009-11-25 17:15:17 +01:00
|
|
|
|
2014-06-30 11:51:53 +02:00
|
|
|
LICENSE= BSD3CLAUSE
|
2012-08-05 10:22:52 +02:00
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libmemcached.so:databases/libmemcached
|
|
|
|
TEST_DEPENDS= memcached:databases/memcached \
|
|
|
|
nosetests:devel/py-nose
|
2009-11-25 17:15:17 +01:00
|
|
|
|
2014-12-09 02:55:51 +01:00
|
|
|
USES= python
|
2015-12-07 10:31:52 +01:00
|
|
|
USE_PYTHON= autoplist distutils
|
2014-06-30 11:51:53 +02:00
|
|
|
|
|
|
|
MAKE_ENV+= LIBMEMCACHED="${LOCALBASE}"
|
2009-11-25 17:15:17 +01:00
|
|
|
|
2014-12-09 02:55:51 +01:00
|
|
|
post-install:
|
|
|
|
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pylibmc.so
|
|
|
|
|
2015-12-07 10:31:52 +01:00
|
|
|
# Note: memcached needs to be running first for this to work
|
|
|
|
|
|
|
|
do-test:
|
2014-12-09 02:55:51 +01:00
|
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
|
|
|
|
|
2009-11-25 17:15:17 +01:00
|
|
|
.include <bsd.port.mk>
|