View | Details | Raw Unified | Return to bug 255125
Collapse All | Expand All

(-)b/devel/readline/Makefile (-1 / +4 lines)
Lines 2-7 Link Here
2
2
3
PORTNAME=	readline
3
PORTNAME=	readline
4
PORTVERSION=	8.1.${PATCHLEVEL}
4
PORTVERSION=	8.1.${PATCHLEVEL}
5
PORTREVISION=	1
5
CATEGORIES=	devel
6
CATEGORIES=	devel
6
MASTER_SITES=	GNU
7
MASTER_SITES=	GNU
7
DISTNAME=	${PORTNAME}-${PORTVERSION:R}
8
DISTNAME=	${PORTNAME}-${PORTVERSION:R}
Lines 29-34 CPE_VERSION= ${PORTVERSION:R} Link Here
29
OPTIONS_DEFINE=	DOCS
30
OPTIONS_DEFINE=	DOCS
30
31
31
# https://ftp.gnu.org/gnu/readline/readline-8.1-patches/
32
# https://ftp.gnu.org/gnu/readline/readline-8.1-patches/
33
#Remove PORTREVISION above when bumping PATCHES
32
#PATCHES=	1
34
#PATCHES=	1
33
.if defined(PATCHES)
35
.if defined(PATCHES)
34
CPE_UPDATE=	${PATCHLEVEL}
36
CPE_UPDATE=	${PATCHLEVEL}
Lines 41-47 PATCHLEVEL= 0 Link Here
41
.endif
43
.endif
42
44
43
post-patch:
45
post-patch:
44
	@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/rlconf.h
46
	@${REINPLACE_CMD} -e 's|/etc/[iI]nputrc|${PREFIX}/etc/inputrc|' \
47
		${WRKSRC}/rlconf.h ${WRKSRC}/doc/*.info ${WRKSRC}/doc/*.3
45
.if exists(/usr/lib/libtermcapw.so)
48
.if exists(/usr/lib/libtermcapw.so)
46
	@${REINPLACE_CMD} 's|-ltermcap|-ltermcapw|g' ${WRKSRC}/configure
49
	@${REINPLACE_CMD} 's|-ltermcap|-ltermcapw|g' ${WRKSRC}/configure
47
.endif
50
.endif
(-)a/devel/readline/files/patch-rlconf.h (-12 lines)
Removed Link Here
1
--- rlconf.h.orig	2017-02-21 15:25:30 UTC
2
+++ rlconf.h
3
@@ -43,7 +43,7 @@
4
 #define DEFAULT_INPUTRC "~/.inputrc"
5
 
6
 /* The ultimate last-ditch filename for an init file -- system-wide. */
7
-#define SYS_INPUTRC "/etc/inputrc"
8
+#define SYS_INPUTRC "%%PREFIX%%/etc/inputrc"
9
 
10
 /* If defined, expand tabs to spaces. */
11
 #define DISPLAY_TABS
12
- 

Return to bug 255125