summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Hill <dirtyepic@gentoo.org>2007-01-22 00:13:08 +0000
committerRyan Hill <dirtyepic@gentoo.org>2007-01-22 00:13:08 +0000
commitfe5e9e23914f206320ad8c6839d9f42f2eec85aa (patch)
treec42d7cb1092f90b12c9da947777ed4e7204caadc /app-misc/when
parent2.1.2-r2 revbump. Bug #162453 tracks fixes since 2.1.2. (diff)
downloadgentoo-2-fe5e9e23914f206320ad8c6839d9f42f2eec85aa.tar.gz
gentoo-2-fe5e9e23914f206320ad8c6839d9f42f2eec85aa.tar.bz2
gentoo-2-fe5e9e23914f206320ad8c6839d9f42f2eec85aa.zip
Undo last revision and apply patch by James Rowe to fix tests (bug #138415).
(Portage version: 2.1.2-r1)
Diffstat (limited to 'app-misc/when')
-rw-r--r--app-misc/when/ChangeLog5
-rw-r--r--app-misc/when/when-1.0.23.ebuild16
2 files changed, 18 insertions, 3 deletions
diff --git a/app-misc/when/ChangeLog b/app-misc/when/ChangeLog
index e0e545e61626..762276c617f3 100644
--- a/app-misc/when/ChangeLog
+++ b/app-misc/when/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for app-misc/when
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/when/ChangeLog,v 1.17 2007/01/19 04:48:21 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/when/ChangeLog,v 1.18 2007/01/22 00:13:08 dirtyepic Exp $
+
+ 22 Jan 2007; Ryan Hill <dirtyepic@gentoo.org> when-1.0.23.ebuild:
+ Undo last revision and apply patch by James Rowe to fix tests (bug #138415).
19 Jan 2007; Ryan Hill <dirtyepic@gentoo.org> -when-1.0.20.ebuild,
when-1.0.23.ebuild:
diff --git a/app-misc/when/when-1.0.23.ebuild b/app-misc/when/when-1.0.23.ebuild
index 1c90e7ab6f62..c854e8c074ed 100644
--- a/app-misc/when/when-1.0.23.ebuild
+++ b/app-misc/when/when-1.0.23.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-misc/when/when-1.0.23.ebuild,v 1.6 2007/01/19 04:48:21 dirtyepic Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-misc/when/when-1.0.23.ebuild,v 1.7 2007/01/22 00:13:08 dirtyepic Exp $
DESCRIPTION="Extremely simple personal calendar program aimed at the Unix geek who wants something minimalistic"
HOMEPAGE="http://www.lightandmatter.com/when/when.html"
@@ -13,12 +13,24 @@ IUSE=""
RDEPEND=">=dev-lang/perl-5.005"
-RESTRICT="test"
+src_unpack() {
+ unpack ${A}; cd ${S}
+
+ # Fix path for tests
+ sed -i 's,^ when, ./when,' Makefile
+}
src_compile() {
emake ${PN}.html || die "emake failed"
}
+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"