app-text/cmark-gfm - 0.29.0.13-r2 (mim)

Search

Install

Install this version:

emerge -a =app-text/cmark-gfm-0.29.0.13-r2

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

autounmask =app-text/cmark-gfm-0.29.0.13-r2

Or alternatively:

emerge --autounmask-write -a =app-text/cmark-gfm-0.29.0.13-r2

Package Information

Description:
GitHub's fork of cmark
Homepage:
https://github.com/github/cmark-gfm
License:
BSD-2

Ebuild Details

Version EAPI Keywords Slot
0.29.0.13-r2 8 ~amd64 ~loong 0/0.29.0
View Raw Ebuild
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

MYPV="$(ver_rs 3 '.gfm.')"
PYTHON_COMPAT=( python3_{12..15} )

inherit cmake python-any-r1

DESCRIPTION="GitHub's fork of cmark"
HOMEPAGE="https://github.com/github/cmark-gfm"
SRC_URI="https://github.com/github/cmark-gfm/archive/${MYPV}.tar.gz -> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${MYPV}"

LICENSE="BSD-2"
SLOT="0/0.29.0"
KEYWORDS="~amd64 ~loong"
IUSE="test"

DEPEND="test? ( ${PYTHON_DEPS} )"

RESTRICT="!test? ( test )"

PATCHES=(
	"${FILESDIR}"/${PN}-cmake.patch
)

pkg_setup() {
	use test && python-any-r1_pkg_setup
}

src_configure() {
	local mycmakeargs=(
		-DCMARK_LIB_FUZZER=OFF
		-DCMARK_SHARED=ON
		-DCMARK_STATIC=OFF
		-DCMARK_TESTS="$(usex test)"
		-DCMAKE_INSTALL_LIBDIR="${EPREFIX}/usr/$(get_libdir)/cmake"
	)
	cmake_src_configure
}

USE Flags

Manage flags for this package: euse -i <flag> -p app-text/cmark-gfm | euse -E <flag> -p app-text/cmark-gfm | euse -D <flag> -p app-text/cmark-gfm

Global/Standard Flags

Inherited Eclasses

Dependencies

DEPEND

test? (  )