Index: head/devel/gh/Makefile =================================================================== --- head/devel/gh/Makefile (revision 526014) +++ head/devel/gh/Makefile (revision 526015) @@ -1,70 +1,88 @@ # $FreeBSD$ PORTNAME= gh DISTVERSIONPREFIX= v -DISTVERSION= 0.5.2 +DISTVERSION= 0.5.4 CATEGORIES= devel MAINTAINER= vulcan@wired.sh COMMENT= GitHub command-line tool LICENSE= MIT LICENSE_FILE= ${WRKSRC}/LICENSE RUN_DEPENDS= git:devel/git USES= go:modules USE_GITHUB= yes GH_ACCOUNT= cli GH_PROJECT= cli GH_TUPLE= AlecAivazis:survey:v2.0.4:alecaivazis_survey/vendor/github.com/AlecAivazis/survey/v2 \ alecthomas:chroma:v0.6.8:alecthomas_chroma/vendor/github.com/alecthomas/chroma \ aybabtme:rgbterm:cc83f3b3ce59:aybabtme_rgbterm/vendor/github.com/aybabtme/rgbterm \ cpuguy83:go-md2man:v1.0.10:cpuguy83_go_md2man/vendor/github.com/cpuguy83/go-md2man \ danwakefield:fnmatch:cbb64ac3d964:danwakefield_fnmatch/vendor/github.com/danwakefield/fnmatch \ dlclark:regexp2:v1.1.6:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \ go-yaml:yaml:fc94e3f71652:go_yaml_yaml/vendor/gopkg.in/yaml.v3 \ go-yaml:yaml:v2.2.2:go_yaml_yaml_1/vendor/gopkg.in/yaml.v2 \ golang:crypto:20be4c3c3ed5:golang_crypto/vendor/golang.org/x/crypto \ golang:sys:fde4db37ae7a:golang_sys/vendor/golang.org/x/sys \ google:shlex:e7afc7fbc510:google_shlex/vendor/github.com/google/shlex \ hashicorp:go-version:v1.2.0:hashicorp_go_version/vendor/github.com/hashicorp/go-version \ inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ kballard:go-shellquote:95032a82bc51:kballard_go_shellquote/vendor/github.com/kballard/go-shellquote \ kr:text:v0.1.0:kr_text/vendor/github.com/kr/text \ mattn:go-colorable:v0.1.2:mattn_go_colorable/vendor/github.com/mattn/go-colorable \ mattn:go-isatty:v0.0.9:mattn_go_isatty/vendor/github.com/mattn/go-isatty \ mgutz:ansi:9520e82c474b:mgutz_ansi/vendor/github.com/mgutz/ansi \ mitchellh:go-homedir:v1.1.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \ mitchellh:go-wordwrap:v1.0.0:mitchellh_go_wordwrap/vendor/github.com/mitchellh/go-wordwrap \ russross:blackfriday:v1.5.2:russross_blackfriday/vendor/github.com/russross/blackfriday \ russross:blackfriday:v2.0.1:russross_blackfriday_1/vendor/github.com/russross/blackfriday/v2 \ shurcooL:sanitized_anchor_name:v1.0.0:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \ spf13:cobra:v0.0.5:spf13_cobra/vendor/github.com/spf13/cobra \ spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag \ tj:go-css:220a796d1705:tj_go_css/vendor/github.com/tj/go-css \ vilmibm:go-termd:v0.0.4:vilmibm_go_termd/vendor/github.com/vilmibm/go-termd GO_TARGET= ./cmd/${PORTNAME} GO_BUILDFLAGS= -ldflags "\ -s -w \ -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.Version=${BUILD_VERSION} \ -X github.com/${GH_ACCOUNT}/${GH_PROJECT}/command.BuildDate=${BUILD_DATE}" -BUILD_HASH= 739b0af -BUILD_VERSION= ${DISTVERSIONFULL}-${BUILD_HASH} +BUILD_VERSION= ${DISTVERSION} BUILD_DATE= $$(date +%Y-%m-%d) -PLIST_FILES= bin/${PORTNAME} +PLIST_FILES= bin/${PORTNAME} \ + etc/bash_completion.d/${PORTNAME}.bash \ + share/fish/completions/${PORTNAME}.fish \ + share/zsh/site_functions/_${PORTNAME} PORTDOCS= README.md OPTIONS_DEFINE= DOCS +post-build: +.for shell in bash zsh fish + ${WRKDIR}/bin/${PORTNAME} completion -s ${shell} > ${WRKSRC}/${shell} +.endfor + +post-install: + @${MKDIR} ${STAGEDIR}${PREFIX}/etc/bash_completion.d + ${INSTALL_DATA} ${WRKSRC}/bash \ + ${STAGEDIR}${PREFIX}/etc/bash_completion.d/${PORTNAME}.bash + @${MKDIR} ${STAGEDIR}${PREFIX}/share/fish/completions + ${INSTALL_DATA} ${WRKSRC}/fish \ + ${STAGEDIR}${PREFIX}/share/fish/completions/${PORTNAME}.fish + @${MKDIR} ${STAGEDIR}${PREFIX}/share/zsh/site_functions + ${INSTALL_DATA} ${WRKSRC}/zsh \ + ${STAGEDIR}${PREFIX}/share/zsh/site_functions/_${PORTNAME} + post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} do-test: - cd ${GO_WRKSRC} && ${SETENV} ${GO_ENV} ${GO_CMD} test ./... + @cd ${GO_WRKSRC} && ${SETENV} ${GO_ENV} ${GO_CMD} test ./... .include Index: head/devel/gh/distinfo =================================================================== --- head/devel/gh/distinfo (revision 526014) +++ head/devel/gh/distinfo (revision 526015) @@ -1,57 +1,57 @@ -TIMESTAMP = 1580601780 -SHA256 (cli-cli-v0.5.2_GH0.tar.gz) = bdd7c8681b711d0d1d4dc027c06ab88e89d2f43af40eba6865cad52ee460bec9 -SIZE (cli-cli-v0.5.2_GH0.tar.gz) = 539355 +TIMESTAMP = 1581591387 +SHA256 (cli-cli-v0.5.4_GH0.tar.gz) = eacf8dcc085e0a65a76bbc94b8501fd7c2b37e511dd2e24361c02e80e87ba642 +SIZE (cli-cli-v0.5.4_GH0.tar.gz) = 174930 SHA256 (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 6beef8372a03c7461901640ff349214104a27ef36ff8a86416bee01c6794fb1e SIZE (AlecAivazis-survey-v2.0.4_GH0.tar.gz) = 1324023 SHA256 (alecthomas-chroma-v0.6.8_GH0.tar.gz) = b76b5ea13171f286cdb28f2942784fafa69adf8e120ed4e68cd05484428a09b1 SIZE (alecthomas-chroma-v0.6.8_GH0.tar.gz) = 581789 SHA256 (aybabtme-rgbterm-cc83f3b3ce59_GH0.tar.gz) = c522b208b9da359ac69a9bddf65a27aa3cdfd3a3d529752210b2f8e5279f94f7 SIZE (aybabtme-rgbterm-cc83f3b3ce59_GH0.tar.gz) = 9360 SHA256 (cpuguy83-go-md2man-v1.0.10_GH0.tar.gz) = 76aa56849123b99b95fcea2b15502fd886dead9a5c35be7f78bdc2bad6be8d99 SIZE (cpuguy83-go-md2man-v1.0.10_GH0.tar.gz) = 43936 SHA256 (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 7ebff38d382142f9220d2cfcb4731d0ae90cdef71238c94a15c35f8aa746007f SIZE (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 4955 SHA256 (dlclark-regexp2-v1.1.6_GH0.tar.gz) = 81ede5b49ff46bd1c686416c52605aa4698b9dce07d011581c49a1d35b8a5239 SIZE (dlclark-regexp2-v1.1.6_GH0.tar.gz) = 203691 SHA256 (go-yaml-yaml-fc94e3f71652_GH0.tar.gz) = 1b654b45a037aa6c971438496f9fee48f5383218e9fd95cfa9d265618bdf0a46 SIZE (go-yaml-yaml-fc94e3f71652_GH0.tar.gz) = 85362 SHA256 (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 42c3e4ef9eca2860d22b3c6c5582c6c13fb4b417e5ebc1acc56ee5e2c4ddcaff SIZE (go-yaml-yaml-v2.2.2_GH0.tar.gz) = 70656 SHA256 (golang-crypto-20be4c3c3ed5_GH0.tar.gz) = bc78136186ecd1683395d9094a7b973cb01675529131ac59f484e2716609de6f SIZE (golang-crypto-20be4c3c3ed5_GH0.tar.gz) = 1690016 SHA256 (golang-sys-fde4db37ae7a_GH0.tar.gz) = b6aab4e92d5d8fe85ca0dd229bfb75c91290951a3bf3b95087459e5a4eae86a4 SIZE (golang-sys-fde4db37ae7a_GH0.tar.gz) = 1455218 SHA256 (google-shlex-e7afc7fbc510_GH0.tar.gz) = 87f77e98720add261add169e386cbdcc894e2635dca299bc4119dc417ea321ca SIZE (google-shlex-e7afc7fbc510_GH0.tar.gz) = 7342 SHA256 (hashicorp-go-version-v1.2.0_GH0.tar.gz) = 13b02465ef92959236950956c79500a7d77c9ed9a47424cfb203538ac2cd96f1 SIZE (hashicorp-go-version-v1.2.0_GH0.tar.gz) = 13094 SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 SHA256 (kballard-go-shellquote-95032a82bc51_GH0.tar.gz) = dde336eb697f7f9c26cf6d1467f75b6cf559262c1b0b110d28fff29790f76bc5 SIZE (kballard-go-shellquote-95032a82bc51_GH0.tar.gz) = 4328 SHA256 (kr-text-v0.1.0_GH0.tar.gz) = b67f2744020b25f9298153af0992db252d195edd7ca5afa3b19d6ac300c2d14e SIZE (kr-text-v0.1.0_GH0.tar.gz) = 8686 SHA256 (mattn-go-colorable-v0.1.2_GH0.tar.gz) = a7189bd9005c571303b117261955ce53b0e2aa89fe415e2289659be343fe1651 SIZE (mattn-go-colorable-v0.1.2_GH0.tar.gz) = 8518 SHA256 (mattn-go-isatty-v0.0.9_GH0.tar.gz) = 71d57a3fb3f990a5a5d1e190ae5112a8aca2fcdda9eb42770bd524076e8f371f SIZE (mattn-go-isatty-v0.0.9_GH0.tar.gz) = 3904 SHA256 (mgutz-ansi-9520e82c474b_GH0.tar.gz) = f9203c71aceb8b7ffa87181fd8f51dc69acce3d2161c4c017ea92c6840f85093 SIZE (mgutz-ansi-9520e82c474b_GH0.tar.gz) = 4876 SHA256 (mitchellh-go-homedir-v1.1.0_GH0.tar.gz) = 646671c73a84a8dfb4a5a76b80c7b63549ffefa906524d45077301bc7da76600 SIZE (mitchellh-go-homedir-v1.1.0_GH0.tar.gz) = 3362 SHA256 (mitchellh-go-wordwrap-v1.0.0_GH0.tar.gz) = 9bcf5c1f8b66594c73f606502bb3d9713d862a71ea66d8641e2a0b7bb66cb252 SIZE (mitchellh-go-wordwrap-v1.0.0_GH0.tar.gz) = 2777 SHA256 (russross-blackfriday-v1.5.2_GH0.tar.gz) = 626138a08abb8579474a555e9d45cb5260629a2c07e8834428620a650dc9f195 SIZE (russross-blackfriday-v1.5.2_GH0.tar.gz) = 75779 SHA256 (russross-blackfriday-v2.0.1_GH0.tar.gz) = 5a0f38a36b6f3b2d59b72d713451a895a4d3a4406b3533882483782e37797cff SIZE (russross-blackfriday-v2.0.1_GH0.tar.gz) = 79613 SHA256 (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 7e11964980f9b8595c17bc8970f0174621afe464920e38df7f8d77e45058388f SIZE (shurcooL-sanitized_anchor_name-v1.0.0_GH0.tar.gz) = 2143 SHA256 (spf13-cobra-v0.0.5_GH0.tar.gz) = 79226ce00e2b91306277e679d024eea6d17d0c02fc671555fd25df0c3ea07423 SIZE (spf13-cobra-v0.0.5_GH0.tar.gz) = 111126 SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 SHA256 (tj-go-css-220a796d1705_GH0.tar.gz) = 1a5030f39ad1f1a4d1889793fed1de67044e71e85b5bbce9c517573cca478cc1 SIZE (tj-go-css-220a796d1705_GH0.tar.gz) = 3020 SHA256 (vilmibm-go-termd-v0.0.4_GH0.tar.gz) = 808ccd68933290669870f02432acdcf6cea4f4de823279746f8033779f1a9206 SIZE (vilmibm-go-termd-v0.0.4_GH0.tar.gz) = 9101