# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-text/ispell/ispell-3.2.06-r6.ebuild,v 1.14 2005/01/03 08:05:51 josejx Exp $ inherit eutils PATCH_VER="0.1" DESCRIPTION="fast screen-oriented spelling checker" HOMEPAGE="http://fmg-www.cs.ucla.edu/geoff/ispell.html" SRC_URI="http://fmg-www.cs.ucla.edu/geoff/tars/${P}.tar.gz mirror://gentoo/${PF}-gentoo-${PATCH_VER}.diff.bz2" SLOT="0" LICENSE="as-is" KEYWORDS="x86 sparc ppc alpha mips hppa amd64 ~ppc-macos" IUSE="" DEPEND="sys-apps/sed sys-devel/bison sys-apps/miscfiles >=sys-libs/ncurses-5.2" src_unpack() { unpack ${A} cd ${S} epatch ${WORKDIR}/${PF}-gentoo-${PATCH_VER}.diff epatch ${FILESDIR}/${P}-patch.diff } src_compile() { make config.sh || die #Fix config.sh to install to ${D} cp -p config.sh config.sh.orig sed \ -e "s:^\(BINDIR='\)\(.*\):\1${D}\2:" \ -e "s:^\(LIBDIR='\)\(.*\):\1${D}\2:" \ -e "s:^\(MAN1DIR='\)\(.*\):\1${D}\2:" \ -e "s:^\(MAN4DIR='\)\(.*\):\1${D}\2:" \ < config.sh > config.sh.install make || die } src_install() { cp -p config.sh.install config.sh #Need to create the directories to install into #before 'make install'. Build environment **doesn't** #check for existence and create if not already there. dodir /usr/bin /usr/lib/ispell /usr/share/info \ /usr/share/man/man1 /usr/share/man/man5 make \ install || die "Installation Failed" rmdir ${D}/usr/share/man/man5 rmdir ${D}/usr/share/info dodoc Contributors README WISHES dosed ${D}/usr/share/man/man1/ispell.1 }