From owner-svn-ports-all@freebsd.org Sun Apr 19 18:24:31 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DD9CE27D91F; Sun, 19 Apr 2020 18:24:31 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 494ysW5HR8z3Fxp; Sun, 19 Apr 2020 18:24:31 +0000 (UTC) (envelope-from 0mp@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 969D121E7; Sun, 19 Apr 2020 18:24:31 +0000 (UTC) (envelope-from 0mp@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 03JIOVf3057049; Sun, 19 Apr 2020 18:24:31 GMT (envelope-from 0mp@FreeBSD.org) Received: (from 0mp@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 03JIOUHM057045; Sun, 19 Apr 2020 18:24:30 GMT (envelope-from 0mp@FreeBSD.org) Message-Id: <202004191824.03JIOUHM057045@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: 0mp set sender to 0mp@FreeBSD.org using -f From: Mateusz Piotrowski <0mp@FreeBSD.org> Date: Sun, 19 Apr 2020 18:24:30 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r532142 - in head/x11-fonts: . fontpreview fontpreview/files X-SVN-Group: ports-head X-SVN-Commit-Author: 0mp X-SVN-Commit-Paths: in head/x11-fonts: . fontpreview fontpreview/files X-SVN-Commit-Revision: 532142 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 19 Apr 2020 18:24:31 -0000 Author: 0mp Date: Sun Apr 19 18:24:30 2020 New Revision: 532142 URL: https://svnweb.freebsd.org/changeset/ports/532142 Log: New port: x11-fonts/fontpreview fontpreview is a command-line tool that let's the user to quickly search for fonts that are installed on their machine and preview them. The fuzzy search feature is provided by fzf and the preview is generated with ImageMagick and then displayed using sxiv. This tool is highly customizable, almost all of the variables in this tool can be changed using the command-line flags or the environment variables. WWW: https://github.com/sdushantha/fontpreview Added: head/x11-fonts/fontpreview/ head/x11-fonts/fontpreview/Makefile (contents, props changed) head/x11-fonts/fontpreview/distinfo (contents, props changed) head/x11-fonts/fontpreview/files/ head/x11-fonts/fontpreview/files/patch-fontpreview (contents, props changed) head/x11-fonts/fontpreview/pkg-descr (contents, props changed) Modified: head/x11-fonts/Makefile Modified: head/x11-fonts/Makefile ============================================================================== --- head/x11-fonts/Makefile Sun Apr 19 18:21:12 2020 (r532141) +++ head/x11-fonts/Makefile Sun Apr 19 18:24:30 2020 (r532142) @@ -101,6 +101,7 @@ SUBDIR += fontconfig SUBDIR += fontconfig-reference SUBDIR += fontmatrix + SUBDIR += fontpreview SUBDIR += fonts-indic SUBDIR += fonttosfnt SUBDIR += freefont-ttf Added: head/x11-fonts/fontpreview/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontpreview/Makefile Sun Apr 19 18:24:30 2020 (r532142) @@ -0,0 +1,43 @@ +# $FreeBSD$ + +PORTNAME= fontpreview +DISTVERSION= 1.0.6 +CATEGORIES= x11-fonts graphics + +MAINTAINER= 0mp@FreeBSD.org +COMMENT= Very customizable and minimal font previewer written in Bash + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= bash:shells/bash \ + convert:graphics/ImageMagick7 \ + fzf:textproc/fzf \ + getopt>0:misc/getopt \ + sxiv:graphics/sxiv \ + xdotool:x11/xdotool + +USES= shebangfix +USE_GITHUB= yes +GH_ACCOUNT= sdushantha +GH_TAGNAME= 24f4f5e7dba3351844950e681c08bd74f3df2d42 +SHEBANG_FILES= ${PORTNAME} + +NO_ARCH= yes +NO_BUILD= yes + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md extra/ + +OPTIONS_DEFINE= DOCS + +post-patch: + @${REINPLACE_CMD} 's|%%GETOPT%%|${LOCALBASE}/bin/getopt|' \ + ${WRKSRC}/${PORTNAME} + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR}/extra + ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/extra/* ${STAGEDIR}${DOCSDIR}/extra + +.include Added: head/x11-fonts/fontpreview/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontpreview/distinfo Sun Apr 19 18:24:30 2020 (r532142) @@ -0,0 +1,3 @@ +TIMESTAMP = 1587297479 +SHA256 (sdushantha-fontpreview-1.0.6-24f4f5e7dba3351844950e681c08bd74f3df2d42_GH0.tar.gz) = acb7d69d6264127c4d4a80f1b160e761ba50dcc0206fc31469a7b4c593522eb1 +SIZE (sdushantha-fontpreview-1.0.6-24f4f5e7dba3351844950e681c08bd74f3df2d42_GH0.tar.gz) = 6285279 Added: head/x11-fonts/fontpreview/files/patch-fontpreview ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontpreview/files/patch-fontpreview Sun Apr 19 18:24:30 2020 (r532142) @@ -0,0 +1,11 @@ +--- fontpreview.orig 2020-04-19 12:00:29 UTC ++++ fontpreview +@@ -164,7 +164,7 @@ font=$1 + + + # Parse the arguments +-options=$(getopt -o hi:o: --long position:,size:,version,search-prompt:,font-size:,bg-color:,fg-color:,preview-text:,input:,output:,help -- "$@") ++options=$(%%GETOPT%% -o hi:o: --long position:,size:,version,search-prompt:,font-size:,bg-color:,fg-color:,preview-text:,input:,output:,help -- "$@") + eval set -- "$options" + + while true; do Added: head/x11-fonts/fontpreview/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/x11-fonts/fontpreview/pkg-descr Sun Apr 19 18:24:30 2020 (r532142) @@ -0,0 +1,8 @@ +fontpreview is a command-line tool that let's the user to quickly search for +fonts that are installed on their machine and preview them. The fuzzy search +feature is provided by fzf and the preview is generated with ImageMagick and +then displayed using sxiv. This tool is highly customizable, almost all of the +variables in this tool can be changed using the command-line flags or the +environment variables. + +WWW: https://github.com/sdushantha/fontpreview