dev-util/mh: initial import

Signed-off-by: Oz N Tiram <oz.tiram@gmail.com>
This commit is contained in:
Oz N Tiram
2021-08-02 09:58:10 +02:00
parent 89de1321c6
commit 394e9d42bf
3 changed files with 57 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
# 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
IUSE="test"
KEYWORDS="~amd64"
RESTRICT="!test? ( test )"
BDEPEND="virtual/pkgconfig"
RDEPEND="dev-libs/libpcre2"
DEPEND="
${RDEPEND}
test? ( dev-util/cmocka )
"
src_compile() {
emake mh VERSION="${PV}"
}
src_install() {
emake install DESTDIR="${D}" PREFIX="/usr"
dodoc Makefile.example
}