ports/databases/py-pylibmc/Makefile
Kubilay Kocak 05bb847615 databases/py-pylibmc: Update to 1.4.1, Allow Python 3 support
- Update to 1.4.1
- Allow Python 3 support [1]
- Update COMMENT to match PyPi upstream
- Add TESTS option, TEST_DEPENDS and regression-test target
- Strip shared library
- Patch setup.{py,cfg} to add allow 'test' command to run
- Update pkg-descr to match upstream
- pkg-descr: Update WWW: URL to match PyPi upstream

This update passes QA (test suite) under Python 2.7 and 3.4.

Changes:

  http://sendapatch.se/projects/pylibmc/changelog.html

[1] https://github.com/lericson/pylibmc/issues/146
2014-12-09 01:55:51 +00:00

34 lines
826 B
Makefile

# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$
PORTNAME= pylibmc
PORTVERSION= 1.4.1
CATEGORIES= databases python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= koobs@FreeBSD.org
COMMENT= Quick and small memcached client for Python
LICENSE= BSD3CLAUSE
LIB_DEPENDS= libmemcached.so:${PORTSDIR}/databases/libmemcached
TEST_DEPENDS= memcached:${PORTSDIR}/databases/memcached \
nosetests:${PORTSDIR}/devel/py-nose
OPTIONS_DEFINE= TESTS
TESTS_DESC= Install test suite dependencies
TESTS_BUILD_DEPENDS= ${TEST_DEPENDS}
USES= python
USE_PYTHON= distutils autoplist
MAKE_ENV+= LIBMEMCACHED="${LOCALBASE}"
post-install:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_pylibmc.so
regression-test: build
@cd ${WRKSRC} && ${PYTHON_CMD} ${PYDISTUTILS_SETUP} test
.include <bsd.port.mk>