media-libs/aften: Declare mycmakeargs to be an array
authorDavid Seifert <soap@gentoo.org>
Wed, 27 Jan 2016 20:12:01 +0000 (21:12 +0100)
committerDavid Seifert <soap@gentoo.org>
Wed, 27 Jan 2016 20:12:23 +0000 (21:12 +0100)
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 [new file with mode: 0644]
media-libs/aften/files/aften-0.0.8-ppc.patch

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 (file)
index 0000000..b07f04f
--- /dev/null
@@ -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
+}
index a841acf8f56836ff7d39f32b7b8f1dc7018f7110..f21d816b55ca9d3b3fe39d9731de935d6ecb8df9 100644 (file)
@@ -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))