summaryrefslogtreecommitdiff
blob: aa0fe9036c343caed93dfc651271a5f03c2c56de (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tcl-debug/tcl-debug-2.0.ebuild,v 1.2 2004/02/28 21:19:00 aliz Exp $

DESCRIPTION="TCL debug library"
HOMEPAGE="http://expect.nist.gov"
SRC_URI="http://expect.nist.gov/tcl-debug/${PN}.tar.gz
		 doc? ( http://expect.nist.gov/tcl-debug/tcl-debug.ps.Z )"
LICENSE="BSD"
SLOT="0"
KEYWORDS="x86 ~sparc"
IUSE=""
DEPEND=">=dev-lang/tcl-8.3.0
		>=dev-lang/tk-8.3.0"

src_compile() {
	econf \
		--enable-shared \
		--with-tcl=/usr/lib \
		--with-tclinclude="`ls /usr/lib/tcl8.*/include/generic/tclInt.h | tail -n1 | xargs dirname`" || die "./configure failed"
	emake || die
}

src_install() {
	dolib.so libtcldbg2.0.so
	dolib.a libtcldbg.a
	dodir /usr/lib/tcldbg${PV}
	dosym /usr/lib/libtcldbg2.0.so /usr/lib/tcldbg${PV}/
	dosym /usr/lib/libtcldbg.a /usr/lib/tcldbg${PV}/

	insinto /usr/lib/tcldbg${PV}
	newins pkgIndex pkgIndex.tcl

	dodir /usr/include
	insinto /usr/include
	doins tcldbg.h

	dodoc HISTORY README CHANGES INSTALL
	newman tcldbg.man tcldbg.1
}