You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
914 B
44 lines
914 B
4 years ago
|
# Copyright 1999-2020 Gentoo Authors
|
||
8 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
4 years ago
|
EAPI=7
|
||
8 years ago
|
|
||
8 years ago
|
DESCRIPTION="Minimalistic personal calendar program"
|
||
8 years ago
|
HOMEPAGE="http://www.lightandmatter.com/when/when.html"
|
||
|
SRC_URI="http://www.lightandmatter.com/when/when.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="Artistic"
|
||
|
SLOT="0"
|
||
4 years ago
|
KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
|
||
8 years ago
|
|
||
|
DEPEND="dev-lang/perl"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
8 years ago
|
S="${WORKDIR}/when_dist"
|
||
|
|
||
|
DOCS=( README )
|
||
8 years ago
|
|
||
4 years ago
|
RESTRICT="test"
|
||
|
|
||
8 years ago
|
src_prepare() {
|
||
|
default
|
||
|
|
||
|
# Fix path for tests
|
||
|
sed -i 's,^ when, ./when,' Makefile || die 'sed failed'
|
||
|
}
|
||
|
|
||
|
src_compile() { :; }
|
||
|
|
||
|
src_test() {
|
||
|
# The when command requires these files, or attempts to run setup function.
|
||
|
mkdir "${HOME}"/.when || die 'mkdir failed'
|
||
|
touch "${HOME}"/.when/{calendar,preferences} || die 'touch failed'
|
||
|
emake test
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
8 years ago
|
dobin "${PN}"
|
||
|
doman "${PN}.1"
|
||
|
einstalldocs
|
||
8 years ago
|
}
|