commit:     2f273e6e6ff443423db651dad539480da60648d2
Author:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 24 15:43:31 2020 +0000
Commit:     Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Tue Aug 25 12:37:25 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f273e6e

media-libs/x265: migrate to git

Closes: https://bugs.gentoo.org/737900
Package-Manager: Portage-3.0.3, Repoman-3.0.0
Signed-off-by: Alexis Ballier <aballier <AT> gentoo.org>

 media-libs/x265/x265-9999.ebuild | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)

diff --git a/media-libs/x265/x265-9999.ebuild b/media-libs/x265/x265-9999.ebuild
index 65ee36367ee..3bd31a5364c 100644
--- a/media-libs/x265/x265-9999.ebuild
+++ b/media-libs/x265/x265-9999.ebuild
@@ -6,8 +6,9 @@ EAPI=7
 inherit cmake multilib-minimal multilib multibuild flag-o-matic
 
 if [[ ${PV} = 9999* ]]; then
-       inherit mercurial
-       EHG_REPO_URI="https://bitbucket.org/multicoreware/x265";
+       inherit git-r3
+       EGIT_REPO_URI="https://bitbucket.org/multicoreware/x265_git/";
+       S=${WORKDIR}/${P}/source
 else
        
SRC_URI="https://bitbucket.org/multicoreware/x265/downloads/${PN}_${PV}.tar.gz";
        KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86"
@@ -18,7 +19,7 @@ HOMEPAGE="http://x265.org/ 
https://bitbucket.org/multicoreware/x265/wiki/Home";
 
 LICENSE="GPL-2"
 # subslot = libx265 soname
-SLOT="0/192"
+SLOT="0/195"
 IUSE="+10bit +12bit cpu_flags_arm_neon cpu_flags_ppc_vsx2 numa pic test"
 RESTRICT="!test? ( test )"
 
@@ -39,9 +40,7 @@ PATCHES=(
 
 src_unpack() {
        if [[ ${PV} = 9999* ]]; then
-               mercurial_src_unpack
-               # Can't set it at global scope due to mercurial.eclass 
limitations...
-               export S=${WORKDIR}/${P}/source
+               git-r3_src_unpack
        else
                unpack ${A}
                export S="$(echo "${WORKDIR}/${PN}_"*"/source")"

Reply via email to