diff options
author | Daniel Robbins <drobbins@gentoo.org> | 2001-12-06 21:34:31 +0000 |
---|---|---|
committer | Daniel Robbins <drobbins@gentoo.org> | 2001-12-06 21:34:31 +0000 |
commit | e5888829da561d58c5857f4ccfa0e9892df8cd11 (patch) | |
tree | eb75c6ca5230c634b3b0a429fb63c778ee2f1edb /dev-lang | |
parent | fixed xchat's python support (diff) | |
download | gentoo-2-e5888829da561d58c5857f4ccfa0e9892df8cd11.tar.gz gentoo-2-e5888829da561d58c5857f4ccfa0e9892df8cd11.tar.bz2 gentoo-2-e5888829da561d58c5857f4ccfa0e9892df8cd11.zip |
python-config should be fixed in 2.1.1-r3
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/python/files/digest-python-2.1.1-r3 | 2 | ||||
-rw-r--r-- | dev-lang/python/files/python-config | 3 | ||||
-rw-r--r-- | dev-lang/python/python-2.0-r3.ebuild | 96 | ||||
-rw-r--r-- | dev-lang/python/python-2.0-r4.ebuild | 148 | ||||
-rw-r--r-- | dev-lang/python/python-2.1.1-r1.ebuild | 39 | ||||
-rw-r--r-- | dev-lang/python/python-2.1.1-r2.ebuild | 133 | ||||
-rw-r--r-- | dev-lang/python/python-2.1.1.ebuild | 100 | ||||
-rw-r--r-- | dev-lang/python/python-2.1.ebuild | 100 |
8 files changed, 5 insertions, 616 deletions
diff --git a/dev-lang/python/files/digest-python-2.1.1-r3 b/dev-lang/python/files/digest-python-2.1.1-r3 new file mode 100644 index 000000000000..68061e8232e1 --- /dev/null +++ b/dev-lang/python/files/digest-python-2.1.1-r3 @@ -0,0 +1,2 @@ +MD5 eb34371c49b271abc74b42572883e1b4 Python-2.1.1.tgz 6189056 +MD5 03be17baafacc3508224d9542c0a61b3 python-fchksum-1.6.tar.gz 36864 diff --git a/dev-lang/python/files/python-config b/dev-lang/python/files/python-config new file mode 100644 index 000000000000..db0ba030bf9c --- /dev/null +++ b/dev-lang/python/files/python-config @@ -0,0 +1,3 @@ +#!/usr/bin/python +import distutils.sysconfig, string +print "-lpython2.1",string.join(string.split(distutils.sysconfig.get_config_var("MODLIBS"))) diff --git a/dev-lang/python/python-2.0-r3.ebuild b/dev-lang/python/python-2.0-r3.ebuild deleted file mode 100644 index 65ba5657e605..000000000000 --- a/dev-lang/python/python-2.0-r3.ebuild +++ /dev/null @@ -1,96 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.0-r3.ebuild,v 1.1 2001/06/04 19:49:02 drobbins Exp $ - -S=${WORKDIR}/Python-2.0 -S2=${WORKDIR}/python-fchksum-1.1 -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/src/BeOpen-Python-2.0.tar.bz2 - http://www.azstarnet.com/~donut/programs/fchksum/python-fchksum-1.1.tar.gz" - -HOMEPAGE="http://www.python.org http://www.azstarnet.com/~donut/programs/fchksum/" -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 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python-2.0" - -src_unpack() { - unpack BeOpen-Python-2.0.tar.bz2 - cd ${S}/Modules - if [ "`use readline`" ] - then - sed -e 's/#readline/readline/' -e 's/-lreadline -ltermcap/-lreadline/' \ - -e 's/#_curses _cursesmodule.c -lcurses -ltermcap/_curses _cursesmodule.c -lncurses/' \ - -e 's/#crypt/crypt/' -e 's/# -lcrypt/-lcrypt/' \ - Setup.in > Setup.new - mv Setup.new Setup.in - fi - - if [ "`use berkdb`" ] - then - sed -e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - Setup.in > Setup.new - mv Setup.new Setup.in - fi - - sed -e 's/#_locale/_locale/' \ - -e 's/#syslog/syslog/' \ - -e 's:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz:zlib zlibmodule.c -lz:' \ - -e 's:^TKPATH=\:lib-tk:#TKPATH:' -e 's:^#termios:termios:' -e 's:^#resource:resource:' \ - Setup.in > Setup - echo "fchksum fchksum.c md5_2.c" >> Setup - - cd ${S}/Modules - - if [ "`use berkdb`" ] - then - #patch the dbmmodule to use db3's dbm compatibility code. That way, we're depending on db3 rather than - #old db1. We'll link with db3, of course. - cp dbmmodule.c dbmmodule.c.orig - sed -e '10,25d' -e '26i\' -e '#define DB_DBM_HSEARCH 1\' -e 'static char *which_dbm = "BSD db";\' -e '#include <db3/db.h>' dbmmodule.c.orig > dbmmodule.c - fi - - cp ${FILESDIR}/pfconfig.h . - unpack python-fchksum-1.1.tar.gz - - cd python-fchksum-1.1 - mv md5.h ../md5_2.h - sed -e 's:"md5.h":"md5_2.h":' md5.c > ../md5_2.c - sed -e 's:"md5.h":"md5_2.h":' fchksum.c > ../fchksum.c - - #for some reason, python 2.0 can't find /usr/lib/python2.0 without this fix to the source code. - cd ${S}/Python - cp pythonrun.c pythonrun.c.orig - sed -e 's:static char \*default_home = NULL:static char \*default_home = "/usr":' pythonrun.c.orig > pythonrun.c -} - - -src_compile() { - cd ${S} - try ./configure --prefix=/usr --without-libdb - #libdb3 support is available from http://pybsddb.sourceforge.net/; the one - #included with python is for db 1.85 only. - cp Makefile Makefile.orig - sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile - cd ${S}/Modules - cp Makefile.pre Makefile.orig - sed -e "s:MODOBJS=:MODOBJS=fchksum.o md5_2.o:" \ - Makefile.orig > Makefile.pre - - # Parallel make does not work - cd ${S} - try make -} - -src_install() { - dodir /usr - try make install prefix=${D}/usr - rm ${D}/usr/bin/python - dosym python2.0 /usr/bin/python - - dodoc README -} - diff --git a/dev-lang/python/python-2.0-r4.ebuild b/dev-lang/python/python-2.0-r4.ebuild deleted file mode 100644 index c9face8adebe..000000000000 --- a/dev-lang/python/python-2.0-r4.ebuild +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Daniel Robbins <drobbins@gentoo.org> -# Modified Tod M. Neidt <tneidt@fidnet.com> -# /home/cvsroot/gentoo-x86/dev-lang/python/python-2.0-r4.ebuild,v 1.1 2001/06/04 19:49:02 drobbins Exp -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.0-r4.ebuild,v 1.7 2001/10/06 15:04:00 drobbins Exp $ - - -S=${WORKDIR}/Python-2.0 -S2=${WORKDIR}/python-fchksum-1.1 -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/2.0/BeOpen-Python-2.0.tar.bz2 - http://www.azstarnet.com/~donut/programs/fchksum/python-fchksum-1.1.tar.gz" - -HOMEPAGE="http://www.python.org http://www.azstarnet.com/~donut/programs/fchksum/" - -#tcltk depends is = becasue need to automate tcltk version number below -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/tcl-tk-8.0 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python-2.0" - -src_unpack() { - local mylibs - unpack BeOpen-Python-2.0.tar.bz2 - cd ${S}/Modules - if [ "`use readline`" ] - then - sed -e 's/#readline/readline/' -e 's/-lreadline -ltermcap/-lreadline/' \ - -e 's/#_curses _cursesmodule.c -lcurses -ltermcap/_curses _cursesmodule.c -lncurses/' \ - -e 's/#crypt/crypt/' -e 's/# -lcrypt/-lcrypt/' \ - Setup.in > Setup.new - mv Setup.new Setup.in - mylibs="-lreadline -lncurses -lcrypt" - fi - -#Added check for tcltk USE variable, if set build _tkinter -#Need to automate tk and tcl version determination - if [ "`use tcltk`" ] - then - sed -e 's:# _tkinter:_tkinter:' \ - -e 's:#[[:blank:]]*-I/usr/local/include:-I/usr/include:' \ - -e 's:#[[:blank:]]*-I/usr/X11R6/include:-I/usr/X11R6/include:' \ - -e 's:#[[:blank:]]*-L/usr/local/lib:-L/usr/lib:' \ - -e 's:#[[:blank:]]*-ltk8.0 -ltcl8.0:-ltk8.4 -ltcl8.4:' \ - -e 's:#[[:blank:]]*-L/usr/X11R6/lib:-L/usr/X11R6/lib:' \ - -e 's:#[[:blank:]]-lX11:-lX11:' \ - Setup.in > Setup.new - mv Setup.new Setup.in - mylibs="$mylibs -ltk8.4 -ltcl8.4 -L/usr/X11R6/lib -lX11" - fi - - if [ "`use berkdb`" ] - then - sed -e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - Setup.in > Setup.new - mv Setup.new Setup.in - mylibs="$mylibs -ldb-3.2" - fi - -#Removed the commenting out of TKPATH - sed -e 's/#_locale/_locale/' \ - -e 's/#syslog/syslog/' \ - -e 's:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz:zlib zlibmodule.c -lz:' \ - -e 's:^#termios:termios:' -e 's:^#resource:resource:' \ - Setup.in > Setup - echo "fchksum fchksum.c md5_2.c" >> Setup - mylibs="-lpython2.0 $mylibs -lz -lutil" - cd ${S}/Modules - - if [ "`use berkdb`" ] - then - #patch the dbmmodule to use db3's dbm compatibility code. That way, we're depending on db3 rather than - #old db1. We'll link with db3, of course. - cp dbmmodule.c dbmmodule.c.orig - sed -e '10,25d' -e '26i\' -e '#define DB_DBM_HSEARCH 1\' -e 'static char *which_dbm = "BSD db";\' -e '#include <db3/db.h>' dbmmodule.c.orig > dbmmodule.c - fi - - cp ${FILESDIR}/pfconfig.h . - unpack python-fchksum-1.1.tar.gz - - cd python-fchksum-1.1 - mv md5.h ../md5_2.h - sed -e 's:"md5.h":"md5_2.h":' md5.c > ../md5_2.c - sed -e 's:"md5.h":"md5_2.h":' fchksum.c > ../fchksum.c - - #for some reason, python 2.0 can't find /usr/lib/python2.0 without this fix to the source code. - cd ${S}/Python - cp pythonrun.c pythonrun.c.orig - sed -e 's:static char \*default_home = NULL:static char \*default_home = "/usr":' pythonrun.c.orig > pythonrun.c - - cat <<END > ${S}/python-config -#!/bin/sh -echo -lm $mylibs -END - -} - - -src_compile() { - cd ${S} - try ./configure --prefix=/usr --without-libdb - #libdb3 support is available from http://pybsddb.sourceforge.net/; the one - #included with python is for db 1.85 only. - cp Makefile Makefile.orig - sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile - cd ${S}/Modules - cp Makefile.pre Makefile.orig - sed -e "s:MODOBJS=:MODOBJS=fchksum.o md5_2.o:" \ - Makefile.orig > Makefile.pre - - # Parallel make does not work - cd ${S} - try make -} - -src_install() { - dodir /usr - try make install prefix=${D}/usr - rm ${D}/usr/bin/python - dosym python2.0 /usr/bin/python - exeinto /usr/bin - doexe python-config - dodoc README - -#Change OPT setting in /usr/lib/python2.0/config/Makefile -#to CFLAG from /etc/make.conf so optimaization is set for -#subsequent module installs using distutil. -#There is probably a better way :) - cd ${D}/usr/lib/python2.0/config - sed -e "s/OPT=[[:blank:]]*-g -O2 -Wall -Wstrict-prototypes/OPT= ${CFLAGS}/" \ Makefile > Makefile.new - mv Makefile.new Makefile - -#If USE tcltk lets install idle -#Need to script the python version in the path - if [ "`use tcltk`" ] - then - mkdir ${D}/usr/lib/python2.0/tools - cd ${S} - mv Tools/idle ${D}/usr/lib/python2.0/tools/ -#don't quit understand dosym; put idle in PATH - ln -s /usr/lib/python2.0/tools/idle/idle.py ${D}/usr/bin/idle.py - fi -} - diff --git a/dev-lang/python/python-2.1.1-r1.ebuild b/dev-lang/python/python-2.1.1-r1.ebuild deleted file mode 100644 index 91e3e3006583..000000000000 --- a/dev-lang/python/python-2.1.1-r1.ebuild +++ /dev/null @@ -1,39 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Maintainer: tools@cvs.gentoo.org -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.1.1-r1.ebuild,v 1.2 2001/11/16 05:53:55 drobbins Exp $ - -S=${WORKDIR}/Python-${PV} -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/2.1.1/Python-${PV}.tgz" - -HOMEPAGE="http://www.python.org" -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 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python" - -src_compile() { - cd ${S} - try ./configure --prefix=/usr --without-libdb --infodir=/usr/share/info --mandir=/usr/share/man - #libdb3 support is available from http://pybsddb.sourceforge.net/; the one - #included with python is for db 1.85 only. - # Parallel make does not work - try make -} - -src_install() { - dodir /usr - try make prefix=${D}/usr install - rm ${D}/usr/bin/python - dosym python2.1 /usr/bin/python -# mv ${D}/bin/python1.5 ${D}/bin/spython1.5 - # for i in lib-dynload lib-stdwin lib-tk test - # do - # rm -r ${D}/lib/python1.5/${i} - # done - # rm -r ${D}/include - dodoc README -} diff --git a/dev-lang/python/python-2.1.1-r2.ebuild b/dev-lang/python/python-2.1.1-r2.ebuild deleted file mode 100644 index 81df7bfc277a..000000000000 --- a/dev-lang/python/python-2.1.1-r2.ebuild +++ /dev/null @@ -1,133 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Maintainer: tools@cvs.gentoo.org -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.1.1-r2.ebuild,v 1.1 2001/11/16 05:46:07 chouser Exp $ - -S=${WORKDIR}/Python-${PV} -FCHKSUM="python-fchksum-1.6" -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/${PV}/Python-${PV}.tgz - http://www.azstarnet.com/~donut/programs/fchksum/${FCHKSUM}.tar.gz" - -HOMEPAGE="http://www.python.org - http://www.azstarnet.com/~donut/programs/fchksum/" - -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/tcl-tk-8.0 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python-2.1" - -src_unpack() { - # unpack python - unpack Python-${PV}.tgz - # unpack fchksum and move pieces into Modules subdir - cd ${S}/Modules - unpack ${FCHKSUM}.tar.gz - cd ${FCHKSUM} - cp md5.h ../md5_2.h - cp cksum.[ch] sum.[ch] fchksum.h .. - sed 's:"md5.h":"md5_2.h":' md5.c > ../md5_2.c - sed 's:"md5.h":"md5_2.h":' fchksum.c > ../fchksum.c - # add fchksum configuration to Setup - cd ${S} - echo "fchksum fchksum.c md5_2.c cksum.c sum.c" >> Modules/Setup.dist - - # 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 -} - -src_compile() { - # python's config seems to ignore CFLAGS - export OPT=$CFLAGS - - # configure fchksum - cd ${S}/Modules/${FCHKSUM} - ./configure - cp pfconfig.h .. - - # adjust Setup to include the various modules we need - # also update $mylibs which will be used to create python-config - cd ${S} - scmd="" - mylibs="" - # adjust for USE readline - if use readline; then - scmd="$scmd s:#\(readline .*\) -ltermcap:\1:;" - scmd="$scmd s:#\(_curses .*\) -lcurses -ltermcap:\1 -lncurses:;" - mylibs="$mylibs -lreadline -lncurses" - fi - # adjust for USE tcltk - if use tcltk; then - # Find the version of tcl/tk that has headers installed. - # This will be the most recently merged, not necessarily the highest - # version number. - tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/') - tkv=$( grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/') - # adjust Setup to match - scmd="$scmd s:# \(_tkinter \):\1:;" - scmd="$scmd s:#\(\t-ltk[0-9.]* -ltcl[0-9.]*\):\t-ltk$tkv -ltcl$tclv:;" - scmd="$scmd s:#\(\t-L/usr/X11R6/lib\):\1:;" - scmd="$scmd s:#\(\t-lX11.*\):\1:;" - mylibs="$mylibs -ltk$tkv -ltcl$tclv -L/usr/X11R6/lib -lX11" - fi - # adjust for USE berkdb - if use berkdb; then - # patch the dbmmodule to use db3's dbm compatibility code. That way, - # we're depending on db3 rather than old db1. - t=Modules/dbmmodule.c - cp $t $t.orig || die - sed \ - -e '10,25d' \ - -e '26i\' \ - -e '#define DB_DBM_HSEARCH 1\' \ - -e 'static char *which_dbm = "BSD db";\' \ - -e '#include <db3/db.h>' \ - $t.orig > $t - # now fix Setup - scmd="$scmd s:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:;" - mylibs="$mylibs -ldb-3.2" - fi - # no USE vars to switch off these adjustments: - scmd="$scmd s:#\(_locale .*\):\1:;" # access to ISO C locale support - scmd="$scmd s:#\(syslog .*\):\1:;" # syslog daemon interface - scmd="$scmd s:#\(zlib .*\):\1:;" # This require zlib 1.1.3 (or later). - scmd="$scmd s:#\(termios .*\):\1:;" # Steen Lumholt's termios module - scmd="$scmd s:#\(resource .*\):\1:;" # Jeremy Hylton's rlimit interface - mylibs="-lm -lpython${PV} $mylibs -lz -lutil" - # now apply the Setup adjustments and create python-config - sed "$scmd" Modules/Setup.dist > Modules/Setup - echo -e "#!/bin/sh\necho $mylibs" > python-config - - ./configure \ - --prefix=/usr \ - --without-libdb \ - --infodir=/usr/share/info \ - --mandir=/usr/share/man - assert "Configure failed" - emake || die "Parallel make failed" -} - -src_install() { - dodir /usr - make install prefix=${D}/usr || die - rm "${D}/usr/bin/python" - dosym python2.1 /usr/bin/python - dodoc README - - # install our own custom python-config - exeinto /usr/bin - doexe python-config - - # If USE tcltk lets install idle - # Need to script the python version in the path - if use tcltk; then - mkdir "${D}/usr/lib/python2.1/tools" - mv "${S}/Tools/idle" "${D}/usr/lib/python2.0/tools/" - dosym /usr/lib/python2.0/tools/idle/idle.py /usr/bin/idle.py - fi -} diff --git a/dev-lang/python/python-2.1.1.ebuild b/dev-lang/python/python-2.1.1.ebuild deleted file mode 100644 index cc5141b843a9..000000000000 --- a/dev-lang/python/python-2.1.1.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.1.1.ebuild,v 1.1 2001/08/05 16:28:52 darks Exp $ - -S=${WORKDIR}/Python-${PV} -S2=${WORKDIR}/python-fchksum-1.3 -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/2.1.1/Python-${PV}.tgz - http://www.azstarnet.com/~donut/programs/fchksum/python-fchksum-1.3.tar.gz" - -HOMEPAGE="http://www.python.org http://www.azstarnet.com/~donut/programs/fchksum/" -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 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python" - -src_unpack() { - unpack Python-${PV}.tgz - # cp ${FILESDIR}/setup.py ${S} - cd ${S}/Modules - cp Setup.dist Setup.tmp - sed -e 's:#zlib .*:zlib zlibmodule.c -lz:' \ - -e 's:#syslog:syslog:' \ - -e 's:#crypt.*:crypt cryptmodule.c -lcrypt:' \ - Setup.tmp > Setup.dist - - if [ "`use readline`" ] - then - cp Setup.dist Setup.tmp - sed -e 's/#readline/readline/' -e 's/-lreadline -ltermcap/-lreadline -lncurses/' \ - Setup.tmp > Setup.dist - fi - if [ "`use berkdb`" ] - then - cp Setup.dist Setup.tmp - sed -e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - Setup.tmp > Setup.dist - cp dbmmodule.c dbmmodule.c.orig - sed -e '10,25d' -e '26i\' -e '#define DB_DBM_HSEARCH 1\' -e 'static char *which_dbm = "BSD db";\' -e '#include <db3/db.h>' dbmmodule.c.orig > dbmmodule.c - - fi - #cp Setup.dist Setup - - #sed -e - #-e 's/#_locale/_locale/' -e 's/#crypt/crypt/' -e 's/# -lcrypt/-lcrypt/' \ - #-e 's/#syslog/syslog/' -e 's/#_curses _cursesmodule.c -lcurses -ltermcap/_curses _cursesmodule.c -lncurses/' \ - #-e 's:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz:zlib zlibmodule.c -lz:' \ - #-e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - #-e 's:^TKPATH=\:lib-tk:#TKPATH:' \ - #Setup.dist > Setup - #echo "fchksum fchksum.c md5_2.c" >> Setup - - cd ${S}/Modules - - #patch the dbmmodule to use db3's dbm compatibility code. That way, we're depending on db3 rather than - #old db1. We'll link with db3, of course. - - cp ${FILESDIR}/pfconfig.h . - unpack python-fchksum-1.1.tar.gz - - cd python-fchksum-1.1 - mv md5.h ../md5_2.h - sed -e 's:"md5.h":"md5_2.h":' md5.c > ../md5_2.c - sed -e 's:"md5.h":"md5_2.h":' fchksum.c > ../fchksum.c - -} - - -src_compile() { - cd ${S} - try ./configure --prefix=/usr --without-libdb - #libdb3 support is available from http://pybsddb.sourceforge.net/; the one - #included with python is for db 1.85 only. - cp Makefile Makefile.orig - sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile - cp Makefile.pre Makefile.orig - sed -e "s:MODOBJS=:MODOBJS=fchksum.o md5_2.o:" \ - Makefile.orig > Makefile.pre - - # Parallel make does not work - cd ${S} - try make -} - -src_install() { - dodir /usr - try make install prefix=${D}/usr - rm ${D}/usr/bin/python - dosym python2.1 /usr/bin/python -# mv ${D}/bin/python1.5 ${D}/bin/spython1.5 - # for i in lib-dynload lib-stdwin lib-tk test - # do - # rm -r ${D}/lib/python1.5/${i} - # done - # rm -r ${D}/include - dodoc README -} diff --git a/dev-lang/python/python-2.1.ebuild b/dev-lang/python/python-2.1.ebuild deleted file mode 100644 index b6e3ff2723f1..000000000000 --- a/dev-lang/python/python-2.1.ebuild +++ /dev/null @@ -1,100 +0,0 @@ -# Copyright 1999-2000 Gentoo Technologies, Inc. -# Distributed under the terms of the GNU General Public License, v2 or later -# Author Daniel Robbins <drobbins@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.1.ebuild,v 1.1 2001/06/20 00:55:30 achim Exp $ - -S=${WORKDIR}/Python-${PV} -S2=${WORKDIR}/python-fchksum-1.1 -DESCRIPTION="A really great language" -SRC_URI="http://www.python.org/ftp/python/2.1/Python-${PV}.tgz - http://www.azstarnet.com/~donut/programs/fchksum/python-fchksum-1.1.tar.gz" - -HOMEPAGE="http://www.python.org http://www.azstarnet.com/~donut/programs/fchksum/" -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 )" - -RDEPEND="$DEPEND" -PROVIDE="virtual/python" - -src_unpack() { - unpack Python-${PV}.tgz - # cp ${FILESDIR}/setup.py ${S} - cd ${S}/Modules - cp Setup.dist Setup.tmp - sed -e 's:#zlib .*:zlib zlibmodule.c -lz:' \ - -e 's:#syslog:syslog:' \ - -e 's:#crypt.*:crypt cryptmodule.c -lcrypt:' \ - Setup.tmp > Setup.dist - - if [ "`use readline`" ] - then - cp Setup.dist Setup.tmp - sed -e 's/#readline/readline/' -e 's/-lreadline -ltermcap/-lreadline -lncurses/' \ - Setup.tmp > Setup.dist - fi - if [ "`use berkdb`" ] - then - cp Setup.dist Setup.tmp - sed -e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - Setup.tmp > Setup.dist - cp dbmmodule.c dbmmodule.c.orig - sed -e '10,25d' -e '26i\' -e '#define DB_DBM_HSEARCH 1\' -e 'static char *which_dbm = "BSD db";\' -e '#include <db3/db.h>' dbmmodule.c.orig > dbmmodule.c - - fi - #cp Setup.dist Setup - - #sed -e - #-e 's/#_locale/_locale/' -e 's/#crypt/crypt/' -e 's/# -lcrypt/-lcrypt/' \ - #-e 's/#syslog/syslog/' -e 's/#_curses _cursesmodule.c -lcurses -ltermcap/_curses _cursesmodule.c -lncurses/' \ - #-e 's:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz:zlib zlibmodule.c -lz:' \ - #-e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db3 -ldb-3.2:' \ - #-e 's:^TKPATH=\:lib-tk:#TKPATH:' \ - #Setup.dist > Setup - #echo "fchksum fchksum.c md5_2.c" >> Setup - - cd ${S}/Modules - - #patch the dbmmodule to use db3's dbm compatibility code. That way, we're depending on db3 rather than - #old db1. We'll link with db3, of course. - - cp ${FILESDIR}/pfconfig.h . - unpack python-fchksum-1.1.tar.gz - - cd python-fchksum-1.1 - mv md5.h ../md5_2.h - sed -e 's:"md5.h":"md5_2.h":' md5.c > ../md5_2.c - sed -e 's:"md5.h":"md5_2.h":' fchksum.c > ../fchksum.c - -} - - -src_compile() { - cd ${S} - try ./configure --prefix=/usr --without-libdb - #libdb3 support is available from http://pybsddb.sourceforge.net/; the one - #included with python is for db 1.85 only. - cp Makefile Makefile.orig - sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile - cp Makefile.pre Makefile.orig - sed -e "s:MODOBJS=:MODOBJS=fchksum.o md5_2.o:" \ - Makefile.orig > Makefile.pre - - # Parallel make does not work - cd ${S} - try make -} - -src_install() { - dodir /usr - try make install prefix=${D}/usr - rm ${D}/usr/bin/python - dosym python2.0 /usr/bin/python -# mv ${D}/bin/python1.5 ${D}/bin/spython1.5 - # for i in lib-dynload lib-stdwin lib-tk test - # do - # rm -r ${D}/lib/python1.5/${i} - # done - # rm -r ${D}/include - dodoc README -}
\ No newline at end of file |