Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147619311
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
5 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/devel/readline/Makefile b/devel/readline/Makefile
index 709d35a01232..4c57cef1a87f 100644
--- a/devel/readline/Makefile
+++ b/devel/readline/Makefile
@@ -1,52 +1,53 @@
# Created by: Frank Laszlo <laszlof@vonostingroup.com>
PORTNAME= readline
PORTVERSION= 8.1.${PATCHLEVEL}
+PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= GNU
DISTNAME= ${PORTNAME}-${PORTVERSION:R}
PATCH_SITES= GNU/${PORTNAME}/${PORTNAME}-${PORTVERSION:R}-patches
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Library for editing command lines as they are typed
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cpe
GNU_CONFIGURE= yes
USE_LDCONFIG= yes
INFO= history readline rluserman
PLIST_SUB= PORTVERSION=${PORTVERSION:R}
PORTDOCS= CHANGES INSTALL README
CPE_VENDOR= gnu
CPE_VERSION= ${PORTVERSION:R}
OPTIONS_DEFINE= DOCS
# https://ftp.gnu.org/gnu/readline/readline-8.1-patches/
#PATCHES= 1
.if defined(PATCHES)
CPE_UPDATE= ${PATCHLEVEL}
PATCHLEVEL= ${PATCHES:O:[-1]}
.for patch in ${PATCHES}
PATCHFILES+= ${PORTNAME}${PORTVERSION:R:S|.||}-${patch:S|^|00|:S|.*(...)$|\1|}
.endfor
.else
PATCHLEVEL= 0
.endif
post-patch:
- @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/rlconf.h
+ @${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/rlconf.h ${WRKSRC}/doc/readline.3 ${WRKSRC}/doc/readline.info ${WRKSRC}/doc/rluserman.info
.if exists(/usr/lib/libtermcapw.so)
@${REINPLACE_CMD} 's|-ltermcap|-ltermcapw|g' ${WRKSRC}/configure
.endif
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhistory.so ${STAGEDIR}${PREFIX}/lib/libreadline.so
.include <bsd.port.mk>
diff --git a/devel/readline/files/patch-doc-readline.3 b/devel/readline/files/patch-doc-readline.3
new file mode 100644
index 000000000000..d7d7b3631b32
--- /dev/null
+++ b/devel/readline/files/patch-doc-readline.3
@@ -0,0 +1,25 @@
+--- doc/readline.3.orig 2020-10-29 20:48:10 UTC
++++ doc/readline.3
+@@ -118,7 +118,7 @@ The name of this file is taken from the value of the
+ environment variable. If that variable is unset, the default is
+ .IR ~/.inputrc .
+ If that file does not exist or cannot be read, the ultimate default is
+-.IR /etc/inputrc .
++.IR %%PREFIX%%/etc/inputrc .
+ When a program which uses the readline library starts up, the
+ init file is read, and the key bindings and variables are set.
+ There are only a few basic constructs allowed in the
+@@ -722,11 +722,11 @@ the test fails.
+ .IP \fB$include\fP
+ This directive takes a single filename as an argument and reads commands
+ and bindings from that file. For example, the following directive
+-would read \fI/etc/inputrc\fP:
++would read \fI%%PREFIX%%/etc/inputrc\fP:
+ .sp 1
+ .RS
+ .nf
+-\fB$include\fP \^ \fI/etc/inputrc\fP
++\fB$include\fP \^ \fI%%PREFIX%%/etc/inputrc\fP
+ .fi
+ .RE
+ .SH SEARCHING
diff --git a/devel/readline/files/patch-doc-readline.info b/devel/readline/files/patch-doc-readline.info
new file mode 100644
index 000000000000..6eb3350f6d4d
--- /dev/null
+++ b/devel/readline/files/patch-doc-readline.info
@@ -0,0 +1,22 @@
+--- doc/readline.info.orig 2020-10-30 14:07:51 UTC
++++ doc/readline.info
+@@ -313,7 +313,7 @@ putting commands in an "inputrc" file, conventionally
+ directory. The name of this file is taken from the value of the
+ environment variable 'INPUTRC'. If that variable is unset, the default
+ is '~/.inputrc'. If that file does not exist or cannot be read, the
+-ultimate default is '/etc/inputrc'.
++ultimate default is '%%PREFIX%%/etc/inputrc'.
+
+ When a program which uses the Readline library starts up, the init
+ file is read, and the key bindings are set.
+@@ -853,8 +853,8 @@ four parser directives used.
+ '$include'
+ This directive takes a single filename as an argument and reads
+ commands and bindings from that file. For example, the following
+- directive reads from '/etc/inputrc':
+- $include /etc/inputrc
++ directive reads from '%%PREFIX%%/etc/inputrc':
++ $include %%PREFIX%%/etc/inputrc
+
+
+ File: readline.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File
diff --git a/devel/readline/files/patch-doc-rluserman.info b/devel/readline/files/patch-doc-rluserman.info
new file mode 100644
index 000000000000..332ba1fc1715
--- /dev/null
+++ b/devel/readline/files/patch-doc-rluserman.info
@@ -0,0 +1,22 @@
+--- doc/rluserman.info.orig 2020-10-30 14:07:52 UTC
++++ doc/rluserman.info
+@@ -311,7 +311,7 @@ putting commands in an "inputrc" file, conventionally
+ directory. The name of this file is taken from the value of the
+ environment variable 'INPUTRC'. If that variable is unset, the default
+ is '~/.inputrc'. If that file does not exist or cannot be read, the
+-ultimate default is '/etc/inputrc'.
++ultimate default is '%%PREFIX%%/etc/inputrc'.
+
+ When a program which uses the Readline library starts up, the init
+ file is read, and the key bindings are set.
+@@ -851,8 +851,8 @@ four parser directives used.
+ '$include'
+ This directive takes a single filename as an argument and reads
+ commands and bindings from that file. For example, the following
+- directive reads from '/etc/inputrc':
+- $include /etc/inputrc
++ directive reads from '%%PREFIX%%/etc/inputrc':
++ $include %%PREFIX%%/etc/inputrc
+
+
+ File: rluserman.info, Node: Sample Init File, Prev: Conditional Init Constructs, Up: Readline Init File
File Metadata
Details
Attached
Mime Type
application/octet-stream
Expires
Tue, Jul 14, 1:16 AM (2 d)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29102978
Default Alt Text
(5 KB)
Attached To
Mode
R11 FreeBSD ports repository
Attached
Detach File
Event Timeline
Log In to Comment