media-video/aegisub: read bestsource revision from wrapfile
This commit is contained in:
parent
a74b5a5b44
commit
abc91bfbc0
|
@ -82,7 +82,8 @@ src_unpack() {
|
|||
default_src_unpack
|
||||
git-r3_src_unpack
|
||||
if use bestsource; then
|
||||
git-r3_fetch "https://github.com/vapoursynth/bestsource.git" "ba1249c1f5443be6d0ec2be32490af5bbc96bf99"
|
||||
bestsource_rev=$(python -c 'import re; from pathlib import Path; f = Path("subprojects/bestsource.wrap"); re_match = re.search(r"revision *= *(.*)", f.read_text()); print(re_match.group(1))')
|
||||
git-r3_fetch "https://github.com/vapoursynth/bestsource.git" "${bestsource_rev}"
|
||||
git-r3_checkout "https://github.com/vapoursynth/bestsource.git" "${S}/subprojects/bestsource"
|
||||
fi
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue