summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Vacek <lucas.vacek@gmail.com>2020-08-14 19:51:07 +0800
committerMichael Orlitzky <mjo@gentoo.org>2020-08-15 07:58:18 -0400
commitf8a9632bfa9c08aace0c681c666ec5656521dba7 (patch)
tree4b9ec072d115e5723146db5707d6c37accb7e4c2
parentx11-wm/xmonad: drop old (diff)
downloadgentoo-f8a9632b.tar.gz
gentoo-f8a9632b.tar.bz2
gentoo-f8a9632b.zip
eclass: new class netsurf.eclass for netsurf build
This eclass contains one new function netsurf_define_makeconf which should be used in ebuilds instead of sourcing netsurf-buildsystem/gentoo-helpers.sh Signed-off-by: Lukas Vacek <lucas.vacek@gmail.com> Signed-off-by: Michael Orlitzky <mjo@gentoo.org>
-rw-r--r--eclass/netsurf.eclass42
1 files changed, 42 insertions, 0 deletions
diff --git a/eclass/netsurf.eclass b/eclass/netsurf.eclass
new file mode 100644
index 00000000000..065ed1e568f
--- /dev/null
+++ b/eclass/netsurf.eclass
@@ -0,0 +1,42 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# @ECLASS: netsurf.eclass
+# @MAINTAINER:
+# maintainer-needed@gentoo.org
+# @SUPPORTED_EAPIS: 7
+# @BLURB: Handle buildsystem of www.netsurf-browser.org components
+# @DESCRIPTION:
+# Handle settings build environment for netsurf build system
+
+case "${EAPI:-0}" in
+ 7) ;;
+ *) die "EAPI=${EAPI} is not supported" ;;
+esac
+
+inherit toolchain-funcs
+
+# @FUNCTION: netsurf_define_makeconf
+# @USAGE:
+# @DESCRIPTION:
+# This function sets NETSURF_MAKECONF as needed by netsurf build system
+netsurf_define_makeconf() {
+ NETSURF_MAKECONF=(
+ PREFIX="${EPREFIX}/usr"
+ NSSHARED="${EPREFIX}/usr/share/netsurf-buildsystem"
+ LIBDIR="$(get_libdir)"
+ Q=
+ CC="$(tc-getCC)"
+ LD="$(tc-getLD)"
+ HOST_CC="\$(CC)"
+ BUILD_CC="$(tc-getBUILD_CC)"
+ CXX="$(tc-getCXX)"
+ BUILD_CXX="$(tc-getBUILD_CXX)"
+ CCOPT=
+ CCNOOPT=
+ CCDBG=
+ LDDBG=
+ AR="$(tc-getAR)"
+ WARNFLAGS=
+ )
+}