graphics/swappy: embed exact version if snapshot

This commit is contained in:
Jan Beich 2020-06-25 04:31:10 +00:00
parent 2beea6a9fe
commit ee70e6a23c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=540368

View file

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