sys-process/snooze: simplify ebuilds

Signed-off-by: Tony Olagbaiye <bqv@fron.io>
This commit is contained in:
Tony Olagbaiye 2022-05-18 20:36:30 +01:00
parent ccd254b0fd
commit 101320a44a
No known key found for this signature in database
GPG Key ID: 9E2FF3BDEBDFC910
2 changed files with 20 additions and 8 deletions

View File

@ -1 +0,0 @@
snooze-9999.ebuild

View File

@ -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
}

View File

@ -5,13 +5,9 @@ EAPI=7
DESCRIPTION="Run a command at a particular time" DESCRIPTION="Run a command at a particular time"
HOMEPAGE="https://github.com/leahneukirchen/${PN}" HOMEPAGE="https://github.com/leahneukirchen/${PN}"
if [[ "${PV}" = 9999 ]]; then
inherit git-r3 inherit git-r3
EGIT_REPO_URI="${HOMEPAGE}.git" EGIT_REPO_URI="${HOMEPAGE}.git"
else
SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="amd64 x86"
fi
LICENSE="CC0-1.0" LICENSE="CC0-1.0"
SLOT="0" SLOT="0"