summaryrefslogtreecommitdiff
blob: 3f9e8f3584a8d388ef41b4864595561abfabeeb1 (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_tcl/mod_tcl-1.0.ebuild,v 1.2 2004/08/30 16:30:41 dholm Exp $

inherit eutils

DESCRIPTION="An Apache2 DSO providing an embedded Tcl interpreter"
HOMEPAGE="http://tcl.apache.org/mod_tcl/"

S=${WORKDIR}/${P}
SRC_URI="mirror://gentoo/${P}.tar.bz2"
DEPEND="dev-lang/tcl =net-www/apache-2*"
LICENSE="Apache-1.1"
KEYWORDS="x86 ~ppc"
IUSE=""
SLOT="0"

src_compile() {
	mv tcl_core.c ${PN}.c
	apxs2 -c -Wl,-ltcl -DHAVE_TCL_H ${PN}.c tcl_cmds.c tcl_misc.c || die
}

src_install() {
	exeinto /usr/lib/apache2-extramodules
	doexe .libs/${PN}.so
	insinto /etc/apache2/conf/modules.d
	doins ${FILESDIR}/27_mod_tcl.conf
	dodoc ${FILESDIR}/27_mod_tcl.conf
	dodoc AUTHORS INSTALL NEWS README test_script.tm
}