# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-tcltk/expect/expect-5.37.1-r1.ebuild,v 1.18 2004/03/26 18:05:25 gmsoft Exp $ inherit gnuconfig #remove the trailing ".0" from the tarball version NON_MICRO_V=${P%.[0-9]} S=${WORKDIR}/${NON_MICRO_V} DESCRIPTION="tool for automating interactive applications" HOMEPAGE="http://expect.nist.gov/" SRC_URI="http://expect.nist.gov/src/${P}.tar.gz" LICENSE="BSD" SLOT="0" #KEYWORDS="x86 ppc sparc alpha ~mips hppa amd64" KEYWORDS="~x86 ~ppc ~sparc ~alpha ~mips ~hppa ~amd64" IUSE="X doc" DEPEND=">=dev-lang/tcl-8.2 X? ( >=dev-lang/tk-8.2 )" src_unpack() { unpack ${A} sed -i 's#/usr/local/bin#/usr/bin#' ${S}/expect.man sed -i 's#/usr/local/bin#/usr/bin#' ${S}/expectk.man #stops any example scripts being installed by default sed -i 's/^SCRIPTS =/G_SCRIPTS =/' ${S}/Makefile.in sed -i 's/^SCRIPTS_MANPAGES =/G_SCRIPTS_MANPAGES =/' ${S}/Makefile.in cat >${WORKDIR}/sed.examples.gentoo <${WORKDIR}/Makefile.examples.gentoo <