Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Oct 2017 14:54:28 +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: r453182 - head/devel/readline
Message-ID:  <201710301454.v9UEsSWo013361@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201710301454.v9UEsSWo013361>