mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
www/writeas-cli: new port -- Command line client for Write.as / WriteFreely
Command line utility for publishing to any WriteFreely instance. The WriteFreely CLI is compatible with WriteFreely v0.11 or later. Features * Authenticate with any WriteFreely instance * Publish drafts * Manage multiple WriteFreely accounts on multiple instances * A stable, easy back-end for your GUI app or desktop-based workflow * Locally keeps track of any posts you make * Update and delete posts * Fetch any post by ID WWW: https://write.as/apps/cli PR: 257233
This commit is contained in:
parent
37e3e66b0d
commit
75f61e66a4
@ -2313,6 +2313,7 @@
|
||||
SUBDIR += wikicalc
|
||||
SUBDIR += wordpress
|
||||
SUBDIR += wpebackend-fdo
|
||||
SUBDIR += writeas-cli
|
||||
SUBDIR += wsdlpull
|
||||
SUBDIR += wslay
|
||||
SUBDIR += wsmake
|
||||
|
60
www/writeas-cli/Makefile
Normal file
60
www/writeas-cli/Makefile
Normal file
@ -0,0 +1,60 @@
|
||||
PORTNAME= writeas-cli
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 2.0.0-wf
|
||||
CATEGORIES= www textproc
|
||||
MASTER_SITES= https://code.as/core/socks/archive/v1.0.0.tar.gz?dummy=/:core_socks
|
||||
DISTFILES= core-socks-v1.0.0.tar.gz:core_socks
|
||||
DIST_SUBDIR= writeas
|
||||
|
||||
MAINTAINER= fuz@fuz.su
|
||||
COMMENT= Command line client for Write.as / WriteFreely
|
||||
|
||||
LICENSE= GPLv3
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
USES= go:modules
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= writeas
|
||||
GH_TUPLE= atotto:clipboard:v0.1.1:atotto_clipboard/vendor/github.com/atotto/clipboard \
|
||||
cloudfoundry:jibber_jabber:bcc4c8345a21:cloudfoundry_jibber_jabber/vendor/github.com/cloudfoundry/jibber_jabber \
|
||||
go-ini:ini:v1.39.3:go_ini_ini/vendor/gopkg.in/ini.v1 \
|
||||
golang:crypto:505ab145d0a9:golang_crypto/vendor/golang.org/x/crypto \
|
||||
golang:net:e147a9138326:golang_net/vendor/golang.org/x/net \
|
||||
golang:sys:0f9fa26af87c:golang_sys/vendor/golang.org/x/sys \
|
||||
gopherjs:gopherjs:d547d1d9531e:gopherjs_gopherjs/vendor/github.com/gopherjs/gopherjs \
|
||||
hashicorp:errwrap:v1.0.0:hashicorp_errwrap/vendor/github.com/hashicorp/errwrap \
|
||||
hashicorp:go-multierror:v1.0.0:hashicorp_go_multierror/vendor/github.com/hashicorp/go-multierror \
|
||||
howeyc:gopass:bf9dde6d0d2c:howeyc_gopass/vendor/github.com/howeyc/gopass \
|
||||
jtolds:gls:v4.2.1:jtolds_gls/vendor/github.com/jtolds/gls \
|
||||
microcosm-cc:bluemonday:v1.0.1:microcosm_cc_bluemonday/vendor/github.com/microcosm-cc/bluemonday \
|
||||
mitchellh:go-homedir:v1.0.0:mitchellh_go_homedir/vendor/github.com/mitchellh/go-homedir \
|
||||
onsi:ginkgo:v1.8.0:onsi_ginkgo/vendor/github.com/onsi/ginkgo \
|
||||
onsi:gomega:v1.5.0:onsi_gomega/vendor/github.com/onsi/gomega \
|
||||
shurcooL:sanitized_anchor_name:86672fcb3f95:shurcool_sanitized_anchor_name/vendor/github.com/shurcooL/sanitized_anchor_name \
|
||||
smartystreets:assertions:b2de0cb4f26d:smartystreets_assertions/vendor/github.com/smartystreets/assertions \
|
||||
smartystreets:goconvey:044398e4856c:smartystreets_goconvey/vendor/github.com/smartystreets/goconvey \
|
||||
urfave:cli:v1.20.0:urfave_cli/vendor/gopkg.in/urfave/cli.v1 \
|
||||
writeas:go-writeas:v2.0.2:writeas_go_writeas_v2/vendor/github.com/writeas/go-writeas/v2 \
|
||||
writeas:impart:v1.1.0:writeas_impart/vendor/github.com/writeas/impart \
|
||||
writeas:saturday:f455b05c043f:writeas_saturday/vendor/github.com/writeas/saturday \
|
||||
writeas:web-core:05f387ffa1b3:writeas_web_core/vendor/github.com/writeas/web-core
|
||||
GO_TARGET= ./cmd/wf ./cmd/writeas
|
||||
|
||||
PLIST_FILES= bin/wf bin/writeas
|
||||
PORTDOCS= */*.md
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
|
||||
post-extract:
|
||||
@${MKDIR} ${WRKSRC}/vendor/code.as/core
|
||||
@${RLN} ${WRKDIR}/socks ${WRKSRC}/vendor/code.as/core/socks
|
||||
|
||||
post-install:
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
cd ${WRKSRC}/cmd && for doc in ${PORTDOCS} ; \
|
||||
do \
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/`${DIRNAME} $$doc` ; \
|
||||
${INSTALL_MAN} $$doc ${STAGEDIR}${DOCSDIR}/`${DIRNAME} $$doc` ; \
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
51
www/writeas-cli/distinfo
Normal file
51
www/writeas-cli/distinfo
Normal file
@ -0,0 +1,51 @@
|
||||
TIMESTAMP = 1626527505
|
||||
SHA256 (writeas/core-socks-v1.0.0.tar.gz) = 9d199f31b9fcaa97b4c52483f16e226fe7b40a0014b6070788f415cff29f2c32
|
||||
SIZE (writeas/core-socks-v1.0.0.tar.gz) = 11604
|
||||
SHA256 (writeas/writeas-writeas-cli-v2.0.0-wf_GH0.tar.gz) = e70e47e3ed28f26ca2ffb12723ddbdaffdea9a6a8db5a1e8a34272c1ef8511aa
|
||||
SIZE (writeas/writeas-writeas-cli-v2.0.0-wf_GH0.tar.gz) = 44061
|
||||
SHA256 (writeas/atotto-clipboard-v0.1.1_GH0.tar.gz) = b2f4df88a251c4ef0217f48610f015ef4fc487cdcc47e709000d7bfeb48a96c3
|
||||
SIZE (writeas/atotto-clipboard-v0.1.1_GH0.tar.gz) = 4194
|
||||
SHA256 (writeas/cloudfoundry-jibber_jabber-bcc4c8345a21_GH0.tar.gz) = a460da92a75eba21a3e06f5dc2bd322c73ef7ac33eb4b50434d0ec3784f117fa
|
||||
SIZE (writeas/cloudfoundry-jibber_jabber-bcc4c8345a21_GH0.tar.gz) = 7371
|
||||
SHA256 (writeas/go-ini-ini-v1.39.3_GH0.tar.gz) = 6061066c63379b70885a01960da201ceae0e59a05a112033be69f2cde9177bb8
|
||||
SIZE (writeas/go-ini-ini-v1.39.3_GH0.tar.gz) = 34802
|
||||
SHA256 (writeas/golang-crypto-505ab145d0a9_GH0.tar.gz) = 33a4ff7a15a69640a7ce2c65ba94680643554b744c69f3ed3623bd9557c985e7
|
||||
SIZE (writeas/golang-crypto-505ab145d0a9_GH0.tar.gz) = 1644681
|
||||
SHA256 (writeas/golang-net-e147a9138326_GH0.tar.gz) = 78bd0d3278ce9d5399da988678265a2f296776e235f01a8014a349edcdd10418
|
||||
SIZE (writeas/golang-net-e147a9138326_GH0.tar.gz) = 966358
|
||||
SHA256 (writeas/golang-sys-0f9fa26af87c_GH0.tar.gz) = 4a7725e85ddaba8f2efc9b799eb00f4b3d522ea8ed9ad0ce08783febe3ec97a1
|
||||
SIZE (writeas/golang-sys-0f9fa26af87c_GH0.tar.gz) = 1202044
|
||||
SHA256 (writeas/gopherjs-gopherjs-d547d1d9531e_GH0.tar.gz) = 9f24adce5539b96eaeae86b6b6b34c3b5d4b54b5552779f1919d583ef2045378
|
||||
SIZE (writeas/gopherjs-gopherjs-d547d1d9531e_GH0.tar.gz) = 217297
|
||||
SHA256 (writeas/hashicorp-errwrap-v1.0.0_GH0.tar.gz) = 26afc0e5895c6ce87c881c5c02c682ccc9a08174a9c27ca26d4a1e72dbf78128
|
||||
SIZE (writeas/hashicorp-errwrap-v1.0.0_GH0.tar.gz) = 8346
|
||||
SHA256 (writeas/hashicorp-go-multierror-v1.0.0_GH0.tar.gz) = 5ae83eea62b2c845d41087c38c878741337e092db114b9a7ca9aebe5bf1dd264
|
||||
SIZE (writeas/hashicorp-go-multierror-v1.0.0_GH0.tar.gz) = 10066
|
||||
SHA256 (writeas/howeyc-gopass-bf9dde6d0d2c_GH0.tar.gz) = 4f69179eda2622017750b469868d78c72e9c83da8c8af4d06d758b0876515dfb
|
||||
SIZE (writeas/howeyc-gopass-bf9dde6d0d2c_GH0.tar.gz) = 11290
|
||||
SHA256 (writeas/jtolds-gls-v4.2.1_GH0.tar.gz) = 955860227f00b82bfe0e877f6100832c47ff723913d8a58baccdead73d43d1e7
|
||||
SIZE (writeas/jtolds-gls-v4.2.1_GH0.tar.gz) = 7296
|
||||
SHA256 (writeas/microcosm-cc-bluemonday-v1.0.1_GH0.tar.gz) = 314b7000f74a712d9113519278816d535e9936fe4866f250fef7f8b5a830c983
|
||||
SIZE (writeas/microcosm-cc-bluemonday-v1.0.1_GH0.tar.gz) = 137089
|
||||
SHA256 (writeas/mitchellh-go-homedir-v1.0.0_GH0.tar.gz) = ab2c930759869efe565a658b86e1a38ca2e2a0ea71635601ddcff1171aaff10a
|
||||
SIZE (writeas/mitchellh-go-homedir-v1.0.0_GH0.tar.gz) = 3247
|
||||
SHA256 (writeas/onsi-ginkgo-v1.8.0_GH0.tar.gz) = 7766de932101d24078d3991a5ee3756b9818ce46ec2d27476b3141e34a10784f
|
||||
SIZE (writeas/onsi-ginkgo-v1.8.0_GH0.tar.gz) = 133392
|
||||
SHA256 (writeas/onsi-gomega-v1.5.0_GH0.tar.gz) = 0917640bfe840dee0ccad8aea0f5b05da2195864981e749f8840db257a95144b
|
||||
SIZE (writeas/onsi-gomega-v1.5.0_GH0.tar.gz) = 88642
|
||||
SHA256 (writeas/shurcooL-sanitized_anchor_name-86672fcb3f95_GH0.tar.gz) = 929558a69155424318ae31b387738eeab1c54e9e71312621173bd9375c2dd061
|
||||
SIZE (writeas/shurcooL-sanitized_anchor_name-86672fcb3f95_GH0.tar.gz) = 2062
|
||||
SHA256 (writeas/smartystreets-assertions-b2de0cb4f26d_GH0.tar.gz) = f9a1971c377083f255d18faedf07aba988e9d14780c5ef398db15c6f2281c4d6
|
||||
SIZE (writeas/smartystreets-assertions-b2de0cb4f26d_GH0.tar.gz) = 52225
|
||||
SHA256 (writeas/smartystreets-goconvey-044398e4856c_GH0.tar.gz) = 097f2f702e5dfe5d54d73b25f784fd2510ce12f3f6d87656d5948dfa68c0ad55
|
||||
SIZE (writeas/smartystreets-goconvey-044398e4856c_GH0.tar.gz) = 1477095
|
||||
SHA256 (writeas/urfave-cli-v1.20.0_GH0.tar.gz) = c5ba59f5742c99618b5ba34211699287cd3e80c41488bb267035ce0163e3bade
|
||||
SIZE (writeas/urfave-cli-v1.20.0_GH0.tar.gz) = 58397
|
||||
SHA256 (writeas/writeas-go-writeas-v2.0.2_GH0.tar.gz) = 62e304ddfb320c3bed4a258dd0667a7aff056ec144af13d35e54601fd2733215
|
||||
SIZE (writeas/writeas-go-writeas-v2.0.2_GH0.tar.gz) = 8494
|
||||
SHA256 (writeas/writeas-impart-v1.1.0_GH0.tar.gz) = 0b104c4e727a83bf3afff8d4f3fa0154818a14c9247ed0bf96ce1021631ca314
|
||||
SIZE (writeas/writeas-impart-v1.1.0_GH0.tar.gz) = 3016
|
||||
SHA256 (writeas/writeas-saturday-f455b05c043f_GH0.tar.gz) = 50af896f892aff0a60bf157bdb00caed27fe5755b8506d4f7231c6423974baeb
|
||||
SIZE (writeas/writeas-saturday-f455b05c043f_GH0.tar.gz) = 72431
|
||||
SHA256 (writeas/writeas-web-core-05f387ffa1b3_GH0.tar.gz) = ef4ae7dade49d9290891bf6d2f417960887bf86ee67d35558e315661c8728a10
|
||||
SIZE (writeas/writeas-web-core-05f387ffa1b3_GH0.tar.gz) = 32073
|
19
www/writeas-cli/files/patch-go.mod
Normal file
19
www/writeas-cli/files/patch-go.mod
Normal file
@ -0,0 +1,19 @@
|
||||
--- go.mod.orig 2021-07-17 13:10:12 UTC
|
||||
+++ go.mod
|
||||
@@ -1,5 +1,7 @@
|
||||
module github.com/writeas/writeas-cli
|
||||
|
||||
+go 1.16
|
||||
+
|
||||
require (
|
||||
code.as/core/socks v1.0.0
|
||||
github.com/atotto/clipboard v0.1.1
|
||||
@@ -20,7 +22,7 @@ require (
|
||||
github.com/writeas/web-core v0.0.0-20181111165528-05f387ffa1b3
|
||||
golang.org/x/crypto v0.0.0-20181203042331-505ab145d0a9 // indirect
|
||||
golang.org/x/net v0.0.0-20181217023233-e147a9138326 // indirect
|
||||
- golang.org/x/sys v0.0.0-20181213200352-4d1cda033e06 // indirect
|
||||
+ golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c // indirect
|
||||
gopkg.in/ini.v1 v1.39.3
|
||||
gopkg.in/urfave/cli.v1 v1.20.0
|
||||
)
|
11
www/writeas-cli/files/patch-go.sum
Normal file
11
www/writeas-cli/files/patch-go.sum
Normal file
@ -0,0 +1,11 @@
|
||||
--- go.sum.orig 2021-07-17 13:10:15 UTC
|
||||
+++ go.sum
|
||||
@@ -57,6 +57,8 @@ golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/g
|
||||
golang.org/x/sys v0.0.0-20180909124046-d0be0721c37e/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
golang.org/x/sys v0.0.0-20181213200352-4d1cda033e06 h1:0oC8rFnE+74kEmuHZ46F6KHsMr5Gx2gUQPuNz28iQZM=
|
||||
golang.org/x/sys v0.0.0-20181213200352-4d1cda033e06/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
|
||||
+golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c h1:F1jZWGFhYfh0Ci55sIpILtKKK8p3i2/krTr0H1rg74I=
|
||||
+golang.org/x/sys v0.0.0-20210630005230-0f9fa26af87c/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg=
|
||||
golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
|
||||
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
|
14
www/writeas-cli/pkg-descr
Normal file
14
www/writeas-cli/pkg-descr
Normal file
@ -0,0 +1,14 @@
|
||||
Command line utility for publishing to any WriteFreely instance.
|
||||
The WriteFreely CLI is compatible with WriteFreely v0.11 or later.
|
||||
|
||||
Features
|
||||
|
||||
* Authenticate with any WriteFreely instance
|
||||
* Publish drafts
|
||||
* Manage multiple WriteFreely accounts on multiple instances
|
||||
* A stable, easy back-end for your GUI app or desktop-based workflow
|
||||
* Locally keeps track of any posts you make
|
||||
* Update and delete posts
|
||||
* Fetch any post by ID
|
||||
|
||||
WWW: https://write.as/apps/cli
|
Loading…
Reference in New Issue
Block a user