mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-23 14:03:33 -04:00
app-text/md4c: add md2html useflag
Signed-off-by: NRK <nrk@disroot.org>
This commit is contained in:
@@ -7,8 +7,8 @@ inherit cmake
|
|||||||
|
|
||||||
# TODO(NRK):
|
# TODO(NRK):
|
||||||
# - enable tests
|
# - enable tests
|
||||||
# - useflag to not build md2html tool
|
|
||||||
# - useflag for static lib (?)
|
# - useflag for static lib (?)
|
||||||
|
# - move this under dev-libs or maybe split the md2html tool into it's own package (??)
|
||||||
|
|
||||||
if [[ ${PV} == 9999 ]]; then
|
if [[ ${PV} == 9999 ]]; then
|
||||||
inherit git-r3
|
inherit git-r3
|
||||||
@@ -25,6 +25,7 @@ HOMEPAGE="https://github.com/mity/md4c"
|
|||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
IUSE="+md2html"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
cmake_src_prepare
|
cmake_src_prepare
|
||||||
@@ -34,6 +35,7 @@ src_configure() {
|
|||||||
mycmakeargs=(
|
mycmakeargs=(
|
||||||
-DCMAKE_BUILD_TYPE=Release
|
-DCMAKE_BUILD_TYPE=Release
|
||||||
-DBUILD_SHARED_LIBS=ON
|
-DBUILD_SHARED_LIBS=ON
|
||||||
|
-DBUILD_MD2HTML_EXECUTABLE=$(usex md2html ON OFF)
|
||||||
)
|
)
|
||||||
|
|
||||||
cmake_src_configure
|
cmake_src_configure
|
||||||
|
|||||||
@@ -4,6 +4,9 @@
|
|||||||
<maintainer type="person">
|
<maintainer type="person">
|
||||||
<email>nrk@disroot.org</email>
|
<email>nrk@disroot.org</email>
|
||||||
</maintainer>
|
</maintainer>
|
||||||
|
<use>
|
||||||
|
<flag name="md2html">Build the md2html cli tool</flag>
|
||||||
|
</use>
|
||||||
<upstream>
|
<upstream>
|
||||||
<remote-id type="github">mity/md4c</remote-id>
|
<remote-id type="github">mity/md4c</remote-id>
|
||||||
</upstream>
|
</upstream>
|
||||||
|
|||||||
Reference in New Issue
Block a user