Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 6 Jan 2019 04:34:30 +0000 (UTC)
From:      Steve Wills <swills@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r489438 - in head/security/py-ed25519ll: . files
Message-ID:  <201901060434.x064YUqW056000@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: swills
Date: Sun Jan  6 04:34:29 2019
New Revision: 489438
URL: https://svnweb.freebsd.org/changeset/ports/489438

Log:
  security/py-ed25519ll: update to support py3 and flavours
  
  PR:		224582
  Submitted by:	Shane <FreeBSD@ShaneWare.Biz>
  Approved by:	maintainer timeout (nivit, >1 year)

Added:
  head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py   (contents, props changed)
Modified:
  head/security/py-ed25519ll/Makefile   (contents, props changed)
  head/security/py-ed25519ll/distinfo   (contents, props changed)

Modified: head/security/py-ed25519ll/Makefile
==============================================================================
--- head/security/py-ed25519ll/Makefile	Sun Jan  6 04:14:25 2019	(r489437)
+++ head/security/py-ed25519ll/Makefile	Sun Jan  6 04:34:29 2019	(r489438)
@@ -3,17 +3,27 @@
 
 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 <bsd.port.mk>

Modified: head/security/py-ed25519ll/distinfo
==============================================================================
--- head/security/py-ed25519ll/distinfo	Sun Jan  6 04:14:25 2019	(r489437)
+++ head/security/py-ed25519ll/distinfo	Sun Jan  6 04:34:29 2019	(r489438)
@@ -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

Added: head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/security/py-ed25519ll/files/patch-ed25519ll_djbec.py	Sun Jan  6 04:34:29 2019	(r489438)
@@ -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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201901060434.x064YUqW056000>