Date: Tue, 20 Nov 2018 09:53:44 +0000 (UTC) From: Tobias Kortkamp <tobik@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r485422 - in head/devel: . shfmt Message-ID: <201811200953.wAK9rixZ079400@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <bsd.port.mk> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201811200953.wAK9rixZ079400>