diff options
author | Vladimir Pavljuchenkov (SpiderX) <spiderx@spiderx.dp.ua> | 2017-07-07 11:51:25 +0300 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-07-30 16:55:14 +0200 |
commit | b23abb4af29138ca55d7a6369089f531a05fccae (patch) | |
tree | 80aace9e8ab81c8713fc2d2f5141cb3565d37e0a /app-misc | |
parent | app-shells/peco: new ebuild (diff) | |
download | gentoo-b23abb4af29138ca55d7a6369089f531a05fccae.tar.gz gentoo-b23abb4af29138ca55d7a6369089f531a05fccae.tar.bz2 gentoo-b23abb4af29138ca55d7a6369089f531a05fccae.zip |
app-misc/pet: new ebuild
A simple command-line snippet manager for rarely used commands.
It can register command snippets, use variables in snippets,
search snippets interactively, run snippets directly,
edit snippets easily (config is just a TOML file),
sync snippets via Gist.
Package-Manager: Portage-2.3.6, Repoman-2.3.1
Closes: https://github.com/gentoo/gentoo/pull/5061
Diffstat (limited to 'app-misc')
-rw-r--r-- | app-misc/pet/Manifest | 15 | ||||
-rw-r--r-- | app-misc/pet/metadata.xml | 22 | ||||
-rw-r--r-- | app-misc/pet/pet-0.2.3.ebuild | 62 |
3 files changed, 99 insertions, 0 deletions
diff --git a/app-misc/pet/Manifest b/app-misc/pet/Manifest new file mode 100644 index 000000000000..0c30c9501bb7 --- /dev/null +++ b/app-misc/pet/Manifest @@ -0,0 +1,15 @@ +DIST github.com-BurntSushi-toml-b26d9c308763d68093482582cea63d69be07a0f0.tar.gz 41564 SHA256 bbee7300ea521e3cc5ae5d82cd2a06ff23fd68fe9de15522278de719b60fd3b4 SHA512 0a1ac02221645e06c60fdb5d162d1422fef791d101409c237a048a3d94708e3f1cf1e8e40bc390dc7cd6340f28514c2ae2d9c99a9ec2c3f969c7a8fbd5d0d232 WHIRLPOOL e2e62df39d9ee89ab7540c7a8c278c5c46eae6d71389fa2cf2b06cca852adad6cad5d8795d178b6430b0179160044f6055d2e597ef698ea8892744fd62700248 +DIST github.com-chzyer-readline-41eea22f717c616615e1e59aa06cf831f9901f35.tar.gz 35509 SHA256 0c1f8dfcedcc8a93b3ff212f6f1edd896a9a1e8c603ebf8466c9cb57815fe673 SHA512 44c70da26dff59e3ae264e9b586517327e1612d9e173d7d4a2dc50740a067bfb5af2dd9a6dceef86fa65bef719ae8dd443306078e02b2a06eefd9971896079fe WHIRLPOOL 98a7dd168efde2c4d8bb76631356767f37a5062456fec51e42cc51816d60e9b889d56217ded89437ec3b6841657fff6adaf5b74167db33f8f6b6a56671847497 +DIST github.com-fatih-color-9131ab34cf20d2f6d83fdc67168a5430d1c7dc23.tar.gz 587208 SHA256 210d4eca7ff234c0550cba4ae5749813dbd882666b308df7decdec781a2864b4 SHA512 cc36bf9807a8f50951c9da6b49ced1f3b3fff8437371e8bb0fab5f56785f2e9c0bada77efe08107405f4a72f6d5b0e0fdd34be60498bd5e52d3cabe6c6cd2a7a WHIRLPOOL a99a1b58089eb52ae9bb08364b43c57ede4c2076dacddb7526a84bb9fefbced60a37d40d628812a1e4c9767a89446cc2afd1991f944b3848dd7a6bd462d861a1 +DIST github.com-golang-appengine-170382fa85b10b94728989dfcf6cc818b335c952.tar.gz 245917 SHA256 4496c9c28231a1059579f1a564f2c75036bcef4aba7658cc58761d9c4532a68c SHA512 bf77e378486d96ac62353e2c92dae6e8e7a7daf59c26053fe66d455b2d3319101e217f0c8edb9f40ed7b00034537040a99eb96d1d9859e01794d07fd6d96d42f WHIRLPOOL cb0ba6fcf7956f9e897231bb0327c1e63deff8ffcdb25e7172b95dbec994fd851c435b1996441dca1b080a2882f1dc455cd8a0d420a9ba689b6c2c886a10c991 +DIST github.com-google-go-github-2966f2579cd93bc62410f55ba6830b3925e7629d.tar.gz 169813 SHA256 33146ac9bb7c5644643a5eeee21e7e497183386141009846e9b5f4dee2cc58ee SHA512 aaedfc089a6b1300e5c3a73fa634a982e5391463f7f594a4908cdd7c7e37c9626c7fecb2907e5bca067395fcb826001748fa1a84b3cb3ff59f8cf7006a4f6bd1 WHIRLPOOL 2bf5f036a786808464b75a34108c8980d6352b55b46670c7366c6aaa40017602edce287ded9a2510533bf462945c27bb1e220f77b2a2f77bc16fd55ef026e19e +DIST github.com-google-go-querystring-53e6ce116135b80d037921a7fdd5138cf32d7a8a.tar.gz 7489 SHA256 41058c85e34dd2a93d0e91eff75846d191838b1f4196f34381abb1c48455349d SHA512 18830dbf6e14eb7757f7bdee1405e278b6c966fc7632be3decf34ea947705d66f8c0def8060371aa1e3c90cee7ca4324e67d9926627243f987281db52ffa2bca WHIRLPOOL c3b89e292c4364301500b7b86d1bb0945a6f6958c8bd5ad97eeab82864348f307aa028f0f616ea2e0edea553144c16f4fe50a091197944e6b48f16c57e0e1076 +DIST github.com-inconshreveable-mousetrap-76626ae9c91c4f2a10f34cad8ce83ea42c93bb75.tar.gz 2292 SHA256 ff23c3cff5508d8ef29629a417a641130a6faa47a7d8578009ed85350ca78336 SHA512 287a52df6a3ac88a95aed19ea2c76524f9916d6c6713365f56d86e08bd4ac686d3e231aefd3361ccfbf8c9ff702c94b3cc9d200640f05149f1d885ff61164b55 WHIRLPOOL 7f67580fc4d7f67976cf1f25c8e55473071d354d5b35869735d9af41ac55d7b8f853979f853515deffff5010525a052b312c2e346b6a8a107911121500becdbd +DIST github.com-jroimartin-gocui-ba396278de0a3c63658bbaba13d2d2fa392edb11.tar.gz 27556 SHA256 2df4e19507daacf55e0b907a8337fc35ced0021238bf6a7da79d67a89fe02ffe SHA512 70fbbc37ddae36769fd75d16c342fb41a19f0b7f09e3291fb8579afaa7f02962f7192d9030be4b35cce0fc847275ecad88121e254d28e963efa16a99cd42b41a WHIRLPOOL 1137323f1a3f05bbef0f5d1126760d0e2002cf92f6d5ef241ab113de7b8cf38fcaccf8f86078e08c2a51dfebe5793350bbffe0be2963fd9ad02275f111e21f9e +DIST github.com-mattn-go-colorable-5411d3eea5978e6cdc258b30de592b60df6aba96.tar.gz 6670 SHA256 8753d40899afd81ade7d0666e0f9721747aa02c73c5f91d97b1669254d061d99 SHA512 a9f0dbb97686e819f1982406ae3a990c855116e60b18809ca926f040d426ca984613ce01461832369a96bcc61fb09e7e63a28d543feeccfe4935d848e8fcf543 WHIRLPOOL 19435d28c0a46e41d43027cf9af46417968857d5aec5b95e2f570f4d4a6bd6568626bd8b21c54d7769550122fec03fd34cd38f47f80eed1f54a105d16c89c920 +DIST github.com-mattn-go-isatty-57fdcb988a5c543893cc61bce354a6e24ab70022.tar.gz 3323 SHA256 9f4629a67103f50dcfd78428c438bb5bc07b4d4e5c559545f4c6209b8e7f5d08 SHA512 30ef451bf1f85c7489464e367a95a7f558c2c1a424ff49c5148393d631ceb98c58edef23fcb2b4f1bed0e7c1b3fdd8b5273874ba9304e6f29e83c0d9e127d34d WHIRLPOOL 02ec3f105efdd84266a0437b0c21d8a76e674dd8f20b80371d6b2590de684ae1502bb24588b67c1a24844fa72d8533e80858e4d9796c772b1ccf649c89f47c0b +DIST github.com-mattn-go-runewidth-9e777a8366cce605130a531d2cd6363d07ad7317.tar.gz 22390 SHA256 ef2151a69b38e647c1b18c2c6e84c34cca59e7ea07be942b331f6ff5c4133ac3 SHA512 85430512b8c199e7e2ae4bfa77aef58958211bf85148ea439cf26ffc30704d3bbbe21e1525df579a65e0262c7f8780ff0ec345fb76907f4c66bf715f10ff6e12 WHIRLPOOL f85f1e026ab9dc5b11e3020f88b5d898baa133089247bfba849c20d15d625ef14d9ae0d742e53eda51e26304dc825bb1b7ff6a3bef69e37e41bf714946d4bc52 +DIST github.com-nsf-termbox-go-b6acae516ace002cb8105a89024544a1480655a5.tar.gz 30244 SHA256 b75c0a4437459a0d6ce42f6ccffacfbc9b97dff7926b404bea953581431a91d6 SHA512 194ccef5dc9aee30422285bc752700d24b7dc05475dd5bce5023f8fe426257d0c3d75bde5c4a3681737b7604c944d964344f81c663a4ad180f9e41b70b1e81b5 WHIRLPOOL 10e79eb053d7b1f4318acd515b0779f9eabd01e7c8f41c969faafaa9a2f1e1f2b19afaeaae19c5275accdf15c1e323966d1e750b25d2eb8a8ae577a55c14011e +DIST github.com-spf13-cobra-63121c8814fc0b99184dbc1c8b7ef4fddae437c3.tar.gz 74684 SHA256 20dabd14c655df621a2a8f4dd2941486e86a11e0bfb0662431c743337945a851 SHA512 8919acb161f6f98e22f866726f3f85b4d5071782debe7117ad55c28508e469b73a2975d4660998a9df7a86472e8f65f2f103cf71c42d913d79a1bab6e86d94db WHIRLPOOL 426b216ae72bfed824ad9f3d88e1a76bb973fed420a99d60d0c5480c1cb522b28793db408b99e445734cac316996472d57fdde3f3f5e751a0828d9ae652ba941 +DIST github.com-spf13-pflag-2300d0f8576fe575f71aaa5b9bbe4e1b0dc2eb51.tar.gz 39235 SHA256 d9372c6d3483d8dd3e932463cc0c41f79ac304064da9a15bdc98b127490a593e SHA512 6bb7e34efe274e9a77fe95771ce8831a73537c5745f58ae62ec75a3744010752e1b4f3d1c35c689a41e1b0488a090224aaa3276f0981febd0838cf1a889be202 WHIRLPOOL 7da25421c7bb841fe5ba2316935255cbf54e9d5d426ef6ddc52312494305420327dc8b97afa23d8638cf9f4964ddec7a8cd4e1d914fb275c9def00c320435a89 +DIST pet-0.2.3.tar.gz 2733693 SHA256 97fbc81877da0112a8203901d30f83e165f173555f1ba97b0f28a0ebd8683040 SHA512 5207773b71ce773c974187cd86b8ddc7d1191f1baf615e035e290254d49d8c0ac4372b3ac004c0883a3fe7167447cab21e5b0711a78ce8ba57fcace975ef80a3 WHIRLPOOL acfbd9eb23cb2a65635d6995cf79410bcc7cc5ed7d23780f5d5aa8392fb346b87eb42d57b8a8820059d93a53ebd613ee5c9c26996ffb4aa732d3e26d458ae8ad diff --git a/app-misc/pet/metadata.xml b/app-misc/pet/metadata.xml new file mode 100644 index 000000000000..95a5086f8109 --- /dev/null +++ b/app-misc/pet/metadata.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>spiderx@spiderx.dp.ua</email> + <name>Vladimir Pavljuchenkov</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription lang="en"> + A simple command-line snippet manager for rarely used commands. + It is capable: register command snippets, use variables in snippets, + search snippets interactively, run snippets directly, + edit snippets easily (config is just a TOML file), + sync snippets via Gist. + </longdescription> + <upstream> + <remote-id type="github">knqyf263/pet</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-misc/pet/pet-0.2.3.ebuild b/app-misc/pet/pet-0.2.3.ebuild new file mode 100644 index 000000000000..47ede51781c5 --- /dev/null +++ b/app-misc/pet/pet-0.2.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +EGO_VENDOR=( + "github.com/BurntSushi/toml b26d9c308763d68093482582cea63d69be07a0f0" + "github.com/chzyer/readline 41eea22f717c616615e1e59aa06cf831f9901f35" + "github.com/fatih/color 9131ab34cf20d2f6d83fdc67168a5430d1c7dc23" + "github.com/google/go-github 2966f2579cd93bc62410f55ba6830b3925e7629d" + "github.com/google/go-querystring 53e6ce116135b80d037921a7fdd5138cf32d7a8a" + "github.com/inconshreveable/mousetrap 76626ae9c91c4f2a10f34cad8ce83ea42c93bb75" + "github.com/jroimartin/gocui ba396278de0a3c63658bbaba13d2d2fa392edb11" + "github.com/mattn/go-colorable 5411d3eea5978e6cdc258b30de592b60df6aba96" + "github.com/mattn/go-isatty 57fdcb988a5c543893cc61bce354a6e24ab70022" + "github.com/mattn/go-runewidth 9e777a8366cce605130a531d2cd6363d07ad7317" + "github.com/nsf/termbox-go b6acae516ace002cb8105a89024544a1480655a5" + "github.com/spf13/cobra 63121c8814fc0b99184dbc1c8b7ef4fddae437c3" + "github.com/spf13/pflag 2300d0f8576fe575f71aaa5b9bbe4e1b0dc2eb51" + "google.golang.org/appengine 170382fa85b10b94728989dfcf6cc818b335c952 github.com/golang/appengine" +) + +EGO_PN="github.com/knqyf263/${PN}" + +inherit golang-build golang-vcs-snapshot + +ARCHIVE_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +DESCRIPTION="Simple command-line snippet manager" +HOMEPAGE="https://github.com/knqyf263/pet" +SRC_URI=" + ${ARCHIVE_URI} + ${EGO_VENDOR_URI}" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="zsh-completion" + +# dev-go/toml doesn't provide sources +DEPEND=" + dev-go/glide + dev-go/go-crypto + dev-go/go-net + dev-go/go-oauth2 + dev-go/go-protobuf + dev-go/go-sys" +RDEPEND="${DEPEND} + zsh-completion? ( app-shells/zsh-completions )" + +src_install() { + dobin pet + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + doins misc/completions/zsh/_${PN} + fi +} + +pkg_postinstall() { + einfo "You should consider to install app-shells/peco to be able to use selector command" +} |