git: c3064f417adb - main - sysutils/minipro: Move man page to share/man

From: Yasuhiro Kimura <yasu_at_FreeBSD.org>
Date: Fri, 29 Mar 2024 08:22:06 UTC
The branch main has been updated by yasu:

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

commit c3064f417adbc264efffd19b200b96df5cdd3930
Author:     Yasuhiro Kimura <yasu@FreeBSD.org>
AuthorDate: 2024-03-29 08:18:02 +0000
Commit:     Yasuhiro Kimura <yasu@FreeBSD.org>
CommitDate: 2024-03-29 08:18:03 +0000

    sysutils/minipro: Move man page to share/man
    
    Approved by:    portmgr (blanket)
---
 sysutils/minipro/Makefile             |  6 +++---
 sysutils/minipro/files/patch-Makefile | 19 +------------------
 2 files changed, 4 insertions(+), 21 deletions(-)

diff --git a/sysutils/minipro/Makefile b/sysutils/minipro/Makefile
index 714483dfe8e1..0aa350bba30f 100644
--- a/sysutils/minipro/Makefile
+++ b/sysutils/minipro/Makefile
@@ -1,6 +1,6 @@
 PORTNAME=	minipro
 DISTVERSION=	0.5
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	sysutils
 
 MAINTAINER=	bofh@freebsd.org
@@ -21,12 +21,12 @@ GL_TAGNAME=	e8244313c2558b41a390824e1f847f449ebd7fce
 BINARY_ALIAS=	sed=${LOCALBASE}/bin/gsed
 
 PLIST_FILES=	bin/minipro \
-		man/man1/minipro.1.gz \
+		share/man/man1/minipro.1.gz \
 		share/minipro/infoic.xml \
 		share/minipro/logicic.xml
 
 post-install:
-	@${GZIP_CMD} ${STAGEDIR}${PREFIX}/man/man1/minipro.1
+	@${GZIP_CMD} ${STAGEDIR}${PREFIX}/share/man/man1/minipro.1
 	@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 
 .include <bsd.port.mk>
diff --git a/sysutils/minipro/files/patch-Makefile b/sysutils/minipro/files/patch-Makefile
index bc0196a67841..f0e847fb685f 100644
--- a/sysutils/minipro/files/patch-Makefile
+++ b/sysutils/minipro/files/patch-Makefile
@@ -1,6 +1,6 @@
 --- Makefile.orig	2023-12-03 05:11:49 UTC
 +++ Makefile
-@@ -1,18 +1,18 @@
+@@ -1,11 +1,11 @@
  # Install Configuration
  
  # Your C compiler
@@ -14,20 +14,3 @@
  CPPFLAGS = -DSHARE_INSTDIR="\"$(SHARE_INSTDIR)\""
  LDFLAGS =
  
- # Normally minipro is installed to /usr/local.  If you want to put it
- # somewhere else, define that location here.
- PREFIX ?= /usr/local
--MANDIR ?= $(PREFIX)/share/man
-+MANDIR ?= $(PREFIX)/man
- 
- # Some older releases of MacOS need some extra library flags.
- #EXTRA_LIBS += "-framework Foundation -framework IOKit"
-@@ -73,7 +73,7 @@ INCLUDE_INSTDIR=$(DESTDIR)$(PREFIX)/include/libminipro
- LIB_INSTDIR=$(DESTDIR)$(PREFIX)/lib
- SHARE_INSTDIR=$(DESTDIR)$(PREFIX)/share/minipro
- INCLUDE_INSTDIR=$(DESTDIR)$(PREFIX)/include/libminipro
--MAN_INSTDIR=$(DESTDIR)$(PREFIX)/share/man/man1
-+MAN_INSTDIR=$(DESTDIR)$(PREFIX)/man/man1
- 
- UDEV_DIR=$(shell $(PKG_CONFIG) --define-variable=prefix=$(PREFIX) --silence-errors --variable=udevdir udev)
- UDEV_RULES_INSTDIR=$(DESTDIR)$(UDEV_DIR)/rules.d