Skip to content

Commit

Permalink
dev-go/delve: ebuild tidying
Browse files Browse the repository at this point in the history
- Use go-module.eclass' exported module_src_unpack.
- Drop unencessary USE=test.
- Use same variable ordering as skel.ebuild.
- Drop too-short longdescription in metadata.xml (pkgcheck warned as
  RedundantLongDescription).

See: gentoo#22468
Signed-off-by: Sam James <[email protected]>
  • Loading branch information
thesamesam committed Oct 20, 2021
1 parent ea806c2 commit a384e3c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 13 deletions.
12 changes: 2 additions & 10 deletions dev-go/delve/delve-1.7.2.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -342,22 +342,14 @@ EGO_SUM=(
"honnef.co/go/tools v0.0.1-2019.2.3/go.mod"
"rsc.io/binaryregexp v0.2.0/go.mod"
"rsc.io/pdf v0.1.1/go.mod"
)
)
go-module_set_globals
SRC_URI="https://github.com/go-delve/delve/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_SUM_SRC_URI}"

KEYWORDS="~amd64"

LICENSE="MIT BSD BSD-2 Apache-2.0"
SLOT="0"
IUSE="test"
RESTRICT="!test? ( test )"

src_unpack() {
unpack "${P}.tar.gz"
go-module_setup_proxy
}
KEYWORDS="~amd64"

src_compile() {
go build -mod vendor -ldflags="-X main.Build=${PV}" -o "${S}/dlv" ./cmd/dlv || die
Expand Down
3 changes: 0 additions & 3 deletions dev-go/delve/metadata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<email>[email protected]</email>
<name>Proxy Maintainers</name>
</maintainer>
<longdescription lang="en">
Delve is a source level debugger for Go programs.
</longdescription>
<upstream>
<remote-id type="github">go-delve/delve</remote-id>
</upstream>
Expand Down

0 comments on commit a384e3c

Please sign in to comment.