media-sound/jack-rack: Port to EAPI 7
authorDavid Seifert <soap@gentoo.org>
Thu, 12 Dec 2019 16:02:53 +0000 (17:02 +0100)
committerDavid Seifert <soap@gentoo.org>
Thu, 12 Dec 2019 16:02:53 +0000 (17:02 +0100)
Package-Manager: Portage-2.3.81, Repoman-2.3.20
Signed-off-by: David Seifert <soap@gentoo.org>
media-sound/jack-rack/files/jack-rack-1.4.7-disable_deprecated.patch
media-sound/jack-rack/files/jack-rack-1.4.8_rc1-QA-fix-desktop-file.patch [new file with mode: 0644]
media-sound/jack-rack/files/jack-rack-1.4.8_rc1-underlinking.patch
media-sound/jack-rack/jack-rack-1.4.8_rc1.ebuild

index 1ddd318235efe47d1bd7f64643e92049dec37183..fa5e1b646f77acac282c426f18f12e52a905dbc0 100644 (file)
@@ -1,7 +1,7 @@
 http://bugs.gentoo.org/376899
 
---- src/Makefile.am
-+++ src/Makefile.am
+--- a/src/Makefile.am
++++ b/src/Makefile.am
 @@ -53,13 +53,7 @@
        $(XML_CFLAGS) \
        -DPKGDATADIR=\"$(pkgdatadir)\" \
@@ -15,5 +15,5 @@ http://bugs.gentoo.org/376899
 -
 +      -DDTDDIR=\"$(dtddir)\"
  
jack_rack_LDFLAGS = \
-       $(JACK_LIBS) \
LIBS = \
+       -ldl \
diff --git a/media-sound/jack-rack/files/jack-rack-1.4.8_rc1-QA-fix-desktop-file.patch b/media-sound/jack-rack/files/jack-rack-1.4.8_rc1-QA-fix-desktop-file.patch
new file mode 100644 (file)
index 0000000..f5d845b
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/jack-rack.desktop
++++ b/jack-rack.desktop
+@@ -3,7 +3,7 @@
+ Comment=Stereo LADSPA effects rack
+ Comment[ru]=Стойка эффектов LADSPA
+ Exec=jack-rack
+-Icon=jack-rack-icon.png
++Icon=jack-rack-icon
+ Terminal=false
+ Type=Application
+-Categories=GNOME;Application;AudioVideo;
++Categories=GNOME;GTK;AudioVideo;
index 5c96c01bde574bed290b3a424e81d7a2c957e60a..9948df4effbefac9054bdaf245430e9c78d6e9b2 100644 (file)
@@ -1,10 +1,10 @@
 This should be applied after Debian 02-gcc45_binutils_gold.patch which adds -ldl, but
 we need also -lm wrt http://bugs.gentoo.org/463696 for exp(), log() and logf()
 
---- src/Makefile.am
-+++ src/Makefile.am
-@@ -62,6 +62,7 @@
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -56,6 +56,7 @@
+       -DDTDDIR=\"$(dtddir)\"
  
  LIBS = \
 +      -lm \
index 7dc77e26f4823841683124cfa77966c7c916f7a8..002b6ccc6f6d71c83701286e025cce64e75c253e 100644 (file)
@@ -1,8 +1,9 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
-inherit autotools eutils flag-o-matic toolchain-funcs
+EAPI=7
+
+inherit autotools flag-o-matic toolchain-funcs
 
 MY_P=${PN}_${PV/_/\~}
 DEB_URI="mirror://debian/pool/main/j/${PN}"
@@ -16,40 +17,38 @@ SLOT="0"
 KEYWORDS="amd64 ~ppc x86"
 IUSE="alsa gnome lash +xml"
 
-RDEPEND=">=x11-libs/gtk+-2.12:2
-       >=media-libs/ladspa-sdk-1.12
-       media-sound/jack-audio-connection-kit
-       alsa? ( media-libs/alsa-lib )
-       lash? ( >=media-sound/lash-0.5 )
-       gnome? ( >=gnome-base/libgnomeui-2 )
+RDEPEND="
+       media-libs/ladspa-sdk
+       virtual/jack
        virtual/libintl
-       xml? ( dev-libs/libxml2
-               media-libs/liblrdf )"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig
-       sys-devel/gettext"
+       x11-libs/gtk+:2
+       alsa? ( media-libs/alsa-lib:= )
+       gnome? ( gnome-base/libgnomeui:= )
+       lash? ( media-sound/lash:= )
+       xml? (
+               dev-libs/libxml2:=
+               media-libs/liblrdf:=
+       )"
+DEPEND="${RDEPEND}"
+BDEPEND="
+       sys-devel/gettext
+       virtual/pkgconfig"
 
-DOCS=( AUTHORS BUGS ChangeLog NEWS README THANKS TODO WISHLIST )
+S="${WORKDIR}/${PN}-f9fb65d"
 
-src_unpack() {
-       unpack ${A}
-       mv ${PN}-* "${S}"
-}
+PATCHES=(
+       "${WORKDIR}"/debian/patches/01-desktop_file.patch
+       "${WORKDIR}"/debian/patches/02-gcc45_binutils_gold.patch
+       "${WORKDIR}"/debian/patches/03-remove_midi_when_replacing_plugin.patch
+       "${FILESDIR}"/${PN}-1.4.6-noalsa.patch
+       "${FILESDIR}"/${PN}-1.4.7-disable_deprecated.patch
+       "${FILESDIR}"/${P}-noxml.patch
+       "${FILESDIR}"/${P}-underlinking.patch
+       "${FILESDIR}"/${P}-QA-fix-desktop-file.patch
+)
 
 src_prepare() {
-       EPATCH_FORCE=yes EPATCH_SUFFIX=patch epatch "${WORKDIR}"/debian/patches
-
-       epatch \
-               "${FILESDIR}"/${PN}-1.4.6-noalsa.patch \
-               "${FILESDIR}"/${PN}-1.4.7-disable_deprecated.patch \
-               "${FILESDIR}"/${P}-noxml.patch \
-               "${FILESDIR}"/${P}-underlinking.patch
-
-       sed -i \
-               -e '/Categories/s:Application:GTK:' \
-               -e '/Icon/s:.png::' \
-               ${PN}.desktop || die
-
+       default
        eautopoint
        eautoreconf
 }