summaryrefslogtreecommitdiff
path: root/debian/patches
diff options
context:
space:
mode:
authorChristoph Egger <christoph@debian.org>2011-11-15 15:57:37 +0100
committerChristoph Egger <christoph@debian.org>2011-11-15 15:57:37 +0100
commit3ca6188d7900d6e96c22b027d7e58abb8bc78bcb (patch)
tree773d3c49c61d09906ed4ebb12ef7b5726284717a /debian/patches
parent7a63889ff41abe5075b7ca8a9e35b0fde19560da (diff)
parent122bb8ba0b15478112fec10ebb3c0abf546d7fee (diff)
python-enet (0.0~svn24-1) unstable; urgency=low
* Updated to svn revision 24 [dgit import unpatched python-enet 0.0~svn24-1]
Diffstat (limited to 'debian/patches')
-rw-r--r--debian/patches/build-against-system-enet.patch39
-rw-r--r--debian/patches/series1
2 files changed, 40 insertions, 0 deletions
diff --git a/debian/patches/build-against-system-enet.patch b/debian/patches/build-against-system-enet.patch
new file mode 100644
index 0000000..c02d7f5
--- /dev/null
+++ b/debian/patches/build-against-system-enet.patch
@@ -0,0 +1,39 @@
+Description: Make python-enet build against system libenet 0.0~svn21-1
+Origin: debian
+Forwarded: no
+Last-Update: 2011-05-01
+
+--- python-enet-0.0~svn21.orig/setup.py
++++ python-enet-0.0~svn21/setup.py
+@@ -31,22 +31,22 @@ import sys
+
+ source_files = ["enet.pyx"]
+
+-_enet_files = glob.glob("enet/*.c")
++# _enet_files = glob.glob("enet/*.c")
+
+-if not _enet_files:
+- print("You need to download and extract the enet 1.3 source to enet/")
+- print("Download the source from: http://enet.bespin.org/SourceDistro.html")
+- print("See the README for more instructions")
+- sys.exit(1)
+-
+-source_files.extend(_enet_files)
++# if not _enet_files:
++# print("You need to download and extract the enet 1.3 source to enet/")
++# print("Download the source from: http://enet.bespin.org/SourceDistro.html")
++# print("See the README for more instructions")
++# sys.exit(1)
++#
++# source_files.extend(_enet_files)
+
+ define_macros = [('HAS_POLL', None),
+ ('HAS_FCNTL', None),
+ ('HAS_MSGHDR_FLAGS', None),
+ ('HAS_SOCKLEN_T', None) ]
+
+-libraries = []
++libraries = ['enet']
+
+ if sys.platform == 'win32':
+ define_macros.extend([('WIN32', None)])
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..deb9b7b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+build-against-system-enet.patch