summaryrefslogtreecommitdiff
blob: b1acecba4081498714bdc251790798eaf9a6d496 (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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# 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/sys-devel/python-basic/python-basic-1.5.2-r4.ebuild,v 1.1 2000/12/01 19:46:12 drobbins Exp $

P=python-basic-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-libs/db-1.85
	>=sys-libs/gdbm-1.8.0
	>=sys-libs/gpm-1.19.3"
RDEPEND="$DEPEND
	 >=sys-apps/bash-2.04"
PROVIDE="virtual/python-1.5.2"

src_compile() {                           
    try ./configure --prefix=/usr --with-threads
    cp Makefile Makefile.orig
    sed -e "s/-g -O2/${CFLAGS}/" Makefile.orig > Makefile
    # Parallel make does not work
    try make 
    cd ${S2}
    ./configure
    try make ${MAKEOPTS}
}

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/#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:' \
	-e 's:#dbm.*:dbm dbmmodule.c -I/usr/include/db1 -lndbm:' \
	Setup.in > Setup
}


src_install() {                 
    dodir /usr              
    try make install prefix=${D}/usr
	cd ${S2}
	try make prefix=${D}/usr install
	cd ${S}
#DOC

    dodoc README
    docinto Misc
    cd Misc
    dodoc ACKS AIX-NOTES BLURB* cheatsheet comparisons COPYRIGHT \
	  editline-fix HISTORY HPUX-NOTES HYPE NEWS NEXT-NOTES \
	  Porting PURIFY.README README RENAME RFD
    insinto /usr/share/emacs/site-lisp
    doins *.el
    cd ../Tools
    for i in audiopy bgen faqwiz freeze modulator pynche scripts \
	     versioncheck webchecker world
    do
      docinto Tools/$i
      dodoc $i/README
    done
    docinto Tools/idle
    dodoc idle/ChangeLog idle/*.txt 
    docinto fcksum
    cd ${S2}
    dodoc Changelog COPYING README 


}