blob: 7531db2bcb210c29c02c1d8b759180ad942f9580 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-misc/remind/remind-03.01.12.ebuild,v 1.5 2012/06/08 11:55:45 phajdan.jr Exp $
inherit eutils
MY_P=${P/_beta/-BETA-}
S=${WORKDIR}/${MY_P}
DESCRIPTION="Ridiculously functional reminder program"
HOMEPAGE="http://www.roaringpenguin.com/products/remind"
SRC_URI="http://www.roaringpenguin.com/files/download/${MY_P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc ~sparc x86 ~x86-fbsd"
IUSE="tk"
RDEPEND="tk? ( dev-lang/tk dev-tcltk/tcllib )"
src_unpack() {
unpack ${A}
cd "${S}"
sed -i 's:$(MAKE) install:&-nostripped:' "${S}"/Makefile || die
epatch "${FILESDIR}"/03.01.12-test.patch
}
src_test() {
if [[ ${EUID} -eq 0 ]] ; then
ewarn "Testing fails if run as root. Skipping tests."
return
fi
make test || die
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dobin www/rem2html || die "dobin failed"
dodoc docs/WHATSNEW examples/defs.rem www/README.* || die "dodoc failed"
if ! use tk ; then
rm "${D}"/usr/bin/tkremind "${D}"/usr/share/man/man1/tkremind* \
"${D}"/usr/bin/cm2rem* "${D}"/usr/share/man/man1/cm2rem*
fi
rm "${S}"/contrib/rem2ics-*/{Makefile,rem2ics.spec} || die
insinto /usr/share/${PN}
doins -r contrib/
}
|