mirror of
https://anongit.gentoo.org/git/repo/gentoo.git
synced 2025-06-15 01:23:35 +02:00
All of these will be using app-alternatives/lex anyway as they're not unsetting YACC or LEX, so make the dep reflect reality. (Included both YACC and LEX out of conservatism.) Signed-off-by: Sam James <sam@gentoo.org>
48 lines
1 KiB
Bash
48 lines
1 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
inherit autotools
|
|
|
|
DESCRIPTION="A tool like sed, awk, cut, join, and sort for name-indexed data (CSV, JSON, ..)"
|
|
HOMEPAGE="https://johnkerl.org/miller/doc/index.html"
|
|
SRC_URI="https://github.com/johnkerl/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="BSD-2"
|
|
SLOT="0"
|
|
KEYWORDS="amd64 arm x86"
|
|
IUSE="doc test"
|
|
RESTRICT="!test? ( test )"
|
|
|
|
DEPEND="app-alternatives/lex"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# Respect flags
|
|
find -type f -name "Makefile.am" -exec sed -i -r -e '/.*FLAGS[^=]*=/ s:(-g|-pg|-O[0-9]) ::g' -- {} \; || die
|
|
|
|
# Disable docs rebuilding as they're shipped prebuilt
|
|
sed -e '/SUBDIRS[^=]*=/ s:doc::g' -i -- Makefile.am || die
|
|
|
|
# Disable building tests automagically
|
|
if ! use test; then
|
|
sed -e '/SUBDIRS[^=]*=/ s:[^ ]*_test::g' -i -- c/Makefile.am || die
|
|
fi
|
|
|
|
eautoreconf
|
|
}
|
|
|
|
src_test() {
|
|
emake -C c/reg_test
|
|
emake -C c/unit_test
|
|
}
|
|
|
|
src_install() {
|
|
local HTML_DOCS=( $(usex doc docs '') )
|
|
|
|
default
|
|
|
|
doman docs/mlr.1
|
|
}
|