summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorAlexis Ballier <aballier@gentoo.org>2015-10-26 13:26:31 +0100
committerAlexis Ballier <aballier@gentoo.org>2015-10-26 13:26:53 +0100
commit229ca41113d1ebcc566d1a4e575579321666bafc (patch)
tree97fc5c35da6158a616174d864dfbe0d14c1bebe3 /eclass
parentdev-libs/libuv: restrict tests, they are constantly broken (diff)
downloadgentoo-229ca41113d1ebcc566d1a4e575579321666bafc.tar.gz
gentoo-229ca41113d1ebcc566d1a4e575579321666bafc.tar.bz2
gentoo-229ca41113d1ebcc566d1a4e575579321666bafc.zip
eclass: Allow ebuilds to override docdir in oasis.eclass.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/oasis.eclass9
1 files changed, 8 insertions, 1 deletions
diff --git a/eclass/oasis.eclass b/eclass/oasis.eclass
index 7dc86f3633cf..7a341ceb4c42 100644
--- a/eclass/oasis.eclass
+++ b/eclass/oasis.eclass
@@ -42,6 +42,13 @@
# The eclass takes care of setting debug in IUSE.
# Set before inheriting the eclass.
+# @ECLASS-VARIABLE: OASIS_DOC_DIR
+# @DESCRIPTION:
+# Specify where to install documentation. Default is for ocamldoc HTML.
+# Change it before inherit if this is not what you want.
+# EPREFIX is automatically prepended.
+: ${OASIS_DOC_DIR:="/usr/share/doc/${PF}/html"}
+
inherit multilib findlib eutils base
case ${EAPI:-0} in
@@ -80,7 +87,7 @@ oasis_src_configure() {
${OASIS_SETUP_COMMAND:-ocaml setup.ml} -configure \
--prefix "${EPREFIX}/usr" \
--libdir "${EPREFIX}/usr/$(get_libdir)" \
- --docdir "${EPREFIX}/usr/share/doc/${PF}/html" \
+ --docdir "${EPREFIX}${OASIS_DOC_DIR}" \
--destdir "${D}" \
$(oasis_use_enable ocamlopt is_native) \
${confargs} \