From d7aa7dad53394ef523c648e157aff560fdb1a5b9 Mon Sep 17 00:00:00 2001 From: Marcus von Appen Date: Sat, 21 Jun 2014 20:33:23 +0000 Subject: - Remove easy_install dependency - Fix file removal, so that recording the plist works properly with distutils - Bump PORTREVISION to enforce a cleanup for the easy_install references With hat: python@ Approved by: portmgr (implicit) --- net-im/py-skype4py/Makefile | 9 ++++----- net-im/py-skype4py/files/patch-setup.py | 26 ++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 5 deletions(-) create mode 100644 net-im/py-skype4py/files/patch-setup.py (limited to 'net-im/py-skype4py') diff --git a/net-im/py-skype4py/Makefile b/net-im/py-skype4py/Makefile index f76967f954d7..de1de91c479b 100644 --- a/net-im/py-skype4py/Makefile +++ b/net-im/py-skype4py/Makefile @@ -3,7 +3,7 @@ PORTNAME= Skype4Py PORTVERSION= 1.0.35 -#PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= net-im devel MASTER_SITES= CHEESESHOP PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} @@ -11,12 +11,11 @@ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} MAINTAINER= nivit@FreeBSD.org COMMENT= Skype (TM) API wrapper for Python -LICENSE= BSD +LICENSE= BSD3CLAUSE +USE_PYTHON= 2 +USE_PYDISTUTILS= yes PYDISTUTILS_AUTOPLIST= yes - -USE_PYDISTUTILS= easy_install -USE_PYTHON= 2 USES= zip .include diff --git a/net-im/py-skype4py/files/patch-setup.py b/net-im/py-skype4py/files/patch-setup.py new file mode 100644 index 000000000000..d669a8a34a04 --- /dev/null +++ b/net-im/py-skype4py/files/patch-setup.py @@ -0,0 +1,26 @@ +--- setup.py.orig 2013-05-25 11:00:56.000000000 +0200 ++++ setup.py 2014-06-21 22:27:11.000000000 +0200 +@@ -129,11 +129,21 @@ + print >>sys.stderr, 'epydoc not installed, skipping build_doc.' + + +-commands = {'build_doc': build_doc, +- 'install_lib': install_lib} ++commands = {'build_doc': build_doc} + + desc = open("README.rst").read() + "\n" + open("CHANGES.rst").read() + ++if sys.platform[:3] == 'win': ++ platform = 'windows' ++elif sys.platform == 'darwin': ++ platform = 'darwin' ++else: ++ platform = 'posix' ++path = os.path.join('Skype4Py', 'api') ++for name in os.listdir(path): ++ if not (name.startswith('__') or name.startswith(platform)): ++ os.remove(os.path.join(path, name)) ++ + # start the distutils setup + setup(name='Skype4Py', + version=VERSION, -- cgit v1.2.3