guru/dev-util/mh/mh-1.4.1.ebuild
Oz Tiram a678f8cf6a
dev-util/mh: inherit from toolchain-funcs
Closes: https://bugs.gentoo.org/945901
Signed-off-by: Oz Tiram <oz.tiram@gmail.com>
2024-12-05 15:09:24 +01:00

35 lines
640 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Generate help for Makefile"
HOMEPAGE="https://github.com/oz123/mh"
SRC_URI="https://github.com/oz123/mh/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT=0
KEYWORDS="~amd64"
inherit toolchain-funcs
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="virtual/pkgconfig"
RDEPEND="dev-libs/libpcre2"
DEPEND="
${RDEPEND}
test? ( dev-util/cmocka )
"
src_compile() {
emake mh VERSION="${PV}" CC="$(tc-getCC)"
}
src_install() {
emake install DESTDIR="${D}" PREFIX="/usr"
dodoc Makefile.example
}