New port: net-im/6cord

Fast, lightweight opensource terminal-driven
client for Discord written in go.

WWW: https://gitlab.com/diamondburned/6cord

PR:		241469
Submitted by:	Lewis Cook <vulcan@wired.sh>
Approved by:	tz (mentor)
Differential Revision:	https://reviews.freebsd.org/D22152
This commit is contained in:
Dmitri Goutnik 2019-10-29 22:57:49 +00:00
parent 3ad5c79adb
commit 22b09eb683
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=516039
5 changed files with 235 additions and 0 deletions

93
net-im/6cord/Makefile Normal file
View file

@ -0,0 +1,93 @@
# $FreeBSD$
PORTNAME= 6cord
DISTVERSION= 9.5
CATEGORIES= net-im
MAINTAINER= vulcan@wired.sh
COMMENT= Terminal-driven Discord client
LICENSE= MPL20
LICENSE_FILE= ${WRKSRC}/LICENSE
USES= go:modules
USE_GITLAB= yes
GL_ACCOUNT= diamondburned
GL_COMMIT= 0e534fe84bf5430d99309e50b213002ae545a8a1
GL_TUPLE= diamondburned:go-w3m:1b390b8a3d1fd142bcaf77a949223cb36ef84cbc:diamondburned_go_w3m/vendor/gitlab.com/diamondburned/go-w3m \
diamondburned:ueberzug-go:7c15a5f63b064530b92411f2850d0fc7fe9059ea:diamondburned_ueberzug_go/vendor/gitlab.com/diamondburned/ueberzug-go
USE_GITHUB= nodefault
GH_TUPLE= BurntSushi:freetype-go:b763ddbfe298:burntsushi_freetype_go/vendor/github.com/BurntSushi/freetype-go \
BurntSushi:graphics-go:b43f31a4a966:burntsushi_graphics_go/vendor/github.com/BurntSushi/graphics-go \
BurntSushi:xgb:27f122750802:burntsushi_xgb/vendor/github.com/BurntSushi/xgb \
BurntSushi:xgbutil:ad855c713046:burntsushi_xgbutil/vendor/github.com/BurntSushi/xgbutil \
alecthomas:chroma:v0.6.7:alecthomas_chroma/vendor/github.com/alecthomas/chroma \
atotto:clipboard:v0.1.2:atotto_clipboard/vendor/github.com/atotto/clipboard \
danieljoos:wincred:v1.0.2:danieljoos_wincred/vendor/github.com/danieljoos/wincred \
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 \
diamondburned:discordgo:v1.2.1:diamondburned_discordgo/vendor/github.com/diamondburned/discordgo \
diamondburned:go-colorful:238d3721526c:diamondburned_go_colorful/vendor/github.com/diamondburned/go-colorful \
diamondburned:tcell:v1.1.8:diamondburned_tcell/vendor/github.com/diamondburned/tcell \
diamondburned:tview:v2.4.0:diamondburned_tview/vendor/github.com/diamondburned/tview/v2 \
disintegration:imaging:v1.6.1:disintegration_imaging/vendor/github.com/disintegration/imaging \
dlclark:regexp2:v1.2.0:dlclark_regexp2/vendor/github.com/dlclark/regexp2 \
gdamore:encoding:v1.0.0:gdamore_encoding/vendor/github.com/gdamore/encoding \
gen2brain:beeep:ece0cb67ca77:gen2brain_beeep/vendor/github.com/gen2brain/beeep \
go-test:deep:v1.0.3:go_test_deep/vendor/github.com/go-test/deep \
go-toast:toast:0a84660828b2:go_toast_toast/vendor/gopkg.in/toast.v1 \
go-yaml:yaml:v2.2.4:go_yaml_yaml/vendor/gopkg.in/yaml.v2 \
gobwas:httphead:2c6c146eadee:gobwas_httphead/vendor/github.com/gobwas/httphead \
gobwas:pool:v0.2.0:gobwas_pool/vendor/github.com/gobwas/pool \
gobwas:ws:v1.0.2:gobwas_ws/vendor/github.com/gobwas/ws \
godbus:dbus:v4.1.0:godbus_dbus/vendor/github.com/godbus/dbus \
golang:crypto:87dc89f01550:golang_crypto/vendor/golang.org/x/crypto \
golang:image:e7c1f5e7dbb8:golang_image/vendor/golang.org/x/image \
golang:sys:b09406accb47:golang_sys/vendor/golang.org/x/sys \
golang:text:v0.3.2:golang_text/vendor/golang.org/x/text \
gopherjs:gopherjs:d3ddacdb130f:gopherjs_gopherjs/vendor/github.com/gopherjs/gopherjs \
gopherjs:gopherwasm:v1.1.0:gopherjs_gopherwasm/vendor/github.com/gopherjs/gopherwasm \
gorilla:websocket:v1.4.1:gorilla_websocket/vendor/github.com/gorilla/websocket \
hashicorp:go-cleanhttp:v0.5.1:hashicorp_go_cleanhttp/vendor/github.com/hashicorp/go-cleanhttp \
hashicorp:go-hclog:v0.9.2:hashicorp_go_hclog/vendor/github.com/hashicorp/go-hclog \
hashicorp:go-retryablehttp:v0.6.2:hashicorp_go_retryablehttp/vendor/github.com/hashicorp/go-retryablehttp \
jonas747:gojay:b3bd5c8fcd50:jonas747_gojay/vendor/github.com/jonas747/gojay \
mattn:go-isatty:v0.0.10:mattn_go_isatty/vendor/github.com/mattn/go-isatty \
mattn:go-runewidth:v0.0.4:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
mattn:go-sixel:v0.0.1:mattn_go_sixel/vendor/github.com/mattn/go-sixel \
mattn:go-tty:523744f04859:mattn_go_tty/vendor/github.com/mattn/go-tty \
nu7hatch:gouuid:179d4d0c4d8d:nu7hatch_gouuid/vendor/github.com/nu7hatch/gouuid \
pelletier:go-toml:v1.5.0:pelletier_go_toml/vendor/github.com/pelletier/go-toml \
pkg:errors:v0.8.1:pkg_errors/vendor/github.com/pkg/errors \
sahilm:fuzzy:v0.1.0:sahilm_fuzzy/vendor/github.com/sahilm/fuzzy \
soniakeys:quant:v1.0.0:soniakeys_quant/vendor/github.com/soniakeys/quant \
stevenroose:gonfig:v0.1.4:stevenroose_gonfig/vendor/github.com/stevenroose/gonfig \
tadvi:systray:11a2b8fa57af:tadvi_systray/vendor/github.com/tadvi/systray \
valyala:bytebufferpool:v1.0.0:valyala_bytebufferpool/vendor/github.com/valyala/bytebufferpool \
valyala:fasttemplate:v1.1.0:valyala_fasttemplate/vendor/github.com/valyala/fasttemplate \
zalando:go-keyring:62750a1ff80d:zalando_go_keyring/vendor/github.com/zalando/go-keyring
SUB_FILES= pkg-message
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README.md
PORTEXAMPLES= 6cord.toml
OPTIONS_DEFINE= DOCS EXAMPLES
EXAMPLES_DESC= Install example 6cord configuration file
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} \
${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTEXAMPLES} \
${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>

105
net-im/6cord/distinfo Normal file
View file

@ -0,0 +1,105 @@
TIMESTAMP = 1572087003
SHA256 (BurntSushi-freetype-go-b763ddbfe298_GH0.tar.gz) = 0c24b0d8afa6970de8a4550e71d0facb6bf29d0a5bda5e8ca471436d3b82e20e
SIZE (BurntSushi-freetype-go-b763ddbfe298_GH0.tar.gz) = 397398
SHA256 (BurntSushi-graphics-go-b43f31a4a966_GH0.tar.gz) = c56fddcf47ce0ceb235ed4c197440767ff0ef22d5ca2e36286c277b51ce472c1
SIZE (BurntSushi-graphics-go-b43f31a4a966_GH0.tar.gz) = 1862315
SHA256 (BurntSushi-xgb-27f122750802_GH0.tar.gz) = 648bec25f6f211ff8e990052fb11c3b5cb47766b5510c1c8e2e961791a74970a
SIZE (BurntSushi-xgb-27f122750802_GH0.tar.gz) = 205066
SHA256 (BurntSushi-xgbutil-ad855c713046_GH0.tar.gz) = 215d7f226a821a48ae84b4c2f10d28d7c57f256ed0fb29a1d95e132709715965
SIZE (BurntSushi-xgbutil-ad855c713046_GH0.tar.gz) = 194213
SHA256 (alecthomas-chroma-v0.6.7_GH0.tar.gz) = ac23e6b649929d093f2ad163629bc5f30b293ddf4d48d20824f97a512186dcb1
SIZE (alecthomas-chroma-v0.6.7_GH0.tar.gz) = 397026
SHA256 (atotto-clipboard-v0.1.2_GH0.tar.gz) = 84704a60eb4de90eaebe6e8cbfab30bb53d103c26c25560d67d13469fd17934e
SIZE (atotto-clipboard-v0.1.2_GH0.tar.gz) = 4478
SHA256 (danieljoos-wincred-v1.0.2_GH0.tar.gz) = f97d313ccb14d292a4446c66762f257115edc1c26f68f5395bb3f242d26cf7f3
SIZE (danieljoos-wincred-v1.0.2_GH0.tar.gz) = 8485
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 (diamondburned-discordgo-v1.2.1_GH0.tar.gz) = 9d5cd7764449f654c116bac532c83c6bfc1e0528589236af19c4222f36121d5e
SIZE (diamondburned-discordgo-v1.2.1_GH0.tar.gz) = 144915
SHA256 (diamondburned-go-colorful-238d3721526c_GH0.tar.gz) = a08f2ee4892cab80615a570ab218fc95262ae5a9d5dfc1bcd30f61fd9df94aab
SIZE (diamondburned-go-colorful-238d3721526c_GH0.tar.gz) = 430467
SHA256 (diamondburned-tcell-v1.1.8_GH0.tar.gz) = 7c99b8f1eccca3bc19a876bfa9905da0ec87b9267efc918aff4e7631a32c1965
SIZE (diamondburned-tcell-v1.1.8_GH0.tar.gz) = 875459
SHA256 (diamondburned-tview-v2.4.0_GH0.tar.gz) = fcf2aef157465608449d1a42291c9e441fb50b7f34b53823d0bd247e63cbd042
SIZE (diamondburned-tview-v2.4.0_GH0.tar.gz) = 2268437
SHA256 (disintegration-imaging-v1.6.1_GH0.tar.gz) = fe7f83cde5f0274f707b251d260288cb646d9b238cf9880100292d15d16c2223
SIZE (disintegration-imaging-v1.6.1_GH0.tar.gz) = 2212278
SHA256 (dlclark-regexp2-v1.2.0_GH0.tar.gz) = 9b4d25630d0ce86bcd518d79ce47365a84c7c75de2334b2708f1bddcc1df47fe
SIZE (dlclark-regexp2-v1.2.0_GH0.tar.gz) = 204926
SHA256 (gdamore-encoding-v1.0.0_GH0.tar.gz) = 8fb8593a69cd86f16233d63dd6d74181136ec8f22900c509e961a25eb4b2e013
SIZE (gdamore-encoding-v1.0.0_GH0.tar.gz) = 10886
SHA256 (gen2brain-beeep-ece0cb67ca77_GH0.tar.gz) = a6afabcba45e3917cf583b7e16159ee6a5920c465326c796bee04100e4ed47b3
SIZE (gen2brain-beeep-ece0cb67ca77_GH0.tar.gz) = 19098
SHA256 (go-test-deep-v1.0.3_GH0.tar.gz) = f480aa35e92d4a400aef6fab74a8b8a1cb726efefd8ec520a8e1fd1ef7b3c659
SIZE (go-test-deep-v1.0.3_GH0.tar.gz) = 8627
SHA256 (go-toast-toast-0a84660828b2_GH0.tar.gz) = 94f9c0b43794aa2adb134fb886d39e6aa0209d0f6fda6cdb0573828711a3bdf2
SIZE (go-toast-toast-0a84660828b2_GH0.tar.gz) = 213479
SHA256 (go-yaml-yaml-v2.2.4_GH0.tar.gz) = 9004c9709200d52ef6e5c69af3f71f3adb1a2b7e884ea7597f306bf54b1f007c
SIZE (go-yaml-yaml-v2.2.4_GH0.tar.gz) = 72209
SHA256 (gobwas-httphead-2c6c146eadee_GH0.tar.gz) = 3c53d16746cb6f420a3f3f5bf1bb62afcd3f67df78b974bf9180ba488a9dd7bf
SIZE (gobwas-httphead-2c6c146eadee_GH0.tar.gz) = 17105
SHA256 (gobwas-pool-v0.2.0_GH0.tar.gz) = 6c4f7ab93586a9a8ca28dc3dcf7cb5bfeaf8580274d7077897800c3b00c6fa2a
SIZE (gobwas-pool-v0.2.0_GH0.tar.gz) = 7309
SHA256 (gobwas-ws-v1.0.2_GH0.tar.gz) = 955f8d943c3b6c29daf04f980818ad7a1a75e03d483cb2cef885148d44203a32
SIZE (gobwas-ws-v1.0.2_GH0.tar.gz) = 69975
SHA256 (godbus-dbus-v4.1.0_GH0.tar.gz) = e35dd6031febb2b550b765da602a6e8eaa6a45c501af7370f66d7710a23c501d
SIZE (godbus-dbus-v4.1.0_GH0.tar.gz) = 53466
SHA256 (golang-crypto-87dc89f01550_GH0.tar.gz) = d81e26d345c6cd9f132fd69547b14200603d6f3b50622ebceace32dfe456339b
SIZE (golang-crypto-87dc89f01550_GH0.tar.gz) = 1709204
SHA256 (golang-image-e7c1f5e7dbb8_GH0.tar.gz) = 424ce3674771f00cc1112826e745efb121bc378bd9e68eac33bbf2198451ed1e
SIZE (golang-image-e7c1f5e7dbb8_GH0.tar.gz) = 4895813
SHA256 (golang-sys-b09406accb47_GH0.tar.gz) = 732651ee709d3443e992f716796c5dac7cbc29a345a8ffe3fb80f505c93503d2
SIZE (golang-sys-b09406accb47_GH0.tar.gz) = 1496780
SHA256 (golang-text-v0.3.2_GH0.tar.gz) = 0b9309698f5708531c5377ab1e29b423a6d9e20c55a8d386c3b8283428212f22
SIZE (golang-text-v0.3.2_GH0.tar.gz) = 7168069
SHA256 (gopherjs-gopherjs-d3ddacdb130f_GH0.tar.gz) = 3b4f59f29675886016e12c5eb6d5ceb68050b081713656d2628aa802ebefb774
SIZE (gopherjs-gopherjs-d3ddacdb130f_GH0.tar.gz) = 226874
SHA256 (gopherjs-gopherwasm-v1.1.0_GH0.tar.gz) = 40abdf209f724d241f78c0779cbe6b924992997359f98abfcabab82aa1d65e1d
SIZE (gopherjs-gopherwasm-v1.1.0_GH0.tar.gz) = 5943
SHA256 (gorilla-websocket-v1.4.1_GH0.tar.gz) = 9e5bd337d58a978bf4072767252ddb394b53e2b459697633794abd96e8eb3fa6
SIZE (gorilla-websocket-v1.4.1_GH0.tar.gz) = 54218
SHA256 (hashicorp-go-cleanhttp-v0.5.1_GH0.tar.gz) = 24dedefe5edc4698dfa7e15a472369078a3447e8096e6d856549341c873c4a0b
SIZE (hashicorp-go-cleanhttp-v0.5.1_GH0.tar.gz) = 8069
SHA256 (hashicorp-go-hclog-v0.9.2_GH0.tar.gz) = 9655445e419eebcb883369b7771b6261b4fe945ff90ecc3ec8763a11968d66e5
SIZE (hashicorp-go-hclog-v0.9.2_GH0.tar.gz) = 26486
SHA256 (hashicorp-go-retryablehttp-v0.6.2_GH0.tar.gz) = f9b1f75e2f20788e04058df265de931644dca7df82416c1499d81e3adc26d2d4
SIZE (hashicorp-go-retryablehttp-v0.6.2_GH0.tar.gz) = 16094
SHA256 (jonas747-gojay-b3bd5c8fcd50_GH0.tar.gz) = 87aaa27087e48e06842cd597938013924ca4a5fc2af52d9c709e41d03e95405c
SIZE (jonas747-gojay-b3bd5c8fcd50_GH0.tar.gz) = 165321
SHA256 (mattn-go-isatty-v0.0.10_GH0.tar.gz) = 55408e1afd78eaa112842ae2263e70703d5b5133feaa17fa477980a87a961fe7
SIZE (mattn-go-isatty-v0.0.10_GH0.tar.gz) = 4465
SHA256 (mattn-go-runewidth-v0.0.4_GH0.tar.gz) = 1973c2de25bc69c3786a00e8118f4d22aa0d040bdfe46c8c8c30419b23e53dfe
SIZE (mattn-go-runewidth-v0.0.4_GH0.tar.gz) = 19827
SHA256 (mattn-go-sixel-v0.0.1_GH0.tar.gz) = e15d81d3fb8552936ee8b5d726b84d833a891d3ab8743ea58db9f8c3612277d5
SIZE (mattn-go-sixel-v0.0.1_GH0.tar.gz) = 38299
SHA256 (mattn-go-tty-523744f04859_GH0.tar.gz) = 6783bd96beb1e52a515eb05f0db4354f33588b6d19e4abad00a7d826658d4a19
SIZE (mattn-go-tty-523744f04859_GH0.tar.gz) = 6917
SHA256 (nu7hatch-gouuid-179d4d0c4d8d_GH0.tar.gz) = 2ead616e5bb23c0c669a1485cb45f083d8d6752acc5faa5f668521b7e99ec2e1
SIZE (nu7hatch-gouuid-179d4d0c4d8d_GH0.tar.gz) = 3733
SHA256 (pelletier-go-toml-v1.5.0_GH0.tar.gz) = b09d258bf1d2f73306ee79956bb3d253034d126ca28358aa33da5c8962f68ddf
SIZE (pelletier-go-toml-v1.5.0_GH0.tar.gz) = 74885
SHA256 (pkg-errors-v0.8.1_GH0.tar.gz) = 7a428967c6fc2e80cd84a0d9469ab6bd4dbe6b13493ba6294322a933a5a7e356
SIZE (pkg-errors-v0.8.1_GH0.tar.gz) = 11009
SHA256 (sahilm-fuzzy-v0.1.0_GH0.tar.gz) = c3746896798d2cee59991f452f1d634f95eb79332bf6e8417a68caf6692ec2ce
SIZE (sahilm-fuzzy-v0.1.0_GH0.tar.gz) = 3353310
SHA256 (soniakeys-quant-v1.0.0_GH0.tar.gz) = 6656199c1599fa8b334dde6ddcf09d4147aadd52ec26668130c8fdd11f8d78eb
SIZE (soniakeys-quant-v1.0.0_GH0.tar.gz) = 11246
SHA256 (stevenroose-gonfig-v0.1.4_GH0.tar.gz) = b3802e16d3ad782c82b7ca367785633fcb61a615cdbcfa8f13e5aaed83d2ff38
SIZE (stevenroose-gonfig-v0.1.4_GH0.tar.gz) = 21226
SHA256 (tadvi-systray-11a2b8fa57af_GH0.tar.gz) = c7a2e5733693597e643460a6d30f1680c5d294b84a6133ede577e1fa73e176e3
SIZE (tadvi-systray-11a2b8fa57af_GH0.tar.gz) = 25788
SHA256 (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 089013e3429ebe7fd2bc3527f003bf3f3f639891e5d8ba6a56010e3671465e1f
SIZE (valyala-bytebufferpool-v1.0.0_GH0.tar.gz) = 5025
SHA256 (valyala-fasttemplate-v1.1.0_GH0.tar.gz) = 5f337a17ad5ac414c4ac4779860a4940e036a8c627e6603844adaded28a7ddf4
SIZE (valyala-fasttemplate-v1.1.0_GH0.tar.gz) = 7229
SHA256 (zalando-go-keyring-62750a1ff80d_GH0.tar.gz) = e1742255abd0a1f1852e5e8076fdc2bf3d5775b6335f208fe76968190c44a3e8
SIZE (zalando-go-keyring-62750a1ff80d_GH0.tar.gz) = 9516
SHA256 (diamondburned-6cord-0e534fe84bf5430d99309e50b213002ae545a8a1_GL0.tar.gz) = 17862c172b6c10daac4ae01e0732b94a0ce42acbe124a5ea06286e5ea53e9364
SIZE (diamondburned-6cord-0e534fe84bf5430d99309e50b213002ae545a8a1_GL0.tar.gz) = 546923
SHA256 (diamondburned-go-w3m-1b390b8a3d1fd142bcaf77a949223cb36ef84cbc_GL0.tar.gz) = a6954be27d42948b778e6dd292d15b3c37f48add69046f4015d5c336fcf4f076
SIZE (diamondburned-go-w3m-1b390b8a3d1fd142bcaf77a949223cb36ef84cbc_GL0.tar.gz) = 538561
SHA256 (diamondburned-ueberzug-go-7c15a5f63b064530b92411f2850d0fc7fe9059ea_GL0.tar.gz) = dcf62f5f0a8c3e68e3f197d0781a8c35644f996c5f9dd90a4f3f429874ca2607
SIZE (diamondburned-ueberzug-go-7c15a5f63b064530b92411f2850d0fc7fe9059ea_GL0.tar.gz) = 32901

View file

@ -0,0 +1,32 @@
[
{ type: install
message: <<EOM
6cord was successfully installed.
Example configuration:
======================
If you want a persistent login, copy the configuration file to your home directory:
mkdir -p ~/.config/6cord # Create the config directory if non-existent
cp %%EXAMPLESDIR%%/6cord.toml ~/.config/6cord
From there, you can make adjustments to the 6cord.toml configuration file.
It's suggested you replace the token value, rather than use your Discord email
and plain-text password. You will no longer need to provide the '-t' (token), 'u'
(username) or '-p' (password) flag when starting 6cord, depending on the values
you provided in the configuration.
Alternatively, you can use the GNOME keyring (if applicable to you) and the token
will be stored securely. This can be used by running 6cord without any arguments.
For more information, read the full help-page by running:
6cord -t
Or by going to the repo at:
https://gitlab.com/diamondburned/6cord
EOM
}
]

4
net-im/6cord/pkg-descr Normal file
View file

@ -0,0 +1,4 @@
Fast, lightweight opensource terminal-driven
client for Discord written in go.
WWW: https://gitlab.com/diamondburned/6cord

View file

@ -3,6 +3,7 @@
COMMENT = Instant messaging
SUBDIR += 6cord
SUBDIR += centerim
SUBDIR += centerim-devel
SUBDIR += chattahoochie