Convert REINPLACE_CMD to patch files

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2021-03-03 18:07:02 +00:00
parent abe097aaf0
commit e769653020
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=567113
3 changed files with 24 additions and 3 deletions

View file

@ -20,10 +20,7 @@ USE_LDCONFIG= yes
OPTIONS_DEFINE= DOCS
post-patch:
# Do not install LICENSE to DOCSDIR
@${REINPLACE_CMD} -e '/doc_DATA/ s| LICENSE||' ${WRKSRC}/Makefile.in
# Rename editline.3 to libeditline.3 to avoid conflict with libedit
@${REINPLACE_CMD} -e 's|editline.3|lib&|' ${WRKSRC}/man/Makefile.in
@${MV} ${WRKSRC}/man/editline.3 ${WRKSRC}/man/libeditline.3
.include <bsd.port.mk>

View file

@ -0,0 +1,11 @@
--- Makefile.in.orig 2020-02-23 17:55:51 UTC
+++ Makefile.in
@@ -356,7 +356,7 @@ top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libeditline.pc
-doc_DATA = README.md LICENSE
+doc_DATA = README.md
EXTRA_DIST = README.md LICENSE ChangeLog.md INSTALL.md
SUBDIRS = src include man examples
MD5 = md5sum

View file

@ -0,0 +1,13 @@
Rename editline.3 to libeditline.3 to avoid conflict with libedit
--- man/Makefile.in.orig 2020-02-23 17:55:52 UTC
+++ man/Makefile.in
@@ -270,7 +270,7 @@ top_build_prefix = @top_build_prefix@
top_builddir = @top_builddir@
top_srcdir = @top_srcdir@
AUTOMAKE_OPTIONS = foreign
-dist_man_MANS = editline.3
+dist_man_MANS = libeditline.3
all: all-am
.SUFFIXES: