public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "David Seifert" <soap@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/vo-aacenc/
Date: Sun, 16 Jun 2019 16:10:28 +0000 (UTC)	[thread overview]
Message-ID: <1560701409.35fcbcb19b7059dc673113d52f6430da3c5349bc.soap@gentoo> (raw)

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	other threads:[~2019-06-16 16:10 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-16 16:10 David Seifert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-08-30 19:06 [gentoo-commits] repo/gentoo:master commit in: media-libs/vo-aacenc/ Sam James
2019-06-16 16:10 David Seifert
2019-05-15 13:54 Aaron Bauman
2017-07-30  9:38 Michał Górny
2017-06-19 22:05 Alexis Ballier
2017-06-19 16:33 Alexis Ballier
2017-02-11 11:03 Alexis Ballier
2017-02-11 11:03 Alexis Ballier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1560701409.35fcbcb19b7059dc673113d52f6430da3c5349bc.soap@gentoo \
    --to=soap@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox