Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

87.15. docopt.cpp-0.6.3

Command-line parser that derives the interface from the usage text

0.6.3-1 · BSL-1.0 OR MIT · 0.6 SBU · 1.1 MiB, 15 files · 41_system, 352 of 1047 · ports/core/devlibs/docopt.cpp

Homepage: https://github.com/docopt/docopt.cpp

Depends on: cmake.

Required by (1): kiwix-tools.

Sources: docopt.cpp-0.6.3.tar.gz (27.0 KiB). Every step kpkg takes applies to this port.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install docopt.cpp'

build.sh:

mkdir -p build && cd build
cmake .. -DCMAKE_POLICY_VERSION_MINIMUM=3.5 -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=lib \
	-DBUILD_SHARED_LIBS=ON -DWITH_TESTS=OFF -DUSE_BOOST_REGEX=OFF
make
make DESTDIR=$PKG install

Libraries: libdocopt.a, libdocopt.so.

Directories: /usr/include/docopt, /usr/lib/cmake/docopt, /usr/share/licenses/docopt.cpp.