From: "Maxim Koltsov (maksbotan)" <maksbotan@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] gentoo-x86 commit in sys-libs/tevent/files: add-py-file-0.9.14.patch tevent-version.patch
Date: Sun, 12 Feb 2012 12:28:08 +0000 (UTC) [thread overview]
Message-ID: <20120212122808.04A0A2004B@flycatcher.gentoo.org> (raw)
maksbotan 12/02/12 12:28:08
Added: add-py-file-0.9.14.patch tevent-version.patch
Log:
Add patches to 0.9.14, fix bug 403239. Thanks to slepnoga
(Portage version: 2.1.10.44/cvs/Linux x86_64)
Revision Changes Path
1.1 sys-libs/tevent/files/add-py-file-0.9.14.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/tevent/files/add-py-file-0.9.14.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/tevent/files/add-py-file-0.9.14.patch?rev=1.1&content-type=text/plain
Index: add-py-file-0.9.14.patch
===================================================================
--- /dev/null
+++ /tevent.py
@@ -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 (
+ __version__,
+ backend_list,
+ Context,
+ Signal,
+ )
1.1 sys-libs/tevent/files/tevent-version.patch
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/tevent/files/tevent-version.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/tevent/files/tevent-version.patch?rev=1.1&content-type=text/plain
Index: tevent-version.patch
===================================================================
--- a/pytevent.c
+++ b/pytevent.c
@@ -761,4 +761,6 @@ void init_tevent(void)
Py_INCREF(&TeventFd_Type);
PyModule_AddObject(m, "Fd", (PyObject *)&TeventFd_Type);
+
+ PyModule_AddObject(m, "__version__", PyString_FromString(PACKAGE_VERSION));
}
--- a/wscript
+++ b/wscript
@@ -92,7 +92,14 @@
'pytevent.c',
deps='tevent',
enabled=True,
- realname='_tevent.so')
+ realname='_tevent.so',
+ cflags='-DPACKAGE_VERSION=\"%s\"' % VERSION)
+ # 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):
next reply other threads:[~2012-02-12 12:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-12 12:28 Maxim Koltsov (maksbotan) [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-09-13 19:00 [gentoo-commits] gentoo-x86 commit in sys-libs/tevent/files: add-py-file-0.9.14.patch tevent-version.patch Tomas Chvatal (scarabeus)
2012-09-20 17:53 Tomas Chvatal (scarabeus)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120212122808.04A0A2004B@flycatcher.gentoo.org \
--to=maksbotan@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox