summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2019-10-18 00:37:40 +0200
committerDavid Seifert <soap@gentoo.org>2019-10-18 00:37:40 +0200
commit70ab6c0a3a480238817cc50dd86124ec142c99c2 (patch)
treec7f6bd3c117ec3932f126834870f76b0581734df /media-sound/saydate
parentdev-python/python-dateutil: Patch fix, remove fbsd (diff)
downloadgentoo-70ab6c0a3a480238817cc50dd86124ec142c99c2.tar.gz
gentoo-70ab6c0a3a480238817cc50dd86124ec142c99c2.tar.bz2
gentoo-70ab6c0a3a480238817cc50dd86124ec142c99c2.zip
media-sound/saydate: Port to EAPI 7
Bug: https://bugs.gentoo.org/697272 Package-Manager: Portage-2.3.77, Repoman-2.3.17 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound/saydate')
-rw-r--r--media-sound/saydate/saydate-0.3.0.ebuild40
1 files changed, 22 insertions, 18 deletions
diff --git a/media-sound/saydate/saydate-0.3.0.ebuild b/media-sound/saydate/saydate-0.3.0.ebuild
index 7b6489dbdcd8..95205e4dd16b 100644
--- a/media-sound/saydate/saydate-0.3.0.ebuild
+++ b/media-sound/saydate/saydate-0.3.0.ebuild
@@ -1,35 +1,39 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=0
+EAPI=7
-S=${WORKDIR}/${PN}
DESCRIPTION="A Linux shell program that talks the date and system uptime"
HOMEPAGE="http://unihedron.com/projects/saydate/saydate.php"
SRC_URI="http://unihedron.com/projects/saydate/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
-
KEYWORDS="amd64 ~ppc ppc64 sparc x86"
-DEPEND="=sys-apps/sed-4*"
-IUSE=""
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ default
-# Don't leave this empty or it tries to install directly
-# on livefs
-src_compile() { :; }
+ sed -i 's:/dev/audio:/dev/dsp:' saydate au2raw DESIGN || die
+
+ # don't install pre-compressed files
+ gunzip man/{saydate,au2raw}.1.gz || die
+}
+
+src_compile() {
+ # Don't leave this empty or it tries
+ # to install directly on livefs
+ :
+}
-src_install () {
- insinto /usr/share/man/man1
- doins "${S}"/man/saydate.1.gz "${S}"/man/au2raw.1.gz
+src_install() {
+ dobin saydate au2raw
- dodir /usr/share/saydate
insinto /usr/share/saydate
- doins "${S}"/data/*.raw
+ doins data/*.raw
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/saydate
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/au2raw
- sed -i "s:/dev/audio:/dev/dsp:" "${S}"/DESIGN
+ doman man/{saydate,au2raw}.1
dodoc README TODO HISTORY DESIGN
- dobin saydate au2raw || die "dobin failed"
}