git: eacbf30357eb - main - x11/mrxvt: Refactor

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Sun, 12 Feb 2023 16:52:26 UTC
The branch main has been updated by bofh:

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

commit eacbf30357eb5cda143ab4da24f5065632f4feaa
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-02-12 16:48:49 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-02-12 16:52:19 +0000

    x11/mrxvt: Refactor
    
    - Add LICENSE GPLv2
    - Change to USES=localbase
    - Add description for JAPANESE OPTION
    - Convert post-install target to @ keywork
    - make patches make-makepatch compatible
    - Take MAINTAINERSHIP
---
 x11/mrxvt/Makefile                  | 31 ++++++++++++++++---------------
 x11/mrxvt/files/patch-src-logging.c |  6 +++---
 x11/mrxvt/files/patch-src-main.c    |  6 +++---
 x11/mrxvt/files/patch-src-strings.c |  6 +++---
 x11/mrxvt/pkg-plist                 |  2 +-
 5 files changed, 26 insertions(+), 25 deletions(-)

diff --git a/x11/mrxvt/Makefile b/x11/mrxvt/Makefile
index 63c575178384..072a6eb85244 100644
--- a/x11/mrxvt/Makefile
+++ b/x11/mrxvt/Makefile
@@ -4,27 +4,23 @@ PORTREVISION=	10
 CATEGORIES=	x11
 MASTER_SITES=	SF/materm/${PORTNAME}%20source/${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	Tabbed version of rxvt
 WWW=		http://materm.sourceforge.net/
 
-LIB_DEPENDS=	libpng.so:graphics/png
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-CONFLICTS=	mrxvt-0.5.*
+LIB_DEPENDS=	libpng.so:graphics/png
 
-GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--disable-lastlog --disable-wtmp
-CPPFLAGS+=	-I${LOCALBASE}/include
-LIBS+=		-L${LOCALBASE}/lib
-USES=		cpe jpeg tar:tgz xorg
+USES=		cpe jpeg localbase tar:tgz xorg
 CPE_VENDOR=	${PORTNAME}_project
 USE_XORG=	x11
 
-OPTIONS_DEFINE=	DOCS JAPANESE XFT
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-lastlog --disable-wtmp
 
-JAPANESE_CONFIGURE_ON=	--enable-xim --enable-cjk --with-encoding=eucj
-XFT_LIB_DEPENDS=	libXft.so:x11-fonts/libXft
-XFT_CONFIGURE_ENABLE=	xft
+CONFLICTS=	mrxvt-0.5.*
 
 PORTDOCS=	TIPS \
 		README.greek \
@@ -35,6 +31,14 @@ PORTDOCS=	TIPS \
 		mrxvt.vbs \
 		mrxvtset.pl
 
+OPTIONS_DEFINE=	DOCS JAPANESE XFT
+
+JAPANESE_DESC=	Japanese Language support
+
+JAPANESE_CONFIGURE_ON=	--enable-xim --enable-cjk --with-encoding=eucj
+XFT_LIB_DEPENDS=	libXft.so:x11-fonts/libXft
+XFT_CONFIGURE_ENABLE=	xft
+
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MXFT} && ${PORT_OPTIONS:MJAPANESE}
@@ -49,7 +53,4 @@ CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=no
 CONFIGURE_ARGS+=ac_cv_lib_iconv_iconv_open=yes
 .endif
 
-post-install:
-	${CHMOD} 4511 ${STAGEDIR}${PREFIX}/bin/mrxvt
-
 .include <bsd.port.post.mk>
diff --git a/x11/mrxvt/files/patch-src-logging.c b/x11/mrxvt/files/patch-src-logging.c
index 281cfc5f6478..b4994372c607 100644
--- a/x11/mrxvt/files/patch-src-logging.c
+++ b/x11/mrxvt/files/patch-src-logging.c
@@ -1,6 +1,6 @@
---- src/logging.c.orig	2010-01-15 17:27:05.000000000 +0100
-+++ src/logging.c	2010-01-15 17:29:39.000000000 +0100
-@@ -114,14 +114,22 @@
+--- src/logging.c.orig	2004-11-11 00:20:28 UTC
++++ src/logging.c
+@@ -114,14 +114,22 @@ rxvt_makeutent(rxvt_t *r, int page, const char *pty, c
      if (!STRNCMP(pty, "/dev/", 5))
  		pty += 5;		/* skip /dev/ prefix */
  
diff --git a/x11/mrxvt/files/patch-src-main.c b/x11/mrxvt/files/patch-src-main.c
index 52ba4111e025..b66e07b8e82e 100644
--- a/x11/mrxvt/files/patch-src-main.c
+++ b/x11/mrxvt/files/patch-src-main.c
@@ -1,6 +1,6 @@
---- src/main.c.orig	Fri Jul 22 19:42:38 2005
-+++ src/main.c	Fri Jul 22 19:43:03 2005
-@@ -1568,7 +1568,7 @@
+--- src/main.c.orig	2005-08-31 05:30:41 UTC
++++ src/main.c
+@@ -1568,7 +1568,7 @@ rxvt_set_utf8_property (rxvt_t* r, Atom prop, Window w
  void
  rxvt_set_utf8_property (rxvt_t* r, Atom prop, Window win, const char* str)
  {
diff --git a/x11/mrxvt/files/patch-src-strings.c b/x11/mrxvt/files/patch-src-strings.c
index 3962ba672e09..ace2f0e6596c 100644
--- a/x11/mrxvt/files/patch-src-strings.c
+++ b/x11/mrxvt/files/patch-src-strings.c
@@ -1,5 +1,5 @@
---- src/strings.c.orig	Fri Jul 22 19:49:43 2005
-+++ src/strings.c	Fri Jul 22 19:50:40 2005
+--- src/strings.c.orig	2005-03-21 00:42:08 UTC
++++ src/strings.c
 @@ -44,6 +44,7 @@
  
  #ifdef HAVE_WCHAR_H
@@ -8,7 +8,7 @@
  char*
  rxvt_wcstombs (const wchar_t* str, int len)
  {
-@@ -70,6 +71,7 @@
+@@ -70,6 +71,7 @@ rxvt_wcstombs (const wchar_t* str, int len)
  
  	return r;
  }
diff --git a/x11/mrxvt/pkg-plist b/x11/mrxvt/pkg-plist
index b8ae961a7b1c..a9739c43eb62 100644
--- a/x11/mrxvt/pkg-plist
+++ b/x11/mrxvt/pkg-plist
@@ -1,4 +1,4 @@
-bin/mrxvt
+@(,,4511) bin/mrxvt
 man/man1/mrxvt.1.gz
 share/pixmaps/mrxvt-csh.png
 share/pixmaps/mrxvt-csh.xpm