[Lunar-commits] <moonbase-core> btrfs-progs: graciously handle documentation

Stefan Wold ratler at lunar-linux.org
Tue Aug 12 18:09:31 CEST 2014


commit 4e9a2ec808d688af969eb5f1661a2c04011bbed7
Author: Stefan Wold <ratler at lunar-linux.org>
Date: Tue, 12 Aug 2014 18:09:08 +0200
URL: https://github.com/lunar-linux/moonbase-core/commit/4e9a2ec808d688af969eb5f1661a2c04011bbed7

btrfs-progs: graciously handle documentation
---
  filesys/btrfs-progs/DEPENDS   | +2/-0     
  filesys/btrfs-progs/PRE_BUILD | +6/-0     
  2 files changed, 8 insertions(+)

--- a/filesys/btrfs-progs/DEPENDS
+++ b/filesys/btrfs-progs/DEPENDS
@@ -1 +1,3 @@
 depends lzo
+optional_depends xmlto "" "" "for documentation (also requires asciidoc)"
+optional_depends asciidoc "" "" "for documentation (also requires xmlto)"
--- /dev/null
+++ b/filesys/btrfs-progs/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+
+if ! in_depends $MODULE asciidoc || ! in_depends $MODULE xmlto; then
+  message "${PROBLEM_COLOR}WARNING: ${DEFAULT_COLOR}Installation of docs disabled, to enable documentation install asciidoc and xmlto then rebuild $MODULE!"
+  sedit 's;install-Documentation;;;s;build-Documentation;;' Makefile
+fi




More information about the Lunar-commits mailing list