aboutsummaryrefslogtreecommitdiff
path: root/security/py-pynacl
diff options
context:
space:
mode:
authorWen Heping <wen@FreeBSD.org>2016-03-06 02:14:06 +0000
committerWen Heping <wen@FreeBSD.org>2016-03-06 02:14:06 +0000
commit4541947007e756127846e90a54c654f6807a6590 (patch)
tree84d161bb2c88fef809d3148f4220a0ce790dce5b /security/py-pynacl
parentad3a2293bc7e58bd31de821ae845bf7bb26e31fd (diff)
downloadports-4541947007e756127846e90a54c654f6807a6590.tar.gz
ports-4541947007e756127846e90a54c654f6807a6590.zip
Notes
Diffstat (limited to 'security/py-pynacl')
-rw-r--r--security/py-pynacl/Makefile14
-rw-r--r--security/py-pynacl/distinfo4
-rw-r--r--security/py-pynacl/files/patch-setup.py14
3 files changed, 10 insertions, 22 deletions
diff --git a/security/py-pynacl/Makefile b/security/py-pynacl/Makefile
index 513d46268ed3..41a085c138ed 100644
--- a/security/py-pynacl/Makefile
+++ b/security/py-pynacl/Makefile
@@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= pynacl
-PORTVERSION= 0.3.0
+PORTVERSION= 1.0.1
CATEGORIES= security python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -14,15 +14,17 @@ COMMENT= PyNaCl is a Python binding to the Networking and Cryptography library
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-BUILD_DEPENDS= ${LOCALBASE}/lib/libnacl.a:${PORTSDIR}/security/nacl \
- ${PYTHON_PKGNAMEPREFIX}cffi>0:${PORTSDIR}/devel/py-cffi
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:${PORTSDIR}/devel/py-cffi
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>0:${PORTSDIR}/devel/py-cffi \
+ ${PYTHON_PKGNAMEPREFIX}six>0:${PORTSDIR}/devel/py-six
+BUILD_DEPENDS= ${RUN_DEPENDS}
+LIB_DEPENDS= libsodium.so:${PORTSDIR}/security/libsodium
USES= python
USE_PYTHON= autoplist distutils
-NO_ARCH= yes
+MAKE_ENV+= SODIUM_INSTALL=system
+CFLAGS+= -I ${LOCALBASE}/include
post-install:
- ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/nacl/_lib/_cffi__xfc5fefe5xfb751af7.so
+ ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/nacl/_sodium.so
.include <bsd.port.mk>
diff --git a/security/py-pynacl/distinfo b/security/py-pynacl/distinfo
index 28bccb7e9299..dab001d24f34 100644
--- a/security/py-pynacl/distinfo
+++ b/security/py-pynacl/distinfo
@@ -1,2 +1,2 @@
-SHA256 (PyNaCl-0.3.0.tar.gz) = 124997314455605f61afae6cf8b99b32d10f2dba22f114acb4c80d352eed76c2
-SIZE (PyNaCl-0.3.0.tar.gz) = 2569604
+SHA256 (PyNaCl-1.0.1.tar.gz) = d21d7a7358a85fb9b9ddadfbd1176c40fe199334fe2202881255e77f6d3773f4
+SIZE (PyNaCl-1.0.1.tar.gz) = 2710876
diff --git a/security/py-pynacl/files/patch-setup.py b/security/py-pynacl/files/patch-setup.py
deleted file mode 100644
index 440d371b752c..000000000000
--- a/security/py-pynacl/files/patch-setup.py
+++ /dev/null
@@ -1,14 +0,0 @@
---- setup.py.orig 2015-03-04 07:00:53 UTC
-+++ setup.py
-@@ -167,9 +167,10 @@ class build_clib(_build_clib):
- build_temp = os.path.abspath(self.build_temp)
-
- # Ensure our temporary build directory exists
-+ print("YURI build_temp="+build_temp)
- try:
- os.makedirs(build_temp)
-- except IOError:
-+ except:
- pass
-
- # Ensure all of our executanle files have their permission set