aboutsummaryrefslogtreecommitdiff
path: root/graphics/swappy
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2020-06-25 04:31:10 +0000
committerJan Beich <jbeich@FreeBSD.org>2020-06-25 04:31:10 +0000
commitee70e6a23c22e0be2f7cacc5a6ca6bffda1bf1eb (patch)
tree35a520264e555b72b3e9c0e1b79d8934178f393f /graphics/swappy
parent2beea6a9fecdfe98252f323fa3ae06129d8b7cd5 (diff)
downloadports-ee70e6a23c22e0be2f7cacc5a6ca6bffda1bf1eb.tar.gz
ports-ee70e6a23c22e0be2f7cacc5a6ca6bffda1bf1eb.zip
graphics/swappy: embed exact version if snapshot
Notes
Notes: svn path=/head/; revision=540368
Diffstat (limited to 'graphics/swappy')
-rw-r--r--graphics/swappy/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/graphics/swappy/Makefile b/graphics/swappy/Makefile
index c0cc3068e15c..cb2cc18b3f56 100644
--- a/graphics/swappy/Makefile
+++ b/graphics/swappy/Makefile
@@ -38,4 +38,10 @@ MANPAGES_PLIST_FILES= man/man1/${PORTNAME}.1.gz
NOTIFY_LIB_DEPENDS= libnotify.so:devel/libnotify
NOTIFY_MESON_ENABLED= libnotify
+post-patch:
+# Extract (snapshot) version from the port instead of meson.build
+ @${REINPLACE_CMD} -i .nogit -e 's/git.found()/false/' \
+ -e '/project_version/s/@0@/${DISTVERSIONFULL}/' \
+ ${WRKSRC}/meson.build
+
.include <bsd.port.mk>