forked from gentoo/gentoo
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dev-util/shfmt: Add shfmt 3.0.0 beta 1 ebuild
shfmt is a shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and mksh. Closes: https://bugs.gentoo.org/701792 Signed-off-by: Tom Hughes <tomhughes@chromium.org>
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
DIST github.com-go-check-check-41f04d3bba15.tar.gz 31615 BLAKE2B 74b02b6fae94587bcbefdf06eabab5be328a92ed6c422ce9a2c98c4222cf5aca579508b2e986468cc59d4d6822877d18098e5d0b526de93770b7d281ecc3acd7 SHA512 c9fcbb5d90b306e6e938d80107e562e59e91d4d56c4cadfaa19ac39f9780c845206165fcf545549078365a8cb755c65e76002c2c225939bf59e978d7b2fea54d | ||
DIST github.com-golang-crypto-34f69633bfdc.tar.gz 1708027 BLAKE2B 7b52e1923b3d8b5c1bd5f9d1524bc800249473bac8e74ea7a6a10b4898a60acd152e1cc2f2f22f57dca6d1e56bff52a3b7abc4c639a319c2fa66d36cf88f347e SHA512 01e113a4c5fa6c9c1fc376db2500a226fb1b716b69f952ae83209d1a35918268f984a6c72cb0d954705de77a87b74afe97c665869a2808dad22b5edcd621da8b | ||
DIST github.com-golang-sync-cd5d95a43a6e.tar.gz 16966 BLAKE2B 59ad97951e773e4fa76a0a074420c1735f94695344e7c59e755cee9d29442fdb95988e0c23da61b56ab760cb2c5d27e2dc3896725bd7dfff187c090ffa7a01c7 SHA512 f8abb53dc65f0c498c3172832bc552f35ce37af518f925eb5cbbe859736f6bfd049bf537f3df6b5151d6322e597111bb63b69188b045909902c081b451ea07d6 | ||
DIST github.com-golang-sys-543471e840be.tar.gz 1496808 BLAKE2B 9df7928481443dcf314bb3078aaf6ebec81dabd35ed58368e56cc61e5f158089e28216a0c5270ad0c905c792679e42c4773cd4d5053c534d9eb9993b6a75b319 SHA512 5eef5ee4ec95b9451c8abc1da9c7402253635b6d4d248d525928faf291e594f3506c9d75aa7a8b7b5f1f2654f114ae88997b4ad6bde779e85f33921c6d0d85c7 | ||
DIST github.com-golang-xerrors-1b5146add898.tar.gz 12199 BLAKE2B d523f438a8b13aefd6608d390be85dfc35885b08b0519989df53a9335536814b7a57c1c275059338ff3bea232f39573e601e52d52e8a93805df55650af00adba SHA512 33cf9a1ec4689bd9a4c7e4b141a2d3640e7ce909e23d5d88d68a0876559a55bfaf589e3187383f3d8a3edccae88e8994048f995a20fe2a52bf2265a43dbf11d7 | ||
DIST github.com-kr-pretty-v0.1.0.tar.gz 8550 BLAKE2B 210bbedee436b225b678ccbc363a2feb09b6903bf459e34d0d6950333dc273db5713a828b003ad0b52da0718de38aa3665ff7be6c99b865a7766998e37e55fb9 SHA512 7a367c317043d40cfbf7fac631a286c0bbb8b45a716fe7388d6271431e354b3913505398b8ccf7ffbb01abf71f04216738936a4282c3c9645e26c51b7692e820 | ||
DIST github.com-mvdan-editorconfig-890940e3f00e.tar.gz 9248 BLAKE2B 01735e4bbefa45ebb45bec4901573cb40f7eebea08f71a464d279b80d151f79cb93931ba5482f27e152e0d4d47108c1b37001a27133c3e090f1665e431a8481b SHA512 271fa537c115b465d80aa4cb282150efbfd910d0fc391bcb30e378ec420972fec38e1c4bbc2b8a6158efc6541d03d03c9264bb4a7a80abc329e6fe4608ad161b | ||
DIST github.com-pkg-diff-531926345625.tar.gz 11597 BLAKE2B 5be0365f1a3456710e4ad2e94da6b05b33fae6c8c611c7016568c6d2d3a8257994cc658320e25a8fd5e0ef9b02f9063dc73716ce68f9aba8425f92a0aefcca54 SHA512 63f5b5c1e0df55ceaecdd1988585639c3e5bfc4624e3ae85b419d3e3015a2de6944319636b387298b89ff406878ac26894aff66dd2837a670b1f6f999bafcdc6 | ||
DIST github.com-rogpeppe-go-internal-v1.5.0.tar.gz 120356 BLAKE2B 6a76aa26ac56f7bfc114247bea0c7b7cb3e52d0e12785aad615ee1a90f2f21ea4bdeaa8428eeec707b87727aeb30b535bb5b9c24999b8433777c59c537c78693 SHA512 6b64818c17d52af4d77688596aa821cae902405befa736e3e3fd33d9ee5ddd11f89bc8ce914fc268c4ce4e683636aafd335393495d59b24ca6e2575e621d92e2 | ||
DIST github.com-stretchr-testify-v1.4.0.tar.gz 110085 BLAKE2B 258f195090cdd71f977c77fe66ac7350a10487e43332bfb4d32bcaed91e0d7a84fb206415fd8c444a36b66f30ced41a9b31a7705a3249708e242c9a7ccaef799 SHA512 7a91c120f5425a1b89239a03ef9419d44c83342665beb3362384fe6512af52c49a5f914e5bbf9725656311ff0b826146f11b7db9f4cf4c1a69ce6033169d8c2d | ||
DIST shfmt-3.0.0_beta_rc1.tar.gz 183657 BLAKE2B f5e99ac615626d9bf6329352b2f438e1c7eea640131c536b7779f459f83d2661f7ed217aa7c33b23cc557e860b0ef6476f8a273e0579c32da42f6e77b223f8b8 SHA512 81efc78a01a27c6f7fa0ebc49ed9b099e8feeb1b6135e410b83052aa0936f68f8f4aa16a4ab00362042861a82bea67ec1fee6e5d288205cc1b32a27df76f7327 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> | ||
<pkgmetadata> | ||
<!-- maintainer-needed --> | ||
<upstream> | ||
<maintainer status="active"> | ||
<email>mvdan@mvdan.cc</email> | ||
<name>Daniel Martí</name> | ||
</maintainer> | ||
<doc lang="en">https://github.com/mvdan/sh/blob/master/README.md</doc> | ||
<bugs-to>https://github.com/mvdan/sh/issues</bugs-to> | ||
</upstream> | ||
<longdescription lang="en"> | ||
A shell parser, formatter, and interpreter. Supports POSIX Shell, Bash, and | ||
mksh. | ||
</longdescription> | ||
</pkgmetadata> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 2019 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=7 | ||
|
||
inherit go-module | ||
|
||
MY_PV="${PV/_rc/}" | ||
MY_PV="${MY_PV/_/-}" | ||
|
||
DESCRIPTION="A shell parser, formatter, and interpreter (sh/bash/mksh)" | ||
HOMEPAGE="https://github.com/mvdan/sh" | ||
EGO_PN="github.com/mvdan/sh" | ||
EGO_VENDOR=( | ||
"github.com/kr/pretty v0.1.0" | ||
"github.com/pkg/diff 531926345625" | ||
"github.com/rogpeppe/go-internal v1.5.0" | ||
"github.com/stretchr/testify v1.4.0" | ||
"golang.org/x/crypto 34f69633bfdc github.com/golang/crypto" | ||
"golang.org/x/sync cd5d95a43a6e github.com/golang/sync" | ||
"golang.org/x/sys 543471e840be github.com/golang/sys" | ||
"golang.org/x/xerrors 1b5146add898 github.com/golang/xerrors" | ||
"gopkg.in/check.v1 41f04d3bba15 github.com/go-check/check" | ||
"mvdan.cc/editorconfig 890940e3f00e github.com/mvdan/editorconfig" | ||
) | ||
|
||
SRC_URI="https://github.com/mvdan/sh/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz $(go-module_vendor_uris)" | ||
|
||
S="${WORKDIR}/sh-${MY_PV}" | ||
|
||
LICENSE="BSD" | ||
SLOT="0" | ||
KEYWORDS="*" | ||
|
||
src_compile() { | ||
go build -v -work -x "./cmd/shfmt" | ||
} | ||
|
||
src_install() { | ||
go install -v -work -x "./cmd/shfmt" | ||
dobin shfmt | ||
} |