summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-11-14 16:04:29 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-14 16:04:29 +0100
commit0f8fa514c47beb36b6e298e43e211c36707a872a (patch)
treee16d94a69cbeea29d66ec425ddc3c36e978f55eb /media-sound
parentmedia-sound/dcadec: Port to EAPI 7 (diff)
downloadgentoo-0f8fa514c47beb36b6e298e43e211c36707a872a.tar.gz
gentoo-0f8fa514c47beb36b6e298e43e211c36707a872a.tar.bz2
gentoo-0f8fa514c47beb36b6e298e43e211c36707a872a.zip
media-sound/spek: Port to EAPI 7
Package-Manager: Portage-3.0.9, Repoman-3.0.2 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'media-sound')
-rw-r--r--media-sound/spek/spek-0.8.3-r1.ebuild44
1 files changed, 21 insertions, 23 deletions
diff --git a/media-sound/spek/spek-0.8.3-r1.ebuild b/media-sound/spek/spek-0.8.3-r1.ebuild
index 4c60f5cbe8a1..9d23701aec3f 100644
--- a/media-sound/spek/spek-0.8.3-r1.ebuild
+++ b/media-sound/spek/spek-0.8.3-r1.ebuild
@@ -1,10 +1,11 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
+
WX_GTK_VER="3.0"
-inherit autotools eutils toolchain-funcs wxwidgets
+inherit autotools wxwidgets
DESCRIPTION="Analyse your audio files by showing their spectrogram"
HOMEPAGE="http://www.spek-project.org/"
@@ -16,30 +17,27 @@ KEYWORDS="~amd64"
RDEPEND="
media-video/ffmpeg:0=
- x11-libs/wxGTK:${WX_GTK_VER}[X]
-"
-DEPEND="${RDEPEND}
+ x11-libs/wxGTK:${WX_GTK_VER}[X]"
+DEPEND="${RDEPEND}"
+BDEPEND="
dev-util/intltool
- virtual/pkgconfig
- >=sys-devel/gcc-4.7
sys-devel/gettext
-"
+ virtual/pkgconfig"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.8.1-disable-updates.patch
+ "${FILESDIR}"/${P}-replace-gnu+11-with-c++11.patch
+ "${FILESDIR}"/${P}-stdlib.patch
+ "${FILESDIR}"/${P}-ffmpeg3.patch
+ "${FILESDIR}"/${P}-ffmpeg3-1.patch
+)
src_prepare() {
- need-wxwidgets unicode
-
- if [ $(gcc-major-version) -lt "4" ] ; then
- die "You need to activate at least gcc:4.7"
- fi
- if [ $(gcc-major-version) -eq "4" -a $(gcc-minor-version) -lt "7" ] ; then
- die "You need to activate at least gcc:4.7"
- fi
-
- epatch \
- "${FILESDIR}"/${PN}-0.8.1-disable-updates.patch \
- "${FILESDIR}"/${P}-replace-gnu+11-with-c++11.patch \
- "${FILESDIR}"/${P}-stdlib.patch \
- "${FILESDIR}"/${P}-ffmpeg3.patch \
- "${FILESDIR}"/${P}-ffmpeg3-1.patch
+ default
eautoreconf
}
+
+src_configure() {
+ setup-wxwidgets unicode
+ default
+}