svn commit: r560398 - in head/devel/readline: . files

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Tue Jan 5 14:14:49 UTC 2021


Author: sunpoet
Date: Tue Jan  5 14:14:48 2021
New Revision: 560398
URL: https://svnweb.freebsd.org/changeset/ports/560398

Log:
  Convert REINPLACE_CMD to patch file and use PREFIX
  
  Suggested by:	swills

Added:
  head/devel/readline/files/patch-rlconf.h   (contents, props changed)
Modified:
  head/devel/readline/Makefile

Modified: head/devel/readline/Makefile
==============================================================================
--- head/devel/readline/Makefile	Tue Jan  5 14:10:03 2021	(r560397)
+++ head/devel/readline/Makefile	Tue Jan  5 14:14:48 2021	(r560398)
@@ -38,7 +38,7 @@ PATCHFILES+=	${PORTNAME}${PORTVERSION:R:S|.||}-${patch
 .endfor
 
 post-patch:
-	@${REINPLACE_CMD} -e '/SYS_INPUTRC/ s|/etc/inputrc|${LOCALBASE}&|' ${WRKSRC}/rlconf.h
+	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/rlconf.h
 .if exists(/usr/lib/libtermcapw.so)
 	@${REINPLACE_CMD} 's|-ltermcap|-ltermcapw|g' ${WRKSRC}/configure
 .endif

Added: head/devel/readline/files/patch-rlconf.h
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/readline/files/patch-rlconf.h	Tue Jan  5 14:14:48 2021	(r560398)
@@ -0,0 +1,11 @@
+--- rlconf.h.orig	2017-02-21 15:25:30 UTC
++++ rlconf.h
+@@ -43,7 +43,7 @@
+ #define DEFAULT_INPUTRC "~/.inputrc"
+ 
+ /* The ultimate last-ditch filename for an init file -- system-wide. */
+-#define SYS_INPUTRC "/etc/inputrc"
++#define SYS_INPUTRC "%%PREFIX%%/etc/inputrc"
+ 
+ /* If defined, expand tabs to spaces. */
+ #define DISPLAY_TABS


More information about the svn-ports-all mailing list