Install this version:
emerge -a =app-text/cmark-0.31.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =app-text/cmark-0.31.2
Or alternatively:
emerge --autounmask-write -a =app-text/cmark-0.31.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 0.31.2 | 8 | ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86 | 0/0.31.2 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..14} )
inherit cmake python-any-r1
DESCRIPTION="CommonMark parsing and rendering library and program in C"
HOMEPAGE="https://github.com/commonmark/cmark"
SRC_URI="https://github.com/commonmark/cmark/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD-2"
SLOT="0/0.31.2"
KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~x86"
IUSE="test"
RESTRICT="!test? ( test )"
BDEPEND="test? ( ${PYTHON_DEPS} )"
PATCHES=(
"${FILESDIR}/cmark-0.31.2_python-3.14.patch"
)
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
local mycmakeargs=(
-DCMARK_LIB_FUZZER=OFF
-DBUILD_SHARED_LIBS=ON
-DBUILD_TESTING="$(usex test)"
)
cmake_src_configure
}
Manage flags for this package:
euse -i <flag> -p app-text/cmark |
euse -E <flag> -p app-text/cmark |
euse -D <flag> -p app-text/cmark
test? ( )
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | cmark-0.31.2.tar.gz | 267259 bytes | https://github.com/commonmark/cmark/archive/0.31.2.tar.gz |