summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys-apps/go-tldr/Manifest25
-rw-r--r--sys-apps/go-tldr/go-tldr-20200111.ebuild66
-rw-r--r--sys-apps/go-tldr/metadata.xml18
3 files changed, 109 insertions, 0 deletions
diff --git a/sys-apps/go-tldr/Manifest b/sys-apps/go-tldr/Manifest
new file mode 100644
index 0000000..4465106
--- /dev/null
+++ b/sys-apps/go-tldr/Manifest
@@ -0,0 +1,25 @@
+DIST github.com-alecthomas-kingpin-v2.2.6.tar.gz 44383 BLAKE2B 91841e6353af639c9d1ad4ecb0fec797ba1d497c223c0d457e1999dc7560a84e1d75f209f5a18386874a499939c5c7d6a450ed61ebf265b6706077131fda486c SHA512 09c6bb5782639efc7068ed7606fe22c463b2397dc95a89c27ba567a58da10660bfea60d7836b63dcedf7db702f79fe7247575c33a503990f5ba6ca92e29b06b3
+DIST github.com-alecthomas-template-a0175ee3bccc.tar.gz 55291 BLAKE2B fbd48545b6a5809d210629ca3aeb03c366051601d5b2f7718f79a96ec18fa09f18922c1a3ffcbac3abcd9b8955871b5bb4c71c23a1839cf7f17d8372bc3478fe SHA512 5ca546170725c3bdd4d9b27ca3976d6dc6376be8db685e6e26cfaef4a51560f78702b7babbe5ed0b2d934d0c32867bc69b11ae757071dc143a4453e6e7ffabdf
+DIST github.com-alecthomas-units-2efee857e7cf.tar.gz 3442 BLAKE2B bb3a4acac34764b249cbec5f21fd260ab6dea6810183d12e13943657037903b874a209686b6913e8529a578cec4fb364adad475577c28456bf92add7f5ac9498 SHA512 855f15eeb83bdc16981694f522aa1e200a3857ed11ae87fca9b0cc70734eac76f5082bc3ed92f843b818da14b58dc921dbb1aed4ea35de056c087a64b7e25fe4
+DIST github.com-c-bata-go-prompt-v0.2.3.tar.gz 39186 BLAKE2B 1b825f598fa65dbf029f97b231f33b083c7d8badf62e21ad6e63f766c908249d196de54198ffa28d3c529a8076d45790aa79d1719ae884b530326dc021cc0882 SHA512 9c19f7d85a42d6267735f92c331b906e870e72d0eda5f21559e1a1385e5803f60b215aa6c09bb34ca2d82adc4d878e63aefc4a6f4ac954941f8a104be21b0857
+DIST github.com-emirpasic-gods-v1.12.0.tar.gz 76825 BLAKE2B 55afe6d6834341dadfc9a159a20b4154665babfb4484440d25c1e67dd01e2e459f692932da12ffa8fe94ce4afe07c5501f45677bca6c5f3c287ef1144f9f9c44 SHA512 7dd24708aaf5d45f9a3b945d337291f3292fef2ade9fd479326bdfa27b359043c2ff2c0e257151707b2f23ee7e104abc4604a2dac81bf91e526723b29b360830
+DIST github.com-fatih-color-v1.7.0.tar.gz 816449 BLAKE2B f006f51cbd1a0288380b339d7d2b493e447aa1e6bd783f11de5670d4db6ff8c1463cbe957a04127c1f24186a9362be8c40ecdf4394cbbc0e2c6c2cb598c012ac SHA512 ee5668ce828ad3e5461c54d971aee4b10a578f697717010d60fdda641948430816e74580563dfea6a4c66a9840175ff5b63c2ca9cf1af213cfac5be7b8ddac36
+DIST github.com-go-warnings-warnings-v0.1.2.tar.gz 3769 BLAKE2B 8947385b0db67df1e36566bd7dc683520f14107a51b55d9d1a8be7418e4beb1fa4cb665aa5f07114f61194803ba330a101aa0a8b7e6c9e2b393c82495774b612 SHA512 7dd67fcdcd6d6b10969df3a739229ea058cabfe189c53e41a39a2a2fe00f4b4e7e16b8de3cccc34320cbbaf82c54fdf0444445d8eac88d96ee69e2132044def0
+DIST github.com-golang-crypto-4def268fd1a4.tar.gz 1693268 BLAKE2B b19803b58d5f242bca292c1b6e69b5cbeafa908077cec327e9d502576ecb2e19feb2bd131431ae0cb229cfac025eb36ece5f6ced66d0f075e233719aefde6a29 SHA512 fb3da32e55a01c4d8449ddbd9bcb3d2491d2ee9b25e42fd0bacedcd3dc5d35125ac7e57acc27fe57fba63ace43008205041a7654e681c7b91e20d4de6ee28e2d
+DIST github.com-golang-net-ca1201d0de80.tar.gz 1099752 BLAKE2B 6300e151f53e5a5886000fa82e9567d644ce0f769588f4f8e3d443208718c36ef790ebe4fecdadc9517b232cfe881c63bba215a649e429304e612af473cce0f5 SHA512 8ba27323bcfdc8f7e5ad3061906bb993c0a91a3da1812768f5652553f9f06ebb8ba35572d5512e65f7ec10363e506779cfaeb1111f1b7db95fa012b9ff64495e
+DIST github.com-golang-sys-fde4db37ae7a.tar.gz 1457524 BLAKE2B 339311cc9717e89e70d5e5d4c56500c7969a08b78eed48a27d9cad111d3d4b15fc4a4d2d6aed506d0173aea5c4fbd7eef2aab2ddb6d89b0751c1c85a62dbf453 SHA512 10d47c2b5fc004872db6e61b447d258aed143891eb7b68f4b8d3afd135511ee7138b61580c5c6cb6e4c953f640f0c581aa1a1450e42054a0c497d5e91e40ba7f
+DIST github.com-isacikgoz-gitin-v0.2.3.tar.gz 31093 BLAKE2B 4bae53b882cf43e541af755dbde9d02bbd4776c1275c02c6c4d88330df61e890aba77cc24c75e1d5eacb74a8c14b66a620d85a24ee7e8b5c795b304112e0610c SHA512 ca66808d2d5e65f0b701640e020fad3dea74a78d133e496046b9ca9a7a18176357a8966260aab9b60869362c844184f48bd7966ff9abcf46d07ff350bd152fdb
+DIST github.com-jbenet-go-context-d14ea06fba99.tar.gz 5944 BLAKE2B 18d2ec9cb208cb7844d3ffd23a64183e08d75b89bb979a0cddefc197b5db16cd9199bcd1c631bbcb607e9c009223952ad67f5c52315de358ab1a718fe5c1307d SHA512 ead2e583dd98d27fe657536b0b52296510b88dbe9a3ec4befb965a4ef0174cc3cb65b750c7004c1df21a861de66659a70426a570eb23ff05773516fc3f60ae6b
+DIST github.com-kelseyhightower-envconfig-v1.4.0.tar.gz 14349 BLAKE2B a128c056c0be857049b6332378e6db1c0c5362abe8f7d704c5b7be9cdada9071428ac0ef30cd38c6b6bf9664ff701aee2ed701999392c2c7bbd69345162e9b77 SHA512 4a11de60ccfa1deadeb62ec5590c28ca8d3139c53a85e794f507df21273bdd3203b708ddffa7f763db33facc434d844a72b27d7215c0cf39fbc3db15765c7b8c
+DIST github.com-kevinburke-ssh_config-01f96b0aa0cd.tar.gz 17345 BLAKE2B 4c66a41324e185a7e62d1a5ed1a277ccfdced682a5f1c6b357f71396b68a8e7b4d6e0577accf0053b72cde49131fca29fca5a8444c937eb0014b5e1d1a4cb97f SHA512 05d657f0461d2e652123d7ae7ccfa48fd73957d5b624a6bca730ab3ba4e673f52eeee46045a43ad7f02b465ac3c28da3492520e2303f28f8b2d3982a53e0d455
+DIST github.com-mattn-go-isatty-v0.0.9.tar.gz 3904 BLAKE2B 20178fb090805cf70ab6f98af75d4df4a049ba7a44f9023378e947e717952b985e64d640594edf8ddd63b9217f847a02f81a29e8b138159ceb2f2e3801e71d08 SHA512 3044e4fcd5cb76014b905f2c50838ee8cda6b1c865955a8504566b164cd851317e9ad69404d0125d6317be2a269584d7f72de551e4363c9c05a1b8068fa2dac3
+DIST github.com-mattn-go-runewidth-v0.0.4.tar.gz 19827 BLAKE2B d2320759711986724f1feadebac45fc809a881031122585e26ab20f5144ed89101b338e5cbd736c7183d46d63f5913e291b14e035fb00a8c1d2bba21dcd0fcf7 SHA512 3f55e7cbd66014145593910a0e0fb37d0700c8ce6f1987ebefc5806626e7e5774dbce8af914ee8039cc20d38902d5cb8254a10638de3972f22131b7a058a0e64
+DIST github.com-mitchellh-go-homedir-v1.1.0.tar.gz 3362 BLAKE2B b3388de9230439ec591042f6a319a80216c0bd7ef055f4bee42bd9020ce8104afb1d10b6105cd2a6f431f066f78af1286537236c054c3bfe15c7ee9b10e1935f SHA512 19f3341d9b343d46a215da3d9aba8e218cd4a5e22a33bb26ee296ab3764e9ab7befa7b65f05bf7e9af8b28be1f078e7da691b68c0a7b1e0c8d853de3ba53d643
+DIST github.com-pkg-term-aa71e9d9e942.tar.gz 9502 BLAKE2B 82edcd7f39a0572ba2f33a92428de10d630ef98558829f80218ec7f1e43e5b79e8766df51409a3082d807164b8a06bcd75ff64abc345c6812ac04b63459e32e6 SHA512 a90ca8b4134bf9e03d1e12c663d5d878f99b005d65324c58e569488f3d7657db2d076cf504dee081fad17b607460373ad681bc50c68bad88ff440384054b74e6
+DIST github.com-sahilm-fuzzy-v0.1.0.tar.gz 3353310 BLAKE2B 4f72510ff23fc77b9ab9faa42aa8a1ff8a2efdcefbf8bac23eaee316d74c83a2373e66888a5a76d1c655fcafc8edf76168da1993a282c22e9a2906841e89ef00 SHA512 ffc46b25976403b6a64b43e4c5ca78208d8c8e0ddee3055d2ff47b0c50e54fc7bc71fcc8f7730fae5dd6264f71cbb2aa8c60ff6dd1defd0bf8f5b1587a53c8c4
+DIST github.com-sergi-go-diff-v1.0.0.tar.gz 41609 BLAKE2B d45904bd26757c0b81310debfecc35fc20de2bc28bba487324dfd348e9f53369dc40cdc5f25cf8d07f6d8462fae5f41df606b79f28b28bbc7fc53bd5af8469e1 SHA512 aed012908610c75dbf7141ee5652d6b1b21ebf6e6a72ed88cbe32213ad8ca6ccdbfe1d42815eb8cbd98276acf75306aef21b729237746d30e24ac6dbc36552b0
+DIST github.com-src-d-gcfg-v1.4.0.tar.gz 28531 BLAKE2B 4d85d19d69331c85457acf5e5e803bbf1367b808622baf95bc461607974cdd24776e9739867fb5e15b9f1d4075c8e3670bc9188f4d38583d4677d6cba4f5e59c SHA512 e9c68c9f652401885b405cba711c925caac04aaeac7ebd810f1de142fbfdd1e1de4c840a0f26f681fd3461b1059a89edf6243a246b11562e2ec081626c94e3d2
+DIST github.com-src-d-go-billy-v4.3.2.tar.gz 28022 BLAKE2B 93234bed64b3a477b9e6f9c572accfcbd1815c61b8a21c47f0523523d32eb1e8f91ef55f7272f7d42b5a66057894aee7dfc3d1a91aa908e2a5dec3bc351d08d6 SHA512 623e92785480272a9344edeb4c15e13174ec7e429f8147653b484103331370b4400c00d054e2beff60cc6d482cc7c6b4e9e5260a6f13c676ebb4fa0445c949e7
+DIST github.com-src-d-go-git-v4.13.1.tar.gz 434955 BLAKE2B ae23ab511faf862ef48b8a6d6978031034cddb2a3800ace409c4522f76fd012a2e63669f5f7bf65ad6e8b3b8100dc85192269135270c9e60b9523d1c2fabf422 SHA512 9f41e02932a801f34be0aab0d9d31213e17499d246677b71a47f254815cef3f7f0202519eab8918eab32acc955eefb6b217cfd0fdfdb9462fae400e10c63e5bc
+DIST github.com-xanzy-ssh-agent-v0.2.1.tar.gz 7611 BLAKE2B 8a15b5ee2af446efedc7880aea748ddc2cdb1fb38bb619d4c723230de30dd9f4938eb6e3b048c90ebe603ebc14c9433a8c11f587737f77e6bd307879ac6a7de5 SHA512 3336d3e18aa6290c17330c5abbed772205496b5621e1cfa5976f60e0f4fc90e5736314e45d42a72b5075444142c767221e1dbfbf84f950a9ca8c2c02f8abf6aa
+DIST go-tldr-20200111.tar.gz 4180037 BLAKE2B 00622c19d82a7b61f3358875da34794a140df76ac5f5cb9da98e6bb968cc83a5ce947daac386f38dc486a43e2ce2d83fae97bc5c7a944180ae7b7549c00a9364 SHA512 7f8204dd5ecfefb2332414359c33b3ae9454247250c100fc01ff0a619eb5370c1a56f1ef124860322e547823a44fa8f847867fd28f68d81592424bddf98d2631
diff --git a/sys-apps/go-tldr/go-tldr-20200111.ebuild b/sys-apps/go-tldr/go-tldr-20200111.ebuild
new file mode 100644
index 0000000..afc7f53
--- /dev/null
+++ b/sys-apps/go-tldr/go-tldr-20200111.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+EGO_PN="github.com/isacikgoz/tldr"
+EGIT_COMMIT="3918253df491996b5618f2eb3de015170d63c21a"
+EGO_VENDOR=(
+ "github.com/c-bata/go-prompt v0.2.3"
+ "github.com/fatih/color v1.7.0"
+ "github.com/isacikgoz/gitin v0.2.3"
+ "github.com/kelseyhightower/envconfig v1.4.0"
+ "github.com/mattn/go-isatty v0.0.9"
+ "github.com/pkg/term aa71e9d9e942"
+ "github.com/sahilm/fuzzy v0.1.0"
+ "gopkg.in/alecthomas/kingpin.v2 v2.2.6 github.com/alecthomas/kingpin"
+ "gopkg.in/src-d/go-git.v4 v4.13.1 github.com/src-d/go-git"
+ "github.com/alecthomas/template a0175ee3bccc"
+ "github.com/alecthomas/units 2efee857e7cf"
+ "github.com/emirpasic/gods v1.12.0"
+ "github.com/jbenet/go-context d14ea06fba99"
+ "github.com/kevinburke/ssh_config 01f96b0aa0cd"
+ "github.com/mattn/go-runewidth v0.0.4"
+ "github.com/mitchellh/go-homedir v1.1.0"
+ "github.com/sergi/go-diff v1.0.0"
+ "github.com/src-d/gcfg v1.4.0"
+ "github.com/xanzy/ssh-agent v0.2.1"
+ "golang.org/x/crypto 4def268fd1a4 github.com/golang/crypto"
+ "golang.org/x/net ca1201d0de80 github.com/golang/net"
+ "golang.org/x/sys fde4db37ae7a github.com/golang/sys"
+ "gopkg.in/src-d/go-billy.v4 v4.3.2 github.com/src-d/go-billy"
+ "gopkg.in/warnings.v0 v0.1.2 github.com/go-warnings/warnings"
+)
+
+inherit golang-build golang-vcs-snapshot
+
+DESCRIPTION="fast and interactive tldr client written with go, written in GoLang"
+ARCHIVE_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
+ ${EGO_VENDOR_URI}"
+SRC_URI="${ARCHIVE_URI}"
+RESTRICT="mirror"
+
+LICENSE="MIT"
+SLOT="0/${PVR}"
+KEYWORDS="~amd64 ~x86 ~arm"
+IUSE="+pie"
+
+src_compile() {
+ # -buildmode=pie forces external linking mode, even CGO_ENABLED=0
+ # https://github.com/golang/go/issues/18968
+ use pie && local build_pie="-buildmode=pie"
+
+ local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )"
+
+ set -- env GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ GOCACHE="${T}/go-cache" \
+ CGO_ENABLED=0 \
+ GO111MODULE=off \
+ go install -v -work -x ${build_flags} ${EGO_PN}/cmd/tldr
+ echo "$@"
+ "$@" || die
+}
+
+src_install() {
+ dobin bin/*
+}
diff --git a/sys-apps/go-tldr/metadata.xml b/sys-apps/go-tldr/metadata.xml
new file mode 100644
index 0000000..98e2563
--- /dev/null
+++ b/sys-apps/go-tldr/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>pigfoot@gmail.com</email>
+ <name>Chen, Chih-Chia</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">isacikgoz/tldr</remote-id>
+ <bugs-to>https://github.com/isacikgoz/tldr/issues</bugs-to>
+ <doc>https://github.com/isacikgoz/tldr</doc>
+ </upstream>
+ <longdescription lang="en">
+ Community driven man pages improved with smart user
+ interaction. tldr++ seperates itself from any other tldr
+ client with convenient user guidance feature.
+ </longdescription>
+</pkgmetadata>