public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: media-sound/cdtool/files/, media-sound/cdtool/
@ 2019-12-10  0:42 David Seifert
  0 siblings, 0 replies; only message in thread
From: David Seifert @ 2019-12-10  0:42 UTC (permalink / raw
  To: gentoo-commits

commit:     69ae4b3b9a2538c9c4507e2a329663ef0303c3b3
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Tue Dec 10 00:41:31 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Tue Dec 10 00:41:31 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=69ae4b3b

media-sound/cdtool: Port to EAPI 7

Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-sound/cdtool/cdtool-2.1.8-r1.ebuild          | 17 ++++-----
 .../files/cdtool-2.1.8-fix-build-system.patch      | 40 ++++++++++++++++++++++
 2 files changed, 46 insertions(+), 11 deletions(-)

diff --git a/media-sound/cdtool/cdtool-2.1.8-r1.ebuild b/media-sound/cdtool/cdtool-2.1.8-r1.ebuild
index 6706ada72f6..0d81cefca18 100644
--- a/media-sound/cdtool/cdtool-2.1.8-r1.ebuild
+++ b/media-sound/cdtool/cdtool-2.1.8-r1.ebuild
@@ -1,8 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI="4"
-inherit eutils
+EAPI=7
 
 DESCRIPTION="collection of command-line utilities to control cdrom devices"
 HOMEPAGE="http://hinterhof.net/cdtool/"
@@ -15,11 +14,7 @@ IUSE=""
 
 RDEPEND="!media-sound/cdplay"
 
-src_prepare() {
-	epatch "${FILESDIR}"/${P}-glibc-2.10.patch
-	sed -i \
-		-e '/INSTALL/s:-o root::' \
-		-e '/LINKTARGET/s:/lib/:/$(notdir $(libdir))/:' \
-		-e '/^install-links:/s:$: install-files:' \
-		Makefile.in || die
-}
+PATCHES=(
+	"${FILESDIR}"/${P}-glibc-2.10.patch
+	"${FILESDIR}"/${P}-fix-build-system.patch
+)

diff --git a/media-sound/cdtool/files/cdtool-2.1.8-fix-build-system.patch b/media-sound/cdtool/files/cdtool-2.1.8-fix-build-system.patch
new file mode 100644
index 00000000000..c059a645112
--- /dev/null
+++ b/media-sound/cdtool/files/cdtool-2.1.8-fix-build-system.patch
@@ -0,0 +1,40 @@
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -44,11 +44,11 @@
+ install: install-files install-links
+ install-files:
+ 	mkdir -p $(DESTDIR)$(bindir)
+-	$(INSTALL) cdctrl $(DESTDIR)$(bindir) -o root
+-	$(INSTALL) cdloop $(DESTDIR)$(bindir) -o root
+-	$(INSTALL) cdadd $(DESTDIR)$(bindir) -o root
+-	$(INSTALL) cdown $(DESTDIR)$(bindir) -o root
+-	$(INSTALL) cdtool2cddb $(DESTDIR)$(bindir) -o root
++	$(INSTALL) cdctrl $(DESTDIR)$(bindir)
++	$(INSTALL) cdloop $(DESTDIR)$(bindir)
++	$(INSTALL) cdadd $(DESTDIR)$(bindir)
++	$(INSTALL) cdown $(DESTDIR)$(bindir)
++	$(INSTALL) cdtool2cddb $(DESTDIR)$(bindir)
+ 
+ 	mkdir -p $(DESTDIR)$(mandir)/man1
+ 	$(INSTALL) cdctrl.1 $(DESTDIR)$(mandir)/man1
+@@ -59,9 +59,9 @@
+ 	$(INSTALL) cdtool2cddb.1 $(DESTDIR)$(mandir)/man1
+ 
+ 	mkdir -p $(DESTDIR)$(libdir)/cdtool
+-	$(INSTALL) cdtool $(DESTDIR)$(libdir)/cdtool -o root
++	$(INSTALL) cdtool $(DESTDIR)$(libdir)/cdtool
+  
+-LINKTARGET = ../lib/cdtool/cdtool
++LINKTARGET = ../$(notdir $(libdir))/cdtool/cdtool
+ LINKS = cdplay cdpause cdstop cdclose cdeject cdir cdinfo cdreset \
+         cdvolume cdshuffle
+ 
+@@ -69,7 +69,7 @@
+ install-links-local: bindir = .
+ install-links-local: install-links
+ 
+-install-links:
++install-links: install-files
+ 	for command in $(LINKS); do \
+ 	  if ! test -h $(DESTDIR)$(bindir)/$$command; then \
+ 	    echo installing $$command; \


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2019-12-10  0:42 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-12-10  0:42 [gentoo-commits] repo/gentoo:master commit in: media-sound/cdtool/files/, media-sound/cdtool/ David Seifert

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox