summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2020-11-14 16:04:51 +0100
committerDavid Seifert <soap@gentoo.org>2020-11-14 16:04:51 +0100
commit4926acf2ce736a3102587383553faf82560b16fe (patch)
tree728d171de1bd1e4d6bbc0edb84e46cfeb0cd48d6 /media-sound
parentmedia-sound/redoflacs: Port to EAPI 7 (diff)
downloadgentoo-4926acf2ce736a3102587383553faf82560b16fe.tar.gz
gentoo-4926acf2ce736a3102587383553faf82560b16fe.tar.bz2
gentoo-4926acf2ce736a3102587383553faf82560b16fe.zip
media-sound/ripperx: 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/ripperx/files/ripperx-2.7.3-ceilf-underlink.patch11
-rw-r--r--media-sound/ripperx/files/ripperx-2.7.3-ldflags.patch6
-rw-r--r--media-sound/ripperx/files/ripperx-2.7.3-pkgconfig.patch4
-rw-r--r--media-sound/ripperx/ripperx-2.7.3.ebuild41
4 files changed, 35 insertions, 27 deletions
diff --git a/media-sound/ripperx/files/ripperx-2.7.3-ceilf-underlink.patch b/media-sound/ripperx/files/ripperx-2.7.3-ceilf-underlink.patch
new file mode 100644
index 000000000000..56e40f132658
--- /dev/null
+++ b/media-sound/ripperx/files/ripperx-2.7.3-ceilf-underlink.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.in
++++ b/src/Makefile.in
+@@ -264,7 +264,7 @@
+ $(GTK_CFLAGS) \
+ -I$(includedir)
+
+-ripperX_LDADD = \
++ripperX_LDADD = -lm \
+ $(INTLLIBS) \
+ $(GTK_LIBS)
+
diff --git a/media-sound/ripperx/files/ripperx-2.7.3-ldflags.patch b/media-sound/ripperx/files/ripperx-2.7.3-ldflags.patch
index 11e18972e638..e7e8a066b3b7 100644
--- a/media-sound/ripperx/files/ripperx-2.7.3-ldflags.patch
+++ b/media-sound/ripperx/files/ripperx-2.7.3-ldflags.patch
@@ -1,11 +1,11 @@
---- plugins/Makefile.in
-+++ plugins/Makefile.in
+--- a/plugins/Makefile.in
++++ b/plugins/Makefile.in
@@ -658,7 +658,7 @@ uninstall-am: uninstall-binPROGRAMS
all: ripperX_plugin_tester $(PLUGINS)
.c.o:
- $(CC) $(CFLAGS) $(LDFLAGS) -c $< -o $@
-+ $(CC) $(CFLAGS) -c $< -o $@
++ $(CC) $(CFLAGS) $(CPPFLAGS) -c $< -o $@
# Tell versions [3.59,3.63) of GNU make to not export all variables.
# Otherwise a system limit (for SysV at least) may be exceeded.
diff --git a/media-sound/ripperx/files/ripperx-2.7.3-pkgconfig.patch b/media-sound/ripperx/files/ripperx-2.7.3-pkgconfig.patch
index 48c24f4054a9..d6a311a60b05 100644
--- a/media-sound/ripperx/files/ripperx-2.7.3-pkgconfig.patch
+++ b/media-sound/ripperx/files/ripperx-2.7.3-pkgconfig.patch
@@ -1,5 +1,5 @@
---- ripperX.pc.in
-+++ ripperX.pc.in
+--- a/ripperX.pc.in
++++ b/ripperX.pc.in
@@ -1,6 +1,7 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
diff --git a/media-sound/ripperx/ripperx-2.7.3.ebuild b/media-sound/ripperx/ripperx-2.7.3.ebuild
index 96bb4e62f35e..2656cb3b070a 100644
--- a/media-sound/ripperx/ripperx-2.7.3.ebuild
+++ b/media-sound/ripperx/ripperx-2.7.3.ebuild
@@ -1,47 +1,44 @@
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
-inherit eutils
+EAPI=7
-MY_P=${P/x/X}
-MY_PN=${PN/x/X}
+inherit desktop
-DESCRIPTION="a GTK program to rip CD audio tracks and encode them to the Ogg, MP3, or FLAC formats"
+DESCRIPTION="GTK program to rip CD audio tracks to Ogg, MP3 or FLAC"
HOMEPAGE="https://sourceforge.net/projects/ripperx"
-SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+SRC_URI="mirror://sourceforge/${PN}/${P/x/X}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc x86"
IUSE="nls"
-RDEPEND="media-libs/id3lib
+RDEPEND="
+ media-libs/id3lib
media-sound/cdparanoia
media-sound/lame
x11-libs/gtk+:2"
-DEPEND="${RDEPEND}
+DEPEND="${RDEPEND}"
+BDEPEND="
virtual/pkgconfig
nls? ( sys-devel/gettext )"
-S=${WORKDIR}/${MY_P}
+S="${WORKDIR}/${P/x/X}"
-src_prepare() {
- # AC_CHECK_LIB(m, ceilf, [], [MATH_LIB="-lm" MATH_LIB=""]) #401867
- sed -i -e '/ripperX_LDADD/s:=:= -lm:' src/Makefile.in || die
-
- epatch \
- "${FILESDIR}"/${P}-ldflags.patch \
- "${FILESDIR}"/${P}-pkgconfig.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-ceilf-underlink.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-pkgconfig.patch
+)
src_configure() {
econf $(use_enable nls)
}
src_install() {
- emake DESTDIR="${D}" install
- dodoc BUGS CHANGES FAQ README* TODO
- doicon src/xpms/${MY_PN}-icon.xpm
- make_desktop_entry ${MY_PN} ${MY_PN} ${MY_PN}-icon
+ default
+
+ doicon src/xpms/ripperX-icon.xpm
+ make_desktop_entry ripperX ripperX ripperX-icon
}