aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNRK <nrk@disroot.org>2024-02-26 18:37:11 +0000
committerNRK <nrk@disroot.org>2024-02-26 18:37:32 +0000
commit0d7cd393ac22dfaf40fa48bf1a4863af64700ae3 (patch)
treeadce12456e6088036b5a6763ee99c443606899d1 /app-text
parentapp-arch/7zip: grab docs from the linux tarball (diff)
downloadguru-0d7cd393ac22dfaf40fa48bf1a4863af64700ae3.tar.gz
guru-0d7cd393ac22dfaf40fa48bf1a4863af64700ae3.tar.bz2
guru-0d7cd393ac22dfaf40fa48bf1a4863af64700ae3.zip
app-text/md4c: add md2html useflag
Signed-off-by: NRK <nrk@disroot.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/md4c/md4c-0.5.2.ebuild4
-rw-r--r--app-text/md4c/metadata.xml3
2 files changed, 6 insertions, 1 deletions
diff --git a/app-text/md4c/md4c-0.5.2.ebuild b/app-text/md4c/md4c-0.5.2.ebuild
index 4a8b725b1..524311cd3 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 0b2c5c0d6..102047fdc 100644
--- a/app-text/md4c/metadata.xml
+++ b/app-text/md4c/metadata.xml
@@ -4,6 +4,9 @@
<maintainer type="person">
<email>nrk@disroot.org</email>
</maintainer>
+ <use>
+ <flag name="md2html">Build the md2html cli tool</flag>
+ </use>
<upstream>
<remote-id type="github">mity/md4c</remote-id>
</upstream>