summaryrefslogtreecommitdiff
path: root/devel/codeville/patches/patch-ad
diff options
context:
space:
mode:
Diffstat (limited to 'devel/codeville/patches/patch-ad')
-rw-r--r--devel/codeville/patches/patch-ad28
1 files changed, 28 insertions, 0 deletions
diff --git a/devel/codeville/patches/patch-ad b/devel/codeville/patches/patch-ad
new file mode 100644
index 00000000000..1ef9d696776
--- /dev/null
+++ b/devel/codeville/patches/patch-ad
@@ -0,0 +1,28 @@
+$NetBSD: patch-ad,v 1.1 2008/06/13 04:55:53 bjs Exp $
+
+--- setup.py.orig 2007-07-13 14:51:23.000000000 -0400
++++ setup.py
+@@ -13,22 +13,9 @@ scripts = ["cdv", "cdvserver", "cdvpassw
+ plat_ext = []
+ data_files = [('share/doc/Codeville-' + Codeville.version, ['LICENSE.txt'])]
+
+-if sys.platform == 'win32':
+- from distutils.core import Extension
+- if sys.version < '2.4':
+- plat_ext = [Extension("Codeville.winrandom",
+- libraries = ['ws2_32', 'advapi32'],
+- sources = ["src/winrand.c"])]
+- for i in xrange(len(scripts)):
+- shutil.copy(scripts[i], scripts[i] + '.py')
+- scripts[i] = scripts[i] + '.py'
+- #os.copy('bin/winrandom.pyd', 'Codeville/winrandom.pyd')
+-else:
+- data_files[0][1].append('cdvserver.conf.sample')
+-
+ for arg in sys.argv:
+ if arg.find('wininst') >= 0:
+- data_files = [('', ['LICENSE.txt'])]
++ data_files = [(['LICENSE.txt'])]
+ for i in xrange(len(scripts)):
+ shutil.copy(scripts[i], scripts[i] + '.py')
+ scripts[i] = scripts[i] + '.py'