From owner-svn-ports-head@freebsd.org Thu Oct 8 14:12:56 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 03B649D0533; Thu, 8 Oct 2015 14:12:56 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B345489B; Thu, 8 Oct 2015 14:12:55 +0000 (UTC) (envelope-from amdmi3@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t98ECsvI074154; Thu, 8 Oct 2015 14:12:54 GMT (envelope-from amdmi3@FreeBSD.org) Received: (from amdmi3@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t98ECrS5074142; Thu, 8 Oct 2015 14:12:53 GMT (envelope-from amdmi3@FreeBSD.org) Message-Id: <201510081412.t98ECrS5074142@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: amdmi3 set sender to amdmi3@FreeBSD.org using -f From: Dmitry Marakasov Date: Thu, 8 Oct 2015 14:12:53 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r398827 - in head: Keywords Mk Mk/Scripts Mk/Uses devel/ncurses sysutils/jfbterm x11/rxvt-unicode x11/rxvt-unicode/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Oct 2015 14:12:56 -0000 Author: amdmi3 Date: Thu Oct 8 14:12:53 2015 New Revision: 398827 URL: https://svnweb.freebsd.org/changeset/ports/398827 Log: Add a way to cleanly handle terminfo.db file used by devel/ncurses This database contains compiled terminfo entries and is merged from a large part which comes with ncurses themselves and compiled .terminfo files installed by other ports (currently only rxvt-unicode and jfbterm) - Now the database is always kept up to date, regardless of port installation order (both ncurses installed before .terminfo files and the other way around work as expected) - All affected ports now support clean deinstallation and do not produce stage-qa errors - Affected ports are simplified, as they now only need to define USES=terminfo - rxvt-unicode no longer pulls in ncurses: the dependency is not really needed for anything beside updating it's own database - The patch contains Q/A test to check whether a port needs, or needs not USES=terminfo Approved by: portmgr (mat, bapt) Differential Revision: D3747 Added: head/Keywords/terminfo.ucl (contents, props changed) head/Mk/Uses/terminfo.mk (contents, props changed) head/x11/rxvt-unicode/files/patch-doc_Makefile.in (contents, props changed) Modified: head/Mk/Scripts/qa.sh head/Mk/bsd.port.mk head/devel/ncurses/Makefile head/devel/ncurses/pkg-plist head/sysutils/jfbterm/Makefile head/sysutils/jfbterm/pkg-plist head/x11/rxvt-unicode/Makefile head/x11/rxvt-unicode/pkg-plist Added: head/Keywords/terminfo.ucl ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/Keywords/terminfo.ucl Thu Oct 8 14:12:53 2015 (r398827) @@ -0,0 +1,22 @@ +# $FreeBSD$ +# + +actions: [] +post-install: < 900000 ${RM} -f ${STAGEDIR}${PREFIX}/lib/libncurses.so \ ${STAGEDIR}${PREFIX}/lib/libncursesw.so ${ECHO} "INPUT(libncurses.so.${RELEASE:R} AS_NEEDED(-ltinfo))" > ${STAGEDIR}${PREFIX}/lib/libncurses.so ${ECHO} "INPUT(libncursesw.so.${RELEASE:R} AS_NEEDED(-ltinfow))" > ${STAGEDIR}${PREFIX}/lib/libncursesw.so -.endif + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.5.9 + ${MV} ${STAGEDIR}${PREFIX}/share/misc/terminfo.db \ + ${STAGEDIR}${PREFIX}/share/misc/terminfo.db.default + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} +.for f in ${DOCS} + ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${DOCSDIR}/ +.endfor + .include Modified: head/devel/ncurses/pkg-plist ============================================================================== --- head/devel/ncurses/pkg-plist Thu Oct 8 14:07:20 2015 (r398826) +++ head/devel/ncurses/pkg-plist Thu Oct 8 14:12:53 2015 (r398827) @@ -977,5 +977,4 @@ share/misc/tabset/std share/misc/tabset/stdcrt share/misc/tabset/vt100 share/misc/tabset/vt300 -share/misc/terminfo.db -@exec find %D/share/misc -name "*.terminfo" -exec %D/bin/tic {} \; +share/misc/terminfo.db.default Modified: head/sysutils/jfbterm/Makefile ============================================================================== --- head/sysutils/jfbterm/Makefile Thu Oct 8 14:07:20 2015 (r398826) +++ head/sysutils/jfbterm/Makefile Thu Oct 8 14:12:53 2015 (r398827) @@ -4,7 +4,7 @@ PORTNAME= jfbterm PORTVERSION= 0.6.1 DISTVERSIONPREFIX=FreeBSD- -PORTREVISION= 7 +PORTREVISION= 8 CATEGORIES= sysutils MASTER_SITES= http://www.ac.auone-net.jp/~baba/jfbterm/ @@ -17,14 +17,13 @@ LICENSE_FILE= ${WRKSRC}/COPYING ONLY_FOR_ARCHS= i386 amd64 ONLY_FOR_ARCHS_REASON= requires VESA support in kernel +USES= terminfo MAKEFILE= ${FILESDIR}/BSDmakefile MAKE_ENV+= VERSION=${PORTVERSION} GUNZIP=${GUNZIP_CMD:N-*} PLIST_SUB+= TERMCAP_ADD_RECORD="@exec ${TERMCAP_ADD_RECORD:S,^${PREFIX},%D,}" \ - TERMCAP_DEL_RECORD="@unexec ${TERMCAP_DEL_RECORD}" \ - TIC="@exec ${TIC} ${TERMINFO_FILE:S,^${PREFIX},%D,} 2>/dev/null || ${TRUE}" + TERMCAP_DEL_RECORD="@unexec ${TERMCAP_DEL_RECORD}" CAP_MKDB?= /usr/bin/cap_mkdb -TIC?= ${LOCALBASE}/bin/tic TERMINFO_FILE?= ${PREFIX}/share/misc/jfbterm.terminfo OPTIONS_DEFINE= ICONV PNG SETUID TERMCAP UNIFONT @@ -42,8 +41,6 @@ PLIST_SUB+= SETUID="" PLIST_SUB+= SETUID="@comment " .endif -ONLY_FOR_ARCHS+=amd64 - .if !defined(INSTALL_AS_USER) TERMCAP_FILE?= /usr/share/misc/termcap .else @@ -101,13 +98,13 @@ post-extract: .SILENT ${WRKSRC}/jfbterm.conf.sample post-patch: - ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ + @${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' \ -e 's|\(share\)/jfbterm/\(fonts\)|\1/misc/\2|' \ ${WRKSRC}/*.[0-9] ${WRKSRC}/*.conf.sample -.if !${PORT_OPTIONS:MTERMCAP} - ${REINPLACE_CMD} '/^term/s/:.*/: xterm/' \ + +post-patch-TERMCAP-off: + @${REINPLACE_CMD} '/^term/s/:.*/: xterm/' \ ${WRKSRC}/jfbterm.conf.sample -.endif do-install: ${INSTALL_PROGRAM} ${WRKSRC}/jfbterm ${STAGEDIR}${PREFIX}/bin Modified: head/sysutils/jfbterm/pkg-plist ============================================================================== --- head/sysutils/jfbterm/pkg-plist Thu Oct 8 14:07:20 2015 (r398826) +++ head/sysutils/jfbterm/pkg-plist Thu Oct 8 14:12:53 2015 (r398827) @@ -9,4 +9,3 @@ share/misc/jfbterm.termcap share/misc/jfbterm.terminfo %%TERMCAP_ADD_RECORD%% %%TERMCAP_DEL_RECORD%% -%%TIC%% Modified: head/x11/rxvt-unicode/Makefile ============================================================================== --- head/x11/rxvt-unicode/Makefile Thu Oct 8 14:07:20 2015 (r398826) +++ head/x11/rxvt-unicode/Makefile Thu Oct 8 14:12:53 2015 (r398827) @@ -3,6 +3,7 @@ PORTNAME= rxvt-unicode PORTVERSION= 9.21 +PORTREVISION= 1 CATEGORIES= x11 MASTER_SITES= http://dist.schmorp.de/rxvt-unicode/%SUBDIR%/ MASTER_SITE_SUBDIR= . Attic @@ -12,12 +13,10 @@ COMMENT= Clone of the terminal emulator LICENSE= GPLv2 -BUILD_DEPENDS= tic:${PORTSDIR}/devel/ncurses \ - ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig -RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig \ - ${LOCALBASE}/share/misc/terminfo.db:${PORTSDIR}/devel/ncurses +BUILD_DEPENDS= ${LOCALBASE}/libdata/pkgconfig/fontconfig.pc:${PORTSDIR}/x11-fonts/fontconfig +RUN_DEPENDS= ${LOCALBASE}/bin/fc-cache:${PORTSDIR}/x11-fonts/fontconfig -USES= cpe pkgconfig shebangfix tar:bzip2 +USES= cpe pkgconfig shebangfix tar:bzip2 terminfo USE_XORG= xpm xft xrender GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include Added: head/x11/rxvt-unicode/files/patch-doc_Makefile.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/rxvt-unicode/files/patch-doc_Makefile.in Thu Oct 8 14:12:53 2015 (r398827) @@ -0,0 +1,10 @@ +--- doc/Makefile.in.orig 2014-12-31 14:09:25 UTC ++++ doc/Makefile.in +@@ -98,7 +98,6 @@ install: all + $(INSTALL_DATA) rxvtc.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)c.$(man1ext) + $(INSTALL_DATA) rxvtd.1.man $(DESTDIR)$(man1dir)/$(RXVTNAME)d.$(man1ext) + $(INSTALL_DATA) rxvt.7.man $(DESTDIR)$(man7dir)/$(RXVTNAME).$(man7ext) +- @TIC@ $(srcdir)/etc/rxvt-unicode.terminfo + + distdepend: alldoc + Modified: head/x11/rxvt-unicode/pkg-plist ============================================================================== --- head/x11/rxvt-unicode/pkg-plist Thu Oct 8 14:07:20 2015 (r398826) +++ head/x11/rxvt-unicode/pkg-plist Thu Oct 8 14:12:53 2015 (r398827) @@ -58,5 +58,3 @@ man/man1/urxvtd.1.gz %%PERL%%man/man3/urxvtperl.3.gz man/man7/urxvt.7.gz share/misc/rxvt-unicode.terminfo -@comment No unexec tic available -@postexec tic %D/share/misc/rxvt-unicode.terminfo