1 |
Introduce RUBY_FAKEGEM_EXTENSION_OPTIONS to allow setting options for |
2 |
extensions. |
3 |
|
4 |
Signed-off-by: Hans de Graaff <graaff@g.o> |
5 |
--- |
6 |
eclass/ruby-fakegem.eclass | 9 ++++++++- |
7 |
1 file changed, 8 insertions(+), 1 deletion(-) |
8 |
|
9 |
diff --git a/eclass/ruby-fakegem.eclass b/eclass/ruby-fakegem.eclass |
10 |
index 4b954615cac9..a907a12831b5 100644 |
11 |
--- a/eclass/ruby-fakegem.eclass |
12 |
+++ b/eclass/ruby-fakegem.eclass |
13 |
@@ -123,6 +123,13 @@ RUBY_FAKEGEM_BINDIR="${RUBY_FAKEGEM_BINDIR-bin}" |
14 |
# the configuration script that needs to be run to generate the |
15 |
# extension. |
16 |
|
17 |
+# @ECLASS-VARIABLE: RUBY_FAKEGEM_EXTENSION_OPTIONS |
18 |
+# @DEFAULT_UNSET |
19 |
+# @DESCRIPTION: |
20 |
+# Additional options that are passed when configuring the |
21 |
+# extension. Some extensions use this to locate paths or turn specific |
22 |
+# parts of the extionsion on or off. |
23 |
+ |
24 |
# @ECLASS-VARIABLE: RUBY_FAKEGEM_EXTENSION_LIBDIR |
25 |
# @DESCRIPTION: |
26 |
# The lib directory where extensions are copied directly after they have |
27 |
@@ -404,7 +411,7 @@ EOF |
28 |
each_fakegem_configure() { |
29 |
tc-export PKG_CONFIG |
30 |
for extension in "${RUBY_FAKEGEM_EXTENSIONS[@]}" ; do |
31 |
- CC=$(tc-getCC) ${RUBY} --disable=did_you_mean -C ${extension%/*} ${extension##*/} || die |
32 |
+ CC=$(tc-getCC) ${RUBY} --disable=did_you_mean -C ${extension%/*} ${extension##*/} ${RUBY_FAKEGM_EXTENSION_OPTIONS} || die |
33 |
done |
34 |
} |
35 |
|
36 |
-- |
37 |
2.32.0 |