View previous topic :: View next topic |
Author |
Message |
jeffk l33t
Joined: 13 Sep 2003 Posts: 671
|
Posted: Thu Mar 21, 2019 7:31 pm Post subject: x11-wm/awesome cmake make asciidoc dependency optional |
|
|
I would like to make x11-wm/awesome dependency on asciidoc optional, adding a USE doc. Based on the following occurrences of asciicoc in the cmake file, is it currently possible to skipp building manpages to cmake via argument or other means? If not, I can investigate further with upstream about making it optional. Thanks for any suggestions.
Code: | grep asciidoc -B 4 -A 5 awesomeConfig.cmake
endmacro()
a_find_program(GIT_EXECUTABLE git FALSE)
# programs needed for man pages
a_find_program(ASCIIDOCTOR_EXECUTABLE asciidoctor FALSE)
a_find_program(GZIP_EXECUTABLE gzip FALSE)
# Lua documentation
if(GENERATE_DOC)
a_find_program(LDOC_EXECUTABLE ldoc FALSE)
if(NOT LDOC_EXECUTABLE)
--
# {{{ Check if documentation can be build
if(GENERATE_MANPAGES)
if(NOT ASCIIDOCTOR_EXECUTABLE OR (COMPRESS_MANPAGES AND NOT GZIP_EXECUTABLE))
if(NOT ASCIIDOCTOR_EXECUTABLE)
SET(missing "asciidoctor")
endif()
if(COMPRESS_MANPAGES AND NOT GZIP_EXECUTABLE)
SET(missing ${missing} " gzip")
endif() |
|
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30942 Location: here
|
Posted: Thu Mar 21, 2019 8:46 pm Post subject: |
|
|
Use doc already exists then you can chage DEPEND from
Code: | DEPEND="${RDEPEND}
>=app-text/asciidoc-8.4.5
app-text/xmlto
dev-util/gperf
virtual/pkgconfig
media-gfx/imagemagick[png]
>=x11-base/xcb-proto-1.5
x11-base/xorg-proto
doc? ( dev-lua/ldoc )
test? (
app-shells/zsh
x11-base/xorg-server[xvfb]
dev-lua/busted
dev-lua/luacheck
)
" |
to
Code: | DEPEND="${RDEPEND}
app-text/xmlto
dev-util/gperf
virtual/pkgconfig
media-gfx/imagemagick[png]
>=x11-base/xcb-proto-1.5
x11-base/xorg-proto
doc? ( dev-lua/ldoc >=app-text/asciidoc-8.4.5 )
test? (
app-shells/zsh
x11-base/xorg-server[xvfb]
dev-lua/busted
dev-lua/luacheck
)
" |
The problem is that in this way you don't even install the man pages, because asciidoc is used also for generate man pages _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
|