libtevent/FED02-fix-pytevent-build.patch
2011-12-06 20:46:04 -05:00

51 lines
1.8 KiB
Diff

diff -ruN tevent-0.9.14.old/tevent.py tevent-0.9.14/tevent.py
--- tevent-0.9.14.old/tevent.py 1969-12-31 19:00:00.000000000 -0500
+++ tevent-0.9.14/tevent.py 2011-12-06 20:07:08.386154680 -0500
@@ -0,0 +1,29 @@
+#!/usr/bin/python
+#
+# Python integration for tevent
+#
+# Copyright (C) Jelmer Vernooij 2011
+#
+# ** NOTE! The following LGPL license applies to the tevent
+# ** library. This does NOT imply that all of Samba is released
+# ** under the LGPL
+#
+# This library is free software; you can redistribute it and/or
+# modify it under the terms of the GNU Lesser General Public
+# License as published by the Free Software Foundation; either
+# version 3 of the License, or (at your option) any later version.
+#
+# This library is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+# Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this library; if not, see <http://www.gnu.org/licenses/>.
+
+from _tevent import (
+ backend_list,
+ Context,
+ Signal,
+ )
+
diff -ruN tevent-0.9.14.old/wscript tevent-0.9.14/wscript
--- tevent-0.9.14.old/wscript 2011-08-10 02:37:18.000000000 -0400
+++ tevent-0.9.14/wscript 2011-12-06 20:11:42.354645305 -0500
@@ -94,6 +94,13 @@
enabled=True,
realname='_tevent.so')
+ # install out various python scripts for use by make test
+ bld.SAMBA_SCRIPT('tevent_python',
+ pattern='tevent.py',
+ installdir='python')
+
+ bld.INSTALL_WILDCARD('${PYTHONDIR}', 'tevent.py', flat=False)
+
def test(ctx):
'''test tevent'''