From 0d7cd393ac22dfaf40fa48bf1a4863af64700ae3 Mon Sep 17 00:00:00 2001 From: NRK Date: Mon, 26 Feb 2024 18:37:11 +0000 Subject: [PATCH] app-text/md4c: add md2html useflag Signed-off-by: NRK --- app-text/md4c/md4c-0.5.2.ebuild | 4 +++- app-text/md4c/metadata.xml | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/app-text/md4c/md4c-0.5.2.ebuild b/app-text/md4c/md4c-0.5.2.ebuild index 4a8b725b1c..524311cd3f 100644 --- a/app-text/md4c/md4c-0.5.2.ebuild +++ b/app-text/md4c/md4c-0.5.2.ebuild @@ -7,8 +7,8 @@ inherit cmake # TODO(NRK): # - enable tests -# - useflag to not build md2html tool # - useflag for static lib (?) +# - move this under dev-libs or maybe split the md2html tool into it's own package (??) if [[ ${PV} == 9999 ]]; then inherit git-r3 @@ -25,6 +25,7 @@ HOMEPAGE="https://github.com/mity/md4c" LICENSE="MIT" SLOT="0" +IUSE="+md2html" src_prepare() { cmake_src_prepare @@ -34,6 +35,7 @@ src_configure() { mycmakeargs=( -DCMAKE_BUILD_TYPE=Release -DBUILD_SHARED_LIBS=ON + -DBUILD_MD2HTML_EXECUTABLE=$(usex md2html ON OFF) ) cmake_src_configure diff --git a/app-text/md4c/metadata.xml b/app-text/md4c/metadata.xml index 0b2c5c0d69..102047fdc7 100644 --- a/app-text/md4c/metadata.xml +++ b/app-text/md4c/metadata.xml @@ -4,6 +4,9 @@ nrk@disroot.org + + Build the md2html cli tool + mity/md4c