From a7835bfec6233fcc137ff38b1f99c5ed7eb57bd7 Mon Sep 17 00:00:00 2001 From: rm Date: Mon, 22 Dec 2014 20:59:33 +0000 Subject: devel/py-palm: add missing dependencies - add missing dependencies - limit python version to 2.x - let it build with protobuf 2.6 - misc non-functional changes - bump PORTREVISION because of dependency changes Approved by: vg (maintainer) --- devel/py-palm/Makefile | 14 +++++++++++--- devel/py-palm/pkg-descr | 1 + 2 files changed, 12 insertions(+), 3 deletions(-) (limited to 'devel') diff --git a/devel/py-palm/Makefile b/devel/py-palm/Makefile index 27e5b752d223..a3e484332b81 100644 --- a/devel/py-palm/Makefile +++ b/devel/py-palm/Makefile @@ -3,19 +3,27 @@ PORTNAME= palm PORTVERSION= 0.1.7 +PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= vg@FreeBSD.org -COMMENT= Protobufs Are Lightweight Messages +COMMENT= Fast Protocol Buffer library for Python LICENSE= BSD2CLAUSE -USES= python +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}protobuf>0:${PORTSDIR}/devel/py-protobuf +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}simpleparse>0:${PORTSDIR}/devel/py-simpleparse + +USES= python:2 USE_PYTHON= autoplist distutils +post-patch: + @${REINPLACE_CMD} -e 's|"protobuf>=2.4.1,<=2.4.999"|"protobuf>=2.4.1"|' \ + ${WRKSRC}/setup.py + post-install: - @${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/site-packages/${PORTNAME}/${PORTNAME}.so + @${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/palm/palm.so .include diff --git a/devel/py-palm/pkg-descr b/devel/py-palm/pkg-descr index 719773dfa2ef..d024ada29db3 100644 --- a/devel/py-palm/pkg-descr +++ b/devel/py-palm/pkg-descr @@ -2,6 +2,7 @@ PALM is a library for using Google's protocol buffers in Python. It has a fast core written in C with a thin Cython binding to Python. The goal of palm was to make improvements to the Google reference implementation, namely: + * Make the library significantly faster * Clean up the API -- cgit