public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/md4c/
Date: Fri, 28 Mar 2025 15:06:20 +0000 (UTC)	[thread overview]
Message-ID: <1743174242.e13dada4ff486c1cf8742104a5b3ee5a21fc3adb.sam@gentoo> (raw)

commit:     e13dada4ff486c1cf8742104a5b3ee5a21fc3adb
Author:     Alexey Sokolov <alexey+gentoo <AT> asokolov <DOT> org>
AuthorDate: Wed Mar 26 00:42:13 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Mar 28 15:04:02 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e13dada4

dev-libs/md4c: new package, add 0.5.2

moved from ::guru, with some fixes and added test

Signed-off-by: Alexey Sokolov <alexey+gentoo <AT> asokolov.org>
Signed-off-by: Sam James <sam <AT> gentoo.org>

 dev-libs/md4c/Manifest          |  1 +
 dev-libs/md4c/md4c-0.5.2.ebuild | 50 +++++++++++++++++++++++++++++++++++++++++
 dev-libs/md4c/metadata.xml      | 17 ++++++++++++++
 3 files changed, 68 insertions(+)

diff --git a/dev-libs/md4c/Manifest b/dev-libs/md4c/Manifest
new file mode 100644
index 000000000000..47bc5af3b07d
--- /dev/null
+++ b/dev-libs/md4c/Manifest
@@ -0,0 +1 @@
+DIST md4c-0.5.2.tar.gz 237973 BLAKE2B 7f3f80c1bcfa3040b4458876abc8eabbad387242fbdcde08b34d9a279da56e4c2264a591deb6ad3061c951b4ca547f896589682aa5c6b50febfc03b89c61be3e SHA512 30607ba39d6c59329f5a56a90cd816ff60b82ea752ac2b9df356d756529cfc49170019fae5df32fa94afc0e2a186c66eaf56fa6373d18436c06ace670675ba85

diff --git a/dev-libs/md4c/md4c-0.5.2.ebuild b/dev-libs/md4c/md4c-0.5.2.ebuild
new file mode 100644
index 000000000000..002381590ba4
--- /dev/null
+++ b/dev-libs/md4c/md4c-0.5.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2022-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+
+inherit cmake python-any-r1
+
+DESCRIPTION="C Markdown parser. Fast, SAX-like interface, CommonMark Compliant."
+HOMEPAGE="https://github.com/mity/md4c"
+# TODO(NRK):
+# - useflag for static lib (?)
+
+if [[ ${PV} == 9999 ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/mity/md4c.git"
+else
+	SRC_URI="https://github.com/mity/md4c/archive/refs/tags/release-${PV}.tar.gz -> ${P}.tar.gz"
+	S="${WORKDIR}/md4c-release-${PV}"
+	KEYWORDS="~amd64"
+fi
+
+LICENSE="MIT test? ( CC-BY-SA-4.0 )"
+SLOT="0"
+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() {
+	mycmakeargs=(
+		-DBUILD_SHARED_LIBS=ON
+		-DBUILD_MD2HTML_EXECUTABLE=$(usex md2html)
+	)
+
+	cmake_src_configure
+}
+
+src_test() {
+	pushd "${BUILD_DIR}" || die
+	# Uses python internally
+	"${S}"/scripts/run-tests.sh || die
+	popd
+}

diff --git a/dev-libs/md4c/metadata.xml b/dev-libs/md4c/metadata.xml
new file mode 100644
index 000000000000..135e912b5165
--- /dev/null
+++ b/dev-libs/md4c/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person" proxied="yes">
+		<email>nrk@disroot.org</email>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
+	<use>
+		<flag name="md2html">Build the md2html cli tool</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">mity/md4c</remote-id>
+	</upstream>
+</pkgmetadata>


             reply	other threads:[~2025-03-28 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-28 15:06 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-04-05 17:08 [gentoo-commits] repo/gentoo:master commit in: dev-libs/md4c/ Arthur Zamarin
2025-04-05 18:51 Jakov Smolić
2025-04-28 16:48 Sam James
2025-06-09 10:56 Sam James
2025-06-09 10:56 Sam James
2025-06-12  8:19 Sam James
2025-06-21  7:44 Sam James
2025-06-21  8:14 Sam James
2025-09-18 17:38 Arthur Zamarin
2025-09-19  6:11 Arthur Zamarin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1743174242.e13dada4ff486c1cf8742104a5b3ee5a21fc3adb.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox