dev-cpp/OptionParser - 9999 (olifre)

Search

Install

Install this version:

emerge -a =dev-cpp/OptionParser-9999

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

autounmask =dev-cpp/OptionParser-9999

Or alternatively:

emerge --autounmask-write -a =dev-cpp/OptionParser-9999

Package Information

Description:
templated C++ command line option parser with executable for shell scripts
Homepage:
https://github.com/BGO-OD/OptionParser
License:
GPL-3

Ebuild Details

Version EAPI Keywords Slot
9999 8 0
View Raw Ebuild
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit cmake-multilib

if [[ ${PV} == 9999 ]]; then
	inherit git-r3
	EGIT_REPO_URI="https://github.com/BGO-OD/OptionParser.git"
#else
	# No release just yet...
	# SRC_URI=""
	# KEYWORDS="~amd64 ~x86"
fi

DESCRIPTION="templated C++ command line option parser with executable for shell scripts"
HOMEPAGE="https://github.com/BGO-OD/OptionParser"

LICENSE="GPL-3"
SLOT="0"
IUSE="doc examples static-libs"

DEPEND="${RDEPEND}
	doc? ( app-text/doxygen[dot] )"

src_configure() {
	local mycmakeargs=(
			-DOptionParser_INSTALL_EXAMPLES="$(usex examples)"
			-DINSTALL_STATIC_LIBS="$(usex static-libs)"
			)
	cmake-multilib_src_configure
}

src_compile() {
	cmake-multilib_src_compile
	use doc && cmake-multilib_src_compile doc
}

multilib_src_install() {
	cmake_src_install
	use doc && dodoc -r "${BUILD_DIR}/html"
}

USE Flags

Manage flags for this package: euse -i <flag> -p dev-cpp/OptionParser | euse -E <flag> -p dev-cpp/OptionParser | euse -D <flag> -p dev-cpp/OptionParser

Global/Standard Flags

doc

Inherited Eclasses

Dependencies

DEPEND

	doc? ( app-text/doxygen[dot] )