aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2022-11-30 21:26:53 +0000
committerJan Beich <jbeich@FreeBSD.org>2022-11-30 22:17:54 +0000
commit7a5136e7f669c65856dc4a29fcccf0b5898f68f7 (patch)
tree02ea4049443a3971b7479046ab88f37caaed598d
parentad3515f97924a4967f995af5f9eb5308f977a44f (diff)
downloadports-7a5136e7f669c65856dc4a29fcccf0b5898f68f7.tar.gz
ports-7a5136e7f669c65856dc4a29fcccf0b5898f68f7.zip
multimedia/rav1e: fix full version after cc86ba67f420
-rw-r--r--multimedia/rav1e/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/multimedia/rav1e/Makefile b/multimedia/rav1e/Makefile
index f772749c3460..10ae60d013d3 100644
--- a/multimedia/rav1e/Makefile
+++ b/multimedia/rav1e/Makefile
@@ -21,8 +21,9 @@ PLIST_FILES?= bin/${PORTNAME}
post-patch:
# Extract (snapshot) version from the port instead of CARGO_PKG_VERSION
- @${REINPLACE_CMD} 's/env!("VERGEN_SEMVER_LIGHTWEIGHT")/"${DISTVERSIONFULL}"/' \
- ${WRKSRC}/src/capi.rs ${WRKSRC}/src/lib.rs
+ @${REINPLACE_CMD} -e 's/\<.*GIT_VERSION\.unwrap.*/"${DISTVERSIONFULL}"/' \
+ -e $$'/GIT_VERSION/,/UNKNOWN/c\\\n\t"${DISTVERSIONFULL}",\n' \
+ ${WRKSRC}/src/bin/common.rs ${WRKSRC}/src/lib.rs
.if !target(post-install)
post-install: