diff --git a/textproc/Makefile b/textproc/Makefile --- a/textproc/Makefile +++ b/textproc/Makefile @@ -52,6 +52,7 @@ SUBDIR += apertium SUBDIR += artha SUBDIR += asciidoc + SUBDIR += askgit SUBDIR += asm-xml SUBDIR += asm2html SUBDIR += aspell diff --git a/textproc/askgit/Makefile b/textproc/askgit/Makefile new file mode 100644 --- /dev/null +++ b/textproc/askgit/Makefile @@ -0,0 +1,59 @@ +PORTNAME= askgit +DISTVERSIONPREFIX= v +DISTVERSION= 0.3.7 +CATEGORIES= textproc + +MAINTAINER= lcook@FreeBSD.org +COMMENT= Query git repositories with SQL + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +LIB_DEPENDS= libgit2.so:devel/libgit2 + +USES= go:modules +USE_GITHUB= yes +GH_ACCOUNT= augmentable-dev +GH_TUPLE= DATA-DOG:go-sqlmock:v1.5.0:data_dog_go_sqlmock/vendor/github.com/DATA-DOG/go-sqlmock \ + asaskevich:govalidator:7a23bdc65eef:asaskevich_govalidator/vendor/github.com/asaskevich/govalidator \ + gitsight:go-vcsurl:v1.0.0:gitsight_go_vcsurl/vendor/github.com/gitsight/go-vcsurl \ + go-openapi:errors:v0.19.9:go_openapi_errors/vendor/github.com/go-openapi/errors \ + go-openapi:strfmt:v0.19.11:go_openapi_strfmt/vendor/github.com/go-openapi/strfmt \ + go-stack:stack:v1.8.0:go_stack_stack/vendor/github.com/go-stack/stack \ + golang:appengine:v1.6.7:golang_appengine/vendor/google.golang.org/appengine \ + golang:crypto:eec23a3978ad:golang_crypto/vendor/golang.org/x/crypto \ + golang:net:6772e930b67b:golang_net/vendor/golang.org/x/net \ + golang:oauth2:08078c50e5b5:golang_oauth2/vendor/golang.org/x/oauth2 \ + golang:protobuf:v1.4.3:golang_protobuf/vendor/github.com/golang/protobuf \ + golang:sync:09787c993a3a:golang_sync/vendor/golang.org/x/sync \ + golang:sys:0d417f636930:golang_sys/vendor/golang.org/x/sys \ + golang:term:2321bbc49cbf:golang_term/vendor/golang.org/x/term \ + golang:time:7e3f01d25324:golang_time/vendor/golang.org/x/time \ + google:go-github:v17.0.0:google_go_github/vendor/github.com/google/go-github \ + google:go-querystring:v1.0.0:google_go_querystring/vendor/github.com/google/go-querystring \ + inconshreveable:mousetrap:v1.0.0:inconshreveable_mousetrap/vendor/github.com/inconshreveable/mousetrap \ + jedib0t:go-pretty:v4.3.0:jedib0t_go_pretty/vendor/github.com/jedib0t/go-pretty \ + jroimartin:gocui:v0.4.0:jroimartin_gocui/vendor/github.com/jroimartin/gocui \ + libgit2:git2go:v31.4.7:libgit2_git2go_v31/vendor/github.com/libgit2/git2go/v31 \ + mattn:go-runewidth:v0.0.9:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \ + mitchellh:mapstructure:v1.4.0:mitchellh_mapstructure/vendor/github.com/mitchellh/mapstructure \ + mongodb:mongo-go-driver:v1.4.4:mongodb_mongo_go_driver/vendor/go.mongodb.org/mongo-driver \ + nsf:termbox-go:ed494de23a00:nsf_termbox_go/vendor/github.com/nsf/termbox-go \ + patrickdevivo:go-sqlite3:f024bb44eb6d:patrickdevivo_go_sqlite3/vendor/github.com/mattn/go-sqlite3 \ + protocolbuffers:protobuf-go:v1.25.0:protocolbuffers_protobuf_go/vendor/google.golang.org/protobuf \ + spf13:cobra:v1.1.1:spf13_cobra/vendor/github.com/spf13/cobra \ + spf13:pflag:v1.0.5:spf13_pflag/vendor/github.com/spf13/pflag + +GO_BUILDFLAGS= -tags sqlite_vtable,sqlite_json1,system_libgit2 +GO_TESTFLAGS= ${GO_BUILDFLAGS} + +PLIST_FILES= bin/${PORTNAME} +PORTDOCS= README.md + +OPTIONS_DEFINE= DOCS + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${STAGEDIR}${DOCSDIR} + +.include diff --git a/textproc/askgit/distinfo b/textproc/askgit/distinfo new file mode 100644 --- /dev/null +++ b/textproc/askgit/distinfo @@ -0,0 +1,61 @@ +TIMESTAMP = 1618699692 +SHA256 (augmentable-dev-askgit-v0.3.7_GH0.tar.gz) = fdc0adc6bee9ddbdc0080658fed22b64ce17418a6fddd71301301ddf53544b08 +SIZE (augmentable-dev-askgit-v0.3.7_GH0.tar.gz) = 59494 +SHA256 (DATA-DOG-go-sqlmock-v1.5.0_GH0.tar.gz) = b78616fddfcc76892aecb5344968d7f3843128b70eba6c4752f092dc992c3b98 +SIZE (DATA-DOG-go-sqlmock-v1.5.0_GH0.tar.gz) = 35521 +SHA256 (asaskevich-govalidator-7a23bdc65eef_GH0.tar.gz) = a8a0ecc0f3f23bef9886a6b798d7a61d5c4b24e1aa8065a0de0173a4b39f7f5d +SIZE (asaskevich-govalidator-7a23bdc65eef_GH0.tar.gz) = 60431 +SHA256 (gitsight-go-vcsurl-v1.0.0_GH0.tar.gz) = 56d7c23968082231ad30cac03d29220b27f90881dbe4ae04b138dc09b04b8d65 +SIZE (gitsight-go-vcsurl-v1.0.0_GH0.tar.gz) = 5972 +SHA256 (go-openapi-errors-v0.19.9_GH0.tar.gz) = 1a02020399a6e546dced9f53f10538651f5ea6187682c322c52e1e054dcab5ad +SIZE (go-openapi-errors-v0.19.9_GH0.tar.gz) = 18215 +SHA256 (go-openapi-strfmt-v0.19.11_GH0.tar.gz) = 73742bb95b596f139ddbd0d5b33475c1ef9ad6ee1375ebb535845610fdfc4d8c +SIZE (go-openapi-strfmt-v0.19.11_GH0.tar.gz) = 41131 +SHA256 (go-stack-stack-v1.8.0_GH0.tar.gz) = 3b8987e137d76f4f35db1e8005ec7fb766b68eed8cac0ca0b795ac43cd72b319 +SIZE (go-stack-stack-v1.8.0_GH0.tar.gz) = 8039 +SHA256 (golang-appengine-v1.6.7_GH0.tar.gz) = c623d81235f7c9699e299b328191d813337dd57dcc800d7afdb5130e8c321a8f +SIZE (golang-appengine-v1.6.7_GH0.tar.gz) = 333007 +SHA256 (golang-crypto-eec23a3978ad_GH0.tar.gz) = bd882536660d6b65619c9d9b9334e9a5c55557613e56e1b485323a2293dfa2f8 +SIZE (golang-crypto-eec23a3978ad_GH0.tar.gz) = 1725798 +SHA256 (golang-net-6772e930b67b_GH0.tar.gz) = fde23e272650c45d1538ff7fc0e88d3935f6bb2a45c8c4d595c0b9375301d52e +SIZE (golang-net-6772e930b67b_GH0.tar.gz) = 1251401 +SHA256 (golang-oauth2-08078c50e5b5_GH0.tar.gz) = bfeb2591bb49f3d1d40f6a82ffcfd704dfb1ad52acd48a1724ee825d6e03686c +SIZE (golang-oauth2-08078c50e5b5_GH0.tar.gz) = 64104 +SHA256 (golang-protobuf-v1.4.3_GH0.tar.gz) = 5736f943f8647362f5559689df6154f3c85d261fb088867c8a68494e2a767610 +SIZE (golang-protobuf-v1.4.3_GH0.tar.gz) = 171969 +SHA256 (golang-sync-09787c993a3a_GH0.tar.gz) = e533f53d11330b61d7e9bcbec255699992ab47636f1b45403db6f9b09c3d0aba +SIZE (golang-sync-09787c993a3a_GH0.tar.gz) = 18734 +SHA256 (golang-sys-0d417f636930_GH0.tar.gz) = c2961d0c8ba3a867d14559a67aa318a028111f17b4ac69015bcd272cbf023881 +SIZE (golang-sys-0d417f636930_GH0.tar.gz) = 1090867 +SHA256 (golang-term-2321bbc49cbf_GH0.tar.gz) = 72896f6aa3deb053da5b597ab072ba5c3540b29d0fb56f350397b7f94c010e21 +SIZE (golang-term-2321bbc49cbf_GH0.tar.gz) = 15281 +SHA256 (golang-time-7e3f01d25324_GH0.tar.gz) = fff412c562ecaba2b8e09922a6ca32f658fdd2242ae99c18bd75f9cb7427a206 +SIZE (golang-time-7e3f01d25324_GH0.tar.gz) = 9650 +SHA256 (google-go-github-v17.0.0_GH0.tar.gz) = 75e6007d9a17b91864d1ef83de75c07abafbe05d82caaf140522b94299abfb16 +SIZE (google-go-github-v17.0.0_GH0.tar.gz) = 212084 +SHA256 (google-go-querystring-v1.0.0_GH0.tar.gz) = 59fdfd4d740c85c60c35d3e09b587cfa2b435e78178ac4a23950afbece7118ed +SIZE (google-go-querystring-v1.0.0_GH0.tar.gz) = 7529 +SHA256 (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 5edc7731c819c305623568e317aa253d342be3447def97f1fa9e10eb5ad819f6 +SIZE (inconshreveable-mousetrap-v1.0.0_GH0.tar.gz) = 2290 +SHA256 (jedib0t-go-pretty-v4.3.0_GH0.tar.gz) = 563c07ce1dc3bfaf88d3dad0e965c09e449993f775f30396b2e399953ffd7294 +SIZE (jedib0t-go-pretty-v4.3.0_GH0.tar.gz) = 550932 +SHA256 (jroimartin-gocui-v0.4.0_GH0.tar.gz) = 7dbb46356f9eee2d52c68cf664f9527cb7b84e746e61cc9000566a0b9eec8dec +SIZE (jroimartin-gocui-v0.4.0_GH0.tar.gz) = 28376 +SHA256 (libgit2-git2go-v31.4.7_GH0.tar.gz) = 955be0abf0a3b87d263c88842b05764984b07daa710b6e28ea8c6facc8bb1126 +SIZE (libgit2-git2go-v31.4.7_GH0.tar.gz) = 114289 +SHA256 (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835 +SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714 +SHA256 (mitchellh-mapstructure-v1.4.0_GH0.tar.gz) = 7629b5821ec91aa7fe5a786a9af46f81c22b78946d24a978b67cbf98552a96b6 +SIZE (mitchellh-mapstructure-v1.4.0_GH0.tar.gz) = 27238 +SHA256 (mongodb-mongo-go-driver-v1.4.4_GH0.tar.gz) = 394bb580f6f83175ffbb6780117157a20c59d45198aa100ccdbf5c85618ac914 +SIZE (mongodb-mongo-go-driver-v1.4.4_GH0.tar.gz) = 5898078 +SHA256 (nsf-termbox-go-ed494de23a00_GH0.tar.gz) = a9e929b690ded436a66b4b6956094b2a3eaefc1032c82e643723f55367ffdf10 +SIZE (nsf-termbox-go-ed494de23a00_GH0.tar.gz) = 37098 +SHA256 (patrickdevivo-go-sqlite3-f024bb44eb6d_GH0.tar.gz) = 638e58700d3f33cd1c136877b481ad166aa74b9a7b9ba14bd0c815f857e01ee1 +SIZE (patrickdevivo-go-sqlite3-f024bb44eb6d_GH0.tar.gz) = 2367441 +SHA256 (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = c1c04d6e36c0d0fb6f3374197f9025d7e6df13f38a974098be020617c00fbaf2 +SIZE (protocolbuffers-protobuf-go-v1.25.0_GH0.tar.gz) = 1258804 +SHA256 (spf13-cobra-v1.1.1_GH0.tar.gz) = 9bf1769caad54bc5a8bd738ddbcceeb57a19fc3158af30e44b3bbb6b8e63ab6d +SIZE (spf13-cobra-v1.1.1_GH0.tar.gz) = 143402 +SHA256 (spf13-pflag-v1.0.5_GH0.tar.gz) = 9a2cae1f8e8ab0d2cc8ebe468e871af28d9ac0962cf0520999e3ba85f0c7b808 +SIZE (spf13-pflag-v1.0.5_GH0.tar.gz) = 50796 diff --git a/textproc/askgit/pkg-descr b/textproc/askgit/pkg-descr new file mode 100644 --- /dev/null +++ b/textproc/askgit/pkg-descr @@ -0,0 +1,10 @@ +Command-line tool for running SQL queries on git +repositories. It's meant for ad-hoc querying of +git repositories on disk through a common interface +(SQL), as an alternative to patching together various +shell commands. + +There is also preliminary support for executing queries +against the GitHub API. + +WWW: https://askgit.com