From owner-svn-ports-head@freebsd.org Tue Mar 20 17:10:10 2018 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 1B91AF5D774; Tue, 20 Mar 2018 17:10:10 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BA2817CADE; Tue, 20 Mar 2018 17:10:09 +0000 (UTC) (envelope-from tobik@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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B50B11F8C8; Tue, 20 Mar 2018 17:10:09 +0000 (UTC) (envelope-from tobik@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w2KHA9Hi034774; Tue, 20 Mar 2018 17:10:09 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w2KHA97Q034769; Tue, 20 Mar 2018 17:10:09 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201803201710.w2KHA97Q034769@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 20 Mar 2018 17:10:09 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r465094 - in head: . x11/sterm x11/sterm/files X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head: . x11/sterm x11/sterm/files X-SVN-Commit-Revision: 465094 X-SVN-Commit-Repository: ports 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.25 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: Tue, 20 Mar 2018 17:10:10 -0000 Author: tobik Date: Tue Mar 20 17:10:09 2018 New Revision: 465094 URL: https://svnweb.freebsd.org/changeset/ports/465094 Log: x11/sterm: Update to 0.8 - Fix LICENSE and set it to MIT - Fix the way we handle the terminfo of x11/sterm. FreeBSD 12, 11-STABLE, and 11.2-RELEASE do not require any additional configuration (thanks to bapt@) [1]. For older versions, there is a simple set of instructions on how to configure terminfo for x11/sterm in pkg-message. - Create a symbolic link to user-defined config.h instead of making a copy as is done in other suckless.org ports such as x11-wm/dwm and www/quark. - Respect CPPFLAGS - Add some files to DOCS and DATA - Eliminate an unnecessary .for loop during install - Use HTTPS in WWW - Add UPDATING entry as old config.h files will need to be updated for the newer version [1] https://svnweb.freebsd.org/changeset/base/331006 Changes: https://git.suckless.org/st/log/?qt=range&q=0.7..0.8 PR: 226632 Submitted by: 0mp Approved by: Piotr Kubaj (maintainer) Added: head/x11/sterm/files/pkg-message.in (contents, props changed) Deleted: head/x11/sterm/files/patch-Makefile Modified: head/UPDATING head/x11/sterm/Makefile head/x11/sterm/distinfo head/x11/sterm/pkg-descr Modified: head/UPDATING ============================================================================== --- head/UPDATING Tue Mar 20 16:55:46 2018 (r465093) +++ head/UPDATING Tue Mar 20 17:10:09 2018 (r465094) @@ -5,6 +5,13 @@ they are unavoidable. You should get into the habit of checking this file for changes each time you update your ports collection, before attempting any port upgrades. +20180320: users of x11/sterm + AUTHOR: pkubaj@anongoth.pl + + The user-defined options in config.h have changed. You should + compare your config.h file with the default one and change + appropriately. + 20180319: AFFECTS: users of dns/dnsmasq AUTHOR: mandree@FreeBSD.org Modified: head/x11/sterm/Makefile ============================================================================== --- head/x11/sterm/Makefile Tue Mar 20 16:55:46 2018 (r465093) +++ head/x11/sterm/Makefile Tue Mar 20 17:10:09 2018 (r465094) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= sterm -PORTVERSION= 0.7 +DISTVERSION= 0.8 CATEGORIES= x11 MASTER_SITES= http://dl.suckless.org/st/ DISTNAME= st-${PORTVERSION} @@ -10,10 +10,8 @@ DISTNAME= st-${PORTVERSION} MAINTAINER= pkubaj@anongoth.pl COMMENT= Simple X terminal -LICENSE= MITX -LICENSE_NAME= MIT/X Consortium License +LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE -LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ libfreetype.so:print/freetype2 @@ -23,10 +21,16 @@ USE_XORG= x11 xext xft PLIST_FILES= bin/st man/man1/st.1.gz -PORTDOCS= README +# This way we avoid running tic on st.info which does not work as expected. +BINARY_ALIAS= tic=true +PORTDATA= config.def.h st.info +PORTDOCS= FAQ LEGACY README TODO + OPTIONS_DEFINE= DOCS +SUB_FILES= pkg-message + pre-everything:: @${ECHO_MSG} "You can build st with your own config.h using the ST_CONF knob:" @${ECHO_MSG} "make ST_CONF=/path/to/st/config.h install clean" @@ -34,23 +38,23 @@ pre-everything:: post-patch: .if defined(ST_CONF) @${ECHO_MSG} "creating config.h from ${ST_CONF}" - @${CP} ${ST_CONF} ${WRKSRC}/config.h + @${LN} -sf ${ST_CONF} ${WRKSRC}/config.h .endif @${REINPLACE_CMD} -e 's|^VERSION = .*|VERSION = ${PORTVERSION}|' \ -e 's|^PREFIX = .*|PREFIX = ${PREFIX}|' \ - -e 's|^LOCALBASE = .*|LOCALBASE = ${LOCALBASE}|' \ -e "s|^MANPREFIX = .*|MANPREFIX = ${MANPREFIX}/man|" \ -e "s|^X11INC = .*|X11INC = ${LOCALBASE}/include|" \ -e "s|^X11LIB = .*|X11LIB = ${LOCALBASE}/lib|" \ + -e "s|^CPPFLAGS =|CPPFLAGS +=|" \ ${WRKSRC}/config.mk post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/st + @${MKDIR} ${STAGEDIR}${DATADIR} + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDATA} ${STAGEDIR}${DATADIR} post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} -.for doc in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${doc} ${STAGEDIR}${DOCSDIR} -.endfor + cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR} .include Modified: head/x11/sterm/distinfo ============================================================================== --- head/x11/sterm/distinfo Tue Mar 20 16:55:46 2018 (r465093) +++ head/x11/sterm/distinfo Tue Mar 20 17:10:09 2018 (r465094) @@ -1,3 +1,3 @@ -TIMESTAMP = 1471840973 -SHA256 (st-0.7.tar.gz) = f7870d906ccc988926eef2cc98950a99cc78725b685e934c422c03c1234e6000 -SIZE (st-0.7.tar.gz) = 42418 +TIMESTAMP = 1521122661 +SHA256 (st-0.8.tar.gz) = 77353920d07d66c684a0f57ec37c2670c42fdc5c871d6382b701601cdc597576 +SIZE (st-0.8.tar.gz) = 45401 Added: head/x11/sterm/files/pkg-message.in ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11/sterm/files/pkg-message.in Tue Mar 20 17:10:09 2018 (r465094) @@ -0,0 +1,14 @@ +If you are running FreeBSD 11.1 or older then in order to add st.info +to the terminal capability database it is required to + + * Install tic (included in devel/ncurses) + * Run + + # tic -C -K -s -x %%DATADIR%%/st.info >> /usr/share/misc/termcap + # cd /usr/share/misc + # cap_mkdb termcap + +Thanks to [1], this hack is not necessary on FreeBSD 11.2-RELEASE, +11-STABLE, and 12-CURRENT. + +[1] https://svnweb.freebsd.org/changeset/base/331006 Modified: head/x11/sterm/pkg-descr ============================================================================== --- head/x11/sterm/pkg-descr Tue Mar 20 16:55:46 2018 (r465093) +++ head/x11/sterm/pkg-descr Tue Mar 20 17:10:09 2018 (r465094) @@ -3,4 +3,4 @@ st is a minimalistic X terminal. It consists of a single binary, configuration is done at compile-time by a config.h file. -WWW: http://st.suckless.org/ +WWW: https://st.suckless.org/