1 |
commit: 70ab6c0a3a480238817cc50dd86124ec142c99c2 |
2 |
Author: David Seifert <soap <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Oct 17 22:37:40 2019 +0000 |
4 |
Commit: David Seifert <soap <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Oct 17 22:37:40 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70ab6c0a |
7 |
|
8 |
media-sound/saydate: Port to EAPI 7 |
9 |
|
10 |
Bug: https://bugs.gentoo.org/697272 |
11 |
Package-Manager: Portage-2.3.77, Repoman-2.3.17 |
12 |
Signed-off-by: David Seifert <soap <AT> gentoo.org> |
13 |
|
14 |
media-sound/saydate/saydate-0.3.0.ebuild | 40 ++++++++++++++++++-------------- |
15 |
1 file changed, 22 insertions(+), 18 deletions(-) |
16 |
|
17 |
diff --git a/media-sound/saydate/saydate-0.3.0.ebuild b/media-sound/saydate/saydate-0.3.0.ebuild |
18 |
index 7b6489dbdcd..95205e4dd16 100644 |
19 |
--- a/media-sound/saydate/saydate-0.3.0.ebuild |
20 |
+++ b/media-sound/saydate/saydate-0.3.0.ebuild |
21 |
@@ -1,35 +1,39 @@ |
22 |
-# Copyright 1999-2018 Gentoo Foundation |
23 |
+# Copyright 1999-2019 Gentoo Authors |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
-EAPI=0 |
27 |
+EAPI=7 |
28 |
|
29 |
-S=${WORKDIR}/${PN} |
30 |
DESCRIPTION="A Linux shell program that talks the date and system uptime" |
31 |
HOMEPAGE="http://unihedron.com/projects/saydate/saydate.php" |
32 |
SRC_URI="http://unihedron.com/projects/saydate/${P}.tar.gz" |
33 |
+ |
34 |
LICENSE="GPL-2" |
35 |
SLOT="0" |
36 |
- |
37 |
KEYWORDS="amd64 ~ppc ppc64 sparc x86" |
38 |
|
39 |
-DEPEND="=sys-apps/sed-4*" |
40 |
-IUSE="" |
41 |
+S=${WORKDIR}/${PN} |
42 |
+ |
43 |
+src_prepare() { |
44 |
+ default |
45 |
|
46 |
-# Don't leave this empty or it tries to install directly |
47 |
-# on livefs |
48 |
-src_compile() { :; } |
49 |
+ sed -i 's:/dev/audio:/dev/dsp:' saydate au2raw DESIGN || die |
50 |
+ |
51 |
+ # don't install pre-compressed files |
52 |
+ gunzip man/{saydate,au2raw}.1.gz || die |
53 |
+} |
54 |
+ |
55 |
+src_compile() { |
56 |
+ # Don't leave this empty or it tries |
57 |
+ # to install directly on livefs |
58 |
+ : |
59 |
+} |
60 |
|
61 |
-src_install () { |
62 |
- insinto /usr/share/man/man1 |
63 |
- doins "${S}"/man/saydate.1.gz "${S}"/man/au2raw.1.gz |
64 |
+src_install() { |
65 |
+ dobin saydate au2raw |
66 |
|
67 |
- dodir /usr/share/saydate |
68 |
insinto /usr/share/saydate |
69 |
- doins "${S}"/data/*.raw |
70 |
+ doins data/*.raw |
71 |
|
72 |
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/saydate |
73 |
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/au2raw |
74 |
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/DESIGN |
75 |
+ doman man/{saydate,au2raw}.1 |
76 |
dodoc README TODO HISTORY DESIGN |
77 |
- dobin saydate au2raw || die "dobin failed" |
78 |
} |