# 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.9 2004/11/10 01:53:29 vapier 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 ia64 s390 arm" 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 <