summaryrefslogtreecommitdiff
blob: 2f5bde1e8f5bad66130f4dd9f58d6cdfd9fb84c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# Copyright 1999-2003 Gentoo Technologies, Inc.
# 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.1 2003/05/05 19:59:07 aliz 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"
KEYWORDS="~x86 ~alpha"

DEPEND="virtual/glibc
	sys-devel/flex
	sys-devel/bison
	dev-lang/perl
	dev-lang/tcl
	dev-lang/tk"

S="${WORKDIR}/${P}"

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
}