media-video/libav: update live ebuild
authorThomas Deutschmann <whissi@gentoo.org>
Tue, 16 Oct 2018 10:08:44 +0000 (12:08 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Tue, 16 Oct 2018 10:09:10 +0000 (12:09 +0200)
Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
media-video/libav/libav-12.3.ebuild
media-video/libav/libav-9999.ebuild

index dc5cf52493f036ddd9916df9eddda3fcc410efcb..b519bf55f1a4688683d0c16f6c558279c2a35051 100644 (file)
@@ -6,7 +6,7 @@ EAPI="6"
 inherit flag-o-matic multilib multilib-minimal toolchain-funcs
 
 if [[ ${PV} == *9999 ]] ; then
-       : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"}
+       : ${EGIT_REPO_URI:="https://git.libav.org/libav.git"}
        if [[ ${PV%9999} != "" ]] ; then
                : ${EGIT_BRANCH:="release/${PV%.9999}"}
        fi
@@ -345,5 +345,5 @@ multilib_src_install_all() {
 multilib_src_test() {
        local _libs="$(for i in lib*/;do echo -n "${BUILD_DIR}/${i%/}:";done)"
        einfo "LD_LIBRARY_PATH is set to \"${_libs}\""
-       LD_LIBRARY_PATH="${_libs}" make -j1 fate V=1
+       LD_LIBRARY_PATH="${_libs}" emake -j1 fate V=1
 }
index ca54c7a80c29ce538c35be3b62b1907d90edbc3e..dc8296df27e533433bc5ab5a24429f2203f22301 100644 (file)
@@ -1,12 +1,12 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=5
+EAPI="6"
 
-inherit eutils flag-o-matic multilib multilib-minimal toolchain-funcs
+inherit flag-o-matic multilib multilib-minimal toolchain-funcs
 
 if [[ ${PV} == *9999 ]] ; then
-       : ${EGIT_REPO_URI:="git://git.libav.org/libav.git"}
+       : ${EGIT_REPO_URI:="https://git.libav.org/libav.git"}
        if [[ ${PV%9999} != "" ]] ; then
                : ${EGIT_BRANCH:="release/${PV%.9999}"}
        fi
@@ -19,17 +19,15 @@ if [[ ${PV} == *9999 ]] ; then
        SRC_URI=""
 elif [[ ${PV%_p*} != ${PV} ]] ; then # Gentoo snapshot
        SRC_URI="https://dev.gentoo.org/~lu_zero/libav/${P}.tar.xz"
+       SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV}.tar.xz )"
 else # Official release
        SRC_URI="https://libav.org/releases/${P}.tar.xz"
+       SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )"
 fi
-# 9999 does not have fate-*.tar.xz
-[[ ${PV%9999} != "" ]] && SRC_URI+=" test? ( https://dev.gentoo.org/~lu_zero/libav/fate-${PV%%.*}.tar.xz )"
 
 LICENSE="LGPL-2.1  gpl? ( GPL-3 )"
 SLOT="0/13"
-[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64
-~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos
-~x64-solaris ~x86-solaris"
+[[ ${PV} == *9999 ]] || KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris"
 IUSE="aac alsa amr bs2b +bzip2 cdio cpudetection custom-cflags debug doc +encode faac fdk
        frei0r fontconfig +gpl gsm +hardcoded-tables ieee1394 jack jpeg2k libressl mp3
        +network openssl opus oss pic pulseaudio rtmp schroedinger sdl speex ssl
@@ -143,7 +141,7 @@ src_unpack() {
 }
 
 src_prepare() {
-       epatch_user
+       eapply_user
 
        # if we have snapshot then we need to hardcode the version
        if [[ ${PV%_p*} != ${PV} ]]; then
@@ -154,6 +152,9 @@ src_prepare() {
        use zlib && TOOLS+=( cws2fws )
 
        MAKEOPTS+=" V=1"
+
+       # needed at leasts for tests in live ebuild
+       multilib_copy_sources
 }
 
 multilib_src_configure() {