blob: 5ec0b6ff6b41f2971a93c988b6b584473545b366 (
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
|
# 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.2 2000/10/20 09:19:41 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/"
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
}
|