summaryrefslogtreecommitdiff
blob: f69fbef6968b75dc0816b495ba406c79637826bf (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
# 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-libs/slang/slang-1.4.2.ebuild,v 1.6 2001/01/31 20:49:07 achim Exp $

P=slang-1.4.2
A=${P}.tar.gz
S=${WORKDIR}/${P}
DESCRIPTION="Console display library used by most text viewer"
SRC_URI="ftp://space.mit.edu/pub/davis/slang/v1.4/${A}"

DEPEND="virtual/glibc"

src_compile() {                           
    try ./configure --host=${CHOST} --prefix=/usr
    try make ${MAKEOPTS} prefix=${D}/usr elf
}

src_unpack() {
    unpack ${A}
    cd ${S}
    cp configure configure.orig
    sed -e "s/ELF_CFLAGS=\"-O2/ELF_CFLAGS=\"${CFLAGS}/" configure.orig > configure
}

src_install() {    
    try make ${MAKEOPTS} prefix=${D}/usr install-elf   
    mv ${D}/usr/lib ${D}
    preplib /usr
    rm -rf ${D}/usr/doc/slang                      
    dodoc COPYING* NEWS README *.txt
    dodoc doc/*.txt doc/internal/*.txt doc/text/*.txt
    docinto html
    dodoc doc/*.html
}