summaryrefslogtreecommitdiff
blob: 6b909661bd23231fda02d79434607adaa4e5739b (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
48
49
50
51
52
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-office/ical/ical-2.2.1.ebuild,v 1.6 2004/03/15 04:11:06 seemant Exp $

PATCH_VER="0.1"
MY_P=${P}a
S=${WORKDIR}/${MY_P}
DESCRIPTION="Tk-based Calendar program"
HOMEPAGE="http://www.fnal.gov/docs/products/tktools/ical.html"
SRC_URI="http://helios.dii.utk.edu/ftp/pub/tcl/apps/ical/${MY_P}.tar.bz2
		 http://www.ibiblio.org/gentoo/distfiles/${MY_P}.patch-${PATCH_VER}.tar.bz2"

SLOT="0"
LICENSE="as-is GPL-2"
KEYWORDS="x86"

RDEPEND="dev-lang/tcl
	dev-lang/tk"

DEPEND="${RDEPEND}
	>=sys-apps/sed-4
	sys-devel/autoconf"

src_unpack() {
	unpack ${A}
	cd ${WORKDIR}

	epatch ${MY_P}-newtcl.patch
	epatch ${MY_P}-hack.patch
	epatch ${MY_P}-glibc22.patch
	epatch ${MY_P}-print.patch

	sed -i \
		-e "s: \@TCL_LIBS\@::" \
		-e "s:mkdir:mkdir -p:" \
			Makefile.in

	if has_version '=dev-lang/tcl-8.4*' ; then
		epatch ${MY_P}-tcl8.4.patch
	fi

}

src_compile() {
	autoconf
	econf --with-tclsh=/usr/bin/tclsh || die
	emake || make || die "parallel make failed"
}

src_install () {
	einstall || die "install failed"
}