# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclmore/tclmore-0.7_beta1.ebuild,v 1.00 2008/01/12 14:30:00 gtlinux Exp $ inherit eutils DESCRIPTION="Tclmore is a C language extension library for Tcl" HOMEPAGE="http://gna.org/projects/tclmore" SRC_URI="http://download.gna.org/${PN}/0.7/${PN}_0.7b1_src.tar.gz" LICENSE="BSD" SLOT="0" KEYWORDS="~x86" IUSE="doc" RDEPEND="dev-lang/tcl" DEPEND="$RDEPEND sys-libs/glibc" S="${WORKDIR}/${PN}_0.7b1" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/configure.patch epatch ${FILESDIR}/makefile.in.patch epatch ${FILESDIR}/pkgIndex.tcl.in.patch if ! use doc ; then rm -rf "${S}/doc" fi } src_install() { emake install INSTALL_ROOT="${D}" || die "Install failed" if use doc ; then dohtml ${D}/usr/doc/${PN}_0.7.1/HTML/* || die fi dodoc ${D}/usr/doc/${PN}_0.7.1/* || die rm -rf ${D}/usr/doc || die }