commit: 101320a44ad90548e7678e1fe9eab562e4d34ae0 Author: Tony Olagbaiye <bqv <AT> fron <DOT> io> AuthorDate: Wed May 18 19:36:30 2022 +0000 Commit: Tony Olagbaiye <gentoo <AT> fron <DOT> io> CommitDate: Wed May 18 19:36:30 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=101320a4
sys-process/snooze: simplify ebuilds Signed-off-by: Tony Olagbaiye <bqv <AT> fron.io> sys-process/snooze/snooze-0.5.ebuild | 18 +++++++++++++++++- sys-process/snooze/snooze-9999.ebuild | 10 +++------- 2 files changed, 20 insertions(+), 8 deletions(-) diff --git a/sys-process/snooze/snooze-0.5.ebuild b/sys-process/snooze/snooze-0.5.ebuild deleted file mode 120000 index fff5de8a5..000000000 --- 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 000000000..19a93cb6c --- /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 53b600639..204622917 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"
