blob: 40259e89e0d231f208a2d92ca5c0e1439ea59de9 (
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
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/otcl/otcl-1.8.ebuild,v 1.4 2004/02/28 21:19:00 aliz Exp $
DESCRIPTION="MIT Object extention to Tcl"
SF_PN="otcl-tclcl"
HOMEPAGE="http://sourceforge.net/projects/${SF_PN}/"
SRC_URI="mirror://sourceforge/${SF_PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="x86 ~sparc"
IUSE=""
DEPEND=">=dev-lang/tcl-8.3.2
>=dev-lang/tk-8.3.2"
S=${WORKDIR}/${P}
src_compile() {
#local myconf="--with-tcl=/usr/lib --enable-shared"
local myconf="--enable-shared"
CFLAGS="${CFLAGS} -I`ls /usr/lib/tcl8.*/include/generic/tclInt.h | tail -n1 | xargs dirname`"
econf ${myconf}
emake all || die
emake libotcl.so || die
}
src_install() {
into /usr
dobin otclsh owish
dolib libotcl.so
dolib.a libotcl.a
insinto /usr/include
doins otcl.h
# docs
dodoc VERSION
dohtml README.html CHANGES.html
docinto doc
dodoc doc/*
}
|