summaryrefslogtreecommitdiff
blob: e84be57bbe544e8367ebbac4b810f130e821bbac (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
41
42
43
44
45
46
47
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/ical/ical-2.3.3.ebuild,v 1.5 2009/09/27 14:58:25 nixnut Exp $

inherit autotools eutils multilib

DESCRIPTION="Tk-based Calendar program"
HOMEPAGE="http://www.fnal.gov/docs/products/tktools/ical.html"
SRC_URI="http://annexia.org/_file/${P}.tar.gz"

LICENSE="as-is GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE=""
RESTRICT="test"

DEPEND="dev-lang/tcl
	dev-lang/tk"
RDEPEND="${DEPEND}"

src_unpack() {
	unpack ${A}
	cd "${S}"

	sed -i \
		-e "s:mkdir:mkdir -p:" \
		-e "/LIBDIR =/s:lib:$(get_libdir):" \
		-e "/MANDIR =/s:man:share/man:" \
		Makefile.in || die

	epatch "${FILESDIR}"/${P}-tcl8.5.patch
	epatch "${FILESDIR}"/${P}-glibc210.patch
	eautoconf
	cd "${S}/types"; eautoconf
}

src_compile() {
	econf || die "econf failed"
	emake OPTF="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" || die "emake failed"
}

src_install() {
	emake prefix="${D}/usr" install || die "emake install failed"

	dodoc ANNOUNCE README *.txt
	dohtml CHANGES.html doc/*.html
}