Gentoo Archives: gentoo-commits

From: "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-python/pycxx/files: pycxx-6.1.0-setup.py.patch pycxx-6.1.0-C_compatible_headers.patch pycxx-6.1.0-python-3.patch
Date: Wed, 05 Aug 2009 02:54:43
Message-Id: E1MYWeH-0005rC-2d@stork.gentoo.org
1 arfrever 09/08/05 02:54:41
2
3 Added: pycxx-6.1.0-setup.py.patch
4 pycxx-6.1.0-C_compatible_headers.patch
5 pycxx-6.1.0-python-3.patch
6 Log:
7 Version bump. Set SUPPORT_PYTHON_ABIS.
8 (Portage version: 13918-svn/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.1 dev-python/pycxx/files/pycxx-6.1.0-setup.py.patch
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-setup.py.patch?rev=1.1&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-setup.py.patch?rev=1.1&content-type=text/plain
15
16 Index: pycxx-6.1.0-setup.py.patch
17 ===================================================================
18 --- setup.py
19 +++ setup.py
20 @@ -3,22 +3,24 @@
21 from distutils.command.install import install
22 from distutils.core import setup
23
24 -headers = (glob( os.path.join( "CXX","*.hxx" ) )
25 - +glob( os.path.join( "CXX","*.h" ) ))
26 -sources = (glob( os.path.join( "Src", "*.cxx" ) )
27 - +glob( os.path.join( "Src", "*.c" ) ))
28 +headers = (glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.hxx" ) )
29 + +glob( os.path.join( "CXX", "Python%s" % sys.version_info[0], "*.h" ) )
30 + +[os.path.join( "CXX", "Version.hxx" )]
31 + +[os.path.join( "CXX", "WrapPython.h" )])
32 +sources = (glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.cxx" ) )
33 + +glob( os.path.join( "Src", "Python%s" % sys.version_info[0], "*.c" ) ))
34
35
36 class my_install (install):
37
38 def finalize_options (self):
39 - if not self.install_data or (len(self.install_data) < 8) :
40 - self.install_data = "$base/share/python$py_version_short"
41 + if not self.install_data or (len(self.install_data) < 8):
42 + self.install_data = "$base/share/python$py_version_short"
43 install.finalize_options (self)
44
45 def run (self):
46 - self.distribution.data_files = [("CXX", sources)]
47 - self.distribution.headers = headers
48 + self.distribution.data_files = [("CXX", sources)]
49 + self.distribution.headers = headers
50 install.run (self)
51
52
53
54
55
56 1.1 dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch
57
58 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch?rev=1.1&view=markup
59 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-C_compatible_headers.patch?rev=1.1&content-type=text/plain
60
61 Index: pycxx-6.1.0-C_compatible_headers.patch
62 ===================================================================
63 --- CXX/WrapPython.h
64 +++ CXX/WrapPython.h
65 @@ -1,3 +1,4 @@
66 +/*
67 //-----------------------------------------------------------------------------
68 //
69 // Copyright (c) 1998 - 2007, The Regents of the University of California
70 @@ -34,27 +35,28 @@
71 // DAMAGE.
72 //
73 //-----------------------------------------------------------------------------
74 +*/
75
76 #ifndef __PyCXX_wrap_python_hxx__
77 #define __PyCXX_wrap_python_hxx__
78
79 -// On some platforms we have to include time.h to get select defined
80 +/* On some platforms we have to include time.h to get select defined */
81 #if !defined(__WIN32__) && !defined(WIN32) && !defined(_WIN32) && !defined(_WIN64)
82 #include <sys/time.h>
83 #endif
84
85 -// Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h
86 +/* Prevent multiple conflicting definitions of swab from stdlib.h and unistd.h */
87 #if defined(__sun) || defined(sun)
88 #if defined(_XPG4)
89 #undef _XPG4
90 #endif
91 #endif
92
93 -// Python.h will redefine these and generate warning in the process
94 +/* Python.h will redefine these and generate warning in the process */
95 #undef _XOPEN_SOURCE
96 #undef _POSIX_C_SOURCE
97
98 -// pull in python definitions
99 +/* pull in python definitions */
100 #include <Python.h>
101
102 #endif
103
104
105
106 1.1 dev-python/pycxx/files/pycxx-6.1.0-python-3.patch
107
108 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-python-3.patch?rev=1.1&view=markup
109 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-python/pycxx/files/pycxx-6.1.0-python-3.patch?rev=1.1&content-type=text/plain
110
111 Index: pycxx-6.1.0-python-3.patch
112 ===================================================================
113 --- Lib/__init__.py
114 +++ Lib/__init__.py
115 @@ -34,8 +34,8 @@
116 # DAMAGE.
117 #
118 #-----------------------------------------------------------------------------
119 -print """CXX is installed.
120 +print("""CXX is installed.
121 The support files you need are in the PYTHON/etc/CXX directory.
122 The include files are in the distutils include path already.
123 Just refer to them as "CXX/CXX_Objects.h", etc.
124 -"""
125 +""")