Skip to content

Commit

Permalink
sys-process/systemd-cron: fix FEATURES=test support
Browse files Browse the repository at this point in the history
Bug: 623552
Package-Manager: Portage-2.3.6, Repoman-2.3.2
  • Loading branch information
rich0 committed Jul 2, 2017
1 parent 81896c2 commit 14e10e0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions sys-process/systemd-cron/systemd-cron-1.5.3.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand All @@ -12,15 +12,16 @@ SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="cron-boot etc-crontab-systemd minutely setgid yearly"
IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly"

RDEPEND=">=sys-apps/systemd-217
sys-apps/debianutils
!etc-crontab-systemd? ( !sys-process/dcron )
${PYTHON_DEPS}
sys-process/cronbase"

DEPEND="sys-process/cronbase"
DEPEND="sys-process/cronbase
test? ( sys-apps/man-db dev-python/pyflakes )"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

Expand All @@ -35,6 +36,7 @@ src_prepare() {
sed -i \
-e 's!/crontab$!/crontab-systemd!' \
-e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \
-e 's/pyflakes3/pyflakes/' \
-- "${S}/Makefile.in" || die

if use etc-crontab-systemd
Expand Down
8 changes: 5 additions & 3 deletions sys-process/systemd-cron/systemd-cron-1.5.4.ebuild
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 1999-2016 Gentoo Foundation
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
Expand All @@ -12,15 +12,16 @@ SRC_URI="https://github.com/systemd-cron/${PN}/archive/v${PV}.tar.gz -> systemd-
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="cron-boot etc-crontab-systemd minutely setgid yearly"
IUSE="cron-boot etc-crontab-systemd minutely setgid test yearly"

RDEPEND=">=sys-apps/systemd-217
sys-apps/debianutils
!etc-crontab-systemd? ( !sys-process/dcron )
${PYTHON_DEPS}
sys-process/cronbase"

DEPEND="sys-process/cronbase"
DEPEND="sys-process/cronbase
test? ( sys-apps/man-db dev-python/pyflakes )"

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

Expand All @@ -35,6 +36,7 @@ src_prepare() {
sed -i \
-e 's!/crontab$!/crontab-systemd!' \
-e 's!/crontab\(\.[15]\)$!/crontab-systemd\1!' \
-e 's/pyflakes3/pyflakes/' \
-- "${S}/Makefile.in" || die

if use etc-crontab-systemd
Expand Down

0 comments on commit 14e10e0

Please sign in to comment.