Add python+pyhton-pygtk2
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@415 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
parent
632eaf43e3
commit
7defc582e0
|
@ -0,0 +1,259 @@
|
|||
########################################################################################################################
|
||||
### AUTO-GENERATED by './generate-oe.py' [(C) 2002-2005 Michael 'Mickey' Lauer <mickey@Vanille.de>] on Thu Mar 30 17:39:30 2006
|
||||
###
|
||||
### Visit THE Python for Embedded Systems Site => http://www.Vanille.de/projects/python.spy
|
||||
###
|
||||
### Warning: Manual edits will be lost!
|
||||
###
|
||||
########################################################################################################################
|
||||
|
||||
|
||||
PACKAGES="python-threading python-distutils python-textutils python-codecs python-pickle python-datetime python-core python-io python-compiler python-compression python-re python-xmlrpc python-terminal python-email python-image python-resource python-devel python-math python-hotshot python-unixadmin python-tkinter python-gdbm python-fcntl python-netclient python-pprint python-netserver python-curses python-syslog python-html python-readline python-pydoc python-logging python-mailbox python-xml python-mime python-tests python-unittest python-stringold python-lib-old-and-deprecated python-compile python-shell python-bsddb python-mmap python-zlib python-db python-crypt python-idle python-lang python-audio "
|
||||
|
||||
DESCRIPTION_python-threading="Python Threading & Synchronization Support"
|
||||
PR_python-threading="ml0"
|
||||
RDEPENDS_python-threading="python-core python-lang"
|
||||
FILES_python-threading="${libdir}/python2.4/_threading_local.* ${libdir}/python2.4/bisect.* ${libdir}/python2.4/dummy_thread.* ${libdir}/python2.4/dummy_threading.* ${libdir}/python2.4/mutex.* ${libdir}/python2.4/threading.* ${libdir}/python2.4/Queue.* "
|
||||
|
||||
DESCRIPTION_python-distutils="Python Distribution Utilities"
|
||||
PR_python-distutils="ml0"
|
||||
RDEPENDS_python-distutils="python-core"
|
||||
FILES_python-distutils="${libdir}/python2.4/config ${libdir}/python2.4/distutils "
|
||||
|
||||
DESCRIPTION_python-textutils="Python Option Parsing, Text Wrapping and Comma-Separated-Value Support"
|
||||
PR_python-textutils="ml0"
|
||||
RDEPENDS_python-textutils="python-core python-io python-re python-stringold"
|
||||
FILES_python-textutils="${libdir}/python2.4/lib-dynload/_csv.so ${libdir}/python2.4/csv.* ${libdir}/python2.4/optparse.* ${libdir}/python2.4/textwrap.* "
|
||||
|
||||
DESCRIPTION_python-codecs="Python Codecs, Encodings & i18n Support"
|
||||
PR_python-codecs="ml0"
|
||||
RDEPENDS_python-codecs="python-core"
|
||||
FILES_python-codecs="${libdir}/python2.4/codecs.* ${libdir}/python2.4/encodings ${libdir}/python2.4/gettext.* ${libdir}/python2.4/locale.* ${libdir}/python2.4/lib-dynload/_locale.so ${libdir}/python2.4/lib-dynload/unicodedata.so ${libdir}/python2.4/stringprep.* ${libdir}/python2.4/xdrlib.* "
|
||||
|
||||
DESCRIPTION_python-pickle="Python Persistence Support"
|
||||
PR_python-pickle="ml0"
|
||||
RDEPENDS_python-pickle="python-core python-codecs python-re"
|
||||
FILES_python-pickle="${libdir}/python2.4/pickle.* ${libdir}/python2.4/shelve.* ${libdir}/python2.4/lib-dynload/cPickle.so "
|
||||
|
||||
DESCRIPTION_python-datetime="Python Calendar and Time support"
|
||||
PR_python-datetime="ml0"
|
||||
RDEPENDS_python-datetime="python-core python-codecs"
|
||||
FILES_python-datetime="${libdir}/python2.4/_strptime.* ${libdir}/python2.4/calendar.* ${libdir}/python2.4/lib-dynload/datetime.so "
|
||||
|
||||
DESCRIPTION_python-core="Python Interpreter and core modules (needed!)"
|
||||
PR_python-core="ml0"
|
||||
RDEPENDS_python-core=""
|
||||
FILES_python-core="/usr/lib/python2.4/__future__.* /usr/lib/python2.4/copy.* /usr/lib/python2.4/copy_reg.* /usr/lib/python2.4/ConfigParser.py /usr/lib/python2.4/getopt.* /usr/lib/python2.4/linecache.* /usr/lib/python2.4/new.* /usr/lib/python2.4/os.* /usr/lib/python2.4/posixpath.* /usr/lib/python2.4/warnings.* /usr/lib/python2.4/site.* /usr/lib/python2.4/stat.* /usr/lib/python2.4/UserDict.* /usr/lib/python2.4/lib-dynload/binascii.so /usr/lib/python2.4/lib-dynload/struct.so /usr/lib/python2.4/lib-dynload/time.so /usr/lib/python2.4/lib-dynload/xreadlines.so /usr/lib/python2.4/types.* /usr/bin/python "
|
||||
|
||||
DESCRIPTION_python-io="Python Low-Level I/O"
|
||||
PR_python-io="ml0"
|
||||
RDEPENDS_python-io="python-core python-math"
|
||||
FILES_python-io="${libdir}/python2.4/lib-dynload/_socket.so ${libdir}/python2.4/lib-dynload/_ssl.so ${libdir}/python2.4/lib-dynload/select.so ${libdir}/python2.4/lib-dynload/termios.so ${libdir}/python2.4/lib-dynload/cStringIO.so ${libdir}/python2.4/pipes.* ${libdir}/python2.4/socket.* ${libdir}/python2.4/tempfile.* ${libdir}/python2.4/StringIO.* "
|
||||
|
||||
DESCRIPTION_python-compiler="Python Compiler Support"
|
||||
PR_python-compiler="ml0"
|
||||
RDEPENDS_python-compiler="python-core"
|
||||
FILES_python-compiler="${libdir}/python2.4/compiler "
|
||||
|
||||
DESCRIPTION_python-compression="Python High Level Compression Support"
|
||||
PR_python-compression="ml0"
|
||||
RDEPENDS_python-compression="python-core python-zlib"
|
||||
FILES_python-compression="${libdir}/python2.4/gzip.* ${libdir}/python2.4/zipfile.* "
|
||||
|
||||
DESCRIPTION_python-re="Python Regular Expression APIs"
|
||||
PR_python-re="ml0"
|
||||
RDEPENDS_python-re="python-core"
|
||||
FILES_python-re="${libdir}/python2.4/re.* ${libdir}/python2.4/sre.* ${libdir}/python2.4/sre_compile.* ${libdir}/python2.4/sre_constants* ${libdir}/python2.4/sre_parse.* "
|
||||
|
||||
DESCRIPTION_python-xmlrpc="Python XMLRPC Support"
|
||||
PR_python-xmlrpc="ml0"
|
||||
RDEPENDS_python-xmlrpc="python-core python-xml python-netserver python-lang"
|
||||
FILES_python-xmlrpc="${libdir}/python2.4/xmlrpclib.* ${libdir}/python2.4/SimpleXMLRPCServer.* "
|
||||
|
||||
DESCRIPTION_python-terminal="Python Terminal Controlling Support"
|
||||
PR_python-terminal="ml0"
|
||||
RDEPENDS_python-terminal="python-core python-io"
|
||||
FILES_python-terminal="${libdir}/python2.4/pty.* ${libdir}/python2.4/tty.* "
|
||||
|
||||
DESCRIPTION_python-email="Python Email Support"
|
||||
PR_python-email="ml0"
|
||||
RDEPENDS_python-email="python-core python-io python-re"
|
||||
FILES_python-email="${libdir}/python2.4/email "
|
||||
|
||||
DESCRIPTION_python-image="Python Graphical Image Handling"
|
||||
PR_python-image="ml0"
|
||||
RDEPENDS_python-image="python-core"
|
||||
FILES_python-image="${libdir}/python2.4/colorsys.* ${libdir}/python2.4/imghdr.* ${libdir}/python2.4/lib-dynload/imageop.so ${libdir}/python2.4/lib-dynload/rgbimg.so "
|
||||
|
||||
DESCRIPTION_python-resource="Python Resource Control Interface"
|
||||
PR_python-resource="ml0"
|
||||
RDEPENDS_python-resource="python-core"
|
||||
FILES_python-resource="${libdir}/python2.4/lib-dynload/resource.so "
|
||||
|
||||
DESCRIPTION_python-devel="Python Development Package"
|
||||
PR_python-devel="ml0"
|
||||
RDEPENDS_python-devel="python-core"
|
||||
FILES_python-devel="/usr/include /usr/lib/python2.4/config "
|
||||
|
||||
DESCRIPTION_python-math="Python Math Support"
|
||||
PR_python-math="ml0"
|
||||
RDEPENDS_python-math="python-core"
|
||||
FILES_python-math="${libdir}/python2.4/lib-dynload/cmath.so ${libdir}/python2.4/lib-dynload/math.so ${libdir}/python2.4/lib-dynload/_random.so ${libdir}/python2.4/random.* ${libdir}/python2.4/sets.* "
|
||||
|
||||
DESCRIPTION_python-hotshot="Python Hotshot Profiler"
|
||||
PR_python-hotshot="ml0"
|
||||
RDEPENDS_python-hotshot="python-core"
|
||||
FILES_python-hotshot="${libdir}/python2.4/hotshot ${libdir}/python2.4/lib-dynload/_hotshot.so "
|
||||
|
||||
DESCRIPTION_python-unixadmin="Python Unix Administration Support"
|
||||
PR_python-unixadmin="ml0"
|
||||
RDEPENDS_python-unixadmin="python-core"
|
||||
FILES_python-unixadmin="${libdir}/python2.4/lib-dynload/nis.so ${libdir}/python2.4/lib-dynload/grp.so ${libdir}/python2.4/lib-dynload/pwd.so ${libdir}/python2.4/getpass.* "
|
||||
|
||||
DESCRIPTION_python-tkinter="Python Tcl/Tk Bindings"
|
||||
PR_python-tkinter="ml0"
|
||||
RDEPENDS_python-tkinter="python-core"
|
||||
FILES_python-tkinter="${libdir}/python2.4/lib-dynload/_tkinter.so ${libdir}/python2.4/lib-tk "
|
||||
|
||||
DESCRIPTION_python-gdbm="Python GNU Database Support"
|
||||
PR_python-gdbm="ml0"
|
||||
RDEPENDS_python-gdbm="python-core libgdbm3"
|
||||
FILES_python-gdbm="${libdir}/python2.4/lib-dynload/gdbm.so "
|
||||
|
||||
DESCRIPTION_python-fcntl="Python's fcntl Interface"
|
||||
PR_python-fcntl="ml0"
|
||||
RDEPENDS_python-fcntl="python-core"
|
||||
FILES_python-fcntl="${libdir}/python2.4/lib-dynload/fcntl.so "
|
||||
|
||||
DESCRIPTION_python-netclient="Python Internet Protocol Clients"
|
||||
PR_python-netclient="ml0"
|
||||
RDEPENDS_python-netclient="python-core python-datetime python-io python-lang python-logging python-mime"
|
||||
FILES_python-netclient="${libdir}/python2.4/_LWPCookieJar.* ${libdir}/python2.4/_MozillaCookieJar.* ${libdir}/python2.4/base64.* ${libdir}/python2.4/cookielib.* ${libdir}/python2.4/ftplib.* ${libdir}/python2.4/gopherlib.* ${libdir}/python2.4/hmac.* ${libdir}/python2.4/httplib.* ${libdir}/python2.4/mimetypes.* ${libdir}/python2.4/nntplib.* ${libdir}/python2.4/poplib.* ${libdir}/python2.4/smtplib.* ${libdir}/python2.4/telnetlib.* ${libdir}/python2.4/urllib.* ${libdir}/python2.4/urllib2.* ${libdir}/python2.4/urlparse.* "
|
||||
|
||||
DESCRIPTION_python-pprint="Python Pretty-Print Support"
|
||||
PR_python-pprint="ml0"
|
||||
RDEPENDS_python-pprint="python-core"
|
||||
FILES_python-pprint="${libdir}/python2.4/pprint.* "
|
||||
|
||||
DESCRIPTION_python-netserver="Python Internet Protocol Servers"
|
||||
PR_python-netserver="ml0"
|
||||
RDEPENDS_python-netserver="python-core python-netclient"
|
||||
FILES_python-netserver="${libdir}/python2.4/cgi.* ${libdir}/python2.4/BaseHTTPServer.* ${libdir}/python2.4/SimpleHTTPServer.* ${libdir}/python2.4/SocketServer.* "
|
||||
|
||||
DESCRIPTION_python-curses="Python Curses Support"
|
||||
PR_python-curses="ml0"
|
||||
RDEPENDS_python-curses="python-core libncurses5"
|
||||
FILES_python-curses="${libdir}/python2.4/curses ${libdir}/python2.4/lib-dynload/_curses.so ${libdir}/python2.4/lib-dynload/_curses_panel.so "
|
||||
|
||||
DESCRIPTION_python-syslog="Python's syslog Interface"
|
||||
PR_python-syslog="ml0"
|
||||
RDEPENDS_python-syslog="python-core"
|
||||
FILES_python-syslog="${libdir}/python2.4/lib-dynload/syslog.so "
|
||||
|
||||
DESCRIPTION_python-html="Python HTML Processing"
|
||||
PR_python-html="ml0"
|
||||
RDEPENDS_python-html="python-core"
|
||||
FILES_python-html="${libdir}/python2.4/formatter.* ${libdir}/python2.4/htmlentitydefs.* ${libdir}/python2.4/htmllib.* ${libdir}/python2.4/markupbase.* ${libdir}/python2.4/sgmllib.* "
|
||||
|
||||
DESCRIPTION_python-readline="Python Readline Support"
|
||||
PR_python-readline="ml0"
|
||||
RDEPENDS_python-readline="python-core libreadline4"
|
||||
FILES_python-readline="${libdir}/python2.4/lib-dynload/readline.so ${libdir}/python2.4/rlcompleter.* "
|
||||
|
||||
DESCRIPTION_python-pydoc="Python Interactive Help Support"
|
||||
PR_python-pydoc="ml0"
|
||||
RDEPENDS_python-pydoc="python-core python-lang python-stringold python-re"
|
||||
FILES_python-pydoc="/usr/bin/pydoc /usr/lib/python2.4/pydoc.* "
|
||||
|
||||
DESCRIPTION_python-logging="Python Logging Support"
|
||||
PR_python-logging="ml0"
|
||||
RDEPENDS_python-logging="python-core"
|
||||
FILES_python-logging="${libdir}/python2.4/logging "
|
||||
|
||||
DESCRIPTION_python-mailbox="Python Mailbox Format Support"
|
||||
PR_python-mailbox="ml0"
|
||||
RDEPENDS_python-mailbox="python-core python-mime"
|
||||
FILES_python-mailbox="${libdir}/python2.4/mailbox.* "
|
||||
|
||||
DESCRIPTION_python-xml="Python basic XML support."
|
||||
PR_python-xml="ml0"
|
||||
RDEPENDS_python-xml="python-core python-re"
|
||||
FILES_python-xml="${libdir}/python2.4/lib-dynload/pyexpat.so ${libdir}/python2.4/xml ${libdir}/python2.4/xmllib.* "
|
||||
|
||||
DESCRIPTION_python-mime="Python MIME Handling APIs"
|
||||
PR_python-mime="ml0"
|
||||
RDEPENDS_python-mime="python-core python-io"
|
||||
FILES_python-mime="${libdir}/python2.4/mimetools.* ${libdir}/python2.4/quopri.* ${libdir}/python2.4/rfc822.* "
|
||||
|
||||
DESCRIPTION_python-tests="Python Tests"
|
||||
PR_python-tests="ml0"
|
||||
RDEPENDS_python-tests="python-core"
|
||||
FILES_python-tests="${libdir}/python2.4/test "
|
||||
|
||||
DESCRIPTION_python-unittest="Python Unit Testing Framework"
|
||||
PR_python-unittest="ml0"
|
||||
RDEPENDS_python-unittest="python-core python-stringold python-lang"
|
||||
FILES_python-unittest="${libdir}/python2.4/unittest.* "
|
||||
|
||||
DESCRIPTION_python-stringold="Python Deprecated String APIs"
|
||||
PR_python-stringold="ml0"
|
||||
RDEPENDS_python-stringold="python-core python-re"
|
||||
FILES_python-stringold="${libdir}/python2.4/lib-dynload/strop.so ${libdir}/python2.4/string.* "
|
||||
|
||||
DESCRIPTION_python-lib-old-and-deprecated="Python Deprecated Libraries"
|
||||
PR_python-lib-old-and-deprecated="ml0"
|
||||
RDEPENDS_python-lib-old-and-deprecated="python-core"
|
||||
FILES_python-lib-old-and-deprecated="${libdir}/python2.4/lib-old "
|
||||
|
||||
DESCRIPTION_python-compile="Python Bytecode Compilation Support"
|
||||
PR_python-compile="ml0"
|
||||
RDEPENDS_python-compile="python-core"
|
||||
FILES_python-compile="${libdir}/python2.4/py_compile.* ${libdir}/python2.4/compileall.* "
|
||||
|
||||
DESCRIPTION_python-shell="Python Shell-Like Functionality"
|
||||
PR_python-shell="ml0"
|
||||
RDEPENDS_python-shell="python-core python-re"
|
||||
FILES_python-shell="${libdir}/python2.4/commands.* ${libdir}/python2.4/dircache.* ${libdir}/python2.4/fnmatch.* ${libdir}/python2.4/glob.* ${libdir}/python2.4/popen2.* ${libdir}/python2.4/shutil.* "
|
||||
|
||||
DESCRIPTION_python-bsddb="Python Berkeley Database Bindings"
|
||||
PR_python-bsddb="ml0"
|
||||
RDEPENDS_python-bsddb="python-core"
|
||||
FILES_python-bsddb="${libdir}/python2.4/bsddb "
|
||||
|
||||
DESCRIPTION_python-mmap="Python Memory-Mapped-File Support"
|
||||
PR_python-mmap="ml0"
|
||||
RDEPENDS_python-mmap="python-core python-io"
|
||||
FILES_python-mmap="${libdir}/python2.4/lib-dynload/mmap.so "
|
||||
|
||||
DESCRIPTION_python-zlib="Python zlib Support."
|
||||
PR_python-zlib="ml0"
|
||||
RDEPENDS_python-zlib="python-core libz1"
|
||||
FILES_python-zlib="${libdir}/python2.4/lib-dynload/zlib.so "
|
||||
|
||||
DESCRIPTION_python-db="Python File-Based Database Support"
|
||||
PR_python-db="ml0"
|
||||
RDEPENDS_python-db="python-core"
|
||||
FILES_python-db="${libdir}/python2.4/anydbm.* ${libdir}/python2.4/dumbdbm.* ${libdir}/python2.4/whichdb.* "
|
||||
|
||||
DESCRIPTION_python-crypt="Python Basic Cryptographic and Hashing Support"
|
||||
PR_python-crypt="ml0"
|
||||
RDEPENDS_python-crypt="python-core"
|
||||
FILES_python-crypt="${libdir}/python2.4/lib-dynload/crypt.so ${libdir}/python2.4/lib-dynload/md5.so ${libdir}/python2.4/lib-dynload/rotor.so ${libdir}/python2.4/lib-dynload/sha.so "
|
||||
|
||||
DESCRIPTION_python-idle="Python Integrated Development Environment"
|
||||
PR_python-idle="ml0"
|
||||
RDEPENDS_python-idle="python-core python-tkinter"
|
||||
FILES_python-idle="/usr/bin/idle /usr/lib/python2.4/idlelib "
|
||||
|
||||
DESCRIPTION_python-lang="Python Low-Level Language Support"
|
||||
PR_python-lang="ml0"
|
||||
RDEPENDS_python-lang="python-core"
|
||||
FILES_python-lang="${libdir}/python2.4/lib-dynload/array.so ${libdir}/python2.4/lib-dynload/parser.so ${libdir}/python2.4/lib-dynload/operator.so ${libdir}/python2.4/lib-dynload/_weakref.so ${libdir}/python2.4/lib-dynload/itertools.so ${libdir}/python2.4/lib-dynload/collections.so ${libdir}/python2.4/atexit.* ${libdir}/python2.4/code.* ${libdir}/python2.4/codeop.* ${libdir}/python2.4/dis.* ${libdir}/python2.4/inspect.* ${libdir}/python2.4/keyword.* ${libdir}/python2.4/opcode.* ${libdir}/python2.4/repr.* ${libdir}/python2.4/token.* ${libdir}/python2.4/tokenize.* ${libdir}/python2.4/traceback.* ${libdir}/python2.4/linecache.* ${libdir}/python2.4/weakref.* "
|
||||
|
||||
DESCRIPTION_python-audio="Python Audio Handling"
|
||||
PR_python-audio="ml0"
|
||||
RDEPENDS_python-audio="python-core"
|
||||
FILES_python-audio="${libdir}/python2.4/wave.* ${libdir}/python2.4/chunk.* ${libdir}/python2.4/lib-dynload/ossaudiodev.so ${libdir}/python2.4/lib-dynload/audioop.so "
|
||||
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,18 @@
|
|||
|
||||
#
|
||||
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||
#
|
||||
|
||||
--- Python-2.4c1/Makefile.pre.in~bindir-libdir.patch
|
||||
+++ Python-2.4c1/Makefile.pre.in
|
||||
@@ -78,8 +78,8 @@
|
||||
exec_prefix= @exec_prefix@
|
||||
|
||||
# Expanded directories
|
||||
-BINDIR= $(exec_prefix)/bin
|
||||
-LIBDIR= $(exec_prefix)/lib
|
||||
+BINDIR= @bindir@
|
||||
+LIBDIR= @libdir@
|
||||
MANDIR= @mandir@
|
||||
INCLUDEDIR= @includedir@
|
||||
CONFINCLUDEDIR= $(exec_prefix)/include
|
|
@ -0,0 +1,108 @@
|
|||
|
||||
#
|
||||
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||
#
|
||||
|
||||
--- Python-2.4c1/Makefile.pre.in~crosscompile
|
||||
+++ Python-2.4c1/Makefile.pre.in
|
||||
@@ -162,6 +162,7 @@
|
||||
|
||||
PYTHON= python$(EXE)
|
||||
BUILDPYTHON= python$(BUILDEXE)
|
||||
+HOSTPYTHON= $(BUILDPYTHON)
|
||||
|
||||
# === Definitions added by makesetup ===
|
||||
|
||||
@@ -188,7 +189,7 @@
|
||||
##########################################################################
|
||||
# Parser
|
||||
PGEN= Parser/pgen$(EXE)
|
||||
-
|
||||
+HOSTPGEN= $(PGEN)$(EXE)
|
||||
POBJS= \
|
||||
Parser/acceler.o \
|
||||
Parser/grammar1.o \
|
||||
@@ -320,8 +321,8 @@
|
||||
# Build the shared modules
|
||||
sharedmods: $(BUILDPYTHON)
|
||||
case $$MAKEFLAGS in \
|
||||
- *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py -q build;; \
|
||||
- *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' ./$(BUILDPYTHON) -E $(srcdir)/setup.py build;; \
|
||||
+ *-s*) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py -q build;; \
|
||||
+ *) $(RUNSHARED) CC='$(CC)' LDSHARED='$(BLDSHARED)' OPT='$(OPT)' $(HOSTPYTHON) -E $(srcdir)/setup.py build;; \
|
||||
esac
|
||||
|
||||
# buildno should really depend on something like LIBRARY_SRC
|
||||
@@ -442,7 +443,7 @@
|
||||
|
||||
|
||||
$(GRAMMAR_H) $(GRAMMAR_C): $(PGEN) $(GRAMMAR_INPUT)
|
||||
- -$(PGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
||||
+ -$(HOSTPGEN) $(GRAMMAR_INPUT) $(GRAMMAR_H) $(GRAMMAR_C)
|
||||
|
||||
$(PGEN): $(PGENOBJS)
|
||||
$(CC) $(OPT) $(LDFLAGS) $(PGENOBJS) $(LIBS) -o $(PGEN)
|
||||
@@ -718,19 +719,19 @@
|
||||
done
|
||||
$(INSTALL_DATA) $(srcdir)/LICENSE $(DESTDIR)$(LIBDEST)/LICENSE.txt
|
||||
PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||
- ./$(BUILDPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
+ $(HOSTPYTHON) -Wi -tt $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
-d $(LIBDEST) -f \
|
||||
-x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
|
||||
PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||
- ./$(BUILDPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
+ $(HOSTPYTHON) -Wi -tt -O $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
-d $(LIBDEST) -f \
|
||||
-x 'badsyntax|site-packages' $(DESTDIR)$(LIBDEST)
|
||||
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||
- ./$(BUILDPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
+ $(HOSTPYTHON) -Wi -t $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
-d $(LIBDEST)/site-packages -f \
|
||||
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
||||
-PYTHONPATH=$(DESTDIR)$(LIBDEST) $(RUNSHARED) \
|
||||
- ./$(BUILDPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
+ $(HOSTPYTHON) -Wi -t -O $(DESTDIR)$(LIBDEST)/compileall.py \
|
||||
-d $(LIBDEST)/site-packages -f \
|
||||
-x badsyntax $(DESTDIR)$(LIBDEST)/site-packages
|
||||
|
||||
@@ -825,7 +826,7 @@
|
||||
# Install the dynamically loadable modules
|
||||
# This goes into $(exec_prefix)
|
||||
sharedinstall:
|
||||
- $(RUNSHARED) ./$(BUILDPYTHON) -E $(srcdir)/setup.py install \
|
||||
+ $(RUNSHARED) $(HOSTPYTHON) -E $(srcdir)/setup.py install \
|
||||
--prefix=$(prefix) \
|
||||
--install-scripts=$(BINDIR) \
|
||||
--install-platlib=$(DESTSHARED) \
|
||||
--- Python-2.4c1/setup.py~crosscompile
|
||||
+++ Python-2.4c1/setup.py
|
||||
@@ -206,6 +206,7 @@
|
||||
except ImportError, why:
|
||||
self.announce('*** WARNING: renaming "%s" since importing it'
|
||||
' failed: %s' % (ext.name, why), level=3)
|
||||
+ return
|
||||
assert not self.inplace
|
||||
basename, tail = os.path.splitext(ext_filename)
|
||||
newname = basename + "_failed" + tail
|
||||
@@ -239,8 +240,8 @@
|
||||
|
||||
def detect_modules(self):
|
||||
# Ensure that /usr/local is always used
|
||||
- add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
- add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
+ # add_dir_to_list(self.compiler.library_dirs, '/usr/local/lib')
|
||||
+ # add_dir_to_list(self.compiler.include_dirs, '/usr/local/include')
|
||||
|
||||
# Add paths to popular package managers on OS X/darwin
|
||||
if sys.platform == "darwin":
|
||||
@@ -293,6 +294,9 @@
|
||||
|
||||
# XXX Omitted modules: gl, pure, dl, SGI-specific modules
|
||||
|
||||
+ lib_dirs = [ os.getenv( "STAGING_LIBDIR" ) ]
|
||||
+ inc_dirs = [ os.getenv( "STAGING_INCDIR" ) ]
|
||||
+
|
||||
#
|
||||
# The following modules are all pretty straightforward, and compile
|
||||
# on pretty much any POSIXish platform.
|
|
@ -0,0 +1,39 @@
|
|||
|
||||
#
|
||||
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||
#
|
||||
|
||||
--- Python-2.4.1/setup.py~fix-tkinter-detection
|
||||
+++ Python-2.4.1/setup.py
|
||||
@@ -999,7 +999,7 @@
|
||||
dotversion = dotversion[:-1] + '.' + dotversion[-1]
|
||||
tcl_include_sub = []
|
||||
tk_include_sub = []
|
||||
- for dir in inc_dirs:
|
||||
+ for dir in [os.getenv("STAGING_INCDIR")]:
|
||||
tcl_include_sub += [dir + os.sep + "tcl" + dotversion]
|
||||
tk_include_sub += [dir + os.sep + "tk" + dotversion]
|
||||
tk_include_sub += tcl_include_sub
|
||||
@@ -1018,22 +1018,6 @@
|
||||
if dir not in include_dirs:
|
||||
include_dirs.append(dir)
|
||||
|
||||
- # Check for various platform-specific directories
|
||||
- if platform == 'sunos5':
|
||||
- include_dirs.append('/usr/openwin/include')
|
||||
- added_lib_dirs.append('/usr/openwin/lib')
|
||||
- elif os.path.exists('/usr/X11R6/include'):
|
||||
- include_dirs.append('/usr/X11R6/include')
|
||||
- added_lib_dirs.append('/usr/X11R6/lib64')
|
||||
- added_lib_dirs.append('/usr/X11R6/lib')
|
||||
- elif os.path.exists('/usr/X11R5/include'):
|
||||
- include_dirs.append('/usr/X11R5/include')
|
||||
- added_lib_dirs.append('/usr/X11R5/lib')
|
||||
- else:
|
||||
- # Assume default location for X11
|
||||
- include_dirs.append('/usr/X11/include')
|
||||
- added_lib_dirs.append('/usr/X11/lib')
|
||||
-
|
||||
# If Cygwin, then verify that X is installed before proceeding
|
||||
if platform == 'cygwin':
|
||||
x11_inc = find_file('X11/Xlib.h', [], include_dirs)
|
|
@ -0,0 +1,19 @@
|
|||
|
||||
#
|
||||
# Patch managed by http://www.holgerschurig.de/patcher.html
|
||||
#
|
||||
|
||||
--- Python-2.4.3/Lib/site.py~sitebranding
|
||||
+++ Python-2.4.3/Lib/site.py
|
||||
@@ -305,8 +305,9 @@
|
||||
"Jython is maintained by the Jython developers (www.jython.org).")
|
||||
else:
|
||||
__builtin__.credits = _Printer("credits", """\
|
||||
- Thanks to CWI, CNRI, BeOpen.com, Zope Corporation and a cast of thousands
|
||||
- for supporting Python development. See www.python.org for more information.""")
|
||||
+ This version of Python has been built by the OpenEmbedded buildsystem (http://openembedded.org).
|
||||
+ It is a part of the Python-For-Embedded-Systems initiative which is maintained by
|
||||
+ Michael 'Mickey' Lauer (http://www.Vanille.de/projects/python.spy).""")
|
||||
here = os.path.dirname(os.__file__)
|
||||
__builtin__.license = _Printer(
|
||||
"license", "See http://www.python.org/%.3s/license.html" % sys.version,
|
|
@ -0,0 +1,18 @@
|
|||
|
||||
#
|
||||
# Made by http://www.mn-logistik.de/unsupported/pxa250/patcher
|
||||
#
|
||||
|
||||
--- Python-2.3.1/Makefile.pre.in~bindir-libdir 2003-09-20 12:50:28.000000000 +0200
|
||||
+++ Python-2.3.1/Makefile.pre.in 2003-11-02 19:53:17.000000000 +0100
|
||||
@@ -78,8 +78,8 @@
|
||||
exec_prefix= @exec_prefix@
|
||||
|
||||
# Expanded directories
|
||||
-BINDIR= $(exec_prefix)/bin
|
||||
-LIBDIR= $(exec_prefix)/lib
|
||||
+BINDIR= @bindir@
|
||||
+LIBDIR= @libdir@
|
||||
MANDIR= @mandir@
|
||||
INCLUDEDIR= @includedir@
|
||||
CONFINCLUDEDIR= $(exec_prefix)/include
|
|
@ -0,0 +1,38 @@
|
|||
|
||||
#
|
||||
# Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
|
||||
#
|
||||
|
||||
--- Python-2.3.3/Lib/distutils/sysconfig.py~cross-distutils 2003-02-10 15:02:33.000000000 +0100
|
||||
+++ Python-2.3.3/Lib/distutils/sysconfig.py 2004-03-02 20:15:05.000000000 +0100
|
||||
@@ -19,8 +19,8 @@
|
||||
from errors import DistutilsPlatformError
|
||||
|
||||
# These are needed in a couple of spots, so just compute them once.
|
||||
-PREFIX = os.path.normpath(sys.prefix)
|
||||
-EXEC_PREFIX = os.path.normpath(sys.exec_prefix)
|
||||
+PREFIX = os.path.normpath(sys.prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
|
||||
+EXEC_PREFIX = os.path.normpath(sys.exec_prefix).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
|
||||
|
||||
# python_build: (Boolean) if true, we're either building Python or
|
||||
# building an extension with an un-installed Python, so we use
|
||||
@@ -192,7 +192,8 @@
|
||||
else:
|
||||
# The name of the config.h file changed in 2.2
|
||||
config_h = 'pyconfig.h'
|
||||
- return os.path.join(inc_dir, config_h)
|
||||
+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
|
||||
+ return os.path.join(inc_dir, config_h).replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
|
||||
|
||||
|
||||
def get_makefile_filename():
|
||||
@@ -200,7 +201,8 @@
|
||||
if python_build:
|
||||
return os.path.join(os.path.dirname(sys.executable), "Makefile")
|
||||
lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
|
||||
- return os.path.join(lib_dir, "config", "Makefile")
|
||||
+ print "NOTE: sysconfig.get_config_h_filename() altered for OpenEmbedded"
|
||||
+ return os.path.join(lib_dir, "config", "Makefile").replace( os.getenv("BUILD_SYS"), os.getenv("HOST_SYS") )
|
||||
|
||||
|
||||
def parse_config_h(fp, g=None):
|
|
@ -0,0 +1,31 @@
|
|||
DESCRIPTION = "Python Programming Language"
|
||||
HOMEPAGE = "http://www.python.org"
|
||||
LICENSE = "PSF"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
|
||||
DEPENDS = ""
|
||||
PR = "r0"
|
||||
|
||||
EXCLUDE_FROM_WORLD = "1"
|
||||
|
||||
SRC_URI = "http://www.python.org/ftp/python/2.4/Python-2.4.tar.bz2 \
|
||||
file://bindir-libdir.patch;patch=1 \
|
||||
file://cross-distutils.patch;patch=1"
|
||||
S = "${WORKDIR}/Python-2.4"
|
||||
|
||||
inherit autotools native
|
||||
|
||||
EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc --without-cxx --with-signal-module --with-wctype-functions \
|
||||
--with-prefix=${STAGING_DIR} --with-exec-prefix=${STAGING_DIR}/${BUILD_SYS}"
|
||||
EXTRA_OEMAKE = 'BUILD_SYS="" HOST_SYS=""'
|
||||
|
||||
do_configure () {
|
||||
oe_runconf
|
||||
}
|
||||
|
||||
do_stage_append() {
|
||||
# install pgen for later usage with non-native builds
|
||||
install Parser/pgen ${STAGING_DIR}/${BUILD_SYS}/bin/
|
||||
}
|
||||
|
|
@ -0,0 +1,84 @@
|
|||
## this one is commonly used with AM_PATH_PYTHONDIR ...
|
||||
dnl AM_CHECK_PYMOD(MODNAME [,SYMBOL [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]]])
|
||||
dnl Check if a module containing a given symbol is visible to python.
|
||||
AC_DEFUN(AM_CHECK_PYMOD,
|
||||
[AC_REQUIRE([AM_PATH_PYTHON])
|
||||
py_mod_var=`echo $1['_']$2 | sed 'y%./+-%__p_%'`
|
||||
AC_MSG_CHECKING(for ifelse([$2],[],,[$2 in ])python module $1)
|
||||
AC_CACHE_VAL(py_cv_mod_$py_mod_var, [
|
||||
ifelse([$2],[], [prog="
|
||||
import sys
|
||||
try:
|
||||
import $1
|
||||
except ImportError:
|
||||
sys.exit(1)
|
||||
except:
|
||||
sys.exit(0)
|
||||
sys.exit(0)"], [prog="
|
||||
import $1
|
||||
$1.$2"])
|
||||
if $PYTHON -c "$prog" 1>&AC_FD_CC 2>&AC_FD_CC
|
||||
then
|
||||
eval "py_cv_mod_$py_mod_var=yes"
|
||||
else
|
||||
eval "py_cv_mod_$py_mod_var=no"
|
||||
fi
|
||||
])
|
||||
py_val=`eval "echo \`echo '$py_cv_mod_'$py_mod_var\`"`
|
||||
if test "x$py_val" != xno; then
|
||||
AC_MSG_RESULT(yes)
|
||||
ifelse([$3], [],, [$3
|
||||
])dnl
|
||||
else
|
||||
AC_MSG_RESULT(no)
|
||||
ifelse([$4], [],, [$4
|
||||
])dnl
|
||||
fi
|
||||
])
|
||||
|
||||
dnl a macro to check for ability to create python extensions
|
||||
dnl AM_CHECK_PYTHON_HEADERS([ACTION-IF-POSSIBLE], [ACTION-IF-NOT-POSSIBLE])
|
||||
dnl function also defines PYTHON_INCLUDES
|
||||
AC_DEFUN([AM_CHECK_PYTHON_HEADERS],
|
||||
[AC_REQUIRE([AM_PATH_PYTHON])
|
||||
AC_MSG_CHECKING(for headers required to compile python extensions)
|
||||
dnl deduce PYTHON_INCLUDES
|
||||
py_prefix=`$PYTHON -c "import sys; print sys.prefix"`
|
||||
py_exec_prefix=`$PYTHON -c "import sys; print sys.exec_prefix"`
|
||||
PYTHON_INCLUDES="-I${py_prefix}/include/python${PYTHON_VERSION}"
|
||||
if test "$py_prefix" != "$py_exec_prefix"; then
|
||||
PYTHON_INCLUDES="$PYTHON_INCLUDES -I${py_exec_prefix}/include/python${PYTHON_VERSION}"
|
||||
fi
|
||||
AC_SUBST(PYTHON_INCLUDES)
|
||||
dnl check if the headers exist:
|
||||
save_CPPFLAGS="$CPPFLAGS"
|
||||
CPPFLAGS="$CPPFLAGS $PYTHON_INCLUDES"
|
||||
AC_TRY_CPP([#include <Python.h>],dnl
|
||||
[AC_MSG_RESULT(found)
|
||||
$1],dnl
|
||||
[AC_MSG_RESULT(not found)
|
||||
$2])
|
||||
CPPFLAGS="$save_CPPFLAGS"
|
||||
])
|
||||
|
||||
dnl
|
||||
dnl JH_ADD_CFLAG(FLAG)
|
||||
dnl checks whether the C compiler supports the given flag, and if so, adds
|
||||
dnl it to $CFLAGS. If the flag is already present in the list, then the
|
||||
dnl check is not performed.
|
||||
AC_DEFUN([JH_ADD_CFLAG],
|
||||
[
|
||||
case " $CFLAGS " in
|
||||
*@<:@\ \ @:>@$1@<:@\ \ @:>@*)
|
||||
;;
|
||||
*)
|
||||
save_CFLAGS="$CFLAGS"
|
||||
CFLAGS="$CFLAGS $1"
|
||||
AC_MSG_CHECKING([whether [$]CC understands $1])
|
||||
AC_TRY_COMPILE([], [], [jh_has_option=yes], [jh_has_option=no])
|
||||
AC_MSG_RESULT($jh_has_option)
|
||||
if test $jh_has_option = no; then
|
||||
CFLAGS="$save_CFLAGS"
|
||||
fi
|
||||
;;
|
||||
esac])
|
|
@ -0,0 +1,24 @@
|
|||
DESCRIPTION = "Python GTK+ Bindings"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
|
||||
DEPENDS = "gtk+ libglade"
|
||||
RDEPENDS = "python-shell"
|
||||
SRCNAME = "pygtk"
|
||||
LICENSE = "LGPL"
|
||||
PR = "r0"
|
||||
|
||||
SRC_URI = "ftp://ftp.gnome.org/pub/gnome/sources/pygtk/2.8/${SRCNAME}-${PV}.tar.bz2 \
|
||||
file://acinclude.m4"
|
||||
S = "${WORKDIR}/${SRCNAME}-${PV}"
|
||||
|
||||
inherit autotools pkgconfig distutils-base
|
||||
|
||||
do_configure_prepend() {
|
||||
install -m 0644 ${WORKDIR}/acinclude.m4 ${S}/
|
||||
}
|
||||
|
||||
do_stage() {
|
||||
autotools_stage_includes
|
||||
install -m 0755 codegen/pygtk-codegen-2.0 ${STAGING_BINDIR}/
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
DESCRIPTION = "Python Programming Language"
|
||||
HOMEPAGE = "http://www.python.org"
|
||||
LICENSE = "PSF"
|
||||
SECTION = "devel/python"
|
||||
PRIORITY = "optional"
|
||||
MAINTAINER = "Michael 'Mickey' Lauer <mickey@Vanille.de>"
|
||||
DEPENDS = "python-native readline zlib gdbm openssl tcl tk"
|
||||
DEPENDS_sharprom = "python-native readline zlib gdbm openssl"
|
||||
PR = "ml3"
|
||||
|
||||
PYTHON_MAJMIN = "2.4"
|
||||
|
||||
SRC_URI = "http://www.python.org/ftp/python/${PV}/Python-${PV}.tar.bz2 \
|
||||
file://bindir-libdir.patch;patch=1 \
|
||||
file://crosscompile.patch;patch=1 \
|
||||
file://fix-tkinter-detection.patch;patch=1 \
|
||||
file://sitebranding.patch;patch=1"
|
||||
S = "${WORKDIR}/Python-${PV}"
|
||||
|
||||
inherit autotools
|
||||
|
||||
EXTRA_OECONF = "--with-threads --with-pymalloc --with-cyclic-gc \
|
||||
--without-cxx --with-signal-module --with-wctype-functions \
|
||||
--enable-shared"
|
||||
|
||||
#
|
||||
# copy config.h and an appropriate Makefile for distutils.sysconfig
|
||||
# which laters uses the information out of these to compile extensions
|
||||
#
|
||||
do_compile_prepend() {
|
||||
install -d ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
|
||||
install -d ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
|
||||
install -m 0644 pyconfig.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
|
||||
install -m 0644 Makefile Makefile.orig
|
||||
install -m 0644 Makefile Makefile.backup
|
||||
sed -e 's,${includedir},${STAGING_INCDIR},' < Makefile.backup > Makefile
|
||||
install -m 0644 Makefile Makefile.backup
|
||||
sed -e 's,${libdir},${STAGING_LIBDIR},' < Makefile.backup > Makefile
|
||||
install -m 0644 Makefile ${STAGING_LIBDIR}/python${PYTHON_MAJMIN}/config/
|
||||
}
|
||||
|
||||
do_compile() {
|
||||
oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
|
||||
HOSTPYTHON=${STAGING_BINDIR}/python \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS}
|
||||
}
|
||||
|
||||
do_stage() {
|
||||
install -m 0644 Include/*.h ${STAGING_INCDIR}/python${PYTHON_MAJMIN}/
|
||||
oe_libinstall -a -so libpython2.4 ${STAGING_LIBDIR}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
install -m 0644 Makefile.orig Makefile
|
||||
oe_runmake HOSTPGEN=${STAGING_BINDIR}/pgen \
|
||||
HOSTPYTHON=${STAGING_BINDIR}/python \
|
||||
STAGING_LIBDIR=${STAGING_LIBDIR} \
|
||||
STAGING_INCDIR=${STAGING_INCDIR} \
|
||||
BUILD_SYS=${BUILD_SYS} HOST_SYS=${HOST_SYS} \
|
||||
DESTDIR=${D} install
|
||||
}
|
||||
|
||||
include python-${PV}-manifest.inc
|
||||
|
||||
RPROVIDES_python-core = "python"
|
||||
RPROVIDES_python-curses = "python"
|
||||
PACKAGES =+ "libpython2"
|
||||
FILES_libpython2 = "${libdir}/libpython*"
|
Loading…
Reference in New Issue