commit:     3478887cc8b1243d8cfd8fc4a247403476e5e69a
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Wed Jan 27 20:12:01 2016 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Wed Jan 27 20:12:23 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3478887c

media-libs/aften: Declare mycmakeargs to be an array

Gentoo-Bug: 573152
* EAPI=6
* Amend patch to be -p1 compliant

Package-Manager: portage-2.2.27

 media-libs/aften/aften-0.0.8-r1.ebuild       | 36 ++++++++++++++++++++++++++++
 media-libs/aften/files/aften-0.0.8-ppc.patch | 16 ++++++-------
 2 files changed, 44 insertions(+), 8 deletions(-)

diff --git a/media-libs/aften/aften-0.0.8-r1.ebuild 
b/media-libs/aften/aften-0.0.8-r1.ebuild
new file mode 100644
index 0000000..b07f04f
--- /dev/null
+++ b/media-libs/aften/aften-0.0.8-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="An A/52 (AC-3) audio encoder"
+HOMEPAGE="http://aften.sourceforge.net/";
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="LGPL-2.1 BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="cxx"
+
+PATCHES=(
+       "${FILESDIR}/${P}-multilib.patch"
+       "${FILESDIR}/${P}-ppc.patch"
+)
+
+src_configure() {
+       local mycmakeargs=(
+               -DSHARED=1
+               -DBINDINGS_CXX=$(usex cxx)
+       )
+       cmake-utils_src_configure
+}
+
+src_install() {
+       cmake-utils_src_install
+       dodoc README Changelog
+       # File collision with media-sound/wavbreaker, upstream informed
+       mv "${D}"/usr/bin/wavinfo{,-aften} || die
+}

diff --git a/media-libs/aften/files/aften-0.0.8-ppc.patch 
b/media-libs/aften/files/aften-0.0.8-ppc.patch
index a841acf..f21d816 100644
--- a/media-libs/aften/files/aften-0.0.8-ppc.patch
+++ b/media-libs/aften/files/aften-0.0.8-ppc.patch
@@ -1,7 +1,7 @@
 Index: libaften/ppc/ppc_cpu_caps.h
 ===================================================================
---- libaften/ppc/ppc_cpu_caps.h
-+++ libaften/ppc/ppc_cpu_caps.h
+--- aften-0.0.8/libaften/ppc/ppc_cpu_caps.h
++++ aften-0.0.8/libaften/ppc/ppc_cpu_caps.h
 @@ -20,6 +20,7 @@
  #ifndef PPC_CPU_CAPS_H
  #define PPC_CPU_CAPS_H
@@ -12,8 +12,8 @@ Index: libaften/ppc/ppc_cpu_caps.h
  
 Index: libaften/ppc/mdct_altivec.c
 ===================================================================
---- libaften/ppc/mdct_altivec.c        (revision 659)
-+++ libaften/ppc/mdct_altivec.c        (revision 660)
+--- aften-0.0.8/libaften/ppc/mdct_altivec.c    (revision 659)
++++ aften-0.0.8/libaften/ppc/mdct_altivec.c    (revision 660)
 @@ -47,11 +47,11 @@
  #include "mem.h"
  
@@ -58,8 +58,8 @@ Index: libaften/ppc/mdct_altivec.c
  
 Index: libaften/ppc/altivec_common.h
 ===================================================================
---- libaften/ppc/altivec_common.h      (revision 659)
-+++ libaften/ppc/altivec_common.h      (revision 660)
+--- aften-0.0.8/libaften/ppc/altivec_common.h  (revision 659)
++++ aften-0.0.8/libaften/ppc/altivec_common.h  (revision 660)
 @@ -28,11 +28,23 @@
  typedef vector unsigned int   vec_u32_t;
  typedef vector signed int     vec_s32_t;
@@ -84,8 +84,8 @@ Index: libaften/ppc/altivec_common.h
  
  static inline vector float vec_ld_float(const float *a)
  {
---- ppc_cpu_caps.bak   2007-12-23 17:13:33.000000000 +0000
-+++ libaften/ppc/ppc_cpu_caps.c        2007-12-23 17:13:43.000000000 +0000
+--- aften-0.0.8/ppc_cpu_caps.bak       2007-12-23 17:13:33.000000000 +0000
++++ aften-0.0.8/libaften/ppc/ppc_cpu_caps.c    2007-12-23 17:13:43.000000000 
+0000
 @@ -81,7 +81,7 @@
          //Attempt to use AltiVec
          if(!sigsetjmp(g_env, 0))

Reply via email to