mirror of
https://git.freebsd.org/ports.git
synced 2025-07-13 23:39:20 -04:00
- 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
34 lines
826 B
Makefile
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>
|