summaryrefslogtreecommitdiffstats
path: root/meta/packages/python
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2008-08-25 20:33:55 +0000
committerRichard Purdie <richard@openedhand.com>2008-08-25 20:33:55 +0000
commit16e6877c4ce53fd3be88dd77263a03e7d88c3163 (patch)
tree831004ca391e04c8deaace28b15cb602c0848c77 /meta/packages/python
parent07eeb6a8b6d671db7566f839ab22a26b6f118077 (diff)
downloadpoky-16e6877c4ce53fd3be88dd77263a03e7d88c3163.tar.gz
python: Promote from meta-extras to meta
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5092 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/packages/python')
-rw-r--r--meta/packages/python/fix-path.inc22
-rw-r--r--meta/packages/python/python-2.5-manifest.inc306
-rw-r--r--meta/packages/python/python-2.5.2/autohell.patch50
-rw-r--r--meta/packages/python/python-2.5.2/bindir-libdir.patch20
-rw-r--r--meta/packages/python/python-2.5.2/crosscompile.patch110
-rw-r--r--meta/packages/python/python-2.5.2/default-is-optimized.patch13
-rw-r--r--meta/packages/python/python-2.5.2/enable-ctypes-module.patch106
-rw-r--r--meta/packages/python/python-2.5.2/fix-tkinter-detection.patch41
-rw-r--r--meta/packages/python/python-2.5.2/sitebranding.patch21
-rw-r--r--meta/packages/python/python-2.5.2/sitecustomize.py44
-rw-r--r--meta/packages/python/python-gst/python-path.patch24
-rw-r--r--meta/packages/python/python-gst_0.10.8.bb26
-rw-r--r--meta/packages/python/python-imaging/path.patch37
-rw-r--r--meta/packages/python/python-imaging_1.1.6.bb30
-rw-r--r--meta/packages/python/python-native-2.5.1/bindir-libdir.patch18
-rw-r--r--meta/packages/python/python-native-2.5.1/catchup-with-swig.patch13
-rw-r--r--meta/packages/python/python-native-2.5.1/cross-distutils.patch36
-rw-r--r--meta/packages/python/python-native-2.5.1/default-is-optimized.patch13
-rw-r--r--meta/packages/python/python-native-2.5.1/dont-modify-shebang-line.patch16
-rw-r--r--meta/packages/python/python-native-2.5.1/fix-staging.patch38
-rw-r--r--meta/packages/python/python-native-2.5.2/bindir-libdir.patch18
-rw-r--r--meta/packages/python/python-native-2.5.2/cross-distutils.patch36
-rw-r--r--meta/packages/python/python-native-2.5.2/default-is-optimized.patch13
-rw-r--r--meta/packages/python/python-native-2.5.2/dont-modify-shebang-line.patch16
-rw-r--r--meta/packages/python/python-native_2.5.1.bb34
-rw-r--r--meta/packages/python/python-pycairo_1.4.0.bb19
-rw-r--r--meta/packages/python/python-pygobject-native_2.12.3.bb7
-rw-r--r--meta/packages/python/python-pygobject/python-path.patch23
-rw-r--r--meta/packages/python/python-pygobject_2.12.3.bb24
-rw-r--r--meta/packages/python/python-pygtk/acinclude.m490
-rw-r--r--meta/packages/python/python-pygtk/fix-gtkunixprint.patch16
-rw-r--r--meta/packages/python/python-pygtk/nodocs.patch13
-rw-r--r--meta/packages/python/python-pygtk/prevent_to_get_display_during_import.patch14
-rw-r--r--meta/packages/python/python-pygtk/python-pygtk2/acinclude.m490
-rw-r--r--meta/packages/python/python-pygtk_2.10.4.bb61
-rw-r--r--meta/packages/python/python-scons-native_0.97.bb16
-rw-r--r--meta/packages/python/python-scons_0.97.bb10
-rw-r--r--meta/packages/python/python_2.5.2.bb105
38 files changed, 1589 insertions, 0 deletions
diff --git a/meta/packages/python/fix-path.inc b/meta/packages/python/fix-path.inc
new file mode 100644
index 0000000000..0738c59ada
--- /dev/null
+++ b/meta/packages/python/fix-path.inc
@@ -0,0 +1,22 @@
1do_install_append() {
2 for i in `find ${D} -name "*.py"` ; do \
3 sed -i -e s:${D}::g $i
4 done
5
6 for i in `find ${D} -name "*.la"` ; do \
7 sed -i -e s:${STAGING_LIBDIR}:${libdir}:g $i
8 done
9
10 if test -e ${D}${bindir} ; then
11 for i in ${D}${bindir}/* ; do \
12 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
13 done
14 fi
15
16 if test -e ${D}${sbindir} ; then
17 for i in ${D}${sbindir}/* ; do \
18 sed -i -e s:${STAGING_BINDIR_NATIVE}:${bindir}:g $i
19 done
20 fi
21}
22
diff --git a/meta/packages/python/python-2.5-manifest.inc b/meta/packages/python/python-2.5-manifest.inc
new file mode 100644
index 0000000000..c098494d17
--- /dev/null
+++ b/meta/packages/python/python-2.5-manifest.inc
@@ -0,0 +1,306 @@
1########################################################################################################################
2### AUTO-GENERATED by './generate-manifest-2.5.py' [(C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>] on Fri Mar 21 18:43:05 2008
3###
4### Visit THE Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy
5###
6### Warning: Manual edits will be lost!
7###
8########################################################################################################################
9
10
11PROVIDES+="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-tests python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-sqlite3-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
12
13PACKAGES="python-profile python-threading python-distutils python-textutils python-codecs python-ctypes python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-tests python-core-dbg python-resource python-devel python-math python-hotshot python-unixadmin python-syslog python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-smtpd python-html python-readline python-subprocess python-pydoc python-logging python-mailbox python-xml python-mime python-sqlite3 python-sqlite3-tests python-unittest python-stringold python-robotparser python-lib-old-and-deprecated python-compile python-debugger python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
14
15DESCRIPTION_python-profile="Python Basic Profiling Support"
16PR_python-profile="ml0"
17RDEPENDS_python-profile="python-core"
18FILES_python-profile="${libdir}/python2.5/profile.* ${libdir}/python2.5/pstats.* "
19
20DESCRIPTION_python-threading="Python Threading & Synchronization Support"
21PR_python-threading="ml0"
22RDEPENDS_python-threading="python-core python-lang"
23FILES_python-threading="${libdir}/python2.5/_threading_local.* ${libdir}/python2.5/dummy_thread.* ${libdir}/python2.5/dummy_threading.* ${libdir}/python2.5/mutex.* ${libdir}/python2.5/threading.* ${libdir}/python2.5/Queue.* "
24
25DESCRIPTION_python-distutils="Python Distribution Utilities"
26PR_python-distutils="ml0"
27RDEPENDS_python-distutils="python-core"
28FILES_python-distutils="${libdir}/python2.5/config ${libdir}/python2.5/distutils "
29
30DESCRIPTION_python-textutils="Python Option Parsing, Text Wrapping and Comma-Separated-Value Support"
31PR_python-textutils="ml0"
32RDEPENDS_python-textutils="python-core python-io python-re python-stringold"
33FILES_python-textutils="${libdir}/python2.5/lib-dynload/_csv.so ${libdir}/python2.5/csv.* ${libdir}/python2.5/optparse.* ${libdir}/python2.5/textwrap.* "
34
35DESCRIPTION_python-codecs="Python Codecs, Encodings & i18n Support"
36PR_python-codecs="ml0"
37RDEPENDS_python-codecs="python-core python-lang"
38FILES_python-codecs="${libdir}/python2.5/codecs.* ${libdir}/python2.5/encodings ${libdir}/python2.5/gettext.* ${libdir}/python2.5/locale.* ${libdir}/python2.5/lib-dynload/_locale.so ${libdir}/python2.5/lib-dynload/unicodedata.so ${libdir}/python2.5/stringprep.* ${libdir}/python2.5/xdrlib.* "
39
40DESCRIPTION_python-ctypes="Python C Types Support"
41PR_python-ctypes="ml0"
42RDEPENDS_python-ctypes="python-core"
43FILES_python-ctypes="${libdir}/python2.5/ctypes ${libdir}/python2.5/lib-dynload/_ctypes.so "
44
45DESCRIPTION_python-pickle="Python Persistence Support"
46PR_python-pickle="ml0"
47RDEPENDS_python-pickle="python-core python-codecs python-io python-re"
48FILES_python-pickle="${libdir}/python2.5/pickle.* ${libdir}/python2.5/shelve.* ${libdir}/python2.5/lib-dynload/cPickle.so "
49
50DESCRIPTION_python-datetime="Python Calendar and Time support"
51PR_python-datetime="ml0"
52RDEPENDS_python-datetime="python-core python-codecs"
53FILES_python-datetime="${libdir}/python2.5/_strptime.* ${libdir}/python2.5/calendar.* ${libdir}/python2.5/lib-dynload/datetime.so "
54
55DESCRIPTION_python-core="Python Interpreter and core modules (needed!)"
56PR_python-core="ml0"
57RDEPENDS_python-core=""
58FILES_python-core="${libdir}/python2.5/__future__.* ${libdir}/python2.5/copy.* ${libdir}/python2.5/copy_reg.* ${libdir}/python2.5/ConfigParser.* ${libdir}/python2.5/getopt.* ${libdir}/python2.5/linecache.* ${libdir}/python2.5/new.* ${libdir}/python2.5/os.* ${libdir}/python2.5/posixpath.* ${libdir}/python2.5/struct.* ${libdir}/python2.5/warnings.* ${libdir}/python2.5/site.* ${libdir}/python2.5/stat.* ${libdir}/python2.5/UserDict.* ${libdir}/python2.5/UserList.* ${libdir}/python2.5/UserString.* ${libdir}/python2.5/lib-dynload/binascii.so ${libdir}/python2.5/lib-dynload/_struct.so ${libdir}/python2.5/lib-dynload/time.so ${libdir}/python2.5/lib-dynload/xreadlines.so ${libdir}/python2.5/types.* ${bindir}/python* "
59
60DESCRIPTION_python-io="Python Low-Level I/O"
61PR_python-io="ml0"
62RDEPENDS_python-io="python-core python-math"
63FILES_python-io="${libdir}/python2.5/lib-dynload/_socket.so ${libdir}/python2.5/lib-dynload/_ssl.so ${libdir}/python2.5/lib-dynload/select.so ${libdir}/python2.5/lib-dynload/termios.so ${libdir}/python2.5/lib-dynload/cStringIO.so ${libdir}/python2.5/pipes.* ${libdir}/python2.5/socket.* ${libdir}/python2.5/tempfile.* ${libdir}/python2.5/StringIO.* "
64
65DESCRIPTION_python-compiler="Python Compiler Support"
66PR_python-compiler="ml0"
67RDEPENDS_python-compiler="python-core"
68FILES_python-compiler="${libdir}/python2.5/compiler "
69
70DESCRIPTION_python-compression="Python High Level Compression Support"
71PR_python-compression="ml0"
72RDEPENDS_python-compression="python-core python-zlib"
73FILES_python-compression="${libdir}/python2.5/gzip.* ${libdir}/python2.5/zipfile.* "
74
75DESCRIPTION_python-re="Python Regular Expression APIs"
76PR_python-re="ml0"
77RDEPENDS_python-re="python-core"
78FILES_python-re="${libdir}/python2.5/re.* ${libdir}/python2.5/sre.* ${libdir}/python2.5/sre_compile.* ${libdir}/python2.5/sre_constants* ${libdir}/python2.5/sre_parse.* "
79
80DESCRIPTION_python-xmlrpc="Python XMLRPC Support"
81PR_python-xmlrpc="ml0"
82RDEPENDS_python-xmlrpc="python-core python-xml python-netserver python-lang"
83FILES_python-xmlrpc="${libdir}/python2.5/xmlrpclib.* ${libdir}/python2.5/SimpleXMLRPCServer.* "
84
85DESCRIPTION_python-terminal="Python Terminal Controlling Support"
86PR_python-terminal="ml0"
87RDEPENDS_python-terminal="python-core python-io"
88FILES_python-terminal="${libdir}/python2.5/pty.* ${libdir}/python2.5/tty.* "
89
90DESCRIPTION_python-email="Python Email Support"
91PR_python-email="ml0"
92RDEPENDS_python-email="python-core python-io python-re python-mime python-audio python-image"
93FILES_python-email="${libdir}/python2.5/email "
94
95DESCRIPTION_python-image="Python Graphical Image Handling"
96PR_python-image="ml0"
97RDEPENDS_python-image="python-core"
98FILES_python-image="${libdir}/python2.5/colorsys.* ${libdir}/python2.5/imghdr.* ${libdir}/python2.5/lib-dynload/imageop.so ${libdir}/python2.5/lib-dynload/rgbimg.so "
99
100DESCRIPTION_python-tests="Python Tests"
101PR_python-tests="ml0"
102RDEPENDS_python-tests="python-core"
103FILES_python-tests="${libdir}/python2.5/test "
104
105DESCRIPTION_python-core-dbg="Python core module debug information"
106PR_python-core-dbg="ml0"
107RDEPENDS_python-core-dbg="python-core"
108FILES_python-core-dbg="${libdir}/python2.5/lib-dynload/.debug ${bindir}/.debug ${libdir}/.debug "
109
110DESCRIPTION_python-resource="Python Resource Control Interface"
111PR_python-resource="ml0"
112RDEPENDS_python-resource="python-core"
113FILES_python-resource="${libdir}/python2.5/lib-dynload/resource.so "
114
115DESCRIPTION_python-devel="Python Development Package"
116PR_python-devel="ml0"
117RDEPENDS_python-devel="python-core"
118FILES_python-devel="${includedir} ${libdir}/python2.5/config "
119
120DESCRIPTION_python-math="Python Math Support"
121PR_python-math="ml0"
122RDEPENDS_python-math="python-core"
123FILES_python-math="${libdir}/python2.5/lib-dynload/cmath.so ${libdir}/python2.5/lib-dynload/math.so ${libdir}/python2.5/lib-dynload/_random.so ${libdir}/python2.5/random.* ${libdir}/python2.5/sets.* "
124
125DESCRIPTION_python-hotshot="Python Hotshot Profiler"
126PR_python-hotshot="ml0"
127RDEPENDS_python-hotshot="python-core"
128FILES_python-hotshot="${libdir}/python2.5/hotshot ${libdir}/python2.5/lib-dynload/_hotshot.so "
129
130DESCRIPTION_python-unixadmin="Python Unix Administration Support"
131PR_python-unixadmin="ml0"
132RDEPENDS_python-unixadmin="python-core"
133FILES_python-unixadmin="${libdir}/python2.5/lib-dynload/nis.so ${libdir}/python2.5/lib-dynload/grp.so ${libdir}/python2.5/lib-dynload/pwd.so ${libdir}/python2.5/getpass.* "
134
135DESCRIPTION_python-syslog="Python's Syslog Interface"
136PR_python-syslog="ml0"
137RDEPENDS_python-syslog="python-core"
138FILES_python-syslog="${libdir}/python2.5/lib-dynload/syslog.so "
139
140DESCRIPTION_python-tkinter="Python Tcl/Tk Bindings"
141PR_python-tkinter="ml0"
142RDEPENDS_python-tkinter="python-core"
143FILES_python-tkinter="${libdir}/python2.5/lib-dynload/_tkinter.so ${libdir}/python2.5/lib-tk "
144
145DESCRIPTION_python-gdbm="Python GNU Database Support"
146PR_python-gdbm="ml0"
147RDEPENDS_python-gdbm="python-core"
148FILES_python-gdbm="${libdir}/python2.5/lib-dynload/gdbm.so "
149
150DESCRIPTION_python-fcntl="Python's fcntl Interface"
151PR_python-fcntl="ml0"
152RDEPENDS_python-fcntl="python-core"
153FILES_python-fcntl="${libdir}/python2.5/lib-dynload/fcntl.so "
154
155DESCRIPTION_python-netclient="Python Internet Protocol Clients"
156PR_python-netclient="ml0"
157RDEPENDS_python-netclient="python-core python-crypt python-datetime python-io python-lang python-logging python-mime"
158FILES_python-netclient="${libdir}/python2.5/*Cookie*.* ${libdir}/python2.5/base64.* ${libdir}/python2.5/cookielib.* ${libdir}/python2.5/ftplib.* ${libdir}/python2.5/gopherlib.* ${libdir}/python2.5/hmac.* ${libdir}/python2.5/httplib.* ${libdir}/python2.5/mimetypes.* ${libdir}/python2.5/nntplib.* ${libdir}/python2.5/poplib.* ${libdir}/python2.5/smtplib.* ${libdir}/python2.5/telnetlib.* ${libdir}/python2.5/urllib.* ${libdir}/python2.5/urllib2.* ${libdir}/python2.5/urlparse.* "
159
160DESCRIPTION_python-pprint="Python Pretty-Print Support"
161PR_python-pprint="ml0"
162RDEPENDS_python-pprint="python-core"
163FILES_python-pprint="${libdir}/python2.5/pprint.* "
164
165DESCRIPTION_python-netserver="Python Internet Protocol Servers"
166PR_python-netserver="ml0"
167RDEPENDS_python-netserver="python-core python-netclient"
168FILES_python-netserver="${libdir}/python2.5/cgi.* ${libdir}/python2.5/BaseHTTPServer.* ${libdir}/python2.5/SimpleHTTPServer.* ${libdir}/python2.5/SocketServer.* "
169
170DESCRIPTION_python-curses="Python Curses Support"
171PR_python-curses="ml0"
172RDEPENDS_python-curses="python-core"
173FILES_python-curses="${libdir}/python2.5/curses ${libdir}/python2.5/lib-dynload/_curses.so ${libdir}/python2.5/lib-dynload/_curses_panel.so "
174
175DESCRIPTION_python-smtpd="Python Simple Mail Transport Daemon"
176PR_python-smtpd="ml0"
177RDEPENDS_python-smtpd="python-core python-netserver python-email python-mime"
178FILES_python-smtpd="${bindir}/smtpd.* "
179
180DESCRIPTION_python-html="Python HTML Processing"
181PR_python-html="ml0"
182RDEPENDS_python-html="python-core"
183FILES_python-html="${libdir}/python2.5/formatter.* ${libdir}/python2.5/htmlentitydefs.* ${libdir}/python2.5/htmllib.* ${libdir}/python2.5/markupbase.* ${libdir}/python2.5/sgmllib.* "
184
185DESCRIPTION_python-readline="Python Readline Support"
186PR_python-readline="ml0"
187RDEPENDS_python-readline="python-core"
188FILES_python-readline="${libdir}/python2.5/lib-dynload/readline.so ${libdir}/python2.5/rlcompleter.* "
189
190DESCRIPTION_python-subprocess="Python Subprocess Support"
191PR_python-subprocess="ml0"
192RDEPENDS_python-subprocess="python-core python-io python-re python-fcntl python-pickle"
193FILES_python-subprocess="${libdir}/python2.5/subprocess.* "
194
195DESCRIPTION_python-pydoc="Python Interactive Help Support"
196PR_python-pydoc="ml0"
197RDEPENDS_python-pydoc="python-core python-lang python-stringold python-re"
198FILES_python-pydoc="${bindir}/pydoc ${libdir}/python2.5/pydoc.* "
199
200DESCRIPTION_python-logging="Python Logging Support"
201PR_python-logging="ml0"
202RDEPENDS_python-logging="python-core python-io python-lang python-stringold"
203FILES_python-logging="${libdir}/python2.5/logging "
204
205DESCRIPTION_python-mailbox="Python Mailbox Format Support"
206PR_python-mailbox="ml0"
207RDEPENDS_python-mailbox="python-core python-mime"
208FILES_python-mailbox="${libdir}/python2.5/mailbox.* "
209
210DESCRIPTION_python-xml="Python basic XML support."
211PR_python-xml="ml0"
212RDEPENDS_python-xml="python-core python-re python-netclient"
213FILES_python-xml="${libdir}/python2.5/lib-dynload/pyexpat.so ${libdir}/python2.5/xml ${libdir}/python2.5/xmllib.* "
214
215DESCRIPTION_python-mime="Python MIME Handling APIs"
216PR_python-mime="ml0"
217RDEPENDS_python-mime="python-core python-io"
218FILES_python-mime="${libdir}/python2.5/mimetools.* ${libdir}/python2.5/uu.* ${libdir}/python2.5/quopri.* ${libdir}/python2.5/rfc822.* "
219
220DESCRIPTION_python-sqlite3="Python Sqlite3 Database Support"
221PR_python-sqlite3="ml2"
222RDEPENDS_python-sqlite3="python-core python-datetime python-lang python-crypt python-io python-threading python-zlib"
223FILES_python-sqlite3="${libdir}/python2.5/lib-dynload/_sqlite3.so ${libdir}/python2.5/sqlite3/dbapi2.* ${libdir}/python2.5/sqlite3/__init__.* "
224
225DESCRIPTION_python-sqlite3-tests="Python Sqlite3 Database Support Tests"
226PR_python-sqlite3-tests="ml0"
227RDEPENDS_python-sqlite3-tests="python-core python-sqlite3"
228FILES_python-sqlite3-tests="${libdir}/python2.5/sqlite3/test "
229
230DESCRIPTION_python-unittest="Python Unit Testing Framework"
231PR_python-unittest="ml0"
232RDEPENDS_python-unittest="python-core python-stringold python-lang"
233FILES_python-unittest="${libdir}/python2.5/unittest.* "
234
235DESCRIPTION_python-stringold="Python String APIs [deprecated]"
236PR_python-stringold="ml0"
237RDEPENDS_python-stringold="python-core python-re"
238FILES_python-stringold="${libdir}/python2.5/lib-dynload/strop.so ${libdir}/python2.5/string.* "
239
240DESCRIPTION_python-robotparser="Python robots.txt parser"
241PR_python-robotparser="ml0"
242RDEPENDS_python-robotparser="python-core python-netclient"
243FILES_python-robotparser="${libdir}/python2.5/robotparser.* "
244
245DESCRIPTION_python-lib-old-and-deprecated="Python Deprecated Libraries"
246PR_python-lib-old-and-deprecated="ml0"
247RDEPENDS_python-lib-old-and-deprecated="python-core"
248FILES_python-lib-old-and-deprecated="${libdir}/python2.5/lib-old "
249
250DESCRIPTION_python-compile="Python Bytecode Compilation Support"
251PR_python-compile="ml0"
252RDEPENDS_python-compile="python-core"
253FILES_python-compile="${libdir}/python2.5/py_compile.* ${libdir}/python2.5/compileall.* "
254
255DESCRIPTION_python-debugger="Python Debugger"
256PR_python-debugger="ml0"
257RDEPENDS_python-debugger="python-core python-io python-lang python-re python-stringold python-shell"
258FILES_python-debugger="${libdir}/python2.5/bdb.* ${libdir}/python2.5/pdb.* "
259
260DESCRIPTION_python-shell="Python Shell-Like Functionality"
261PR_python-shell="ml0"
262RDEPENDS_python-shell="python-core python-re"
263FILES_python-shell="${libdir}/python2.5/cmd.* ${libdir}/python2.5/commands.* ${libdir}/python2.5/dircache.* ${libdir}/python2.5/fnmatch.* ${libdir}/python2.5/glob.* ${libdir}/python2.5/popen2.* ${libdir}/python2.5/shutil.* "
264
265DESCRIPTION_python-bsddb="Python Berkeley Database Bindings"
266PR_python-bsddb="ml0"
267RDEPENDS_python-bsddb="python-core"
268FILES_python-bsddb="${libdir}/python2.5/bsddb "
269
270DESCRIPTION_python-mmap="Python Memory-Mapped-File Support"
271PR_python-mmap="ml0"
272RDEPENDS_python-mmap="python-core python-io"
273FILES_python-mmap="${libdir}/python2.5/lib-dynload/mmap.so "
274
275DESCRIPTION_python-zlib="Python zlib Support."
276PR_python-zlib="ml0"
277RDEPENDS_python-zlib="python-core"
278FILES_python-zlib="${libdir}/python2.5/lib-dynload/zlib.so "
279
280DESCRIPTION_python-db="Python File-Based Database Support"
281PR_python-db="ml0"
282RDEPENDS_python-db="python-core"
283FILES_python-db="${libdir}/python2.5/anydbm.* ${libdir}/python2.5/dumbdbm.* ${libdir}/python2.5/whichdb.* "
284
285DESCRIPTION_python-crypt="Python Basic Cryptographic and Hashing Support"
286PR_python-crypt="ml1"
287RDEPENDS_python-crypt="python-core"
288FILES_python-crypt="${libdir}/python2.5/hashlib.* ${libdir}/python2.5/md5.* ${libdir}/python2.5/sha.* ${libdir}/python2.5/lib-dynload/crypt.so ${libdir}/python2.5/lib-dynload/_hashlib.so ${libdir}/python2.5/lib-dynload/_sha256.so ${libdir}/python2.5/lib-dynload/_sha512.so "
289
290DESCRIPTION_python-idle="Python Integrated Development Environment"
291PR_python-idle="ml0"
292RDEPENDS_python-idle="python-core python-tkinter"
293FILES_python-idle="${bindir}/idle ${libdir}/python2.5/idlelib "
294
295DESCRIPTION_python-lang="Python Low-Level Language Support"
296PR_python-lang="ml0"
297RDEPENDS_python-lang="python-core"
298FILES_python-lang="${libdir}/python2.5/lib-dynload/array.so ${libdir}/python2.5/lib-dynload/parser.so ${libdir}/python2.5/lib-dynload/operator.so ${libdir}/python2.5/lib-dynload/_weakref.so ${libdir}/python2.5/lib-dynload/itertools.so ${libdir}/python2.5/lib-dynload/collections.so ${libdir}/python2.5/lib-dynload/_bisect.so ${libdir}/python2.5/lib-dynload/_heapq.so ${libdir}/python2.5/atexit.* ${libdir}/python2.5/bisect.* ${libdir}/python2.5/code.* ${libdir}/python2.5/codeop.* ${libdir}/python2.5/dis.* ${libdir}/python2.5/heapq.* ${libdir}/python2.5/inspect.* ${libdir}/python2.5/keyword.* ${libdir}/python2.5/opcode.* ${libdir}/python2.5/repr.* ${libdir}/python2.5/token.* ${libdir}/python2.5/tokenize.* ${libdir}/python2.5/traceback.* ${libdir}/python2.5/linecache.* ${libdir}/python2.5/weakref.* "
299
300DESCRIPTION_python-audio="Python Audio Handling"
301PR_python-audio="ml0"
302RDEPENDS_python-audio="python-core"
303FILES_python-audio="${libdir}/python2.5/wave.* ${libdir}/python2.5/chunk.* ${libdir}/python2.5/sndhdr.* ${libdir}/python2.5/lib-dynload/ossaudiodev.so ${libdir}/python2.5/lib-dynload/audioop.so "
304
305
306
diff --git a/meta/packages/python/python-2.5.2/autohell.patch b/meta/packages/python/python-2.5.2/autohell.patch
new file mode 100644
index 0000000000..32977955d4
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/autohell.patch
@@ -0,0 +1,50 @@
1Index: Python-2.5.2/configure.in
2===================================================================
3--- Python-2.5.2.orig/configure.in
4+++ Python-2.5.2/configure.in
5@@ -3410,45 +3410,6 @@ esac
6
7
8
9-AC_MSG_CHECKING(for %zd printf() format support)
10-AC_TRY_RUN([#include <stdio.h>
11-#include <stddef.h>
12-#include <string.h>
13-
14-#ifdef HAVE_SYS_TYPES_H
15-#include <sys/types.h>
16-#endif
17-
18-#ifdef HAVE_SSIZE_T
19-typedef ssize_t Py_ssize_t;
20-#elif SIZEOF_VOID_P == SIZEOF_LONG
21-typedef long Py_ssize_t;
22-#else
23-typedef int Py_ssize_t;
24-#endif
25-
26-int main()
27-{
28- char buffer[256];
29-
30- if(sprintf(buffer, "%zd", (size_t)123) < 0)
31- return 1;
32-
33- if (strcmp(buffer, "123"))
34- return 1;
35-
36- if (sprintf(buffer, "%zd", (Py_ssize_t)-123) < 0)
37- return 1;
38-
39- if (strcmp(buffer, "-123"))
40- return 1;
41-
42- return 0;
43-}],
44-[AC_MSG_RESULT(yes)
45- AC_DEFINE(PY_FORMAT_SIZE_T, "z", [Define to printf format modifier for Py_ssize_t])],
46- AC_MSG_RESULT(no))
47-
48 AC_CHECK_TYPE(socklen_t,,
49 AC_DEFINE(socklen_t,int,
50 Define to `int' if <sys/socket.h> does not define.),[
diff --git a/meta/packages/python/python-2.5.2/bindir-libdir.patch b/meta/packages/python/python-2.5.2/bindir-libdir.patch
new file mode 100644
index 0000000000..047c358a55
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/bindir-libdir.patch
@@ -0,0 +1,20 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6Index: Python-2.5.1/Makefile.pre.in
7===================================================================
8--- Python-2.5.1.orig/Makefile.pre.in
9+++ Python-2.5.1/Makefile.pre.in
10@@ -83,8 +83,8 @@ prefix= @prefix@
11 exec_prefix= @exec_prefix@
12
13 # Expanded directories
14-BINDIR= $(exec_prefix)/bin
15-LIBDIR= $(exec_prefix)/lib
16+BINDIR= @bindir@
17+LIBDIR= @libdir@
18 MANDIR= @mandir@
19 INCLUDEDIR= @includedir@
20 CONFINCLUDEDIR= $(exec_prefix)/include
diff --git a/meta/packages/python/python-2.5.2/crosscompile.patch b/meta/packages/python/python-2.5.2/crosscompile.patch
new file mode 100644
index 0000000000..f1b1c6f3e0
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/crosscompile.patch
@@ -0,0 +1,110 @@
1#
2# Patch (C) by Michael 'Mickey' Lauer <mlauer@vanille-media.de>
3#
4Index: Python-2.5.2/Makefile.pre.in
5===================================================================
6--- Python-2.5.2.orig/Makefile.pre.in
7+++ Python-2.5.2/Makefile.pre.in
8@@ -173,6 +173,7 @@ UNICODE_OBJS= @UNICODE_OBJS@
9
10 PYTHON= python$(EXE)
11 BUILDPYTHON= python$(BUILDEXE)
12+HOSTPYTHON= $(BUILDPYTHON)
13
14 # === Definitions added by makesetup ===
15
16@@ -199,7 +200,7 @@ GRAMMAR_INPUT= $(srcdir)/Grammar/Grammar
17 ##########################################################################
18 # Parser
19 PGEN= Parser/pgen$(EXE)
20-
21+HOSTPGEN= $(PGEN)$(EXE)
22 POBJS= \
23 Parser/acceler.o \
24 Parser/grammar1.o \
25@@ -348,8 +349,8 @@ platform: $(BUILDPYTHON)
26 # Build the shared modules
27 sharedmods: $(BUILDPYTHON)
28 case $$MAKEFLAGS in \
29- *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
30- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
31+ *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
32+ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py build;; \
33 esac
34
35 # Build static library
36@@ -474,7 +475,7 @@ Modules/python.o: $(srcdir)/Modules/pyth
37
38 $(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
39 -@ mkdir Include
40- -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
41+ -$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
42
43 $(PGEN): $(PGENOBJS)
44 $(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
45@@ -782,19 +783,19 @@ libinstall: $(BUILDPYTHON) $(srcdir)/Lib
46 done
47 $(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
48 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
49- ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
50+ $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
51 -d $(LIBDEST) -f \
52 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
53 PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
54- ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
55+ $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
56 -d $(LIBDEST) -f \
57 -x 'bad_coding|badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
58 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
59- ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
60+ $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
61 -d $(LIBDEST)/site-packages -f \
62 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
63 -PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
64- ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
65+ $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
66 -d $(LIBDEST)/site-packages -f \
67 -x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
68
69@@ -894,7 +895,7 @@ libainstall: all
70 # Install the dynamically loadable modules
71 # This goes into $(exec_prefix)
72 sharedinstall:
73- $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
74+ $(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \
75 --prefix=$(prefix) \
76 --install-scripts=$(BINDIR) \
77 --install-platlib=$(DESTSHARED) \
78Index: Python-2.5.2/setup.py
79===================================================================
80--- Python-2.5.2.orig/setup.py
81+++ Python-2.5.2/setup.py
82@@ -211,6 +211,7 @@ class PyBuildExt(build_ext):
83 except ImportError, why:
84 self.announce('*** WARNING: renaming "%s" since importing it'
85 ' failed: %s' % (ext.name, why), level=3)
86+ return
87 assert not self.inplace
88 basename, tail = os.path.splitext(ext_filename)
89 newname = basename + "_failed" + tail
90@@ -244,8 +245,8 @@ class PyBuildExt(build_ext):
91
92 def detect_modules(self):
93 # Ensure that /usr/local is always used
94- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
95- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
96+ # add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
97+ # add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
98
99 # Add paths specified in the environment variables LDFLAGS and
100 # CPPFLAGS for header and library files.
101@@ -342,6 +343,9 @@ class PyBuildExt(build_ext):
102
103 # XXX Omitted modules: gl, pure, dl, SGI-specific modules
104
105+ lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ]
106+ inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ]
107+
108 #
109 # The following modules are all pretty straightforward, and compile
110 # on pretty much any POSIXish platform.
diff --git a/meta/packages/python/python-2.5.2/default-is-optimized.patch b/meta/packages/python/python-2.5.2/default-is-optimized.patch
new file mode 100644
index 0000000000..6beeb6e022
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/default-is-optimized.patch
@@ -0,0 +1,13 @@
1Index: Python-2.5.1/Python/compile.c
2===================================================================
3--- Python-2.5.1.orig/Python/compile.c
4+++ Python-2.5.1/Python/compile.c
5@@ -30,7 +30,7 @@
6 #include "symtable.h"
7 #include "opcode.h"
8
9-int Py_OptimizeFlag = 0;
10+int Py_OptimizeFlag = 1;
11
12 /*
13 ISSUES:
diff --git a/meta/packages/python/python-2.5.2/enable-ctypes-module.patch b/meta/packages/python/python-2.5.2/enable-ctypes-module.patch
new file mode 100644
index 0000000000..dd5adaf0e7
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/enable-ctypes-module.patch
@@ -0,0 +1,106 @@
1diff -Naur Python-2.5.1.orig/setup.py Python-2.5.1/setup.py
2--- Python-2.5.orig/setup.py 2006-08-10 01:42:18.000000000 +0200
3+++ Python-2.5/setup.py 2007-11-21 18:00:43.000000000 +0100
4@@ -1321,16 +1329,16 @@
5 ffi_configfile):
6 from distutils.dir_util import mkpath
7 mkpath(ffi_builddir)
8- config_args = []
9+ config_args = ['--host=%s' % os.environ["HOST_SYS"], ]
10
11 # Pass empty CFLAGS because we'll just append the resulting
12 # CFLAGS to Python's; -g or -O2 is to be avoided.
13- cmd = "cd %s && env CFLAGS='' '%s/configure' %s" \
14- % (ffi_builddir, ffi_srcdir, " ".join(config_args))
15+ cmd = "(cd %s && autoconf -W cross) && (cd %s && env CFLAGS='' '%s/configure' %s)" \
16+ % (ffi_srcdir, ffi_builddir, ffi_srcdir, " ".join(config_args))
17
18 res = os.system(cmd)
19 if res or not os.path.exists(ffi_configfile):
20- print "Failed to configure _ctypes module"
21+ print "Failed to configure _ctypes module, ret %d or missing %s"% (res, ffi_configfile, )
22 return False
23
24 fficonfig = {}
25diff -Naur Python-2.5.1.orig/Modules/_ctypes/callbacks.c Python-2.5.1/Modules/_ctypes/callbacks.c
26--- Python-2.5.1.orig/Modules/_ctypes/callbacks.c 2006-10-17 21:41:10.000000000 +0200
27+++ Python-2.5.1/Modules/_ctypes/callbacks.c 2007-11-22 10:29:33.000000000 +0100
28@@ -273,11 +273,13 @@
29 PyErr_NoMemory();
30 return NULL;
31 }
32+#if FFI_CLOSURES
33 p->pcl = MallocClosure();
34 if (p->pcl == NULL) {
35 PyErr_NoMemory();
36 goto error;
37 }
38+#endif
39
40 for (i = 0; i < nArgs; ++i) {
41 PyObject *cnv = PySequence_GetItem(converters, i);
42@@ -315,12 +317,14 @@
43 "ffi_prep_cif failed with %d", result);
44 goto error;
45 }
46+#if FFI_CLOSURES
47 result = ffi_prep_closure(p->pcl, &p->cif, closure_fcn, p);
48 if (result != FFI_OK) {
49 PyErr_Format(PyExc_RuntimeError,
50 "ffi_prep_closure failed with %d", result);
51 goto error;
52 }
53+#endif
54
55 p->converters = converters;
56 p->callable = callable;
57@@ -328,8 +332,10 @@
58
59 error:
60 if (p) {
61+#if FFI_CLOSURES
62 if (p->pcl)
63 FreeClosure(p->pcl);
64+#endif
65 PyMem_Free(p);
66 }
67 return NULL;
68diff -Naur Python-2.5.1.orig/Modules/_ctypes/_ctypes.c Python-2.5.1/Modules/_ctypes/_ctypes.c
69--- Python-2.5.1.orig/Modules/_ctypes/_ctypes.c 2007-03-23 20:56:45.000000000 +0100
70+++ Python-2.5.1/Modules/_ctypes/_ctypes.c 2007-11-22 10:29:01.000000000 +0100
71@@ -3419,7 +3419,9 @@
72 Py_CLEAR(self->paramflags);
73
74 if (self->thunk) {
75+#if FFI_CLOSURES
76 FreeClosure(self->thunk->pcl);
77+#endif
78 PyMem_Free(self->thunk);
79 self->thunk = NULL;
80 }
81diff -Naur Python-2.5.1.orig/Modules/_ctypes/ctypes.h Python-2.5.1/Modules/_ctypes/ctypes.h
82--- Python-2.5.1.orig/Modules/_ctypes/ctypes.h 2006-08-14 13:17:48.000000000 +0200
83+++ Python-2.5.1/Modules/_ctypes/ctypes.h 2007-11-22 10:29:44.000000000 +0100
84@@ -68,7 +68,9 @@
85 };
86
87 typedef struct {
88+#if FFI_CLOSURES
89 ffi_closure *pcl; /* the C callable */
90+#endif
91 ffi_cif cif;
92 PyObject *converters;
93 PyObject *callable;
94diff -Naur Python-2.5.1.orig/Modules/_ctypes/malloc_closure.c Python-2.5.1/Modules/_ctypes/malloc_closure.c
95--- Python-2.5.1.orig/Modules/_ctypes/malloc_closure.c 2006-06-12 22:56:48.000000000 +0200
96+++ Python-2.5.1/Modules/_ctypes/malloc_closure.c 2007-11-22 10:30:17.000000000 +0100
97@@ -27,7 +27,9 @@
98 /******************************************************************/
99
100 typedef union _tagITEM {
101+#if FFI_CLOSURES
102 ffi_closure closure;
103+#endif
104 union _tagITEM *next;
105 } ITEM;
106
diff --git a/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch b/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch
new file mode 100644
index 0000000000..93bd343381
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/fix-tkinter-detection.patch
@@ -0,0 +1,41 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6Index: Python-2.5.1/setup.py
7===================================================================
8--- Python-2.5.1.orig/setup.py
9+++ Python-2.5.1/setup.py
10@@ -1227,7 +1227,7 @@ class PyBuildExt(build_ext):
11 dotversion = dotversion[:-1] + '.' + dotversion[-1]
12 tcl_include_sub = []
13 tk_include_sub = []
14- for dir in inc_dirs:
15+ for dir in [os.getenv("STAGING_INCDIR")]:
16 tcl_include_sub += [dir + os.sep + "tcl" + dotversion]
17 tk_include_sub += [dir + os.sep + "tk" + dotversion]
18 tk_include_sub += tcl_include_sub
19@@ -1246,22 +1246,6 @@ class PyBuildExt(build_ext):
20 if dir not in include_dirs:
21 include_dirs.append(dir)
22
23- # Check for various platform-specific directories
24- if platform == 'sunos5':
25- include_dirs.append('/usr/openwin/include')
26- added_lib_dirs.append('/usr/openwin/lib')
27- elif os.path.exists('/usr/X11R6/include'):
28- include_dirs.append('/usr/X11R6/include')
29- added_lib_dirs.append('/usr/X11R6/lib64')
30- added_lib_dirs.append('/usr/X11R6/lib')
31- elif os.path.exists('/usr/X11R5/include'):
32- include_dirs.append('/usr/X11R5/include')
33- added_lib_dirs.append('/usr/X11R5/lib')
34- else:
35- # Assume default location for X11
36- include_dirs.append('/usr/X11/include')
37- added_lib_dirs.append('/usr/X11/lib')
38-
39 # If Cygwin, then verify that X is installed before proceeding
40 if platform == 'cygwin':
41 x11_inc = find_file('X11/Xlib.h', [], include_dirs)
diff --git a/meta/packages/python/python-2.5.2/sitebranding.patch b/meta/packages/python/python-2.5.2/sitebranding.patch
new file mode 100644
index 0000000000..c6e486ae97
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/sitebranding.patch
@@ -0,0 +1,21 @@
1
2#
3# Patch managed by http://www.holgerschurig.de/patcher.html
4#
5
6Index: Python-2.5.1/Lib/site.py
7===================================================================
8--- Python-2.5.1.orig/Lib/site.py
9+++ Python-2.5.1/Lib/site.py
10@@ -323,8 +323,9 @@ def setcopyright():
11 "Jython is maintained by the Jython developers (www.jython.org).")
12 else:
13 __builtin__.credits = _Printer("credits", """\
14- Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
15- for supporting Python development. See www.python.org for more information.""")
16+ This version of Python has been built by the OpenEmbedded buildsystem (http://openembedded.org).
17+ It is a part of the Python-For-Embedded-Systems initiative which is maintained by
18+ Michael 'Mickey' Lauer (http://www.Vanille.de/projects/python.spy).""")
19 here = os.path.dirname(os.__file__)
20 __builtin__.license = _Printer(
21 "license", "See http://www.python.org/%.3s/license.html" % sys.version,
diff --git a/meta/packages/python/python-2.5.2/sitecustomize.py b/meta/packages/python/python-2.5.2/sitecustomize.py
new file mode 100644
index 0000000000..ec626b4b63
--- /dev/null
+++ b/meta/packages/python/python-2.5.2/sitecustomize.py
@@ -0,0 +1,44 @@
1# OpenEmbedded sitecustomize.py (C) 2002-2008 Michael 'Mickey' Lauer <mlauer@vanille-media.de>
2# GPLv2 or later
3# Version: 20082201
4# Features:
5# * set proper default encoding
6# * enable readline completion in the interactive interpreter
7# * load command line history on startup
8# * save command line history on exit
9
10import os
11
12def __exithandler():
13 try:
14 readline.write_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) )
15 except IOError:
16 pass
17
18def __registerExitHandler():
19 import atexit
20 atexit.register( __exithandler )
21
22def __enableReadlineSupport():
23 readline.parse_and_bind("tab: complete")
24 try:
25 readline.read_history_file( "%s/.python-history" % os.getenv( "HOME", "/tmp" ) )
26 except IOError:
27 pass
28
29def __enableDefaultEncoding():
30 import sys
31 try:
32 sys.setdefaultencoding('utf8')
33 except LookupError:
34 pass
35
36import sys
37try:
38 import rlcompleter, readline
39except ImportError:
40 pass
41else:
42 __enableDefaultEncoding()
43 __registerExitHandler()
44 __enableReadlineSupport()
diff --git a/meta/packages/python/python-gst/python-path.patch b/meta/packages/python/python-gst/python-path.patch
new file mode 100644
index 0000000000..465d5b180a
--- /dev/null
+++ b/meta/packages/python/python-gst/python-path.patch
@@ -0,0 +1,24 @@
1Index: gst-python-0.10.7/acinclude.m4
2===================================================================
3--- gst-python-0.10.7.orig/acinclude.m4 2007-03-02 14:10:28.652128590 +0100
4+++ gst-python-0.10.7/acinclude.m4 2007-03-02 14:41:00.106728708 +0100
5@@ -43,12 +43,19 @@
6 [AC_REQUIRE([AM_PATH_PYTHON])
7 AC_MSG_CHECKING(for headers required to compile python extensions)
8 dnl deduce PYTHON_INCLUDES
9+
10+AC_ARG_WITH(python-includes,
11+ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
12+if test x$py_exec_prefix != x; then
13+PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
14+else
15 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
16 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
17 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
18 if test "$py_prefix" != "$py_exec_prefix"; then
19 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
20 fi
21+fi
22 AC_SUBST(PYTHON_INCLUDES)
23 dnl check if the headers exist:
24 save_CPPFLAGS="$CPPFLAGS"
diff --git a/meta/packages/python/python-gst_0.10.8.bb b/meta/packages/python/python-gst_0.10.8.bb
new file mode 100644
index 0000000000..224d24b59a
--- /dev/null
+++ b/meta/packages/python/python-gst_0.10.8.bb
@@ -0,0 +1,26 @@
1DESCRIPTION = "Python Gstreamer bindings"
2SECTION = "devel/python"
3LICENSE = "LGPL"
4DEPENDS = "gstreamer gst-plugins-base python-pygobject"
5PR = "ml1"
6
7SRC_URI = "http://gstreamer.freedesktop.org/src/gst-python/gst-python-${PV}.tar.bz2 \
8 file://python-path.patch;patch=1"
9S = "${WORKDIR}/gst-python-${PV}"
10
11inherit autotools distutils-base pkgconfig
12
13EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
14
15do_configure_prepend() {
16 install -d ${S}/m4
17 install -m 0644 ${S}/common/m4/*.m4 ${S}/m4/
18}
19
20do_stage() {
21 autotools_stage_all
22}
23
24FILES_${PN} += "${datadir}/gst-python"
25FILES_${PN}-dev += "${datadir}/gst-python/0.10/defs"
26FILES_${PN}-dbg += "${libdir}/${PYTHON_DIR}/site-packages/gst-0.10/gst/.debug/"
diff --git a/meta/packages/python/python-imaging/path.patch b/meta/packages/python/python-imaging/path.patch
new file mode 100644
index 0000000000..1dc467a56d
--- /dev/null
+++ b/meta/packages/python/python-imaging/path.patch
@@ -0,0 +1,37 @@
1Index: Imaging-1.1.5/setup.py
2===================================================================
3--- Imaging-1.1.5.orig/setup.py 2005-03-23 19:16:40.000000000 +0100
4+++ Imaging-1.1.5/setup.py 2006-05-31 14:36:07.000000000 +0200
5@@ -28,12 +28,13 @@
6 #
7 # TIFF_ROOT = libinclude("/opt/tiff")
8
9-FREETYPE_ROOT = None
10-JPEG_ROOT = None
11+FREETYPE_ROOT = os.environ['STAGING_LIBDIR'], os.environ['STAGING_INCDIR']
12+JPEG_ROOT = os.environ['STAGING_LIBDIR']
13 TIFF_ROOT = None
14-ZLIB_ROOT = None
15+ZLIB_ROOT = os.environ['STAGING_LIBDIR']
16 TCL_ROOT = None
17
18+
19 # FIXME: add mechanism to explicitly *disable* the use of a library
20
21 # --------------------------------------------------------------------
22@@ -175,15 +176,6 @@
23 add_directory(include_dirs, include_root)
24
25 #
26- # add standard directories
27-
28- add_directory(library_dirs, "/usr/local/lib")
29- add_directory(include_dirs, "/usr/local/include")
30-
31- add_directory(library_dirs, "/usr/lib")
32- add_directory(include_dirs, "/usr/include")
33-
34- #
35 # insert new dirs *before* default libs, to avoid conflicts
36 # between Python PYD stub libs and real libraries
37
diff --git a/meta/packages/python/python-imaging_1.1.6.bb b/meta/packages/python/python-imaging_1.1.6.bb
new file mode 100644
index 0000000000..9f3b6323dd
--- /dev/null
+++ b/meta/packages/python/python-imaging_1.1.6.bb
@@ -0,0 +1,30 @@
1DESCRIPTION = "Python Imaging Library"
2SECTION = "devel/python"
3PRIORITY = "optional"
4LICENSE = "GPL"
5DEPENDS = "freetype jpeg tiff"
6RDEPENDS = "python-lang python-stringold"
7SRCNAME = "Imaging"
8PR = "ml0"
9
10SRC_URI = "http://effbot.org/downloads/Imaging-${PV}.tar.gz \
11 file://path.patch;patch=1"
12S = "${WORKDIR}/${SRCNAME}-${PV}"
13
14inherit distutils
15
16do_compile() {
17 export STAGING_LIBDIR=${STAGING_LIBDIR}
18 export STAGING_INCDIR=${STAGING_INCDIR}
19 distutils_do_compile
20}
21
22do_install() {
23 export STAGING_LIBDIR=${STAGING_LIBDIR}
24 export STAGING_INCDIR=${STAGING_INCDIR}
25 distutils_do_install
26 install -d ${D}${datadir}/doc/${PN}/html/
27 install -m 0644 ${S}/README ${D}${datadir}/doc/${PN}/
28 install -m 0644 ${S}/Docs/* ${D}${datadir}/doc/${PN}/html/
29
30}
diff --git a/meta/packages/python/python-native-2.5.1/bindir-libdir.patch b/meta/packages/python/python-native-2.5.1/bindir-libdir.patch
new file mode 100644
index 0000000000..999bddc449
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/bindir-libdir.patch
@@ -0,0 +1,18 @@
1
2#
3# Made by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- Python-2.3.1/Makefile.pre.in~bindir-libdir 2003-09-20 12:50:28.000000000 +0200
7+++ Python-2.3.1/Makefile.pre.in 2003-11-02 19:53:17.000000000 +0100
8@@ -78,8 +78,8 @@
9 exec_prefix= @exec_prefix@
10
11 # Expanded directories
12-BINDIR= $(exec_prefix)/bin
13-LIBDIR= $(exec_prefix)/lib
14+BINDIR= @bindir@
15+LIBDIR= @libdir@
16 MANDIR= @mandir@
17 INCLUDEDIR= @includedir@
18 CONFINCLUDEDIR= $(exec_prefix)/include
diff --git a/meta/packages/python/python-native-2.5.1/catchup-with-swig.patch b/meta/packages/python/python-native-2.5.1/catchup-with-swig.patch
new file mode 100644
index 0000000000..f049b759f4
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/catchup-with-swig.patch
@@ -0,0 +1,13 @@
1Index: Python-2.5.1/Lib/distutils/command/build_ext.py
2===================================================================
3--- Python-2.5.1.orig/Lib/distutils/command/build_ext.py
4+++ Python-2.5.1/Lib/distutils/command/build_ext.py
5@@ -513,7 +513,7 @@ class build_ext (Command):
6 target_lang=language)
7
8
9- def swig_sources (self, sources, extension):
10+ def swig_sources (self, sources, extension=None):
11
12 """Walk the list of source files in 'sources', looking for SWIG
13 interface (.i) files. Run SWIG on all that are found, and
diff --git a/meta/packages/python/python-native-2.5.1/cross-distutils.patch b/meta/packages/python/python-native-2.5.1/cross-distutils.patch
new file mode 100644
index 0000000000..3356c1abbe
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/cross-distutils.patch
@@ -0,0 +1,36 @@
1
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- Python-2.3.3/Lib/distutils/sysconfig.py~cross-distutils 2003-02-10 15:02:33.000000000 +0100
7+++ Python-2.3.3/Lib/distutils/sysconfig.py 2004-03-02 20:15:05.000000000 +0100
8@@ -19,8 +19,8 @@
9 from errors import DistutilsPlatformError
10
11 # These are needed in a couple of spots, so just compute them once.
12-PREFIX = os.path.normpath(sys.prefix)
13-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
14+PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
15+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
16
17 # python_build: (Boolean) if true, we're either building Python or
18 # building an extension with an un-installed Python, so we use
19@@ -192,7 +192,7 @@
20 else:
21 # The name of the config.h file changed in 2.2
22 config_h = 'pyconfig.h'
23- return os.path.join(inc_dir, config_h)
24+ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
25
26
27 def get_makefile_filename():
28@@ -200,7 +200,7 @@
29 if python_build:
30 return os.path.join(os.path.dirname(sys.executable), "Makefile")
31 lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
32- return os.path.join(lib_dir, "config", "Makefile")
33+ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
34
35
36 def parse_config_h(fp, g=None):
diff --git a/meta/packages/python/python-native-2.5.1/default-is-optimized.patch b/meta/packages/python/python-native-2.5.1/default-is-optimized.patch
new file mode 100644
index 0000000000..6beeb6e022
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/default-is-optimized.patch
@@ -0,0 +1,13 @@
1Index: Python-2.5.1/Python/compile.c
2===================================================================
3--- Python-2.5.1.orig/Python/compile.c
4+++ Python-2.5.1/Python/compile.c
5@@ -30,7 +30,7 @@
6 #include "symtable.h"
7 #include "opcode.h"
8
9-int Py_OptimizeFlag = 0;
10+int Py_OptimizeFlag = 1;
11
12 /*
13 ISSUES:
diff --git a/meta/packages/python/python-native-2.5.1/dont-modify-shebang-line.patch b/meta/packages/python/python-native-2.5.1/dont-modify-shebang-line.patch
new file mode 100644
index 0000000000..54109afd62
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/dont-modify-shebang-line.patch
@@ -0,0 +1,16 @@
1
2#
3# Signed off by Michael 'Mickey' Lauer <mickey@Vanille.de>
4#
5
6--- Python-2.4/Lib/distutils/command/build_scripts.py~dont-modify-shebang-line
7+++ Python-2.4/Lib/distutils/command/build_scripts.py
8@@ -87,7 +87,7 @@
9 continue
10
11 match = first_line_re.match(first_line)
12- if match:
13+ if False: #match:
14 adjust = 1
15 post_interp = match.group(1) or ''
16
diff --git a/meta/packages/python/python-native-2.5.1/fix-staging.patch b/meta/packages/python/python-native-2.5.1/fix-staging.patch
new file mode 100644
index 0000000000..087c813fd4
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.1/fix-staging.patch
@@ -0,0 +1,38 @@
1---
2 Lib/distutils/sysconfig.py | 10 ++++++++--
3 1 file changed, 8 insertions(+), 2 deletions(-)
4
5--- Python-2.5.1.orig/Lib/distutils/sysconfig.py
6+++ Python-2.5.1/Lib/distutils/sysconfig.py
7@@ -52,11 +52,14 @@ def get_python_inc(plat_specific=0, pref
8
9 If 'prefix' is supplied, use it instead of sys.prefix or
10 sys.exec_prefix -- i.e., ignore 'plat_specific'.
11 """
12 if prefix is None:
13- prefix = plat_specific and EXEC_PREFIX or PREFIX
14+ if plat_specific:
15+ prefix = plat_specific and os.environ['STAGING_INCDIR'].rstrip('include')
16+ else:
17+ prefix = plat_specific and EXEC_PREFIX or PREFIX
18 if os.name == "posix":
19 if python_build:
20 base = os.path.dirname(os.path.abspath(sys.executable))
21 if plat_specific:
22 inc_dir = base
23@@ -94,11 +97,14 @@ def get_python_lib(plat_specific=0, stan
24
25 If 'prefix' is supplied, use it instead of sys.prefix or
26 sys.exec_prefix -- i.e., ignore 'plat_specific'.
27 """
28 if prefix is None:
29- prefix = plat_specific and EXEC_PREFIX or PREFIX
30+ if plat_specific:
31+ prefix = plat_specific and os.environ['STAGING_LIBDIR'].rstrip('lib')
32+ else:
33+ prefix = plat_specific and EXEC_PREFIX or PREFIX
34
35 if os.name == "posix":
36 libpython = os.path.join(prefix,
37 "lib", "python" + get_python_version())
38 if standard_lib:
diff --git a/meta/packages/python/python-native-2.5.2/bindir-libdir.patch b/meta/packages/python/python-native-2.5.2/bindir-libdir.patch
new file mode 100644
index 0000000000..999bddc449
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.2/bindir-libdir.patch
@@ -0,0 +1,18 @@
1
2#
3# Made by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- Python-2.3.1/Makefile.pre.in~bindir-libdir 2003-09-20 12:50:28.000000000 +0200
7+++ Python-2.3.1/Makefile.pre.in 2003-11-02 19:53:17.000000000 +0100
8@@ -78,8 +78,8 @@
9 exec_prefix= @exec_prefix@
10
11 # Expanded directories
12-BINDIR= $(exec_prefix)/bin
13-LIBDIR= $(exec_prefix)/lib
14+BINDIR= @bindir@
15+LIBDIR= @libdir@
16 MANDIR= @mandir@
17 INCLUDEDIR= @includedir@
18 CONFINCLUDEDIR= $(exec_prefix)/include
diff --git a/meta/packages/python/python-native-2.5.2/cross-distutils.patch b/meta/packages/python/python-native-2.5.2/cross-distutils.patch
new file mode 100644
index 0000000000..3356c1abbe
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.2/cross-distutils.patch
@@ -0,0 +1,36 @@
1
2#
3# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4#
5
6--- Python-2.3.3/Lib/distutils/sysconfig.py~cross-distutils 2003-02-10 15:02:33.000000000 +0100
7+++ Python-2.3.3/Lib/distutils/sysconfig.py 2004-03-02 20:15:05.000000000 +0100
8@@ -19,8 +19,8 @@
9 from errors import DistutilsPlatformError
10
11 # These are needed in a couple of spots, so just compute them once.
12-PREFIX = os.path.normpath(sys.prefix)
13-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
14+PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
15+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
16
17 # python_build: (Boolean) if true, we're either building Python or
18 # building an extension with an un-installed Python, so we use
19@@ -192,7 +192,7 @@
20 else:
21 # The name of the config.h file changed in 2.2
22 config_h = 'pyconfig.h'
23- return os.path.join(inc_dir, config_h)
24+ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
25
26
27 def get_makefile_filename():
28@@ -200,7 +200,7 @@
29 if python_build:
30 return os.path.join(os.path.dirname(sys.executable), "Makefile")
31 lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
32- return os.path.join(lib_dir, "config", "Makefile")
33+ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
34
35
36 def parse_config_h(fp, g=None):
diff --git a/meta/packages/python/python-native-2.5.2/default-is-optimized.patch b/meta/packages/python/python-native-2.5.2/default-is-optimized.patch
new file mode 100644
index 0000000000..6beeb6e022
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.2/default-is-optimized.patch
@@ -0,0 +1,13 @@
1Index: Python-2.5.1/Python/compile.c
2===================================================================
3--- Python-2.5.1.orig/Python/compile.c
4+++ Python-2.5.1/Python/compile.c
5@@ -30,7 +30,7 @@
6 #include "symtable.h"
7 #include "opcode.h"
8
9-int Py_OptimizeFlag = 0;
10+int Py_OptimizeFlag = 1;
11
12 /*
13 ISSUES:
diff --git a/meta/packages/python/python-native-2.5.2/dont-modify-shebang-line.patch b/meta/packages/python/python-native-2.5.2/dont-modify-shebang-line.patch
new file mode 100644
index 0000000000..54109afd62
--- /dev/null
+++ b/meta/packages/python/python-native-2.5.2/dont-modify-shebang-line.patch
@@ -0,0 +1,16 @@
1
2#
3# Signed off by Michael 'Mickey' Lauer <mickey@Vanille.de>
4#
5
6--- Python-2.4/Lib/distutils/command/build_scripts.py~dont-modify-shebang-line
7+++ Python-2.4/Lib/distutils/command/build_scripts.py
8@@ -87,7 +87,7 @@
9 continue
10
11 match = first_line_re.match(first_line)
12- if match:
13+ if False: #match:
14 adjust = 1
15 post_interp = match.group(1) or ''
16
diff --git a/meta/packages/python/python-native_2.5.1.bb b/meta/packages/python/python-native_2.5.1.bb
new file mode 100644
index 0000000000..21e5c7999f
--- /dev/null
+++ b/meta/packages/python/python-native_2.5.1.bb
@@ -0,0 +1,34 @@
1DESCRIPTION = "The Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSF"
4SECTION = "devel/python"
5PRIORITY = "optional"
6DEPENDS = ""
7PR = "ml3"
8
9EXCLUDE_FROM_WORLD = "1"
10
11SRC_URI = "\
12 http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
13 file://bindir-libdir.patch;patch=1 \
14 file://cross-distutils.patch;patch=1 \
15 file://dont-modify-shebang-line.patch;patch=1 \
16 file://default-is-optimized.patch;patch=1 \
17 file://catchup-with-swig.patch;patch=1 \
18 file://fix-staging.patch;patch=1 \
19"
20S = "${WORKDIR}/Python-${PV}"
21
22inherit autotools native
23
24prefix = "${STAGING_DIR_NATIVE}/${layout_prefix}"
25exec_prefix = "${STAGING_DIR_NATIVE}/${layout_exec_prefix}"
26
27EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
28 --without-cxx --with-signal-module --with-wctype-functions"
29EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS="" STAGING_LIBDIR=${STAGING_LIBDIR} \
30 STAGING_INCDIR=${STAGING_INCDIR}'
31
32do_stage_append() {
33 install -m 0755 Parser/pgen ${STAGING_BINDIR_NATIVE}/
34}
diff --git a/meta/packages/python/python-pycairo_1.4.0.bb b/meta/packages/python/python-pycairo_1.4.0.bb
new file mode 100644
index 0000000000..9bb2fdfcd8
--- /dev/null
+++ b/meta/packages/python/python-pycairo_1.4.0.bb
@@ -0,0 +1,19 @@
1DESCRIPTION = "Python Bindings for the Cairo canvas library"
2SECTION = "python-devel"
3HOMEPAGE = "http://cairographics.org/pycairo"
4LICENSE = "LGPL MPL"
5DEPENDS = "cairo"
6PR = "ml1"
7
8SRC_URI = "http://cairographics.org/releases/pycairo-${PV}.tar.gz"
9S = "${WORKDIR}/pycairo-${PV}"
10
11inherit distutils pkgconfig
12
13do_stage() {
14 install -d ${STAGING_INCDIR}
15 install -m 0644 cairo/pycairo.h ${STAGING_INCDIR}
16
17 # nasty pkgconfig fix necessary here
18 sed -i -e s,${STAGING_DIR_NATIVE},, pycairo.pc
19}
diff --git a/meta/packages/python/python-pygobject-native_2.12.3.bb b/meta/packages/python/python-pygobject-native_2.12.3.bb
new file mode 100644
index 0000000000..cb879fdeb1
--- /dev/null
+++ b/meta/packages/python/python-pygobject-native_2.12.3.bb
@@ -0,0 +1,7 @@
1require python-pygobject_${PV}.bb
2
3DEPENDS = "python-native glib-2.0-native"
4
5SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-${PV}.tar.bz2 "
6
7inherit native
diff --git a/meta/packages/python/python-pygobject/python-path.patch b/meta/packages/python/python-pygobject/python-path.patch
new file mode 100644
index 0000000000..2ab7bdce6e
--- /dev/null
+++ b/meta/packages/python/python-pygobject/python-path.patch
@@ -0,0 +1,23 @@
1Index: pygobject-2.12.3/m4/python.m4
2===================================================================
3--- pygobject-2.12.3.orig/m4/python.m4 2007-03-02 15:00:20.945635455 +0100
4+++ pygobject-2.12.3/m4/python.m4 2007-03-02 15:00:43.532189734 +0100
5@@ -43,12 +43,18 @@
6 [AC_REQUIRE([AM_PATH_PYTHON])
7 AC_MSG_CHECKING(for headers required to compile python extensions)
8 dnl deduce PYTHON_INCLUDES
9+AC_ARG_WITH(python-includes,
10+ [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
11+if test x$py_exec_prefix != x; then
12+PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
13+else
14 py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
15 py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
16 PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
17 if test "$py_prefix" != "$py_exec_prefix"; then
18 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
19 fi
20+fi
21 AC_SUBST(PYTHON_INCLUDES)
22 dnl check if the headers exist:
23 save_CPPFLAGS="$CPPFLAGS"
diff --git a/meta/packages/python/python-pygobject_2.12.3.bb b/meta/packages/python/python-pygobject_2.12.3.bb
new file mode 100644
index 0000000000..bfd04d569d
--- /dev/null
+++ b/meta/packages/python/python-pygobject_2.12.3.bb
@@ -0,0 +1,24 @@
1DESCRIPTION = "Python GObject bindings"
2SECTION = "devel/python"
3LICENSE = "LGPL"
4DEPENDS = "python-pygobject-native"
5PR = "r3"
6
7SRC_URI = "ftp://ftp.gnome.org/pub/GNOME/sources/pygobject/2.12/pygobject-${PV}.tar.bz2 \
8 file://python-path.patch;patch=1"
9S = "${WORKDIR}/pygobject-${PV}"
10
11inherit autotools distutils-base pkgconfig
12
13EXTRA_OECONF += "--with-python-includes=${STAGING_INCDIR}/../"
14
15do_stage() {
16 autotools_stage_all
17 install -d ${STAGING_LIBDIR}/../share/pygobject/
18 cp -dpfR docs/* ${STAGING_LIBDIR}/../share/pygobject/
19 install -d ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
20 cp docs/style.css ${STAGING_LIBDIR}/../share/gtk-doc/html/pygobject/
21}
22
23FILES_${PN} = "${libdir}/python*"
24FILES_${PN}-dev += "${datadir}/pygobject/xsl"
diff --git a/meta/packages/python/python-pygtk/acinclude.m4 b/meta/packages/python/python-pygtk/acinclude.m4
new file mode 100644
index 0000000000..53518fb2eb
--- /dev/null
+++ b/meta/packages/python/python-pygtk/acinclude.m4
@@ -0,0 +1,90 @@
1## this one is commonly used with AM_PATH_PYTHONDIR ...
2dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
3dnl Check if a module containing a given symbol is visible to python.
4AC_DEFUN(AM_CHECK_PYMOD,
5[AC_REQUIRE([AM_PATH_PYTHON])
6py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
7AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
8AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
9ifelse([$2],[], [prog="
10import sys
11try:
12 import $1
13except ImportError:
14 sys.exit(1)
15except:
16 sys.exit(0)
17sys.exit(0)"], [prog="
18import $1
19$1.$2"])
20if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
21 then
22 eval "py_cv_mod_$py_mod_var=yes"
23 else
24 eval "py_cv_mod_$py_mod_var=no"
25 fi
26])
27py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
28if test "x$py_val" != xno; then
29 AC_MSG_RESULT(yes)
30 ifelse([$3], [],, [$3
31])dnl
32else
33 AC_MSG_RESULT(no)
34 ifelse([$4], [],, [$4
35])dnl
36fi
37])
38
39dnl a macro to check for ability to create python extensions
40dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
41dnl function also defines PYTHON_INCLUDES
42AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
43[AC_REQUIRE([AM_PATH_PYTHON])
44AC_MSG_CHECKING(for headers required to compile python extensions)
45dnl deduce PYTHON_INCLUDES
46AC_ARG_WITH(python-includes,
47 [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
48if test x$py_exec_prefix != x; then
49PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
50else
51py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
52py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
53PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
54if test "$py_prefix" != "$py_exec_prefix"; then
55 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
56fi
57fi
58AC_SUBST(PYTHON_INCLUDES)
59dnl check if the headers exist:
60save_CPPFLAGS="$CPPFLAGS"
61CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
62AC_TRY_CPP([#include <Python.h>],dnl
63[AC_MSG_RESULT(found)
64$1],dnl
65[AC_MSG_RESULT(not found)
66$2])
67CPPFLAGS="$save_CPPFLAGS"
68])
69
70dnl
71dnl JH_ADD_CFLAG(FLAG)
72dnl checks whether the C compiler supports the given flag, and if so, adds
73dnl it to $CFLAGS. If the flag is already present in the list, then the
74dnl check is not performed.
75AC_DEFUN([JH_ADD_CFLAG],
76[
77case " $CFLAGS " in
78*@<:@\ \ @:>@$1@<:@\ \ @:>@*)
79 ;;
80*)
81 save_CFLAGS="$CFLAGS"
82 CFLAGS="$CFLAGS $1"
83 AC_MSG_CHECKING([whether [$]CC understands $1])
84 AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no])
85 AC_MSG_RESULT($jh_has_option)
86 if test $jh_has_option = no; then
87 CFLAGS="$save_CFLAGS"
88 fi
89 ;;
90esac])
diff --git a/meta/packages/python/python-pygtk/fix-gtkunixprint.patch b/meta/packages/python/python-pygtk/fix-gtkunixprint.patch
new file mode 100644
index 0000000000..dca19ce5ed
--- /dev/null
+++ b/meta/packages/python/python-pygtk/fix-gtkunixprint.patch
@@ -0,0 +1,16 @@
1Index: pygtk-2.10.0/gtk/gtkunixprint.override
2===================================================================
3--- pygtk-2.10.0.orig/gtk/gtkunixprint.override
4+++ pygtk-2.10.0/gtk/gtkunixprint.override
5@@ -105,11 +105,7 @@ _wrap_gtk_print_job_get_surface(PyGObjec
6 if (pyg_error_check(&error))
7 return NULL;
8
9-#if PYCAIRO_VERSION_HEX >= 0x1010600
10 return PycairoSurface_FromSurface(surface, NULL);
11-#else
12- return PycairoSurface_FromSurface(surface, NULL, NULL);
13-#endif
14 }
15 %%
16 override gtk_print_job_send kwargs
diff --git a/meta/packages/python/python-pygtk/nodocs.patch b/meta/packages/python/python-pygtk/nodocs.patch
new file mode 100644
index 0000000000..9b2387e959
--- /dev/null
+++ b/meta/packages/python/python-pygtk/nodocs.patch
@@ -0,0 +1,13 @@
1Index: pygtk-2.10.4/Makefile.am
2===================================================================
3--- pygtk-2.10.4.orig/Makefile.am
4+++ pygtk-2.10.4/Makefile.am
5@@ -4,7 +4,7 @@ if BUILD_GTK
6 GTK_SUBDIR = gtk
7 endif
8
9-SUBDIRS = codegen . $(GTK_SUBDIR) examples tests docs
10+SUBDIRS = codegen . $(GTK_SUBDIR) examples tests
11
12 PLATFORM_VERSION = 2.0
13
diff --git a/meta/packages/python/python-pygtk/prevent_to_get_display_during_import.patch b/meta/packages/python/python-pygtk/prevent_to_get_display_during_import.patch
new file mode 100644
index 0000000000..9340f8244d
--- /dev/null
+++ b/meta/packages/python/python-pygtk/prevent_to_get_display_during_import.patch
@@ -0,0 +1,14 @@
1Index: pygtk-2.10.4/gtk/__init__.py
2===================================================================
3--- pygtk-2.10.4.orig/gtk/__init__.py 2007-11-27 19:27:05.000000000 -0300
4+++ pygtk-2.10.4/gtk/__init__.py 2007-11-27 19:28:22.000000000 -0300
5@@ -78,7 +78,8 @@
6
7 keysyms = LazyModule('keysyms', locals())
8
9-_init()
10+if not hasattr(sys.modules['__main__'], 'python_launcher_enabled'):
11+ _init()
12
13 # CAPI
14 _PyGtk_API = _gtk._PyGtk_API
diff --git a/meta/packages/python/python-pygtk/python-pygtk2/acinclude.m4 b/meta/packages/python/python-pygtk/python-pygtk2/acinclude.m4
new file mode 100644
index 0000000000..53518fb2eb
--- /dev/null
+++ b/meta/packages/python/python-pygtk/python-pygtk2/acinclude.m4
@@ -0,0 +1,90 @@
1## this one is commonly used with AM_PATH_PYTHONDIR ...
2dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
3dnl Check if a module containing a given symbol is visible to python.
4AC_DEFUN(AM_CHECK_PYMOD,
5[AC_REQUIRE([AM_PATH_PYTHON])
6py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
7AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
8AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
9ifelse([$2],[], [prog="
10import sys
11try:
12 import $1
13except ImportError:
14 sys.exit(1)
15except:
16 sys.exit(0)
17sys.exit(0)"], [prog="
18import $1
19$1.$2"])
20if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
21 then
22 eval "py_cv_mod_$py_mod_var=yes"
23 else
24 eval "py_cv_mod_$py_mod_var=no"
25 fi
26])
27py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
28if test "x$py_val" != xno; then
29 AC_MSG_RESULT(yes)
30 ifelse([$3], [],, [$3
31])dnl
32else
33 AC_MSG_RESULT(no)
34 ifelse([$4], [],, [$4
35])dnl
36fi
37])
38
39dnl a macro to check for ability to create python extensions
40dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
41dnl function also defines PYTHON_INCLUDES
42AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
43[AC_REQUIRE([AM_PATH_PYTHON])
44AC_MSG_CHECKING(for headers required to compile python extensions)
45dnl deduce PYTHON_INCLUDES
46AC_ARG_WITH(python-includes,
47 [ --with-python-includes=DIR path to Python includes], py_exec_prefix=$withval)
48if test x$py_exec_prefix != x; then
49PYTHON_INCLUDES="-I${py_exec_prefix}/include/python${PYTHON_VERSION}"
50else
51py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
52py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
53PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
54if test "$py_prefix" != "$py_exec_prefix"; then
55 PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
56fi
57fi
58AC_SUBST(PYTHON_INCLUDES)
59dnl check if the headers exist:
60save_CPPFLAGS="$CPPFLAGS"
61CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
62AC_TRY_CPP([#include <Python.h>],dnl
63[AC_MSG_RESULT(found)
64$1],dnl
65[AC_MSG_RESULT(not found)
66$2])
67CPPFLAGS="$save_CPPFLAGS"
68])
69
70dnl
71dnl JH_ADD_CFLAG(FLAG)
72dnl checks whether the C compiler supports the given flag, and if so, adds
73dnl it to $CFLAGS. If the flag is already present in the list, then the
74dnl check is not performed.
75AC_DEFUN([JH_ADD_CFLAG],
76[
77case " $CFLAGS " in
78*@<:@\ \ @:>@$1@<:@\ \ @:>@*)
79 ;;
80*)
81 save_CFLAGS="$CFLAGS"
82 CFLAGS="$CFLAGS $1"
83 AC_MSG_CHECKING([whether [$]CC understands $1])
84 AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no])
85 AC_MSG_RESULT($jh_has_option)
86 if test $jh_has_option = no; then
87 CFLAGS="$save_CFLAGS"
88 fi
89 ;;
90esac])
diff --git a/meta/packages/python/python-pygtk_2.10.4.bb b/meta/packages/python/python-pygtk_2.10.4.bb
new file mode 100644
index 0000000000..6b26f59ad8
--- /dev/null
+++ b/meta/packages/python/python-pygtk_2.10.4.bb
@@ -0,0 +1,61 @@
1DESCRIPTION = "Python GTK+ 2.10.x Bindings"
2SECTION = "devel/python"
3# needs gtk+ 2.10.x
4DEPENDS = "gtk+ libglade python-pycairo python-pygobject"
5RDEPENDS = "python-shell python-pycairo python-pygobject"
6PROVIDES = "python-pygtk2"
7SRCNAME = "pygtk"
8LICENSE = "LGPL"
9PR = "ml8"
10
11SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.10/${SRCNAME}-${PV}.tar.bz2 \
12 file://fix-gtkunixprint.patch;patch=1 \
13 file://prevent_to_get_display_during_import.patch;patch=1 \
14 file://nodocs.patch;patch=1 \
15 file://acinclude.m4"
16S = "${WORKDIR}/${SRCNAME}-${PV}"
17
18EXTRA_OECONF = "\
19 --disable-docs \
20 --with-python-includes=${STAGING_INCDIR}/../ \
21"
22
23inherit autotools pkgconfig distutils-base
24
25do_configure_prepend() {
26 install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
27}
28
29# dirty fix #1: remove dependency on python-pygobject-dev
30do_install_append() {
31 find ${D} -name "*.la"|xargs rm -f
32 rm -f ${D}/${bindir}/pygtk-codegen-2.0
33 rm -rf ${D}/${libdir}/pkgconfig
34}
35
36# dirty fix #2: fix build system paths leaking in
37require fix-path.inc
38
39PACKAGES =+ "${PN}-demo"
40FILES_${PN}-demo = "\
41 ${bindir}/pygtk-demo \
42 ${libdir}/pygtk \
43"
44RDEPENDS_${PN}-demo = "python-pygtk python-stringold python-lang"
45
46# todo: revamp packaging, package demo seperatly
47FILES_${PN}-dev += "\
48 ${libdir}/pygtk/2.0 \
49 ${bindir}/pygtk-* \
50 ${datadir}/pygtk/2.0"
51
52do_stage() {
53 autotools_stage_includes
54 sed -i s:/usr/share:${STAGING_DATADIR}: codegen/pygtk-codegen-2.0
55 install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR_NATIVE}/
56 install -d ${STAGING_DATADIR}/pygtk/2.0/codegen
57 install -d ${STAGING_DATADIR}/pygtk/2.0/defs/
58 cp -pPr codegen/*.py* ${STAGING_DATADIR}/pygtk/2.0/codegen/
59 cp -pPr *.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
60 cp -pPr gtk/*.defs ${STAGING_DATADIR}/pygtk/2.0/defs/
61}
diff --git a/meta/packages/python/python-scons-native_0.97.bb b/meta/packages/python/python-scons-native_0.97.bb
new file mode 100644
index 0000000000..45eeee117a
--- /dev/null
+++ b/meta/packages/python/python-scons-native_0.97.bb
@@ -0,0 +1,16 @@
1require python-scons_${PV}.bb
2inherit native
3DEPENDS = "python-native"
4RDEPENDS = ""
5
6do_stage() {
7 STAGING_LIBDIR=${STAGING_LIBDIR} \
8 STAGING_INCDIR=${STAGING_INCDIR} \
9 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
10 ${STAGING_BINDIR}/python setup.py install --prefix=${STAGING_LIBDIR}/.. --install-data=${STAGING_DATADIR} || \
11 oefatal "python setup.py install execution failed."
12}
13
14do_install() {
15 :
16}
diff --git a/meta/packages/python/python-scons_0.97.bb b/meta/packages/python/python-scons_0.97.bb
new file mode 100644
index 0000000000..dc5b40243e
--- /dev/null
+++ b/meta/packages/python/python-scons_0.97.bb
@@ -0,0 +1,10 @@
1DESCRIPTION = "A Software Construction Tool"
2SECTION = "devel/python"
3PRIORITY = "optional"
4LICENSE = "GPL"
5SRCNAME = "scons"
6
7SRC_URI = "${SOURCEFORGE_MIRROR}/scons/scons-${PV}.tar.gz"
8S = "${WORKDIR}/${SRCNAME}-${PV}"
9
10inherit distutils
diff --git a/meta/packages/python/python_2.5.2.bb b/meta/packages/python/python_2.5.2.bb
new file mode 100644
index 0000000000..1ac48f3686
--- /dev/null
+++ b/meta/packages/python/python_2.5.2.bb
@@ -0,0 +1,105 @@
1DESCRIPTION = "Python Programming Language"
2HOMEPAGE = "http://www.python.org"
3LICENSE = "PSF"
4SECTION = "devel/python"
5PRIORITY = "optional"
6DEPENDS = "python-native readline zlib gdbm openssl sqlite3"
7DEPENDS_sharprom = "python-native readline zlib gdbm openssl"
8PR = "ml1"
9
10PYTHON_MAJMIN = "2.5"
11
12SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
13 file://bindir-libdir.patch;patch=1 \
14 file://crosscompile.patch;patch=1 \
15 file://fix-tkinter-detection.patch;patch=1 \
16 file://autohell.patch;patch=1 \
17 file://sitebranding.patch;patch=1 \
18 file://enable-ctypes-module.patch;patch=1 \
19 file://default-is-optimized.patch;patch=1 \
20 file://sitecustomize.py"
21S = "${WORKDIR}/Python-${PV}"
22
23inherit autotools
24
25EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
26 --without-cxx --with-signal-module --with-wctype-functions \
27 --enable-shared"
28
29#
30# copy config.h and an appropriate Makefile for distutils.sysconfig
31# which laters uses the information out of these to compile extensions
32#
33do_compile_prepend() {
34 install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
35 install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
36 install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
37 install -m 0644 Makefile Makefile.orig
38 install -m 0644 Makefile Makefile.backup
39 sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile
40 install -m 0644 Makefile Makefile.backup
41 sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile
42 install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
43}
44
45do_compile() {
46 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
47 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
48 STAGING_LIBDIR=${STAGING_LIBDIR} \
49 STAGING_INCDIR=${STAGING_INCDIR} \
50 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
51 OPT="${CFLAGS}" libpython2.5.so
52
53 oe_libinstall -so libpython2.5 ${STAGING_LIBDIR}
54
55 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
56 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
57 STAGING_LIBDIR=${STAGING_LIBDIR} \
58 STAGING_INCDIR=${STAGING_INCDIR} \
59 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
60 OPT="${CFLAGS}"
61}
62
63do_stage() {
64 install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
65 oe_libinstall -a -so libpython${PYTHON_MAJMIN} ${STAGING_LIBDIR}
66}
67
68do_install() {
69 install -m 0644 Makefile.orig Makefile
70
71 oe_runmake HOSTPGEN=${STAGING_BINDIR_NATIVE}/pgen \
72 HOSTPYTHON=${STAGING_BINDIR_NATIVE}/python \
73 STAGING_LIBDIR=${STAGING_LIBDIR} \
74 STAGING_INCDIR=${STAGING_INCDIR} \
75 BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
76 DESTDIR=${D} LIBDIR=${libdir} install
77
78 install -m 0644 ${WORKDIR}/sitecustomize.py ${D}/${libdir}/python${PYTHON_MAJMIN}
79}
80
81require python-${PYTHON_MAJMIN}-manifest.inc
82
83# manual dependency additions
84RPROVIDES_python-core = "python"
85RRECOMMENDS_python-core = "python-readline"
86RRECOMMENDS_python-crypt = "openssl"
87
88# add sitecustomize
89FILES_python-core += "${libdir}/python${PYTHON_MAJMIN}/sitecustomize.py"
90
91# package libpython
92PACKAGES =+ "libpython2"
93FILES_libpython2 = "${libdir}/libpython*"
94
95# catch debug extensions
96FILES_python-dbg += "${libdir}/python${PYTHON_MAJMIN}/lib-dynload/.debug"
97
98# catch all the rest (unsorted)
99PACKAGES += "python-misc"
100FILES_python-misc = "${libdir}/python${PYTHON_MAJMIN}"
101
102# catch manpage
103PACKAGES += "python-man"
104FILES_python-man = "${datadir}/man"
105