commit:     35fcbcb19b7059dc673113d52f6430da3c5349bc
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Jun 16 16:10:09 2019 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Jun 16 16:10:09 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=35fcbcb1

media-libs/vo-aacenc: Port to EAPI 7

Package-Manager: Portage-2.3.67, Repoman-2.3.14
Signed-off-by: David Seifert <soap <AT> gentoo.org>

 media-libs/vo-aacenc/vo-aacenc-0.1.3.ebuild | 55 +++++++++++++++--------------
 1 file changed, 29 insertions(+), 26 deletions(-)

diff --git a/media-libs/vo-aacenc/vo-aacenc-0.1.3.ebuild 
b/media-libs/vo-aacenc/vo-aacenc-0.1.3.ebuild
index 20ed3fb06f7..7511d4823b8 100644
--- a/media-libs/vo-aacenc/vo-aacenc-0.1.3.ebuild
+++ b/media-libs/vo-aacenc/vo-aacenc-0.1.3.ebuild
@@ -1,42 +1,45 @@
 # Copyright 1999-2019 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI=7
 
-if [[ ${PV} == *9999 ]] ; then
-       SCM="git-2"
+inherit flag-o-matic multilib-minimal
+
+if [[ ${PV} == *9999 ]]; then
+       inherit autotools git-r3
        EGIT_REPO_URI="https://github.com/mstorsjo/${PN}.git";
-       [[ ${PV%9999} != "" ]] && EGIT_BRANCH="release/${PV%.9999}"
-       AUTOTOOLS_AUTORECONF=yes
+else
+       SRC_URI="mirror://sourceforge/opencore-amr/${P}.tar.gz"
+       KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 
~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
 fi
 
-inherit autotools-multilib flag-o-matic ${SCM}
-
 DESCRIPTION="VisualOn AAC encoder library"
 HOMEPAGE="https://sourceforge.net/projects/opencore-amr/";
 
-if [[ ${PV} == *9999 ]] ; then
-       SRC_URI=""
-elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
-       SRC_URI="mirror://gentoo/${P}.tar.xz"
-else # Official release
-       SRC_URI="mirror://sourceforge/opencore-amr/${P}.tar.gz"
-fi
-
 LICENSE="Apache-2.0"
 SLOT="0"
+IUSE="cpu_flags_arm_neon examples static-libs"
+
+src_prepare() {
+       default
+       [[ ${PV} == *9999 ]] && eautoreconf
+}
 
-[[ ${PV} == *9999 ]] || \
-KEYWORDS="alpha amd64 arm arm64 hppa ia64 ppc ppc64 sparc x86 ~amd64-fbsd 
~x86-fbsd ~amd64-linux ~x86-linux ~x64-macos"
-IUSE="examples static-libs cpu_flags_arm_neon"
+multilib_src_configure() {
+       if use cpu_flags_arm_neon; then
+               local -x CFLAGS="${CFLAGS}"
+               append-cflags -mfpu=neon
+       fi
+
+       ECONF_SOURCE="${S}" econf \
+               $(use_enable cpu_flags_arm_neon armv7neon) \
+               $(use_enable examples example) \
+               $(use_enable static-libs static)
+}
 
-AUTOTOOLS_PRUNE_LIBTOOL_FILES=all
+multilib_src_install_all() {
+       einstalldocs
 
-src_configure() {
-       use cpu_flags_arm_neon && append-flags '-mfpu=neon'
-       local myeconfargs=(
-               "$(use_enable examples example)"
-               "$(use_enable cpu_flags_arm_neon armv7neon)"
-       )
-       autotools-multilib_src_configure
+       # package provides .pc files
+       find "${D}" -name '*.la' -delete || die
 }

Reply via email to