# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/itcl/itcl-3.2.1.ebuild,v 1.1 2003/10/29 04:44:27 robbat2 Exp $ MY_P=${PN}${PV} S=${WORKDIR}/${MY_P} DESCRIPTION="Object Oriented Enhancements for Tcl/Tk" SRC_URI="mirror://sourceforge/incrtcl/${MY_P}_src.tgz" HOMEPAGE="http://www.tcltk.com/${PN}/" SLOT="0" LICENSE="as-is BSD" KEYWORDS="~x86 ~ppc ~sparc" DEPEND="dev-lang/tk" PDEPEND="dev-tcltk/iwidgets" src_unpack() { unpack ${A} epatch ${FILESDIR}/${PF}-gentoo.diff } src_compile() { econf || die "econf failed" emake DESTDIR="${D}" CFLAGS_DEFAULT="${CFLAGS}" || die "emake failed" } src_install() { make DESTDIR="${D}" install || die "make install failed" dodoc CHANGES INCOMPATIBLE README TODO license.terms dodoc doc/* dosym /usr/lib/itcl3.2 /usr/lib/itcl dosym /usr/lib/itk3.2 /usr/lib/itk }