From aac61eb0cfcdc16852e1b303af002a7750a8de53 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sat, 24 Dec 2022 12:00:01 +0000 Subject: dev-util/fq: install README Signed-off-by: Sam James --- dev-util/fq/fq-0.2.0-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++++++++++ dev-util/fq/fq-0.2.0.ebuild | 40 ---------------------------------------- 2 files changed, 42 insertions(+), 40 deletions(-) create mode 100644 dev-util/fq/fq-0.2.0-r1.ebuild delete mode 100644 dev-util/fq/fq-0.2.0.ebuild diff --git a/dev-util/fq/fq-0.2.0-r1.ebuild b/dev-util/fq/fq-0.2.0-r1.ebuild new file mode 100644 index 000000000000..c4bb233a488d --- /dev/null +++ b/dev-util/fq/fq-0.2.0-r1.ebuild @@ -0,0 +1,42 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit go-module + +DESCRIPTION="Tool for working with binary data (app-misc/jq for binary formats)" +HOMEPAGE="https://github.com/wader/fq" +SRC_URI="https://github.com/wader/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" + +LICENSE="MIT BSD-2" +SLOT="0" +KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" + +BDEPEND="test? ( dev-tcltk/expect )" + +src_prepare() { + default + + # https://github.com/wader/fq/issues/494 + sed -i -e '/test_repl.exp/d' Makefile || die + # Don't unconditionally (and therefore twice) build tests + # TODO: upstream + sed -i -e 's/all: test fq/all: fq/' Makefile || die +} + +src_compile() { + # Avoid -s being set in Makefile (stripping) + export GO_BUILD_LDFLAGS="-w" + + default +} + +src_install() { + einstalldocs + + dobin fq +} diff --git a/dev-util/fq/fq-0.2.0.ebuild b/dev-util/fq/fq-0.2.0.ebuild deleted file mode 100644 index f0077e0fe23a..000000000000 --- a/dev-util/fq/fq-0.2.0.ebuild +++ /dev/null @@ -1,40 +0,0 @@ -# Copyright 2022 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit go-module - -DESCRIPTION="Tool for working with binary data (app-misc/jq for binary formats)" -HOMEPAGE="https://github.com/wader/fq" -SRC_URI="https://github.com/wader/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-deps.tar.xz" - -LICENSE="MIT BSD-2" -SLOT="0" -KEYWORDS="~amd64" -IUSE="test" -RESTRICT="!test? ( test )" - -BDEPEND="test? ( dev-tcltk/expect )" - -src_prepare() { - default - - # https://github.com/wader/fq/issues/494 - sed -i -e '/test_repl.exp/d' Makefile || die - # Don't unconditionally (and therefore twice) build tests - # TODO: upstream - sed -i -e 's/all: test fq/all: fq/' Makefile || die -} - -src_compile() { - # Avoid -s being set in Makefile (stripping) - export GO_BUILD_LDFLAGS="-w" - - default -} - -src_install() { - dobin fq -} -- cgit v1.2.3-65-gdbad