dev-ml/ocaml-markdown: new package; add version 0.2.1

Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
Maciej Barć
2026-03-24 16:39:18 +01:00
parent 403cdf3eca
commit 5ce0ea98fe
3 changed files with 60 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST ocaml-markdown-0.2.1.gh.tar.gz 9192 BLAKE2B 07839e6a5966a73c300432f8b6b8340ce54045cb2e08e962c7029a5caa74756d6dc302c37f34f16f06f936373a110a2316e84f2f0263556d52ba04c4799c5250 SHA512 48aa7332f04cf880046e2647c99a6ff60b026cf9e3130173713f431ebb68b3d394dd83290e5e4f9359faa1381115798548d85c7b4b3b121afcbbb78b8b757fa3

View File

@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ml@gentoo.org</email>
<name>ML</name>
</maintainer>
<upstream>
<bugs-to>https://github.com/gildor478/ocaml-markdown/issues/</bugs-to>
<remote-id type="github">gildor478/ocaml-markdown</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,46 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DUNE_PKG_NAME="markdown"
inherit dune
DESCRIPTION="Markdown parser and printer in OCaml"
HOMEPAGE="https://github.com/gildor478/ocaml-markdown/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/gildor478/${PN}"
else
SRC_URI="https://github.com/gildor478/${PN}/archive/v${PV}.tar.gz
-> ${P}.gh.tar.gz"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0/${PV}"
IUSE="+ocamlopt test"
RESTRICT="!test? ( test )"
RDEPEND="
>=dev-ml/batteries-2.10:=
>=dev-ml/tyxml-4.3:=
"
DEPEND="
${RDEPEND}
"
BDEPEND="
test? (
>=dev-ml/ounit2-2.0.8
)
"
DOCS=( CHANGES.md README.md )
src_install() {
dune_src_install
einstalldocs
}