blob: 5799168f2e8f0af84d6f3b2abb18c697b940d201 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2005 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.11 2005/04/21 14:17:17 blubb Exp $
inherit eutils
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 amd64"
IUSE=""
DEPEND="virtual/libc
sys-devel/flex
sys-devel/bison
dev-lang/perl
dev-lang/tcl
dev-lang/tk
sys-devel/autoconf"
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-suse.patch
epatch ${FILESDIR}/${P}-Makefile.patch
cd ${S}/unix ; autoconf
}
src_compile() {
cd ${S}/unix
econf || die
make "CFLAGS=${CFLAGS}" || 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
make DESTDIR=${D} install
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
}
|