Index: head/security/py-ed25519ll/Makefile =================================================================== --- head/security/py-ed25519ll/Makefile (revision 489437) +++ head/security/py-ed25519ll/Makefile (revision 489438) @@ -1,19 +1,29 @@ # Created by: Nicola Vitale # $FreeBSD$ PORTNAME= ed25519ll PORTVERSION= 0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security -MASTER_SITES= CHEESESHOP +#MASTER_SITES= CHEESESHOP +# bitbucket master contains py3 fixes made after last tagged release +MASTER_SITES= https://bitbucket.org/dholth/${PORTNAME}/get/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= 37719c56b7b6 MAINTAINER= nivit@FreeBSD.org COMMENT= Low-level ctypes wrapper for Ed25519 digital signatures LICENSE= MIT +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>=0:devel/py-nose@${FLAVOR} + USES= python -USE_PYTHON= distutils autoplist +USE_PYTHON= autoplist distutils flavors + +WRKSRC= ${WRKDIR}/dholth-${PORTNAME}-${DISTNAME} + +do-test: + cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test .include Index: head/security/py-ed25519ll/distinfo =================================================================== --- head/security/py-ed25519ll/distinfo (revision 489437) +++ head/security/py-ed25519ll/distinfo (revision 489438) @@ -1,2 +1,3 @@ -SHA256 (ed25519ll-0.6.tar.gz) = 7b75b7e6f4c7e7c172229aa78b13436ca9834ef5893598b49c7163d7ba55adf9 -SIZE (ed25519ll-0.6.tar.gz) = 74782 +TIMESTAMP = 1514161132 +SHA256 (37719c56b7b6.tar.gz) = e701e82bd2352c6a947e7b28469ca4491e8924285e730bfff44e18fc6e90a2a8 +SIZE (37719c56b7b6.tar.gz) = 113875 Index: head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py =================================================================== --- head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py (nonexistent) +++ head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py (revision 489438) @@ -0,0 +1,15 @@ +--- ed25519ll/djbec.py.orig 2017-12-25 20:10:10 UTC ++++ ed25519ll/djbec.py +@@ -36,10 +36,8 @@ def H(m): + return hashlib.sha512(m).digest() + + def expmod(b, e, m): +- if e == 0: return 1 +- t = expmod(b, e // 2, m) ** 2 % m +- if e & 1: t = (t * b) % m +- return t ++ # the built-in pow is much faster ++ return pow(b,e,m) + + # Can probably get some extra speedup here by replacing this with + # an extended-euclidean, but performance seems OK without that Property changes on: head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property