42 lines
962 B
Bash
42 lines
962 B
Bash
# Copyright 1999-2016 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
|
|
DIST_AUTHOR=KOHTS
|
|
DIST_VERSION=1.95
|
|
|
|
inherit perl-module
|
|
|
|
DESCRIPTION="Take a line from a crontab and find out when events will occur"
|
|
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
IUSE="test examples"
|
|
|
|
RDEPEND="virtual/perl-Time-Local
|
|
dev-perl/Set-Crontab"
|
|
DEPEND="${RDEPEND}
|
|
virtual/perl-ExtUtils-MakeMaker
|
|
test? (
|
|
virtual/perl-Data-Dumper
|
|
virtual/perl-Test
|
|
virtual/perl-Test-Simple
|
|
dev-perl/Test-Deep
|
|
)"
|
|
|
|
src_prepare() {
|
|
perl-module_src_prepare
|
|
mkdir "${S}"/examples/ || die
|
|
mv "${S}/cron_event_predict.plx" "${S}/examples/cron_event_predict.plx" || die
|
|
sed -i 's|^cron_event_predict.plx|examples/cron_event_predict.plx|' "${S}"/MANIFEST || die
|
|
sed -i "/cron_event_predict.plx/d" Makefile.PL || die
|
|
}
|
|
src_install() {
|
|
perl-module_src_install
|
|
if use examples; then
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
dodoc -r examples
|
|
fi
|
|
}
|