gentoo/dev-util/conf2struct/conf2struct-1.5.ebuild
James Le Cuirot 3e3311c6f4
dev-util/conf2struct: Correct ~mips keyword
It was added as -mips by mistake.

Bug: https://bugs.gentoo.org/689340
Signed-off-by: James Le Cuirot <chewi@gentoo.org>
2021-09-21 23:28:50 +01:00

33 lines
771 B
Bash

# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
inherit flag-o-matic systemd toolchain-funcs
DESCRIPTION="Create C parsers for libconfig and command-line"
HOMEPAGE="https://github.com/yrutschle/conf2struct/"
if [[ ${PV} == "9999" ]] ; then
EGIT_REPO_URI="https://github.com/yrutschle/conf2struct.git"
inherit git-r3
else
KEYWORDS="~amd64 ~m68k ~mips ~s390 ~x86"
SRC_URI="https://github.com/yrutschle/conf2struct/archive/v${PV}.tar.gz -> ${P}.tar.gz"
fi
LICENSE="BSD-2"
SLOT="0"
IUSE=""
RDEPEND="dev-libs/libconfig:=
dev-perl/Conf-Libconfig"
DEPEND="${RDEPEND}"
src_compile() {
emake CC="$(tc-getCC)" CFLAGS="${CFLAGS}"
}
src_install() {
emake DESTDIR="${D}" prefix="${EPREFIX}/usr" install
}