blob: b062452dcaab0a10add3472ac4db91931e93fcba (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/when/when-1.1.16-r1.ebuild,v 1.1 2010/06/15 11:50:53 jlec Exp $
inherit eutils prefix
DESCRIPTION="Extremely simple personal calendar program aimed at the Unix geek who wants something minimalistic"
HOMEPAGE="http://www.lightandmatter.com/when/when.html"
SRC_URI="mirror://gentoo/${P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
IUSE=""
S=${WORKDIR}/when_dist
src_unpack() {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PN}-prefix.patch
eprefixify when
# Fix path for tests
sed -i 's,^ when, ./when,' Makefile
}
src_compile() {
return
}
src_test() {
# The when command requires these files, or attempts to run setup function.
mkdir "${HOME}"/.when
touch "${HOME}"/.when/{calendar,preferences}
emake test || die "emake test failed"
}
src_install() {
dobin ${PN} || die "dobin failed"
doman ${PN}.1 || die "doman failed"
dodoc README
}
|