# Copyright 2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author: Johannes Findeisen # S="${WORKDIR}/${P}" DESCRIPTION="The GNU termcap Library" SRC_URI="ftp://ftp.gnu.org/gnu/termcap/${P}.tar.gz" HOMEPAGE="ftp://ftp.gnu.org/gnu/termcap/index.html" LICENSE="GPL-2" DEPEND="virtual/glibc" src_compile() { ./configure --prefix=/usr --host=${CHOST} --enable-install-termcap || die "./configure failed" sed -e "s/CFLAGS = -g/CFLAGS = -g ${CFLAGS}/g" < Makefile > Makefile.hacked cp Makefile.hacked Makefile emake || die "emake failed" } src_install () { insopts -o root -m 644 insinto /usr/include doins termcap.h dolib.a libtermcap.a cp termcap.src termcap insopts -o root -m 644 insinto /etc doins termcap doinfo termcap.info termcap.info-1 termcap.info-2 termcap.info-3 dodoc COPYING INSTALL README NEWS }