[Bug 283863] [NEW PORT] textproc/libinfinity: Collaborative editing library

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 05 Jan 2025 20:03:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283863

Yusuf Yaman <nxjoseph@protonmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #256448|0                           |1
        is obsolete|                            |

--- Comment #7 from Yusuf Yaman <nxjoseph@protonmail.com> ---
Created attachment 256450
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=256450&action=edit
textproc/libinfinity.patch

I renamed cli binary's and manpage's names to eliminate version number appended
to manpage and binaries. Before this patch, you had to use "man infinoted-0.7"
and to run cli binary "infinoted-0.7", now with this patch, the version numbers
are removed and it now works with "man infinoted" and "infinoted".

Here is the diff (the attached patch includes whole patch)

diff --git a/textproc/libinfinity/Makefile b/textproc/libinfinity/Makefile
index 3369343138d1..58661605a1d0 100644
--- a/textproc/libinfinity/Makefile
+++ b/textproc/libinfinity/Makefile
@@ -26,4 +26,12 @@ GNU_CONFIGURE=       yes

 INSTALL_TARGET=        install-strip

+post-install:
+       @cd ${STAGEDIR}${PREFIX}/bin && \
+               ${MV} infinoted-0.7 \
+               infinoted
+       @cd ${STAGEDIR}${PREFIX}/share/man/man1 && \
+               ${MV} infinoted-0.7.1 \
+               infinoted.1
+
 .include <bsd.port.mk>
diff --git a/textproc/libinfinity/pkg-plist b/textproc/libinfinity/pkg-plist
index 2079bd961eb8..4ccc0662b2cf 100644
--- a/textproc/libinfinity/pkg-plist
+++ b/textproc/libinfinity/pkg-plist
@@ -1,4 +1,4 @@
-bin/infinoted-0.7
+bin/infinoted
 include/libinfgtk-0.7/libinfgtk/inf-gtk-account-creation-dialog.h
 include/libinfgtk-0.7/libinfgtk/inf-gtk-acl-sheet-view.h
 include/libinfgtk-0.7/libinfgtk/inf-gtk-browser-model-filter.h
@@ -368,4 +368,4 @@ share/gtk-doc/html/libinftextgtk-0.7/up.png
 share/icons/hicolor/16x16/apps/infinote.png
 share/icons/hicolor/22x22/apps/infinote.png
 share/icons/hicolor/scalable/apps/infinote.svg
-share/man/man1/infinoted-0.7.1.gz
+share/man/man1/infinoted.1.gz

-- 
You are receiving this mail because:
You are the assignee for the bug.