Re: [PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 85 / dab82c0b7afbbfd3555720a267d2c8e73ac679
1 Return-Path: <tomi.ollila@iki.fi>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5  by arlo.cworth.org (Postfix) with ESMTP id 3691A6DE01F9\r
6  for <notmuch@notmuchmail.org>; Wed, 10 Aug 2016 23:17:07 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at cworth.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0.563\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0.563 tagged_above=-999 required=5 tests=[AWL=-0.089,\r
12   SPF_NEUTRAL=0.652] autolearn=disabled\r
13 Received: from arlo.cworth.org ([127.0.0.1])\r
14  by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
15  with ESMTP id 7nU-On6KzDXL for <notmuch@notmuchmail.org>;\r
16  Wed, 10 Aug 2016 23:16:58 -0700 (PDT)\r
17 Received: from guru.guru-group.fi (guru.guru-group.fi [46.183.73.34])\r
18  by arlo.cworth.org (Postfix) with ESMTP id 6595E6DE01C2\r
19  for <notmuch@notmuchmail.org>; Wed, 10 Aug 2016 23:16:57 -0700 (PDT)\r
20 Received: from guru.guru-group.fi (localhost [IPv6:::1])\r
21  by guru.guru-group.fi (Postfix) with ESMTP id 46F0F10007F;\r
22  Thu, 11 Aug 2016 09:16:29 +0300 (EEST)\r
23 From: Tomi Ollila <tomi.ollila@iki.fi>\r
24 To: mp39590@gmail.com, notmuch@notmuchmail.org\r
25 Subject: Re: [PATCH] configure: add --without-api-docs option\r
26 In-Reply-To: <20160810130235.7108-1-mp39590@gmail.com>\r
27 References: <87popijavz.fsf@maritornes.cs.unb.ca>\r
28  <20160810130235.7108-1-mp39590@gmail.com>\r
29 User-Agent: Notmuch/0.22+56~ge2391a7 (https://notmuchmail.org) Emacs/24.5.1\r
30  (x86_64-unknown-linux-gnu)\r
31 X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
32  $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
33  !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
34 Date: Thu, 11 Aug 2016 09:16:28 +0300\r
35 Message-ID: <m2wpjnu8xv.fsf@guru.guru-group.fi>\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain\r
38 X-BeenThere: notmuch@notmuchmail.org\r
39 X-Mailman-Version: 2.1.20\r
40 Precedence: list\r
41 List-Id: "Use and development of the notmuch mail system."\r
42  <notmuch.notmuchmail.org>\r
43 List-Unsubscribe: <https://notmuchmail.org/mailman/options/notmuch>,\r
44  <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
45 List-Archive: <http://notmuchmail.org/pipermail/notmuch/>\r
46 List-Post: <mailto:notmuch@notmuchmail.org>\r
47 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
48 List-Subscribe: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
49  <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
50 X-List-Received-Date: Thu, 11 Aug 2016 06:17:07 -0000\r
51 \r
52 On Wed, Aug 10 2016, mp39590@gmail.com wrote:\r
53 \r
54 > From: Mikhail <mp39590@gmail.com>\r
55 >\r
56 > Add option to explicitly disable API man page build even if doxygen\r
57 > binary is available. --without-docs also implies not building API\r
58 > manpage.\r
59 \r
60 This LGTM and worked fine on my manual ./configure command line testing\r
61 \r
62 Tomi\r
63 \r
64 >\r
65 > This change intended to add more distinctness into build system and\r
66 > allow user not to build unwanted man pages.\r
67 > ---\r
68 >  configure | 16 ++++++++++++++--\r
69 >  1 file changed, 14 insertions(+), 2 deletions(-)\r
70 >\r
71 > diff --git a/configure b/configure\r
72 > index ae0a027..fa4c5b5 100755\r
73 > --- a/configure\r
74 > +++ b/configure\r
75 > @@ -68,6 +68,7 @@ PYTHON=${PYTHON:-}\r
76 >  PREFIX=/usr/local\r
77 >  LIBDIR=\r
78 >  WITH_DOCS=1\r
79 > +WITH_API_DOCS=1\r
80 >  WITH_EMACS=1\r
81 >  WITH_BASH=1\r
82 >  WITH_RUBY=1\r
83 > @@ -137,7 +138,8 @@ Some features can be disabled (--with-feature=no is equivalent to\r
84 >  --without-feature) :\r
85 >  \r
86 >       --without-bash-completion       Do not install bash completions files\r
87 > -     --without-docs                  Do not install documentation and man pages\r
88 > +     --without-docs                  Do not install documentation\r
89 > +     --without-api-docs              Do not install API man page\r
90 >       --without-emacs                 Do not install lisp file\r
91 >       --without-ruby                  Do not install ruby bindings\r
92 >       --without-zsh-completion        Do not install zsh completions files\r
93 > @@ -184,11 +186,21 @@ for option; do\r
94 >      elif [ "${option%%=*}" = '--with-docs' ]; then\r
95 >       if [ "${option#*=}" = 'no' ]; then\r
96 >           WITH_DOCS=0\r
97 > +         WITH_API_DOCS=0\r
98 >       else\r
99 >           WITH_DOCS=1\r
100 >       fi\r
101 >      elif [ "${option}" = '--without-docs' ] ; then\r
102 >       WITH_DOCS=0\r
103 > +     WITH_API_DOCS=0\r
104 > +    elif [ "${option%%=*}" = '--with-api-docs' ]; then\r
105 > +     if [ "${option#*=}" = 'no' ]; then\r
106 > +         WITH_API_DOCS=0\r
107 > +     else\r
108 > +         WITH_API_DOCS=1\r
109 > +     fi\r
110 > +    elif [ "${option}" = '--without-api-docs' ] ; then\r
111 > +     WITH_API_DOCS=0\r
112 >      elif [ "${option%%=*}" = '--with-emacs' ]; then\r
113 >       if [ "${option#*=}" = 'no' ]; then\r
114 >           WITH_EMACS=0\r
115 > @@ -557,7 +569,7 @@ else\r
116 >  fi\r
117 >  \r
118 >  have_doxygen=0\r
119 > -if [ $WITH_DOCS = "1" ] ; then\r
120 > +if [ $WITH_API_DOCS = "1" ] ; then\r
121 >      printf "Checking if doxygen is available... "\r
122 >      if command -v doxygen > /dev/null; then\r
123 >       printf "Yes.\n"\r
124 > -- \r
125 > 2.9.0\r
126 >\r
127 > _______________________________________________\r
128 > notmuch mailing list\r
129 > notmuch@notmuchmail.org\r
130 > https://notmuchmail.org/mailman/listinfo/notmuch\r