# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 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/scotty-2.1.11.tar.gz" LICENSE="GPL-2 LGPL-2" SLOT="0" KEYWORDS="x86 ~alpha" DEPEND="virtual/glibc sys-devel/flex sys-devel/bison sys-devel/perl tcltk? ( dev-lang/tcl )" S="${WORKDIR}/scotty-2.1.11" src_compile() { cd ${S}/unix econf 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 }