Date: Tue, 5 Jan 2021 14:14:49 +0000 (UTC) From: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r560398 - in head/devel/readline: . files Message-ID: <202101051414.105EEnAY085759@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202101051414.105EEnAY085759>