blob: bb1d218bdcad83abda602fd69cbb491e46e35e43 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# 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-1.5.2-r2.ebuild,v 1.5 2000/11/21 19:44:58 achim Exp $
P=python-1.5.2
A="py152.tgz python-fchksum-1.1.tar.gz"
S=${WORKDIR}/Python-1.5.2
S2=${WORKDIR}/python-fchksum-1.1
DESCRIPTION="A really great language"
SRC_URI="http://www.python.org/ftp/python/src/py152.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=">=sys-apps/bash-2.04
>=sys-libs/gdbm-1.8.0
>=sys-libs/glibc-2.1.3
>=sys-libs/gpm-1.19.3
>=sys-libs/ncurses-5.1
>=dev-lang/tcl-tk-8.1
>=x11-base/xfree-4.0.1"
# This does not work >=dev-lang/tcl-tk-8.1.1
src_compile() {
try ./configure --prefix=/usr --with-threads
cp Makefile Makefile.orig
sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile
try make
cd ${S2}
./configure
try make
}
src_unpack() {
unpack ${A}
cd ${S}/Modules
sed -e 's/#readline/readline/' -e 's/-lreadline -ltermcap/-lreadline/' \
-e 's/#_locale/_locale/' -e 's/#crypt/crypt/' -e 's/# -lcrypt/-lcrypt/' \
-e 's/#audioop/audioop/' -e 's/#imageop/imageop/' -e 's/#rgbimg/rgbimg/' \
-e 's/# _tkinter/_tkinter/' -e 's:-DWITH_APPINIT \\:-DWITH_APPINIT -I/usr/X11R6/include -ltk8.1 -ltcl8.1 -L/usr/X11R6/lib -lX11:' \
-e 's/#syslog/syslog/' -e 's/#curses cursesmodule.c -lcurses -ltermcap/curses cursesmodule.c -lncurses/' \
-e 's:#gdbm gdbmmodule.c -I/usr/local/include -L/usr/local/lib -lgdbm:gdbm gdbmmodule.c -lgdbm:' \
-e 's:#zlib zlibmodule.c -I$(prefix)/include -L$(exec_prefix)/lib -lz:zlib zlibmodule.c -lz:' \
Setup.in > Setup
}
src_install() {
dodir /usr
try make install prefix=${D}/usr
cd ${S2}
try make prefix=${D}/usr install
cd ${S}
prepman
strip ${D}/usr/bin/python
#DOC
dodoc README
}
|