summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-sound/rawrec/rawrec-0.9.991.ebuild')
-rw-r--r--media-sound/rawrec/rawrec-0.9.991.ebuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild b/media-sound/rawrec/rawrec-0.9.991.ebuild
index 24377e072281..3372ddccaf5f 100644
--- a/media-sound/rawrec/rawrec-0.9.991.ebuild
+++ b/media-sound/rawrec/rawrec-0.9.991.ebuild
@@ -1,9 +1,9 @@
-# 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
-inherit flag-o-matic toolchain-funcs eutils
+inherit flag-o-matic toolchain-funcs
DESCRIPTION="CLI program to play and record audiofiles"
HOMEPAGE="http://rawrec.sourceforge.net"
@@ -12,23 +12,24 @@ SRC_URI="mirror://sourceforge/rawrec/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
-IUSE=""
-S="${S}"/src
+S="${WORKDIR}/${P}/src"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}/${PN}-libs.patch"
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-libs.patch
+ "${FILESDIR}"/${P}-fix-build-system.patch
+)
-src_compile() {
- emake CC="$(tc-getCC)" OPTFLAGS="${CFLAGS}" || die "emake failed."
+src_configure() {
+ tc-export CC
}
src_install() {
- emake EXE_DIR="${D}/usr/bin" \
- MAN_DIR="${D}/usr/share/man/man1" install || die "emake install failed."
+ dobin rawrec
+ dosym rawrec /usr/bin/rawplay
+
+ doman ../docs/user/rawrec.1
+ dosym rawrec.1 /usr/share/man/man1/rawplay.1
einfo "Removing SUID from binary.."
fperms 755 /usr/bin/rawrec