blob: b1746db321719bc53bf4c617a875a1d444feb8ec (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-tcltk/tclcl/tclcl-1.15.ebuild,v 1.6 2004/07/27 23:44:11 robbat2 Exp $
DESCRIPTION="Tcl/C++ interface library"
SF_PN="otcl-tclcl"
HOMEPAGE="http://sourceforge.net/projects/${SF_PN}/"
MY_P="${PN}-src-${PV}"
SRC_URI="mirror://sourceforge/${SF_PN}/${MY_P}.tar.gz"
LICENSE="as-is"
SLOT="0"
KEYWORDS="x86 ~sparc"
IUSE=""
DEPEND=">=dev-lang/tcl-8.3.2
>=dev-lang/tk-8.3.2
>=dev-tcltk/otcl-1.0.8"
src_compile() {
local tclv tkv
tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's/^.*"\(.*\)".*/\1/')
tkv=$(grep TK_VER /usr/include/tk.h | sed 's/^.*"\(.*\)".*/\1/')
local myconf="--with-tcl-ver=${tclv} --with-tk-ver=${tkv}"
econf ${myconf} || die "econf failed"
sed 's|$(LIBRARY_TCL)/http.*/http.tcl|$(LIBRARY_TCL)/http2.4/http.tcl|g' \
-i Makefile || die "sed failed"
emake || die "emake failed"
}
src_install() {
dolib.a libtclcl.a
dobin tcl2c++
dodir /usr/include
insinto /usr/include
doins *.h
dohtml CHANGES.html
dodoc FILES README VERSION
}
|