Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
x11-wm/awesome cmake make asciidoc dependency optional
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
jeffk
l33t
l33t


Joined: 13 Sep 2003
Posts: 656

PostPosted: Thu Mar 21, 2019 7:31 pm    Post subject: x11-wm/awesome cmake make asciidoc dependency optional Reply with quote

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
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 21328
Location: here

PostPosted: Thu Mar 21, 2019 8:46 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum