dev-libs/md4c - 0.5.3 (gentoo)

Search

Install

Install this version:

emerge -a =dev-libs/md4c-0.5.3

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

autounmask =dev-libs/md4c-0.5.3

Or alternatively:

emerge --autounmask-write -a =dev-libs/md4c-0.5.3

Package Information

Description:
C Markdown parser. Fast, SAX-like interface, CommonMark Compliant
Homepage:
https://github.com/mity/md4c
License:
MIT test? ( CC-BY-SA-4.0 )

Ebuild Details

Version EAPI Keywords Slot
0.5.3 8 ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86 0
View Raw Ebuild
# Copyright 2022-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

PYTHON_COMPAT=( python3_{11..14} )
inherit cmake python-any-r1

DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant"
HOMEPAGE="https://github.com/mity/md4c"
SRC_URI="
	https://github.com/mity/md4c/archive/refs/tags/release-${PV}.tar.gz
		-> ${P}.tar.gz
"
S=${WORKDIR}/md4c-release-${PV}

LICENSE="MIT test? ( CC-BY-SA-4.0 )"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~x86"

IUSE="+md2html test"
REQUIRED_USE="test? ( md2html )"
RESTRICT="!test? ( test )"

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

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

src_configure() {
	local mycmakeargs=(
		-DBUILD_MD2HTML_EXECUTABLE=$(usex md2html)
	)

	cmake_src_configure
}

src_test() {
	cd "${BUILD_DIR}" || die
	"${EPYTHON}" "${S}"/scripts/run-tests.py || die
}

USE Flags

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

Global/Standard Flags

md2html
Default: Enabled (+)

Inherited Eclasses

Dependencies

BDEPEND

	test? (  )

Manifest for 0.5.3

Type File Size Source URLs
DIST md4c-0.5.3.tar.gz 244633 bytes https://github.com/mity/md4c/archive/refs/tags/release-0.5.3.tar.gz