diff options
author | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-16 15:07:57 +0000 |
---|---|---|
committer | Ruslan Makhmatkhanov <rm@FreeBSD.org> | 2012-10-16 15:07:57 +0000 |
commit | fd8ae00f5823ddbb23293a20d50c1b6d95a24319 (patch) | |
tree | 5e83da90d17399507f3272da74ba9d6e379e57ab | |
parent | 1aba59f53d342a5ab54d9ca5a692f822ed8ba130 (diff) | |
download | ports-fd8ae00f5823ddbb23293a20d50c1b6d95a24319.tar.gz ports-fd8ae00f5823ddbb23293a20d50c1b6d95a24319.zip |
- turn csjon to optional dependency (default off)
- bump PORTREVISION because of dependency change
while here:
- trim Makefile header
- add license (AL2)
- limit python version to 2.x only
- do not try to remove directories, that we didn't installed
PR: 171579 (based on)
Submitted by: Brian Coca <bcoca+fbsd at tablethotels dot com>
Approved by: Attila Nagy <bra at fsn dot hu> (maintainer)
Feature safe: yes
Notes
Notes:
svn path=/head/; revision=305979
-rw-r--r-- | devel/py-jsonrpclib/Makefile | 23 | ||||
-rw-r--r-- | devel/py-jsonrpclib/pkg-plist | 3 |
2 files changed, 16 insertions, 10 deletions
diff --git a/devel/py-jsonrpclib/Makefile b/devel/py-jsonrpclib/Makefile index 128c1b4ea81a..ed4abc8b0a92 100644 --- a/devel/py-jsonrpclib/Makefile +++ b/devel/py-jsonrpclib/Makefile @@ -1,12 +1,9 @@ -# New ports collection makefile for: py-jsonrpclib -# Date created: 09. 21. 2011 -# Whom: Attila Nagy <bra@fsn.hu> -# +# Created by: Attila Nagy <bra@fsn.hu> # $FreeBSD$ -# PORTNAME= jsonrpclib PORTVERSION= 0.1.3 +PORTREVISION= 1 CATEGORIES= devel python MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -14,9 +11,19 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= bra@fsn.hu COMMENT= Implements the JSON-RPC 2.0 proposed specification in pure Python -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/cjson.so:${PORTSDIR}/devel/py-cjson +LICENSE= AL2 -USE_PYTHON= yes -USE_PYDISTUTILS= yes +USE_PYTHON= -2.7 +USE_PYDISTUTILS=yes + +OPTIONSFILE= ${PORT_DBDIR}/${PORTNAME}/options +OPTIONS_DEFINE= CJSON +CJSON_DESC= Use cjson instead of json or simplejson + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MCJSON} +RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}cjson>0:${PORTSDIR}/devel/py-cjson +.endif .include <bsd.port.mk> diff --git a/devel/py-jsonrpclib/pkg-plist b/devel/py-jsonrpclib/pkg-plist index 4c1042464d08..8830f5e06216 100644 --- a/devel/py-jsonrpclib/pkg-plist +++ b/devel/py-jsonrpclib/pkg-plist @@ -16,5 +16,4 @@ %%PYTHON_SITELIBDIR%%/jsonrpclib/jsonrpc.py %%PYTHON_SITELIBDIR%%/jsonrpclib/jsonrpc.pyc %%PYTHON_SITELIBDIR%%/jsonrpclib/jsonrpc.pyo -@dirrmtry %%PYTHON_SITELIBDIR%%/jsonrpclib -@dirrmtry %%PYTHON_SITELIBDIR%% +@dirrm %%PYTHON_SITELIBDIR%%/jsonrpclib |