summaryrefslogtreecommitdiff
path: root/network/weechat
diff options
context:
space:
mode:
authorBenjamin Trigona-Harany <slackbuilds@jaxartes.net>2020-01-26 20:56:32 -0800
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2020-02-01 09:00:33 +0700
commitdd74350bb454b37a6f3db7c2b0dff5a53bcb4a66 (patch)
tree0579fa8146c890c6c7dc2e7d09a38d3f91120a0c /network/weechat
parentc64ad52dd6daa73722d522fa083008aca9c21bfa (diff)
downloadslackbuilds-dd74350bb454b37a6f3db7c2b0dff5a53bcb4a66.tar.gz
network/weechat: Allow optional build of docs/man.
Signed-off-by: Benjamin Trigona-Harany <slackbuilds@jaxartes.net>
Diffstat (limited to 'network/weechat')
-rw-r--r--network/weechat/README3
-rw-r--r--network/weechat/weechat.SlackBuild6
2 files changed, 8 insertions, 1 deletions
diff --git a/network/weechat/README b/network/weechat/README
index aac7a471e9..b67241d043 100644
--- a/network/weechat/README
+++ b/network/weechat/README
@@ -8,3 +8,6 @@ WeeChat supports:
without dropping connections.
WeeChat will be built with support for Perl, Python and Ruby scripting.
+
+WeeChat documentation and manpages will not be built by default. They can be
+enabled by setting DOC=ON, provided that ruby/rubygem-asciidoctor is installed.
diff --git a/network/weechat/weechat.SlackBuild b/network/weechat/weechat.SlackBuild
index 1098af890a..e9f93f3289 100644
--- a/network/weechat/weechat.SlackBuild
+++ b/network/weechat/weechat.SlackBuild
@@ -80,7 +80,8 @@ cd build
-DENABLE_JAVASCRIPT=OFF \
-DENABLE_PHP=OFF \
-DENABLE_PYTHON=ON \
- -DENABLE_DOC=OFF \
+ -DENABLE_DOC=${DOC:-OFF} \
+ -DENABLE_MAN=${DOC:-OFF} \
-DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
-DCMAKE_BUILD_TYPE=Release \
..
@@ -96,6 +97,9 @@ if [ -e $PKG/usr/share/man ]; then
fi
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
+if [ -e $PKG/usr/share/doc/$PRGNAM ]; then
+ mv $PKG/usr/share/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION/html
+fi
cp -a \
AUTHORS.adoc COPYING ChangeLog.adoc README.adoc ReleaseNotes.adoc \
$PKG/usr/doc/$PRGNAM-$VERSION