From owner-svn-ports-head@freebsd.org Tue Nov 20 09:53:46 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 02F681108147; Tue, 20 Nov 2018 09:53:46 +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 99CD1836C1; Tue, 20 Nov 2018 09:53:45 +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 7A5227BA7; Tue, 20 Nov 2018 09:53:45 +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 wAK9rjif079406; Tue, 20 Nov 2018 09:53:45 GMT (envelope-from tobik@FreeBSD.org) Received: (from tobik@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id wAK9rixZ079400; Tue, 20 Nov 2018 09:53:44 GMT (envelope-from tobik@FreeBSD.org) Message-Id: <201811200953.wAK9rixZ079400@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: tobik set sender to tobik@FreeBSD.org using -f From: Tobias Kortkamp Date: Tue, 20 Nov 2018 09:53:44 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485422 - in head/devel: . shfmt X-SVN-Group: ports-head X-SVN-Commit-Author: tobik X-SVN-Commit-Paths: in head/devel: . shfmt X-SVN-Commit-Revision: 485422 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 99CD1836C1 X-Spamd-Result: default: False [0.55 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_SPAM_MEDIUM(0.02)[0.018,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_SPAM_SHORT(0.53)[0.530,0]; NEURAL_HAM_LONG(-0.00)[-0.003,0] X-Rspamd-Server: mx1.freebsd.org X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 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 Nov 2018 09:53:46 -0000 Author: tobik Date: Tue Nov 20 09:53:44 2018 New Revision: 485422 URL: https://svnweb.freebsd.org/changeset/ports/485422 Log: New port: devel/shfmt Shfmt is a shell script formatter. It supports POSIX Shell, Bash, and mksh. WWW: https://github.com/mvdan/sh Added: head/devel/shfmt/ head/devel/shfmt/Makefile (contents, props changed) head/devel/shfmt/distinfo (contents, props changed) head/devel/shfmt/pkg-descr (contents, props changed) Modified: head/devel/Makefile Modified: head/devel/Makefile ============================================================================== --- head/devel/Makefile Tue Nov 20 09:30:26 2018 (r485421) +++ head/devel/Makefile Tue Nov 20 09:53:44 2018 (r485422) @@ -6184,6 +6184,7 @@ SUBDIR += shedskin SUBDIR += shell-toolbox SUBDIR += shflags + SUBDIR += shfmt SUBDIR += shiboken SUBDIR += shmap SUBDIR += shtk Added: head/devel/shfmt/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/shfmt/Makefile Tue Nov 20 09:53:44 2018 (r485422) @@ -0,0 +1,30 @@ +# $FreeBSD$ + +PORTNAME= shfmt +DISTVERSIONPREFIX= v +DISTVERSION= 2.6.1 +CATEGORIES= devel + +MAINTAINER= tobik@FreeBSD.org +COMMENT= Format shell scripts + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= go>=1.10:lang/go + +USE_GITHUB= yes +GH_ACCOUNT= mvdan +GH_PROJECT= sh +GH_SUBDIR= src/mvdan.cc/sh + +MAKE_ENV= GOPATH=${WRKSRC} +PLIST_FILES= bin/shfmt + +do-build: + @cd ${WRKSRC}/cmd/shfmt && ${SETENV} ${MAKE_ENV} go build + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/cmd/shfmt/shfmt ${STAGEDIR}${PREFIX}/bin + +.include Added: head/devel/shfmt/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/shfmt/distinfo Tue Nov 20 09:53:44 2018 (r485422) @@ -0,0 +1,3 @@ +TIMESTAMP = 1542707423 +SHA256 (mvdan-sh-v2.6.1_GH0.tar.gz) = faa1a40964744508b737a2c536f01e74e96162f30ac12f967656fa272d292c53 +SIZE (mvdan-sh-v2.6.1_GH0.tar.gz) = 135055 Added: head/devel/shfmt/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/shfmt/pkg-descr Tue Nov 20 09:53:44 2018 (r485422) @@ -0,0 +1,4 @@ +Shfmt is a shell script formatter. It supports POSIX Shell, Bash, +and mksh. + +WWW: https://github.com/mvdan/sh