commit:     176fa54352795eb7aada243865dd7665ff1835c1
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sat Oct 16 13:58:43 2021 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sat Oct 16 13:58:43 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=176fa543

media-libs/tremor: port to EAPI 8

Closes: https://bugs.gentoo.org/629756
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 .../files/tremor-0_pre20130223-autoconf.patch      | 26 ++++++++++++++++++
 media-libs/tremor/tremor-0_pre20130223-r2.ebuild   | 32 ++++++++--------------
 2 files changed, 37 insertions(+), 21 deletions(-)

diff --git a/media-libs/tremor/files/tremor-0_pre20130223-autoconf.patch 
b/media-libs/tremor/files/tremor-0_pre20130223-autoconf.patch
new file mode 100644
index 00000000000..97dda9ffac9
--- /dev/null
+++ b/media-libs/tremor/files/tremor-0_pre20130223-autoconf.patch
@@ -0,0 +1,26 @@
+--- a/configure.in
++++ b/configure.in
+@@ -9,7 +9,7 @@
+ AC_CANONICAL_HOST
+ AC_CANONICAL_TARGET
+ 
+-AM_CONFIG_HEADER([config.h])
++AC_CONFIG_HEADERS([config.h])
+ 
+ AM_INIT_AUTOMAKE(libvorbisidec,1.2.1)
+ 
+@@ -62,12 +62,12 @@
+         case $host in 
+         arm-*-*)
+                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char 
-D_ARM_ASSEM_"
+-                CFLAGS="-O2 -D_ARM_ASSEM_ -fsigned-char"
++                CFLAGS=" -D_ARM_ASSEM_ -fsigned-char"
+                 PROFILE="-W -pg -g -O2 -D_ARM_ASSEM_ -fsigned-char 
-fno-inline-functions";;
+ 
+         *)
+                 DEBUG="-g -Wall -D__NO_MATH_INLINES -fsigned-char"
+-                CFLAGS="-O2 -Wall -fsigned-char"
++                CFLAGS=" -Wall -fsigned-char"
+                 PROFILE="-Wall -pg -g -O2 -fsigned-char 
-fno-inline-functions";;
+         esac
+ fi

diff --git a/media-libs/tremor/tremor-0_pre20130223-r2.ebuild 
b/media-libs/tremor/tremor-0_pre20130223-r2.ebuild
index dd8a83316d2..1fa4c476ded 100644
--- a/media-libs/tremor/tremor-0_pre20130223-r2.ebuild
+++ b/media-libs/tremor/tremor-0_pre20130223-r2.ebuild
@@ -1,11 +1,9 @@
 # Copyright 1999-2021 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=8
 
-# svn export http://svn.xiph.org/trunk/Tremor tremor-${PV}
-
-inherit autotools eutils multilib-minimal
+inherit autotools multilib-minimal
 
 DESCRIPTION="A fixed-point version of the Ogg Vorbis decoder (also known as 
libvorbisidec)"
 HOMEPAGE="https://wiki.xiph.org/Tremor";
@@ -14,37 +12,29 @@ SRC_URI="https://dev.gentoo.org/~ssuominen/${P}.tar.xz";
 LICENSE="BSD"
 SLOT="0"
 KEYWORDS="amd64 arm arm64 ~hppa ~ia64 ppc ppc64 ~riscv sparc x86"
-IUSE="low-accuracy static-libs"
+IUSE="low-accuracy"
 
 RDEPEND=">=media-libs/libogg-1.3.0:=[${MULTILIB_USEDEP}]"
-DEPEND="${RDEPEND}
-       virtual/pkgconfig"
-
-DOCS=( "CHANGELOG" "README" )
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
 
 PATCHES=(
        "${FILESDIR}"/${P}-out-of-bounds-write.patch
+       "${FILESDIR}"/${P}-autoconf.patch
 )
 
 src_prepare() {
-       epatch "${PATCHES[@]}"
-
-       sed -i \
-               -e '/CFLAGS/s:-O2::' \
-               -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' \
-               configure.in || die
-
+       default
        eautoreconf
 }
 
 multilib_src_configure() {
-       ECONF_SOURCE="${S}" econf \
-               $(use_enable static-libs static) \
-               $(use_enable low-accuracy)
+       ECONF_SOURCE="${S}" econf $(use_enable low-accuracy)
 }
 
 multilib_src_install_all() {
+       HTML_DOCS=( doc/. )
        einstalldocs
-       dohtml -r doc/*
-       find "${D}" -name '*.la' -type f -delete || die
+
+       find "${ED}" -name '*.la' -type f -delete || die
 }

Reply via email to