aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2014-12-23 04:59:33 +0800
committerrm <rm@FreeBSD.org>2014-12-23 04:59:33 +0800
commita7835bfec6233fcc137ff38b1f99c5ed7eb57bd7 (patch)
tree002568151e24e3c4e25a9336dc5f839f4559b769 /devel
parent8c8be9d61719865f299aa23d0625e472562f3a7d (diff)
downloadfreebsd-ports-gnome-a7835bfec6233fcc137ff38b1f99c5ed7eb57bd7.tar.gz
freebsd-ports-gnome-a7835bfec6233fcc137ff38b1f99c5ed7eb57bd7.tar.zst
freebsd-ports-gnome-a7835bfec6233fcc137ff38b1f99c5ed7eb57bd7.zip
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)
Diffstat (limited to 'devel')
-rw-r--r--devel/py-palm/Makefile14
-rw-r--r--devel/py-palm/pkg-descr1
2 files changed, 12 insertions, 3 deletions
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 <bsd.port.mk>
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