mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-18 03:23:20 -04:00
dev-util/shfmt: drop ebuilds
`dev-util/sh` is now available in ::gentoo Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
This commit is contained in:
@@ -1,2 +0,0 @@
|
||||
DIST shfmt-3.5.1-deps.tar.xz 3117092 BLAKE2B 13e85d2b737f80f1c90201e7d035fb01bb624e396ccf292d00e5c8c19da8209c69ecff88ce334ba0de8e7bbf4243be58cbcea21ee99166285f2738f0036862c9 SHA512 24791e7798fdfe69e76117785b5d469742f680c2ed7d186cb580e55776e5e011ab907be882f6394b9f84f82717611a28f9e72ec5280d6a9d7e89f629bb4a378a
|
||||
DIST shfmt-3.5.1.tar.gz 222608 BLAKE2B a81af092d0f8d0ee7c05240d816a99f044bce3e35d242a815a238a27893db5bfc320efc4a0237ca9ecfa0276e4687152c87f6e0170f5326e2d0a8604f94f6adb SHA512 fd1084921254b70376b3ac47b97e2108308252fa6bd23aff1e59aaefb45a7e01c1738a46ae6f4eb255ecade77fb9659fbc8184d2473e8e4f70e520757bad506d
|
||||
@@ -1,14 +0,0 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
|
||||
<pkgmetadata>
|
||||
<maintainer type="person">
|
||||
<email>ran.dall@icloud.com</email>
|
||||
<name>Randall Vasquez</name>
|
||||
</maintainer>
|
||||
<longdescription lang="en">
|
||||
A shell parser, formatter, and interpreter with bash support; includes shfmt. Supports POSIX Shell, Bash, and mksh.
|
||||
</longdescription>
|
||||
<upstream>
|
||||
<remote-id type="github">mvdan/sh</remote-id>
|
||||
</upstream>
|
||||
</pkgmetadata>
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Shell script formatter"
|
||||
HOMEPAGE="https://github.com/mvdan/sh"
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mvdan/sh.git"
|
||||
RESTRICT="fetch mirror test"
|
||||
else
|
||||
SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/ran-dall/portage-deps/raw/master/${P}-deps.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
RESTRICT="mirror test"
|
||||
S="${WORKDIR}/${PN//fmt}-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="+man"
|
||||
|
||||
BDEPEND="man? ( app-text/scdoc )"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
go-module_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ego build -v -ldflags "-s -w" -o "${PN}" "./cmd/shfmt"
|
||||
if use man; then
|
||||
scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1 || die "conversation of man page failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
if use man; then
|
||||
doman shfmt.1
|
||||
fi
|
||||
}
|
||||
@@ -1,50 +0,0 @@
|
||||
# Copyright 2020-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit go-module
|
||||
|
||||
DESCRIPTION="Shell script formatter"
|
||||
HOMEPAGE="https://github.com/mvdan/sh"
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
inherit git-r3
|
||||
EGIT_REPO_URI="https://github.com/mvdan/sh.git"
|
||||
RESTRICT="fetch mirror test"
|
||||
else
|
||||
SRC_URI="https://github.com/mvdan/sh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
SRC_URI+=" https://github.com/ran-dall/portage-deps/raw/master/${P}-deps.tar.xz"
|
||||
KEYWORDS="~amd64 ~arm64 ~x86"
|
||||
RESTRICT="mirror test"
|
||||
S="${WORKDIR}/${PN//fmt}-${PV}"
|
||||
fi
|
||||
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
IUSE="+man"
|
||||
|
||||
BDEPEND="man? ( app-text/scdoc )"
|
||||
|
||||
src_unpack() {
|
||||
default
|
||||
if [[ ${PV} == *9999 ]]; then
|
||||
git-r3_src_unpack
|
||||
go-module_live_vendor
|
||||
else
|
||||
go-module_src_unpack
|
||||
fi
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
ego build -v -ldflags "-s -w" -o "${PN}" "./cmd/shfmt"
|
||||
if use man; then
|
||||
scdoc < cmd/shfmt/shfmt.1.scd > shfmt.1 || die "conversation of man page failed"
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
dobin ${PN}
|
||||
if use man; then
|
||||
doman shfmt.1
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user