summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2013-11-05 17:37:48 +0000
committerjoerg <joerg@pkgsrc.org>2013-11-05 17:37:48 +0000
commitd68822f21380503fb02263abf56811082d9ef8ef (patch)
treef668f26dc2461914aacab98f5651ce0edec47986 /security
parent84613da02221d6dccbbed4b62d150993ca530c18 (diff)
downloadpkgsrc-d68822f21380503fb02263abf56811082d9ef8ef.tar.gz
Install as egg to fix the 2.6 installation.
Diffstat (limited to 'security')
-rw-r--r--security/py-ecdsa/Makefile6
-rw-r--r--security/py-ecdsa/PLIST7
-rw-r--r--security/py-ecdsa/distinfo3
-rw-r--r--security/py-ecdsa/patches/patch-setup.py13
4 files changed, 24 insertions, 5 deletions
diff --git a/security/py-ecdsa/Makefile b/security/py-ecdsa/Makefile
index a535ae80cbf..647d5be44ae 100644
--- a/security/py-ecdsa/Makefile
+++ b/security/py-ecdsa/Makefile
@@ -1,7 +1,9 @@
-# $NetBSD: Makefile,v 1.2 2013/10/29 08:12:09 gls Exp $
+# $NetBSD: Makefile,v 1.3 2013/11/05 17:37:48 joerg Exp $
DISTNAME= python-ecdsa-0.10
PKGNAME= ${PYPKGPREFIX}-ecdsa-0.10
+EGG_NAME= ecdsa-0.0.0
+PKGREVISION= 1
CATEGORIES= security
MASTER_SITES= https://github.com/warner/python-ecdsa/archive/
FETCH_USING= curl
@@ -19,5 +21,5 @@ REPLACE.python.old= /usr/bin/env python
REPLACE.python.new= ${PYTHONBIN}
REPLACE_FILES.python= ecdsa/ecdsa.py ecdsa/ellipticcurve.py ecdsa/numbertheory.py
-.include "../../lang/python/distutils.mk"
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/security/py-ecdsa/PLIST b/security/py-ecdsa/PLIST
index 6833eaea643..93c136b3348 100644
--- a/security/py-ecdsa/PLIST
+++ b/security/py-ecdsa/PLIST
@@ -1,5 +1,8 @@
-@comment $NetBSD: PLIST,v 1.1 2013/10/20 12:47:11 gls Exp $
-${PYSITELIB}/ecdsa-0.0.0-py2.7.egg-info
+@comment $NetBSD: PLIST,v 1.2 2013/11/05 17:37:48 joerg Exp $
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
${PYSITELIB}/ecdsa/__init__.py
${PYSITELIB}/ecdsa/__init__.pyc
${PYSITELIB}/ecdsa/__init__.pyo
diff --git a/security/py-ecdsa/distinfo b/security/py-ecdsa/distinfo
index d4a2e63813b..7573d462cdb 100644
--- a/security/py-ecdsa/distinfo
+++ b/security/py-ecdsa/distinfo
@@ -1,5 +1,6 @@
-$NetBSD: distinfo,v 1.2 2013/10/29 08:12:09 gls Exp $
+$NetBSD: distinfo,v 1.3 2013/11/05 17:37:48 joerg Exp $
SHA1 (python-ecdsa-0.10.tar.gz) = 0b8581e319968da231ea5a61d0e0c2986a846bec
RMD160 (python-ecdsa-0.10.tar.gz) = 4cf6cdacfc534362680bbaffbe06d812bada2d0e
Size (python-ecdsa-0.10.tar.gz) = 45575 bytes
+SHA1 (patch-setup.py) = 484475e066b3c05b9ee8dcb81a456088fb485bf1
diff --git a/security/py-ecdsa/patches/patch-setup.py b/security/py-ecdsa/patches/patch-setup.py
new file mode 100644
index 00000000000..569a3e6483c
--- /dev/null
+++ b/security/py-ecdsa/patches/patch-setup.py
@@ -0,0 +1,13 @@
+$NetBSD: patch-setup.py,v 1.1 2013/11/05 17:37:48 joerg Exp $
+
+--- setup.py.orig 2013-11-05 08:00:38.000000000 +0000
++++ setup.py
+@@ -1,6 +1,7 @@
+ #!/usr/bin/env python
+ import os, subprocess, re
+-from distutils.core import setup, Command
++from setuptools import setup
++from distutils.core import Command
+ from distutils.command.sdist import sdist as _sdist
+ from ecdsa.six import print_
+