Install this version:
emerge -a =dev-cpp/docopt-0.6.3
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-cpp/docopt-0.6.3
Or alternatively:
emerge --autounmask-write -a =dev-cpp/docopt-0.6.3
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.6.3 | 8 | ~amd64 | 0 |
# Copyright 2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="C++11 port of docopt, for beautiful command-line interfaces"
HOMEPAGE="https://github.com/docopt/docopt.cpp"
SRC_URI="
https://github.com/docopt/docopt.cpp/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
"
S="${WORKDIR}/docopt.cpp-${PV}"
LICENSE="|| ( MIT Boost-1.0 )"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="
test? (
dev-lang/python:2.7
)
"
IUSE="examples test"
RESTRICT="!test? ( test )"
src_configure() {
local mycmakeargs=(
-DWITH_EXAMPLE=$(usex examples)
-DWITH_TESTS=$(usex test)
)
cmake_src_configure
}
src_test() {
cd "${BUILD_DIR}"
# note: tests are quick, but it's not verbose
#
# second note: cmake made to hardcode paths (with $WORKDIR in it) into
# run_tests
./run_tests
}
Manage flags for this package:
euse -i <flag> -p dev-cpp/docopt |
euse -E <flag> -p dev-cpp/docopt |
euse -D <flag> -p dev-cpp/docopt
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | docopt-0.6.3.tar.gz | 27598 bytes | https://github.com/docopt/docopt.cpp/archive/refs/tags/v0.6.3.tar.gz |