summaryrefslogtreecommitdiff
blob: d7fc2b6728b308eb5100c024dc5569e7d403bf4e (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/ccal/ccal-0.6-r1.ebuild,v 1.3 2010/04/18 17:10:21 nixnut Exp $

EAPI="2"

PYTHON_DEPEND="2"

inherit python

DESCRIPTION="Curses-based calendar/journal/diary/todo utility"
HOMEPAGE="http://www.jamiehillman.co.uk/ccal/"
SRC_URI="mirror://gentoo/${P}.py.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ppc ~sparc x86"
IUSE=""

S=${WORKDIR}

src_prepare() {
	python_convert_shebangs 2 ${P}.py
}

src_install() {
	newbin ${P}.py ${PN} || die "dobin failed"
	dohtml "${FILESDIR}"/instructions.htm || die "dohtml failed"
}

pkg_postinst() {
	echo
	elog "Read /usr/share/doc/${PF}/html/instructions.htm for"
	elog "information on using ccal."
	echo
}