media-video/aegisub: read bestsource revision from wrapfile

This commit is contained in:
odrling 2024-04-03 02:15:19 +02:00
parent a74b5a5b44
commit abc91bfbc0
No known key found for this signature in database
GPG key ID: EC907F69A27A90C5

View file

@ -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
}