Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Nov 2019 06:16:03 -0700
From:      Adam Weinberger <adamw@adamw.org>
To:        Yuri Victorovich <yuri@freebsd.org>
Cc:        ports-committers <ports-committers@freebsd.org>, svn-ports-all <svn-ports-all@freebsd.org>,  svn-ports-head <svn-ports-head@freebsd.org>
Subject:   Re: svn commit: r517302 - in head/misc: . cheat
Message-ID:  <CAP7rwch_UpZXj780%2BBpZd0L_dFq9Rb4VzS7gFS5%2ByLRtGipsNQ@mail.gmail.com>
In-Reply-To: <201911120324.xAC3OuGK065189@repo.freebsd.org>
References:  <201911120324.xAC3OuGK065189@repo.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Nov 11, 2019 at 8:25 PM Yuri Victorovich <yuri@freebsd.org> wrote:
>
> Author: yuri
> Date: Tue Nov 12 03:24:56 2019
> New Revision: 517302
> URL: https://svnweb.freebsd.org/changeset/ports/517302
>
> Log:
>   New port: misc/cheat: Create and view interactive cheatsheets on the command-line
>
> Added:
>   head/misc/cheat/
>   head/misc/cheat/Makefile   (contents, props changed)
>   head/misc/cheat/distinfo   (contents, props changed)
>   head/misc/cheat/pkg-descr   (contents, props changed)
> Modified:
>   head/misc/Makefile

Hi Yuri,

This port is a little strange. It installs a binary that just displays
an error message about needing a config file. Perhaps pkg-message
could say how to generate that file?

Except once you generate the config file as upstream instructs, cheat
still can't find it. I'm not sure where it's actually looking for it.

Once you set the env var to point it to the config file, it just
errors out because there's no actual data files installed. The cheat
data files (https://github.com/cheat/cheatsheets) should probably be
installed along with the cheat binary.

# Adam


>
> Modified: head/misc/Makefile
> ==============================================================================
> --- head/misc/Makefile  Tue Nov 12 02:53:11 2019        (r517301)
> +++ head/misc/Makefile  Tue Nov 12 03:24:56 2019        (r517302)
> @@ -36,6 +36,7 @@
>      SUBDIR += buffer
>      SUBDIR += cave
>      SUBDIR += cdcollect
> +    SUBDIR += cheat
>      SUBDIR += chef
>      SUBDIR += chmlib
>      SUBDIR += cinnamon-translations
>
> Added: head/misc/cheat/Makefile
> ==============================================================================
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/misc/cheat/Makefile    Tue Nov 12 03:24:56 2019        (r517302)
> @@ -0,0 +1,32 @@
> +# $FreeBSD$
> +
> +PORTNAME=      cheat
> +DISTVERSION=   3.0.6
> +CATEGORIES=    misc
> +
> +MAINTAINER=    yuri@FreeBSD.org
> +COMMENT=       Create and view interactive cheatsheets on the command-line
> +
> +LICENSE=       MIT
> +LICENSE_FILE=  ${WRKSRC}/LICENSE.txt
> +
> +USES=          go:modules
> +USE_GITHUB=    yes
> +GH_TUPLE=      \
> +               alecthomas:chroma:v0.6.8:alecthomas_chroma/vendor/github.com/alecthomas/chroma \
> +               danwakefield:fnmatch:cbb64ac3d964:danwakefield_fnmatch/vendor/github.com/danwakefield/fnmatch \
> +               davecgh:go-spew:v1.1.1:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
> +               dlclark:regexp2:v1.1.6:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \
> +               docopt:docopt.go:0.6.2:docopt_docopt_go/vendor/github.com/docopt/docopt.go \
> +               go-yaml:yaml:9f9df34309c0:go_yaml_yaml/vendor/gopkg.in/yaml.v1 \
> +               go-yaml:yaml:v2.2.4:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
> +               golang:sys:543471e840be:golang_sys/vendor/golang.org/x/sys \
> +               mattn:go-colorable:v0.0.9:mattn_go_colorable/vendor/github.com/mattn/go-colorable \
> +               mattn:go-isatty:v0.0.10: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
> +GO_TARGET=     ./cmd/${PORTNAME}
> +
> +PLIST_FILES=   bin/${PORTNAME}
> +
> +.include <bsd.port.mk>
>
> Added: head/misc/cheat/distinfo
> ==============================================================================
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/misc/cheat/distinfo    Tue Nov 12 03:24:56 2019        (r517302)
> @@ -0,0 +1,25 @@
> +TIMESTAMP = 1573527632
> +SHA256 (cheat-cheat-3.0.6_GH0.tar.gz) = 405ca6372d5bf3bea9c27b32b214ac8e6971de44cbd1a605c0a6a7f0ebdea215
> +SIZE (cheat-cheat-3.0.6_GH0.tar.gz) = 1979965
> +SHA256 (alecthomas-chroma-v0.6.8_GH0.tar.gz) = b76b5ea13171f286cdb28f2942784fafa69adf8e120ed4e68cd05484428a09b1
> +SIZE (alecthomas-chroma-v0.6.8_GH0.tar.gz) = 581789
> +SHA256 (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 7ebff38d382142f9220d2cfcb4731d0ae90cdef71238c94a15c35f8aa746007f
> +SIZE (danwakefield-fnmatch-cbb64ac3d964_GH0.tar.gz) = 4955
> +SHA256 (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 7d82b9bb7291adbe7498fe946920ab3e7fc9e6cbfc3b2294693fad00bf0dd17e
> +SIZE (davecgh-go-spew-v1.1.1_GH0.tar.gz) = 42152
> +SHA256 (dlclark-regexp2-v1.1.6_GH0.tar.gz) = 81ede5b49ff46bd1c686416c52605aa4698b9dce07d011581c49a1d35b8a5239
> +SIZE (dlclark-regexp2-v1.1.6_GH0.tar.gz) = 203691
> +SHA256 (docopt-docopt.go-0.6.2_GH0.tar.gz) = bfd2816c9b1830eff84fc97fdad8fbf88ed56b6fccfe29d40c85c55e676edea9
> +SIZE (docopt-docopt.go-0.6.2_GH0.tar.gz) = 23808
> +SHA256 (go-yaml-yaml-v2.2.4_GH0.tar.gz) = 9004c9709200d52ef6e5c69af3f71f3adb1a2b7e884ea7597f306bf54b1f007c
> +SIZE (go-yaml-yaml-v2.2.4_GH0.tar.gz) = 72209
> +SHA256 (golang-sys-543471e840be_GH0.tar.gz) = 4d797f5647e0f68b313fb9663b0e4310f2d4a9dfa0d98de52902566785ea212b
> +SIZE (golang-sys-543471e840be_GH0.tar.gz) = 1494161
> +SHA256 (mattn-go-colorable-v0.0.9_GH0.tar.gz) = 703db7bd13f84446bb06a7f075cf6b21d65b828cd6831dc9069e28b564bdfb87
> +SIZE (mattn-go-colorable-v0.0.9_GH0.tar.gz) = 7593
> +SHA256 (mattn-go-isatty-v0.0.10_GH0.tar.gz) = 55408e1afd78eaa112842ae2263e70703d5b5133feaa17fa477980a87a961fe7
> +SIZE (mattn-go-isatty-v0.0.10_GH0.tar.gz) = 4465
> +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
>
> Added: head/misc/cheat/pkg-descr
> ==============================================================================
> --- /dev/null   00:00:00 1970   (empty, because file is newly added)
> +++ head/misc/cheat/pkg-descr   Tue Nov 12 03:24:56 2019        (r517302)
> @@ -0,0 +1,5 @@
> +cheat allows you to create and view interactive cheatsheets on the command-line.
> +It was designed to help remind *nix system administrators of options for
> +commands that they use frequently, but not frequently enough to remember.
> +
> +WWW: https://github.com/cheat/cheat



-- 
Adam Weinberger
adamw@adamw.org
https://www.adamw.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAP7rwch_UpZXj780%2BBpZd0L_dFq9Rb4VzS7gFS5%2ByLRtGipsNQ>