commit:     0d7cd393ac22dfaf40fa48bf1a4863af64700ae3
Author:     NRK <nrk <AT> disroot <DOT> org>
AuthorDate: Mon Feb 26 18:37:11 2024 +0000
Commit:     Haelwenn Monnier <contact <AT> hacktivis <DOT> me>
CommitDate: Mon Feb 26 18:37:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=0d7cd393

app-text/md4c: add md2html useflag

Signed-off-by: NRK <nrk <AT> disroot.org>

 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 @@
        <maintainer type="person">
                <email>[email protected]</email>
        </maintainer>
+       <use>
+               <flag name="md2html">Build the md2html cli tool</flag>
+       </use>
        <upstream>
                <remote-id type="github">mity/md4c</remote-id>
        </upstream>

Reply via email to