git: 221363b58994 - main - devel/xxhash: Fix manpage symbolic links

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Wed, 29 Jun 2022 16:38:19 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=221363b5899413267519d051d83ea0c25204ab4f

commit 221363b5899413267519d051d83ea0c25204ab4f
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-06-29 16:31:42 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-29 16:33:13 +0000

    devel/xxhash: Fix manpage symbolic links
    
    - Bump PORTREVISION for package change
    
    Before:
    lrwx------   1 sunpoet  wheel    15 Jun 22 21:30 xxh128sum.1.gz@ -> cli/xxhsum.1.gz
    lrwx------   1 sunpoet  wheel    15 Jun 22 21:30 xxh32sum.1.gz@ -> cli/xxhsum.1.gz
    lrwx------   1 sunpoet  wheel    15 Jun 22 21:30 xxh64sum.1.gz@ -> cli/xxhsum.1.gz
    -rw-r--r--   1 sunpoet  wheel  1887 Jun 22 21:30 xxhsum.1.gz
    
    After:
    lrwx------   1 sunpoet  wheel    11 Jun 22 21:31 xxh64sum.1.gz -> xxhsum.1.gz
    lrwx------   1 sunpoet  wheel    11 Jun 22 21:31 xxh32sum.1.gz -> xxhsum.1.gz
    lrwx------   1 sunpoet  wheel    11 Jun 22 21:31 xxh128sum.1.gz -> xxhsum.1.gz
    -rw-r--r--   1 sunpoet  wheel  1887 Jun 22 21:31 xxhsum.1.gz
    
    PR:             264821
    Reported by:    Ivan Rozhuk <rozhuk.im@gmail.com>
---
 devel/xxhash/Makefile             |  1 +
 devel/xxhash/files/patch-Makefile | 15 +++++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/devel/xxhash/Makefile b/devel/xxhash/Makefile
index 68f528c6d1dd..aa971e1fd084 100644
--- a/devel/xxhash/Makefile
+++ b/devel/xxhash/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	xxhash
 PORTVERSION=	0.8.1
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	devel
 
diff --git a/devel/xxhash/files/patch-Makefile b/devel/xxhash/files/patch-Makefile
new file mode 100644
index 000000000000..30d6a32269f7
--- /dev/null
+++ b/devel/xxhash/files/patch-Makefile
@@ -0,0 +1,15 @@
+--- Makefile.orig	2021-11-29 18:34:10 UTC
++++ Makefile
+@@ -518,9 +518,9 @@ endif
+ 	$(Q)ln -sf xxhsum $(DESTDIR)$(BINDIR)/xxh128sum
+ 	@echo Installing man pages
+ 	$(Q)$(INSTALL_DATA) $(MAN) $(DESTDIR)$(MANDIR)/xxhsum.1
+-	$(Q)ln -sf $(MAN) $(DESTDIR)$(MANDIR)/xxh32sum.1
+-	$(Q)ln -sf $(MAN) $(DESTDIR)$(MANDIR)/xxh64sum.1
+-	$(Q)ln -sf $(MAN) $(DESTDIR)$(MANDIR)/xxh128sum.1
++	$(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh32sum.1
++	$(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh64sum.1
++	$(Q)ln -sf xxhsum.1 $(DESTDIR)$(MANDIR)/xxh128sum.1
+ 	@echo xxhash installation completed
+ 
+ .PHONY: uninstall