1 |
aballier 14/10/29 14:21:52 |
2 |
|
3 |
Modified: oasis.eclass |
4 |
Log: |
5 |
Allow to override setup command from ebuilds; needed for deriving |
6 |
|
7 |
Revision Changes Path |
8 |
1.5 eclass/oasis.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/oasis.eclass?rev=1.5&view=markup |
11 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/oasis.eclass?rev=1.5&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/eclass/oasis.eclass?r1=1.4&r2=1.5 |
13 |
|
14 |
Index: oasis.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/oasis.eclass,v |
17 |
retrieving revision 1.4 |
18 |
retrieving revision 1.5 |
19 |
diff -u -r1.4 -r1.5 |
20 |
--- oasis.eclass 7 Feb 2013 13:42:12 -0000 1.4 |
21 |
+++ oasis.eclass 29 Oct 2014 14:21:52 -0000 1.5 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2012 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/oasis.eclass,v 1.4 2013/02/07 13:42:12 aballier Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/oasis.eclass,v 1.5 2014/10/29 14:21:52 aballier Exp $ |
27 |
|
28 |
# @ECLASS: oasis.eclass |
29 |
# @MAINTAINER: |
30 |
@@ -77,7 +77,7 @@ |
31 |
local confargs="" |
32 |
[ -n "${OASIS_BUILD_TESTS}" ] && confargs="${confargs} $(use_enable test tests)" |
33 |
[ -n "${OASIS_NO_DEBUG}" ] || confargs="${confargs} $(oasis_use_enable debug debug)" |
34 |
- ocaml setup.ml -configure \ |
35 |
+ ${OASIS_SETUP_COMMAND:-ocaml setup.ml} -configure \ |
36 |
--prefix "${EPREFIX}/usr" \ |
37 |
--libdir "${EPREFIX}/usr/$(get_libdir)" \ |
38 |
--docdir "${EPREFIX}/usr/share/doc/${PF}/html" \ |
39 |
@@ -94,7 +94,7 @@ |
40 |
# Will build documentation if OASIS_BUILD_DOCS is defined and the doc useflag is |
41 |
# enabled. |
42 |
oasis_src_compile() { |
43 |
- ocaml setup.ml -build || die |
44 |
+ ${OASIS_SETUP_COMMAND:-ocaml setup.ml} -build || die |
45 |
if [ -n "${OASIS_BUILD_DOCS}" ] && use doc; then |
46 |
ocaml setup.ml -doc || die |
47 |
fi |
48 |
@@ -104,7 +104,7 @@ |
49 |
# @DESCRIPTION: |
50 |
# Runs the testsuite of an oasis-based package. |
51 |
oasis_src_test() { |
52 |
- LD_LIBRARY_PATH="${S}/_build/lib" ocaml setup.ml -test || die |
53 |
+ LD_LIBRARY_PATH="${S}/_build/lib" ${OASIS_SETUP_COMMAND:-ocaml setup.ml} -test || die |
54 |
} |
55 |
|
56 |
# @FUNCTION: oasis_src_install |
57 |
@@ -114,7 +114,7 @@ |
58 |
# DOCS variable. |
59 |
oasis_src_install() { |
60 |
findlib_src_preinst |
61 |
- ocaml setup.ml -install || die |
62 |
+ ${OASIS_SETUP_COMMAND:-ocaml setup.ml} -install || die |
63 |
base_src_install_docs |
64 |
} |