# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/scotty/scotty-2.1.11.ebuild,v 1.7 2004/06/24 21:37:14 agriffis Exp $ DESCRIPTION="tcl network management extension" HOMEPAGE="http://wwwhome.cs.utwente.nl/~schoenw/scotty" SRC_URI="ftp://ftp.ibr.cs.tu-bs.de/pub/local/tkined/${P}.tar.gz" LICENSE="GPL-2 LGPL-2" SLOT="0" IUSE="" KEYWORDS="x86 alpha" DEPEND="virtual/glibc sys-devel/flex sys-devel/bison dev-lang/perl dev-lang/tcl dev-lang/tk" src_compile() { cd ${S}/unix econf || die make || die } src_install() { cd ${S}/unix dodir /usr/share/man TNM_LIBRARY=${D}/usr/lib/tnm${V} \ make prefix=${D}/usr \ MAN_INSTALL_DIR=${D}/usr/share/man install make prefix=${D}/usr \ MAN_INSTALL_DIR=${D}/usr/share/man sinstall cd ${D}/usr/bin perl -p -i -e 's|/.*/image||' ${D}/usr/lib/tnm2.1.11/pkgIndex.tcl perl -p -i -e 's|/.*/image||' ${D}/usr/lib/tkined1.4.11/pkgIndex.tcl ln -s scotty2.1.11 scotty ln -s tkined1.4.11 tkined # mv ${D}/usr/share/man/mann ${D}/usr/share/man/man3 # cd ${D}/usr/share/man/man3 # for f in `find ./ -name "*.n"`; do # echo ${f} `echo ${f}|cut -d. -f2|cut -d/ -f2` # mv ${f} `echo ${f}|cut -d. -f2|cut -d/ -f2`.3tnm # done }