Gentoo Archives: gentoo-commits

From: Tony Olagbaiye <gentoo@××××.io>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sys-process/snooze/
Date: Wed, 18 May 2022 19:49:43
Message-Id: 1652902590.101320a44ad90548e7678e1fe9eab562e4d34ae0.gentoo@gentoo
1 commit: 101320a44ad90548e7678e1fe9eab562e4d34ae0
2 Author: Tony Olagbaiye <bqv <AT> fron <DOT> io>
3 AuthorDate: Wed May 18 19:36:30 2022 +0000
4 Commit: Tony Olagbaiye <gentoo <AT> fron <DOT> io>
5 CommitDate: Wed May 18 19:36:30 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=101320a4
7
8 sys-process/snooze: simplify ebuilds
9
10 Signed-off-by: Tony Olagbaiye <bqv <AT> fron.io>
11
12 sys-process/snooze/snooze-0.5.ebuild | 18 +++++++++++++++++-
13 sys-process/snooze/snooze-9999.ebuild | 10 +++-------
14 2 files changed, 20 insertions(+), 8 deletions(-)
15
16 diff --git a/sys-process/snooze/snooze-0.5.ebuild b/sys-process/snooze/snooze-0.5.ebuild
17 deleted file mode 120000
18 index fff5de8a5..000000000
19 --- a/sys-process/snooze/snooze-0.5.ebuild
20 +++ /dev/null
21 @@ -1 +0,0 @@
22 -snooze-9999.ebuild
23 \ No newline at end of file
24
25 diff --git a/sys-process/snooze/snooze-0.5.ebuild b/sys-process/snooze/snooze-0.5.ebuild
26 new file mode 100644
27 index 000000000..19a93cb6c
28 --- /dev/null
29 +++ b/sys-process/snooze/snooze-0.5.ebuild
30 @@ -0,0 +1,17 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=7
35 +
36 +DESCRIPTION="Run a command at a particular time"
37 +HOMEPAGE="https://github.com/leahneukirchen/${PN}"
38 +SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
39 +KEYWORDS="~amd64 ~x86"
40 +
41 +LICENSE="CC0-1.0"
42 +SLOT="0"
43 +
44 +src_install() {
45 + emake DESTDIR="${D}" PREFIX=/usr install
46 + dodoc {README,NEWS}.md
47 +}
48
49 diff --git a/sys-process/snooze/snooze-9999.ebuild b/sys-process/snooze/snooze-9999.ebuild
50 index 53b600639..204622917 100644
51 --- a/sys-process/snooze/snooze-9999.ebuild
52 +++ b/sys-process/snooze/snooze-9999.ebuild
53 @@ -5,13 +5,9 @@ EAPI=7
54
55 DESCRIPTION="Run a command at a particular time"
56 HOMEPAGE="https://github.com/leahneukirchen/${PN}"
57 -if [[ "${PV}" = 9999 ]]; then
58 - inherit git-r3
59 - EGIT_REPO_URI="${HOMEPAGE}.git"
60 -else
61 - SRC_URI="${HOMEPAGE}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
62 - KEYWORDS="amd64 x86"
63 -fi
64 +
65 +inherit git-r3
66 +EGIT_REPO_URI="${HOMEPAGE}.git"
67
68 LICENSE="CC0-1.0"
69 SLOT="0"