dev-util/conf2struct - 9999 (gentoo)

Search

Install

Install this version:

emerge -a =dev-util/conf2struct-9999

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =dev-util/conf2struct-9999

Or alternatively:

emerge --autounmask-write -a =dev-util/conf2struct-9999

Package Information

Description:
Create C parsers for libconfig and command-line
Homepage:
https://github.com/yrutschle/conf2struct/
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
9999 7 ~amd64 -mips ~s390 ~x86 0
View Raw Ebuild
# 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 -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
}

Inherited Eclasses

Dependencies

DEPEND

dev-libs/libconfig:=
	dev-perl/Conf-Libconfig

RDEPEND

dev-libs/libconfig:=
	dev-perl/Conf-Libconfig