diff options
author | Jon Nelson <jnelson@gentoo.org> | 2002-05-03 01:56:03 +0000 |
---|---|---|
committer | Jon Nelson <jnelson@gentoo.org> | 2002-05-03 01:56:03 +0000 |
commit | 0eb755c8b7cbbec914b5d0ed4bd79fba85eced8c (patch) | |
tree | 6880ecd9adb5976e58cbd1ddc56cfcbedc4cd8ba /dev-lang/python | |
parent | mask python 2.2.1 (diff) | |
download | historical-0eb755c8b7cbbec914b5d0ed4bd79fba85eced8c.tar.gz historical-0eb755c8b7cbbec914b5d0ed4bd79fba85eced8c.tar.bz2 historical-0eb755c8b7cbbec914b5d0ed4bd79fba85eced8c.zip |
remove some old files and add a (masked) ebuild for python 2.2.1
Diffstat (limited to 'dev-lang/python')
-rw-r--r-- | dev-lang/python/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.0-r3 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.0-r4 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.1 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.1.1 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.1.1-r1 | 1 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.1.1-r2 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.2-r4 | 3 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.2-r5 | 3 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.2-r6 | 1 | ||||
-rw-r--r-- | dev-lang/python/files/digest-python-2.2.1 | 1 | ||||
-rw-r--r-- | dev-lang/python/files/python-config-2.2.1 | 3 | ||||
-rw-r--r-- | dev-lang/python/files/setup.py | 460 | ||||
-rw-r--r-- | dev-lang/python/python-2.2.1.ebuild | 82 |
14 files changed, 93 insertions, 479 deletions
diff --git a/dev-lang/python/ChangeLog b/dev-lang/python/ChangeLog index ab4583f3f0b2..cc50713a9d99 100644 --- a/dev-lang/python/ChangeLog +++ b/dev-lang/python/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/python # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.7 2002/04/29 15:21:51 drobbins Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.8 2002/05/03 01:56:02 jnelson Exp $ + +*python-2.2.1 (2 May 2002) + + 2 May 2002; Jon Nelson <jnelson@gentoo.org>: python-2.2.1.ebuild + Update to 2.2.1, and completely re-vamp build procedure + This should solve several build issues. *python-2.2-r7 (29 Apr 2002) diff --git a/dev-lang/python/files/digest-python-2.0-r3 b/dev-lang/python/files/digest-python-2.0-r3 deleted file mode 100644 index 40b50e8ae750..000000000000 --- a/dev-lang/python/files/digest-python-2.0-r3 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 4751f4619eda0b5ade9d9dd017e7c1ef BeOpen-Python-2.0.tar.bz2 3424256 -MD5 7c99113a11b03599d8494638f6d90b56 python-fchksum-1.1.tar.gz 32768 diff --git a/dev-lang/python/files/digest-python-2.0-r4 b/dev-lang/python/files/digest-python-2.0-r4 deleted file mode 100644 index 40b50e8ae750..000000000000 --- a/dev-lang/python/files/digest-python-2.0-r4 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 4751f4619eda0b5ade9d9dd017e7c1ef BeOpen-Python-2.0.tar.bz2 3424256 -MD5 7c99113a11b03599d8494638f6d90b56 python-fchksum-1.1.tar.gz 32768 diff --git a/dev-lang/python/files/digest-python-2.1 b/dev-lang/python/files/digest-python-2.1 deleted file mode 100644 index 73c5293b264b..000000000000 --- a/dev-lang/python/files/digest-python-2.1 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 2ba2baeccd6100a4be80e6368a975054 Python-2.1.tgz 4276224 -MD5 7c99113a11b03599d8494638f6d90b56 python-fchksum-1.1.tar.gz 32768 diff --git a/dev-lang/python/files/digest-python-2.1.1 b/dev-lang/python/files/digest-python-2.1.1 deleted file mode 100644 index 054bf2264daf..000000000000 --- a/dev-lang/python/files/digest-python-2.1.1 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 eb34371c49b271abc74b42572883e1b4 Python-2.1.1.tgz 6189056 -MD5 f8d6c27f04d88a92ee3c5aa5ce07aed1 python-fchksum-1.3.tar.gz 32768 diff --git a/dev-lang/python/files/digest-python-2.1.1-r1 b/dev-lang/python/files/digest-python-2.1.1-r1 deleted file mode 100644 index a17b45816080..000000000000 --- a/dev-lang/python/files/digest-python-2.1.1-r1 +++ /dev/null @@ -1 +0,0 @@ -MD5 eb34371c49b271abc74b42572883e1b4 Python-2.1.1.tgz 6189056 diff --git a/dev-lang/python/files/digest-python-2.1.1-r2 b/dev-lang/python/files/digest-python-2.1.1-r2 deleted file mode 100644 index 68061e8232e1..000000000000 --- a/dev-lang/python/files/digest-python-2.1.1-r2 +++ /dev/null @@ -1,2 +0,0 @@ -MD5 eb34371c49b271abc74b42572883e1b4 Python-2.1.1.tgz 6189056 -MD5 03be17baafacc3508224d9542c0a61b3 python-fchksum-1.6.tar.gz 36864 diff --git a/dev-lang/python/files/digest-python-2.2-r4 b/dev-lang/python/files/digest-python-2.2-r4 deleted file mode 100644 index df1819667f55..000000000000 --- a/dev-lang/python/files/digest-python-2.2-r4 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 87febf0780c8e18454022d34b2ca70a0 Python-2.2.tgz 6542443 -MD5 03be17baafacc3508224d9542c0a61b3 python-fchksum-1.6.tar.gz 36049 -MD5 3f79a00b72d7282ecbbadc4effb00683 python-fchksum_1.6-2.diff.gz 21854 diff --git a/dev-lang/python/files/digest-python-2.2-r5 b/dev-lang/python/files/digest-python-2.2-r5 deleted file mode 100644 index df1819667f55..000000000000 --- a/dev-lang/python/files/digest-python-2.2-r5 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 87febf0780c8e18454022d34b2ca70a0 Python-2.2.tgz 6542443 -MD5 03be17baafacc3508224d9542c0a61b3 python-fchksum-1.6.tar.gz 36049 -MD5 3f79a00b72d7282ecbbadc4effb00683 python-fchksum_1.6-2.diff.gz 21854 diff --git a/dev-lang/python/files/digest-python-2.2-r6 b/dev-lang/python/files/digest-python-2.2-r6 deleted file mode 100644 index 1a6a57c9f144..000000000000 --- a/dev-lang/python/files/digest-python-2.2-r6 +++ /dev/null @@ -1 +0,0 @@ -MD5 87febf0780c8e18454022d34b2ca70a0 Python-2.2.tgz 6542443 diff --git a/dev-lang/python/files/digest-python-2.2.1 b/dev-lang/python/files/digest-python-2.2.1 new file mode 100644 index 000000000000..ea99f8857c06 --- /dev/null +++ b/dev-lang/python/files/digest-python-2.2.1 @@ -0,0 +1 @@ +MD5 e7012d611602b62e36073c2fd02396a3 Python-2.2.1.tgz 6535104 diff --git a/dev-lang/python/files/python-config-2.2.1 b/dev-lang/python/files/python-config-2.2.1 new file mode 100644 index 000000000000..2bcfdae49fb8 --- /dev/null +++ b/dev-lang/python/files/python-config-2.2.1 @@ -0,0 +1,3 @@ +#!/usr/bin/python +import distutils.sysconfig, string +print "-lpython2.2 -L /usr/lib/python2.2/config",string.join(string.split(distutils.sysconfig.get_config_var("MODLIBS"))) diff --git a/dev-lang/python/files/setup.py b/dev-lang/python/files/setup.py deleted file mode 100644 index 33ee79b1a26f..000000000000 --- a/dev-lang/python/files/setup.py +++ /dev/null @@ -1,460 +0,0 @@ -# Autodetecting setup.py script for building the Python extensions -# -# To be fixed: -# Implement --disable-modules setting -# - -__version__ = "$Revision: 1.1 $" - -import sys, os, getopt -from distutils import sysconfig -from distutils import text_file -from distutils.errors import * -from distutils.core import Extension, setup -from distutils.command.build_ext import build_ext - -# This global variable is used to hold the list of modules to be disabled. -disabled_module_list = [] - -def find_file(filename, std_dirs, paths): - """Searches for the directory where a given file is located, - and returns a possibly-empty list of additional directories, or None - if the file couldn't be found at all. - - 'filename' is the name of a file, such as readline.h or libcrypto.a. - 'std_dirs' is the list of standard system directories; if the - file is found in one of them, no additional directives are needed. - 'paths' is a list of additional locations to check; if the file is - found in one of them, the resulting list will contain the directory. - """ - - # Check the standard locations - for dir in std_dirs: - f = os.path.join(dir, filename) - if os.path.exists(f): return [] - - # Check the additional directories - for dir in paths: - f = os.path.join(dir, filename) - if os.path.exists(f): - return [dir] - - # Not found anywhere - return None - -def find_library_file(compiler, libname, std_dirs, paths): - filename = compiler.library_filename(libname, lib_type='shared') - result = find_file(filename, std_dirs, paths) - if result is not None: return result - - filename = compiler.library_filename(libname, lib_type='static') - result = find_file(filename, std_dirs, paths) - return result - -def module_enabled(extlist, modname): - """Returns whether the module 'modname' is present in the list - of extensions 'extlist'.""" - extlist = [ext for ext in extlist if ext.name == modname] - return len(extlist) - -class PyBuildExt(build_ext): - - def build_extensions(self): - - # Detect which modules should be compiled - self.detect_modules() - - # Remove modules that are present on the disabled list - self.extensions = [ext for ext in self.extensions - if ext.name not in disabled_module_list] - - # Fix up the autodetected modules, prefixing all the source files - # with Modules/ and adding Python's include directory to the path. - (srcdir,) = sysconfig.get_config_vars('srcdir') - - # Figure out the location of the source code for extension modules - moddir = os.path.join(os.getcwd(), srcdir, 'Modules') - moddir = os.path.normpath(moddir) - srcdir, tail = os.path.split(moddir) - srcdir = os.path.normpath(srcdir) - moddir = os.path.normpath(moddir) - - # Fix up the paths for scripts, too - self.distribution.scripts = [os.path.join(srcdir, filename) - for filename in self.distribution.scripts] - - for ext in self.extensions[:]: - ext.sources = [ os.path.join(moddir, filename) - for filename in ext.sources ] - ext.include_dirs.append( '.' ) # to get config.h - ext.include_dirs.append( os.path.join(srcdir, './Include') ) - - # If a module has already been built statically, - # don't build it here - if ext.name in sys.builtin_module_names: - self.extensions.remove(ext) - - # Parse Modules/Setup to figure out which modules are turned - # on in the file. - input = text_file.TextFile('Modules/Setup', join_lines=1) - remove_modules = [] - while 1: - line = input.readline() - if not line: break - line = line.split() - remove_modules.append( line[0] ) - input.close() - - for ext in self.extensions[:]: - if ext.name in remove_modules: - self.extensions.remove(ext) - - # When you run "make CC=altcc" or something similar, you really want - # those environment variables passed into the setup.py phase. Here's - # a small set of useful ones. - compiler = os.environ.get('CC') - linker_so = os.environ.get('LDSHARED') - args = {} - # unfortunately, distutils doesn't let us provide separate C and C++ - # compilers - if compiler is not None: - args['compiler_so'] = compiler - if linker_so is not None: - args['linker_so'] = linker_so + ' -shared' - self.compiler.set_executables(**args) - - build_ext.build_extensions(self) - - def build_extension(self, ext): - - try: - build_ext.build_extension(self, ext) - except (CCompilerError, DistutilsError), why: - self.announce('WARNING: building of extension "%s" failed: %s' % - (ext.name, sys.exc_info()[1])) - - def get_platform (self): - # Get value of sys.platform - platform = sys.platform - if platform[:6] =='cygwin': - platform = 'cygwin' - elif platform[:4] =='beos': - platform = 'beos' - - return platform - - def detect_modules(self): - # Ensure that /usr/local is always used - if '/usr/local/lib' not in self.compiler.library_dirs: - self.compiler.library_dirs.insert(0, '/usr/local/lib') - if '/usr/local/include' not in self.compiler.include_dirs: - self.compiler.include_dirs.insert(0, '/usr/local/include' ) - - # lib_dirs and inc_dirs are used to search for files; - # if a file is found in one of those directories, it can - # be assumed that no additional -I,-L directives are needed. - lib_dirs = self.compiler.library_dirs + ['/lib', '/usr/lib'] - inc_dirs = self.compiler.include_dirs + ['/usr/include'] - exts = [] - - platform = self.get_platform() - - # Check for MacOS X, which doesn't need libm.a at all - math_libs = ['m'] - if platform in ['Darwin1.2', 'beos']: - math_libs = [] - - # XXX Omitted modules: gl, pure, dl, SGI-specific modules - - # - # The following modules are all pretty straightforward, and compile - # on pretty much any POSIXish platform. - # - - # Some modules that are normally always on: - exts.append( Extension('regex', ['regexmodule.c', 'regexpr.c']) ) - exts.append( Extension('pcre', ['pcremodule.c', 'pypcre.c']) ) - - exts.append( Extension('_weakref', ['_weakref.c']) ) - exts.append( Extension('_symtable', ['symtablemodule.c']) ) - exts.append( Extension('xreadlines', ['xreadlinesmodule.c']) ) - - # array objects - exts.append( Extension('array', ['arraymodule.c']) ) - # complex math library functions - exts.append( Extension('cmath', ['cmathmodule.c'], - libraries=math_libs) ) - - # math library functions, e.g. sin() - exts.append( Extension('math', ['mathmodule.c'], - libraries=math_libs) ) - # fast string operations implemented in C - exts.append( Extension('strop', ['stropmodule.c']) ) - # time operations and variables - exts.append( Extension('time', ['timemodule.c'], - libraries=math_libs) ) - # operator.add() and similar goodies - exts.append( Extension('operator', ['operator.c']) ) - # access to the builtin codecs and codec registry - exts.append( Extension('_codecs', ['_codecsmodule.c']) ) - # Python C API test module - exts.append( Extension('_testcapi', ['_testcapimodule.c']) ) - # static Unicode character database - exts.append( Extension('unicodedata', ['unicodedata.c']) ) - - # Modules with some UNIX dependencies -- on by default: - # (If you have a really backward UNIX, select and socket may not be - # supported...) - - # fcntl(2) and ioctl(2) - exts.append( Extension('fcntl', ['fcntlmodule.c']) ) - # pwd(3) - exts.append( Extension('pwd', ['pwdmodule.c']) ) - # grp(3) - exts.append( Extension('grp', ['grpmodule.c']) ) - # posix (UNIX) errno values - exts.append( Extension('errno', ['errnomodule.c']) ) - # select(2); not on ancient System V - exts.append( Extension('select', ['selectmodule.c']) ) - - # The md5 module implements the RSA Data Security, Inc. MD5 - # Message-Digest Algorithm, described in RFC 1321. The necessary files - # md5c.c and md5.h are included here. - exts.append( Extension('md5', ['md5module.c', 'md5c.c']) ) - - # The sha module implements the SHA checksum algorithm. - # (NIST's Secure Hash Algorithm.) - exts.append( Extension('sha', ['shamodule.c']) ) - - # Tommy Burnette's 'new' module (creates new empty objects of certain - # kinds): - exts.append( Extension('new', ['newmodule.c']) ) - - # Helper module for various ascii-encoders - exts.append( Extension('binascii', ['binascii.c']) ) - - # Fred Drake's interface to the Python parser - exts.append( Extension('parser', ['parsermodule.c']) ) - - # Digital Creations' cStringIO and cPickle - exts.append( Extension('cStringIO', ['cStringIO.c']) ) - exts.append( Extension('cPickle', ['cPickle.c']) ) - - # Memory-mapped files (also works on Win32). - exts.append( Extension('mmap', ['mmapmodule.c']) ) - - # Lance Ellinghaus's modules: - # enigma-inspired encryption - exts.append( Extension('rotor', ['rotormodule.c']) ) - # syslog daemon interface - exts.append( Extension('syslog', ['syslogmodule.c']) ) - - # George Neville-Neil's timing module: - exts.append( Extension('timing', ['timingmodule.c']) ) - - # fchksum module - exts.append( Extension('fchksum', ['fchksum.c','md5_2.c']) ) - # Here ends the simple stuff. From here on, modules need certain - # libraries, are platform-specific, or present other surprises. - # - - # Multimedia modules - # These don't work for 64-bit platforms!!! - # These represent audio samples or images as strings: - - # Disabled on 64-bit platforms - if sys.maxint != 9223372036854775807L: - # Operations on audio samples - exts.append( Extension('audioop', ['audioop.c']) ) - # Operations on images - exts.append( Extension('imageop', ['imageop.c']) ) - # Read SGI RGB image files (but coded portably) - exts.append( Extension('rgbimg', ['rgbimgmodule.c']) ) - - # The crypt module is now disabled by default because it breaks builds - # on many systems (where -lcrypt is needed), e.g. Linux (I believe). - - if self.compiler.find_library_file(lib_dirs, 'crypt'): - libs = ['crypt'] - else: - libs = [] - exts.append( Extension('crypt', ['cryptmodule.c'], libraries=libs) ) - - - # Modules that provide persistent dictionary-like semantics. You will - # probably want to arrange for at least one of them to be available on - # your machine, though none are defined by default because of library - # dependencies. The Python module anydbm.py provides an - # implementation independent wrapper for these; dumbdbm.py provides - # similar functionality (but slower of course) implemented in Python. - - - # Berkeley DB interface. - # - # This requires the Berkeley DB code, see - # ftp://ftp.cs.berkeley.edu/pub/4bsd/db.1.85.tar.gz - # - # Edit the variables DB and DBPORT to point to the db top directory - # and the subdirectory of PORT where you built it. - # - # (See http://electricrain.com/greg/python/bsddb3/ for an interface to - # BSD DB 3.x.) - - - # The mpz module interfaces to the GNU Multiple Precision library. - # You need to ftp the GNU MP library. - # This was originally written and tested against GMP 1.2 and 1.3.2. - # It has been modified by Rob Hooft to work with 2.0.2 as well, but I - # haven't tested it recently. For a more complete module, - # refer to pympz.sourceforge.net. - - # A compatible MP library unencombered by the GPL also exists. It was - # posted to comp.sources.misc in volume 40 and is widely available from - # FTP archive sites. One URL for it is: - # ftp://gatekeeper.dec.com/.b/usenet/comp.sources.misc/volume40/fgmp/part01.Z - - # Unix-only modules - if platform not in ['mac', 'win32']: - # Steen Lumholt's termios module - exts.append( Extension('termios', ['termios.c']) ) - # Jeremy Hylton's rlimit interface - if platform not in ['cygwin']: - exts.append( Extension('resource', ['resource.c']) ) - - # Generic dynamic loading module - #exts.append( Extension('dl', ['dlmodule.c']) ) - - # Sun yellow pages. Some systems have the functions in libc. - if platform not in ['cygwin']: - if (self.compiler.find_library_file(lib_dirs, 'nsl')): - libs = ['nsl'] - else: - libs = [] - exts.append( Extension('nis', ['nismodule.c'], - libraries = libs) ) - - # Curses support, requring the System V version of curses, often - # provided by the ncurses library. - if platform == 'sunos4': - inc_dirs += ['/usr/5include'] - lib_dirs += ['/usr/5lib'] - - if (self.compiler.find_library_file(lib_dirs, 'ncurses')): - curses_libs = ['ncurses'] - exts.append( Extension('_curses', ['_cursesmodule.c'], - libraries = curses_libs) ) - elif (self.compiler.find_library_file(lib_dirs, 'curses')): - if (self.compiler.find_library_file(lib_dirs, 'terminfo')): - curses_libs = ['curses', 'terminfo'] - else: - curses_libs = ['curses', 'termcap'] - - exts.append( Extension('_curses', ['_cursesmodule.c'], - libraries = curses_libs) ) - - # If the curses module is enabled, check for the panel module - if (os.path.exists('Modules/_curses_panel.c') and - module_enabled(exts, '_curses') and - self.compiler.find_library_file(lib_dirs, 'panel')): - exts.append( Extension('_curses_panel', ['_curses_panel.c'], - libraries = ['panel'] + curses_libs) ) - - - - # Lee Busby's SIGFPE modules. - # The library to link fpectl with is platform specific. - # Choose *one* of the options below for fpectl: - - if platform == 'irix5': - # For SGI IRIX (tested on 5.3): - exts.append( Extension('fpectl', ['fpectlmodule.c'], - libraries=['fpe']) ) - elif 0: # XXX how to detect SunPro? - # For Solaris with SunPro compiler (tested on Solaris 2.5 with SunPro C 4.2): - # (Without the compiler you don't have -lsunmath.) - #fpectl fpectlmodule.c -R/opt/SUNWspro/lib -lsunmath -lm - pass - else: - # For other systems: see instructions in fpectlmodule.c. - #fpectl fpectlmodule.c ... - exts.append( Extension('fpectl', ['fpectlmodule.c']) ) - - - # Andrew Kuchling's zlib module. - # This require zlib 1.1.3 (or later). - # See http://www.cdrom.com/pub/infozip/zlib/ - zlib_inc = find_file('zlib.h', [], inc_dirs) - if zlib_inc is not None: - zlib_h = zlib_inc[0] + '/zlib.h' - version = '"0.0.0"' - version_req = '"1.1.3"' - fp = open(zlib_h) - while 1: - line = fp.readline() - if not line: - break - if line.find('#define ZLIB_VERSION', 0) == 0: - version = line.split()[2] - break - if version >= version_req: - if (self.compiler.find_library_file(lib_dirs, 'z')): - exts.append( Extension('zlib', ['zlibmodule.c'], - libraries = ['z']) ) - - # Interface to the Expat XML parser - # - # Expat is written by James Clark and must be downloaded separately - # (see below). The pyexpat module was written by Paul Prescod after a - # prototype by Jack Jansen. - # - # The Expat dist includes Windows .lib and .dll files. Home page is - # at http://www.jclark.com/xml/expat.html, the current production - # release is always ftp://ftp.jclark.com/pub/xml/expat.zip. - # - # EXPAT_DIR, below, should point to the expat/ directory created by - # unpacking the Expat source distribution. - # - # Note: the expat build process doesn't yet build a libexpat.a; you - # can do this manually while we try convince the author to add it. To - # do so, cd to EXPAT_DIR, run "make" if you have not done so, then - # run: - # - # ar cr libexpat.a xmltok/*.o xmlparse/*.o - # - - # Platform-specific libraries - if platform == 'linux2': - # Linux-specific modules - exts.append( Extension('linuxaudiodev', ['linuxaudiodev.c']) ) - - if platform == 'sunos5': - # SunOS specific modules - exts.append( Extension('sunaudiodev', ['sunaudiodev.c']) ) - - self.extensions.extend(exts) - - # Call the method for detecting whether _tkinter can be compiled - self.detect_tkinter(inc_dirs, lib_dirs) - - - def detect_tkinter(self, inc_dirs, lib_dirs): - # The _tkinter module. - return - # Assume we haven't found any of the libraries or include files - -def main(): - setup(name = 'Python standard library', - version = '%d.%d' % sys.version_info[:2], - cmdclass = {'build_ext':PyBuildExt}, - # The struct module is defined here, because build_ext won't be - # called unless there's at least one extension module defined. - ext_modules=[Extension('struct', ['structmodule.c'])], - - # Scripts to install - scripts = ['Tools/scripts/pydoc'] - ) - -# --install-platlib -if __name__ == '__main__': - sysconfig.set_python_build() - main() diff --git a/dev-lang/python/python-2.2.1.ebuild b/dev-lang/python/python-2.2.1.ebuild new file mode 100644 index 000000000000..ce56e0e1784f --- /dev/null +++ b/dev-lang/python/python-2.2.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintainer: Daniel Robbins <drobbins@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.2.1.ebuild,v 1.1 2002/05/03 01:56:03 jnelson Exp $ + +PYVER_MAJOR="`echo ${PV} | cut -d '.' -f 1`" +PYVER_MINOR="`echo ${PV} | cut -d '.' -f 2`" +PYVER="${PYVER_MAJOR}.${PYVER_MINOR}" +S=${WORKDIR}/Python-${PV} +DESCRIPTION="A really great language" +SRC_URI="http://www.python.org/ftp/python/${PV}/Python-${PV}.tgz" + +HOMEPAGE="http://www.python.org" +LICENSE="PSF-2.2" + +DEPEND="virtual/glibc >=sys-libs/zlib-1.1.3 + readline? ( >=sys-libs/readline-4.1 >=sys-libs/ncurses-5.2 ) + berkdb? ( >=sys-libs/db-3 ) + tcltk? ( >=dev-lang/tk-8.0 )" +RDEPEND="$DEPEND dev-python/python-fchksum" + +# The dev-python/python-fchksum RDEPEND is needed to that this python provides +# the functionality expected from previous pythons. + +PROVIDE="virtual/python" + +SLOT="2.2" + +src_compile() { + # python's config seems to ignore CFLAGS + export OPT=$CFLAGS + + # adjust makefile to install pydoc into ${D} correctly + t=${S}/Makefile.pre.in + cp $t $t.orig || die + sed 's:install-platlib.*:& --install-scripts=$(BINDIR):' $t.orig > $t + + # turn **on** shared + echo '*shared*' >> Modules/Setup.local + + local myopts + #if we are creating a new build image, we remove the dependency on g++ + if [ "`use build`" -a ! "`use bootstrap`" ] + then + myopts="--with-cxx=no" + fi + + ./configure \ + --prefix=/usr \ + --without-libdb \ + --with-fpectl \ + --infodir='${prefix}'/share/info \ + --mandir='${prefix}'/share/man $myopts || die + emake || die "Parallel make failed" + #make || die "make failed" +} + +src_install() { + dodir /usr + make install prefix=${D}/usr || die + rm "${D}/usr/bin/python" + dosym python${PYVER_MAJOR} /usr/bin/python + dosym python${PYVER_MAJOR}.${PYVER_MINOR} /usr/bin/python${PYVER_MAJOR} + dodoc README + + # install our own custom python-config + exeinto /usr/bin + newexe ${FILESDIR}/python-config-${PYVER} python-config + + # seems like the build do not install Makefile.pre.in anymore + # it probably shouldn't - use DistUtils, people! + insinto /usr/lib/python${PYVER}/config + doins ${S}/Makefile.pre.in + + # If USE tcltk lets install idle + # Need to script the python version in the path + if use tcltk; then + mkdir "${D}/usr/lib/python${PYVER}/tools" + mv "${S}/Tools/idle" "${D}/usr/lib/python${PYVER}/tools/" + dosym /usr/lib/python${PYVER}/tools/idle/idle.py /usr/bin/idle.py + fi +} |