From 101320a44ad90548e7678e1fe9eab562e4d34ae0 Mon Sep 17 00:00:00 2001 From: Tony Olagbaiye Date: Wed, 18 May 2022 20:36:30 +0100 Subject: [PATCH] sys-process/snooze: simplify ebuilds Signed-off-by: Tony Olagbaiye --- sys-process/snooze/snooze-0.5.ebuild | 18 +++++++++++++++++- sys-process/snooze/snooze-9999.ebuild | 10 +++------- 2 files changed, 20 insertions(+), 8 deletions(-) mode change 120000 => 100644 sys-process/snooze/snooze-0.5.ebuild diff --git a/sys-process/snooze/snooze-0.5.ebuild b/sys-process/snooze/snooze-0.5.ebuild deleted file mode 120000 index fff5de8a5e..0000000000 --- a/sys-process/snooze/snooze-0.5.ebuild +++ /dev/null @@ -1 +0,0 @@ -snooze-9999.ebuild \ No newline at end of file diff --git a/sys-process/snooze/snooze-0.5.ebuild b/sys-process/snooze/snooze-0.5.ebuild new file mode 100644 index 0000000000..19a93cb6cb --- /dev/null +++ b/sys-process/snooze/snooze-0.5.ebuild @@ -0,0 +1,17 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="Run a command at a particular time" +HOMEPAGE="https://github.com/leahneukirchen/${PN}" +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~x86" + +LICENSE="CC0-1.0" +SLOT="0" + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + dodoc {README,NEWS}.md +} diff --git a/sys-process/snooze/snooze-9999.ebuild b/sys-process/snooze/snooze-9999.ebuild index 53b6006398..2046229175 100644 --- a/sys-process/snooze/snooze-9999.ebuild +++ b/sys-process/snooze/snooze-9999.ebuild @@ -5,13 +5,9 @@ EAPI=7 DESCRIPTION="Run a command at a particular time" HOMEPAGE="https://github.com/leahneukirchen/${PN}" -if [[ "${PV}" = 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="${HOMEPAGE}.git" -else - SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 x86" -fi + +inherit git-r3 +EGIT_REPO_URI="${HOMEPAGE}.git" LICENSE="CC0-1.0" SLOT="0"