1 |
commit: f8a9632bfa9c08aace0c681c666ec5656521dba7 |
2 |
Author: Lukas Vacek <lucas.vacek <AT> gmail <DOT> com> |
3 |
AuthorDate: Fri Aug 14 11:51:07 2020 +0000 |
4 |
Commit: Michael Orlitzky <mjo <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 15 11:58:18 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8a9632b |
7 |
|
8 |
eclass: new class netsurf.eclass for netsurf build |
9 |
|
10 |
This eclass contains one new function netsurf_define_makeconf which |
11 |
should be used in ebuilds instead of sourcing |
12 |
netsurf-buildsystem/gentoo-helpers.sh |
13 |
|
14 |
Signed-off-by: Lukas Vacek <lucas.vacek <AT> gmail.com> |
15 |
Signed-off-by: Michael Orlitzky <mjo <AT> gentoo.org> |
16 |
|
17 |
eclass/netsurf.eclass | 42 ++++++++++++++++++++++++++++++++++++++++++ |
18 |
1 file changed, 42 insertions(+) |
19 |
|
20 |
diff --git a/eclass/netsurf.eclass b/eclass/netsurf.eclass |
21 |
new file mode 100644 |
22 |
index 00000000000..065ed1e568f |
23 |
--- /dev/null |
24 |
+++ b/eclass/netsurf.eclass |
25 |
@@ -0,0 +1,42 @@ |
26 |
+# Copyright 1999-2020 Gentoo Authors |
27 |
+# Distributed under the terms of the GNU General Public License v2 |
28 |
+ |
29 |
+# @ECLASS: netsurf.eclass |
30 |
+# @MAINTAINER: |
31 |
+# maintainer-needed@g.o |
32 |
+# @SUPPORTED_EAPIS: 7 |
33 |
+# @BLURB: Handle buildsystem of www.netsurf-browser.org components |
34 |
+# @DESCRIPTION: |
35 |
+# Handle settings build environment for netsurf build system |
36 |
+ |
37 |
+case "${EAPI:-0}" in |
38 |
+ 7) ;; |
39 |
+ *) die "EAPI=${EAPI} is not supported" ;; |
40 |
+esac |
41 |
+ |
42 |
+inherit toolchain-funcs |
43 |
+ |
44 |
+# @FUNCTION: netsurf_define_makeconf |
45 |
+# @USAGE: |
46 |
+# @DESCRIPTION: |
47 |
+# This function sets NETSURF_MAKECONF as needed by netsurf build system |
48 |
+netsurf_define_makeconf() { |
49 |
+ NETSURF_MAKECONF=( |
50 |
+ PREFIX="${EPREFIX}/usr" |
51 |
+ NSSHARED="${EPREFIX}/usr/share/netsurf-buildsystem" |
52 |
+ LIBDIR="$(get_libdir)" |
53 |
+ Q= |
54 |
+ CC="$(tc-getCC)" |
55 |
+ LD="$(tc-getLD)" |
56 |
+ HOST_CC="\$(CC)" |
57 |
+ BUILD_CC="$(tc-getBUILD_CC)" |
58 |
+ CXX="$(tc-getCXX)" |
59 |
+ BUILD_CXX="$(tc-getBUILD_CXX)" |
60 |
+ CCOPT= |
61 |
+ CCNOOPT= |
62 |
+ CCDBG= |
63 |
+ LDDBG= |
64 |
+ AR="$(tc-getAR)" |
65 |
+ WARNFLAGS= |
66 |
+ ) |
67 |
+} |