svn commit: r453182 - head/devel/readline

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Mon Oct 30 14:54:30 UTC 2017


Author: sunpoet
Date: Mon Oct 30 14:54:28 2017
New Revision: 453182
URL: https://svnweb.freebsd.org/changeset/ports/453182

Log:
  Install readline.pc
  
  - Bump PORTREVISION for package change
  
  PR:		223130
  Submitted by:	bsam
  Exp-run by:	antoine

Modified:
  head/devel/readline/Makefile
  head/devel/readline/pkg-plist

Modified: head/devel/readline/Makefile
==============================================================================
--- head/devel/readline/Makefile	Mon Oct 30 14:45:19 2017	(r453181)
+++ head/devel/readline/Makefile	Mon Oct 30 14:54:28 2017	(r453182)
@@ -3,6 +3,7 @@
 
 PORTNAME=	readline
 PORTVERSION=	7.0.${PATCHLEVEL}
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	GNU
 DISTNAME=	${PORTNAME}-${PORTVERSION:R}
@@ -37,9 +38,13 @@ PATCHFILES+=	${PORTNAME}${PORTVERSION:R:S|.||}-${patch
 .endfor
 
 post-patch-TERMCAP-on:
+	# Comment out "Requires.private: tinfo" line since we do not have tinfo.pc in base system.
+	# See PR/223130 for details.
+	@${REINPLACE_CMD} -e '/^Requires.private: tinfo/ s|^|#|' ${WRKSRC}/readline.pc.in
 	@${REINPLACE_CMD} -e '/SHOBJ_LDFLAGS = / s| = |&-ltermcapw |' ${WRKSRC}/shlib/Makefile.in
 
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libhistory.so.7 ${STAGEDIR}${PREFIX}/lib/libreadline.so.7
+	${INSTALL_DATA} ${WRKSRC}/readline.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
 
 .include <bsd.port.mk>

Modified: head/devel/readline/pkg-plist
==============================================================================
--- head/devel/readline/pkg-plist	Mon Oct 30 14:45:19 2017	(r453181)
+++ head/devel/readline/pkg-plist	Mon Oct 30 14:54:28 2017	(r453182)
@@ -12,6 +12,7 @@ lib/libhistory.so.7
 lib/libreadline.a
 lib/libreadline.so
 lib/libreadline.so.7
+libdata/pkgconfig/readline.pc
 man/man3/history.3.gz
 man/man3/readline.3.gz
 %%DATADIR%%/excallback.c


More information about the svn-ports-all mailing list