From owner-svn-ports-head@FreeBSD.ORG Wed Oct 17 08:03:43 2012 Return-Path: Delivered-To: svn-ports-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 77AF396A; Wed, 17 Oct 2012 08:03:43 +0000 (UTC) (envelope-from rm@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5F4FC8FC16; Wed, 17 Oct 2012 08:03:43 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.4/8.14.4) with ESMTP id q9H83g5k025228; Wed, 17 Oct 2012 08:03:42 GMT (envelope-from rm@svn.freebsd.org) Received: (from rm@localhost) by svn.freebsd.org (8.14.4/8.14.4/Submit) id q9H83gl7025221; Wed, 17 Oct 2012 08:03:42 GMT (envelope-from rm@svn.freebsd.org) Message-Id: <201210170803.q9H83gl7025221@svn.freebsd.org> From: Ruslan Mahmatkhanov Date: Wed, 17 Oct 2012 08:03:42 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r306002 - in head/security: . py-pysha3 py-pysha3/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Oct 2012 08:03:43 -0000 Author: rm Date: Wed Oct 17 08:03:42 2012 New Revision: 306002 URL: http://svn.freebsd.org/changeset/ports/306002 Log: sha3 wrapper (keccak) for Python. The package is a wrapper around the optimized reference implementation from http://keccak.noekeon.org/ . Only the optimizations for 32 and 64bit platforms are used. The optimized SSE and ARM assembly variants are ignored for now. The module is a standalone version of the SHA-3 implemention of Python 3.4 (currently under development). WWW: http://bitbucket.org/tiran/pykeccak PR: 172606 Submitted by: Kubilay Kocak Feature safe: yes Added: head/security/py-pysha3/ head/security/py-pysha3/Makefile (contents, props changed) head/security/py-pysha3/distinfo (contents, props changed) head/security/py-pysha3/files/ head/security/py-pysha3/files/py3k-fix-pkg-plist.inc (contents, props changed) head/security/py-pysha3/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Wed Oct 17 06:16:43 2012 (r306001) +++ head/security/Makefile Wed Oct 17 08:03:42 2012 (r306002) @@ -755,6 +755,7 @@ SUBDIR += py-pycryptopp SUBDIR += py-pylibacl SUBDIR += py-pyme + SUBDIR += py-pysha3 SUBDIR += py-rijndael SUBDIR += py-rsa SUBDIR += py-ssh Added: head/security/py-pysha3/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysha3/Makefile Wed Oct 17 08:03:42 2012 (r306002) @@ -0,0 +1,31 @@ +# Created by: Kubilay Kocak +# $FreeBSD$ + +PORTNAME= pysha3 +PORTVERSION= 0.2.2 +CATEGORIES= security python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs.freebsd@gmail.com +COMMENT= SHA-3 (Keccak) for Python + +# Python3 ready +USE_PYTHON= yes +USE_PYDISTUTILS=yes + +PLIST_FILES= %%PYTHON_SITELIBDIR%%/_sha3.so \ + %%PYTHON_SITELIBDIR%%/sha3.py \ + %%PYTHON_SITELIBDIR%%/sha3.pyc \ + %%PYTHON_SITELIBDIR%%/sha3.pyo + +.include + +.if ${PYTHON_REL} >= 320 +.include "${FILESDIR}/py3k-fix-pkg-plist.inc" +.endif + +regression-test: build + @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test + +.include Added: head/security/py-pysha3/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysha3/distinfo Wed Oct 17 08:03:42 2012 (r306002) @@ -0,0 +1,2 @@ +SHA256 (pysha3-0.2.2.tar.gz) = afedc110ad816ec0d08feff62f5d674b9b90a4028209cbc93a3e362e9fd5a05c +SIZE (pysha3-0.2.2.tar.gz) = 46450 Added: head/security/py-pysha3/files/py3k-fix-pkg-plist.inc ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysha3/files/py3k-fix-pkg-plist.inc Wed Oct 17 08:03:42 2012 (r306002) @@ -0,0 +1,14 @@ +# When Python version is 3.2+ we rewrite all the filenames +# of TMPPLIST that end with .py[co], so that they conform +# to PEP 3147 (see http://www.python.org/dev/peps/pep-3147/) +PYMAGICTAG= ${PYTHON_CMD} -c 'import imp; print(imp.get_tag())' +add-plist-post: + @${AWK} '\ + /\.py[co]$$/ && !($$0 ~ "/" pc "/") {id = match($$0, /\/[^\/]+\.py[co]$$/); if (id != 0) {d = substr($$0, 1, RSTART - 1); dirs[d] = 1}; sub(/\.py[co]$$/, "." mt "&"); sub(/[^\/]+\.py[co]$$/, pc "/&"); print; next} \ + /^@dirrm / {d = substr($$0, 8); if (d in dirs) {print $$0 "/" pc}; print $$0; next} \ + {print} \ + END {if (sp in dirs) {print "@dirrm " sp "/" pc}} \ + ' \ + pc="__pycache__" mt="$$(${PYMAGICTAG})" sp="${PYTHON_SITELIBDIR:S,${PYTHONBASE}/,,g}" \ + ${TMPPLIST} > ${TMPPLIST}.pyc_tmp + @${MV} ${TMPPLIST}.pyc_tmp ${TMPPLIST} Added: head/security/py-pysha3/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-pysha3/pkg-descr Wed Oct 17 08:03:42 2012 (r306002) @@ -0,0 +1,9 @@ +sha3 wrapper (keccak) for Python. The package is a wrapper around the +optimized reference implementation from http://keccak.noekeon.org/ . Only +the optimizations for 32 and 64bit platforms are used. The optimized SSE and +ARM assembly variants are ignored for now. + +The module is a standalone version of the SHA-3 implemention of Python 3.4 +(currently under development). + +WWW: http://bitbucket.org/tiran/pykeccak