summaryrefslogtreecommitdiff
blob: ec35630cbb116ecad9e91d1e6d4baaf20574fea2 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Your Name <your email>
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/itcl/itcl-3.2.ebuild,v 1.3 2001/11/10 12:19:00 hallski Exp $

S=${WORKDIR}/itcl${PV}
DESCRIPTION="Object Oriented Enhancements for Tcl/Tk"
SRC_URI="http://dev.scriptics.com/ftp/itcl/itcl${PV}.tar.gz"
HOMEPAGE="http://dev.scriptics.com/ftp/itcl/"

DEPEND=">=dev-lang/tcl-tk-8.4.2"

src_unpack() {
	unpack ${A}
	cd ${S}
	try patch -p1 < ${FILESDIR}/${PF}-gentoo.diff
}

src_compile() {
	./configure --prefix=/usr --host=${CHOST} || die
	make CFLAGS_DEFAULT="${CFLAGS}" || die
}

src_install () {
	make prefix=${D}/usr install || die

	rm ${D}/usr/lib/iwidgets
	ln -s iwidgets3.0.1 ${D}/usr/lib/iwidgets
	dodoc CHANGES INCOMPATIBLE README TODO
	cd ${S}/doc ; docinto doc
	dodoc README
}