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

commit:     f86d2a47c95c5f7a50ee1ebc0f8d92d9a0a89c8e
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 17 22:37:50 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Oct 17 22:37:50 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f86d2a47

media-sound/timidity-eawpatches: 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 <AT> gentoo.org>

 .../files/timidity-eawpatches-12-fix-dir.patch     |  9 +++++
 .../timidity-eawpatches-12-r5.ebuild               | 39 ++++++++--------------
 2 files changed, 23 insertions(+), 25 deletions(-)

diff --git a/media-sound/timidity-eawpatches/files/timidity-eawpatches-12-fix-dir.patch b/media-sound/timidity-eawpatches/files/timidity-eawpatches-12-fix-dir.patch
new file mode 100644
index 00000000000..a41b0eac3d0
--- /dev/null
+++ b/media-sound/timidity-eawpatches/files/timidity-eawpatches-12-fix-dir.patch
@@ -0,0 +1,9 @@
+--- a/linuxconfig/timidity.cfg
++++ b/linuxconfig/timidity.cfg
+@@ -1,5 +1,5 @@
+ #on my debian: /usr/local/share/timidity/timidity.cfg
+-dir /home/user/eawpats/
++dir /usr/share/timidity/eawpatches
+ source gravis.cfg
+ source gsdrums.cfg
+ source gssfx.cfg

diff --git a/media-sound/timidity-eawpatches/timidity-eawpatches-12-r5.ebuild b/media-sound/timidity-eawpatches/timidity-eawpatches-12-r5.ebuild
index 942dcdb38ee..3c9b2827791 100644
--- a/media-sound/timidity-eawpatches/timidity-eawpatches-12-r5.ebuild
+++ b/media-sound/timidity-eawpatches/timidity-eawpatches-12-r5.ebuild
@@ -1,9 +1,7 @@
-# Copyright 1999-2018 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=0
-
-S=${WORKDIR}/eawpats
+EAPI=7
 
 DESCRIPTION="Eric Welsh's GUS patches for TiMidity"
 HOMEPAGE="http://www.stardate.bc.ca/eawpatches/html/default.htm"
@@ -12,41 +10,32 @@ SRC_URI="http://5hdumat.samizdat.net/music/eawpats${PV}_full.tar.gz"
 LICENSE="free-noncomm"
 SLOT="0"
 KEYWORDS="amd64 arm ~arm64 hppa ppc ppc64 sparc x86"
-IUSE=""
+RESTRICT="binchecks strip"
 
 # These can be used for libmodplug too, so don't depend on timidity++
 DEPEND="app-eselect/eselect-timidity"
 RDEPEND=""
 
-RESTRICT="binchecks strip"
+S="${WORKDIR}/eawpats"
 
-src_unpack() {
-	unpack ${A}
-	sed -i -e "s:dir /home/user/eawpats/:dir /usr/share/timidity/eawpatches:" "${S}/linuxconfig/timidity.cfg"
-}
+PATCHES=( "${FILESDIR}"/${P}-fix-dir.patch )
 
 src_install() {
-	local instdir=/usr/share/timidity
+	# Install documentation, including subdirs
+	local f
+	while IFS="" read -d $'\0' -r f; do
+		dodoc "${f}"
+		rm "${f}" || die
+	done < <(find . -type f -name '*.txt' -print0)
 
 	# Set our installation directory
-	insinto ${instdir}/eawpatches
+	insinto /usr/share/timidity/eawpatches
 
 	# Install base timidity configuration for timidity-update
 	doins linuxconfig/timidity.cfg
-	rm -rf linuxconfig/ winconfig/
-
-	# Install base eawpatches
-	doins *.cfg *.pat
-	rm *.cfg *.pat
+	rm -rf linuxconfig/ winconfig/ patref24.hlp ultrasnd.ini || die
 
-	# Install patches from subdirectories
-	for d in `find . -type f -name \*.pat | sed 's,/[^/]*$,,' | sort -u`; do
-		insinto ${instdir}/eawpatches/${d}
-		doins ${d}/*.pat
-	done
-
-	# Install documentation, including subdirs
-	dodoc $(find . -name \*.txt)
+	doins -r .
 }
 
 pkg_postinst() {


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

only message in thread, other threads:[~2019-10-17 22:38 UTC | newest]

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

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