mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-libs/md4c: add 0.6.0
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
This commit is contained in:
@@ -1 +1,2 @@
|
||||
DIST md4c-0.5.3.tar.gz 244633 BLAKE2B 45a2d591eb12ec28b6fcb10f52d0cb2a48ca52edc61e2f0e8751ecd651afb6823efdd2c949311801eefb049b54645c368ded71f4c1c295cdfa025fe9f7a34d5e SHA512 213d6b9fbad24b2bfb4fa0a8124cb4c20861da2cb57790882aa0e5ff8c18903450f1d9ffdbcc0547debd103137777059f27a526cd818294f698b5ffdbfe7fbcb
|
||||
DIST md4c-0.6.0.tar.gz 268862 BLAKE2B c4bde5dae01c6d8f8b3474c0900c293c83b6a46cf887ea43b8a4bf49e3bec72f44ce924a06569657a00808d1450bfa988df6857e42998c966a1de3d738afaad4 SHA512 a8b3deba8b6e25b11cfc8f796ff8299d47f73c0e668badeaadd38609d72d1d301c662e17f0fab6ccefe382d83bad6f47a3aedf68a16021521822cc7a285efcad
|
||||
|
||||
43
dev-libs/md4c/md4c-0.6.0.ebuild
Normal file
43
dev-libs/md4c/md4c-0.6.0.ebuild
Normal file
@@ -0,0 +1,43 @@
|
||||
# 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/v${PV}.tar.gz
|
||||
-> ${P}.tar.gz
|
||||
"
|
||||
|
||||
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
|
||||
}
|
||||
Reference in New Issue
Block a user