From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AE11E138334 for ; Thu, 17 Oct 2019 10:11:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9CB57E0894; Thu, 17 Oct 2019 10:11:38 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7A41CE0894 for ; Thu, 17 Oct 2019 10:11:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2C48E34BF30 for ; Thu, 17 Oct 2019 10:11:37 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 99B2488A for ; Thu, 17 Oct 2019 10:11:34 +0000 (UTC) From: "David Seifert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "David Seifert" Message-ID: <1571307074.ed1e95300e514a93a1d975907401eae9162f6c51.soap@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-sound/rawrec/, media-sound/rawrec/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch media-sound/rawrec/rawrec-0.9.991.ebuild X-VCS-Directories: media-sound/rawrec/files/ media-sound/rawrec/ X-VCS-Committer: soap X-VCS-Committer-Name: David Seifert X-VCS-Revision: ed1e95300e514a93a1d975907401eae9162f6c51 X-VCS-Branch: master Date: Thu, 17 Oct 2019 10:11:34 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b0e21577-9f90-432e-ad63-0d33ce01c63d X-Archives-Hash: 7c4de107566a43eb5258a2704fd1fc96 commit: ed1e95300e514a93a1d975907401eae9162f6c51 Author: David Seifert gentoo org> AuthorDate: Thu Oct 17 10:11:14 2019 +0000 Commit: David Seifert gentoo org> CommitDate: Thu Oct 17 10:11:14 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed1e9530 media-sound/rawrec: 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 gentoo.org> .../files/rawrec-0.9.991-fix-build-system.patch | 24 ++++++++++++++++++ media-sound/rawrec/rawrec-0.9.991.ebuild | 29 +++++++++++----------- 2 files changed, 39 insertions(+), 14 deletions(-) diff --git a/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch b/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch new file mode 100644 index 00000000000..bef125094f1 --- /dev/null +++ b/media-sound/rawrec/files/rawrec-0.9.991-fix-build-system.patch @@ -0,0 +1,24 @@ +--- a/Makefile ++++ b/Makefile +@@ -6,19 +6,15 @@ + HEADERS = $(wildcard *.h) + OBJS = $(patsubst %.c,%.o,$(wildcard *.c)) + +-CC = gcc + WARNFLAGS = -Wall -W -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes +-DEBUGFLAGS = -O0 -g +-OPTFLAGS = -O2 + + # Uncomment this to try to use untested priority ceiling/inheritance + # code (if system supports it). + #FANCY_THREAD_DEFINES = -DUSE_FANCY_PRIORITY_CODE + + # FIXME: USEBUFFLOCK appears to be historic, and should probably go some day. +-CFLAGS = $(WARNFLAGS) $(OPTFLAGS) $(DEBUGFLAGS) -DUSEBUFFLOCK \ +- $(FANCY_THREAD_DEFINES) -D_REENTRANT -D_GNU_SOURCE \ +- -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE ++CFLAGS += $(WARNFLAGS) ++CPPFLAGS += -DUSEBUFFLOCK -D_REENTRANT -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE + LIBS = -lm -lpthread + + # The GNU way is just too painful. I'm not writing three tiers of diff --git a/media-sound/rawrec/rawrec-0.9.991.ebuild b/media-sound/rawrec/rawrec-0.9.991.ebuild index 24377e07228..3372ddccaf5 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