# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/expect/expect-5.37.1-r2.ebuild,v 1.5 2004/07/14 21:43:03 mr_bones_ 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" 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 <