From 650bfe249e60896e4315271d6840ee6f5840be10 Mon Sep 17 00:00:00 2001 From: Michael Gilroy Date: Sat, 8 Jul 2017 03:21:39 +0000 Subject: provided better comments for existing helper functions --- eclass/mpi-select-r1.eclass | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/eclass/mpi-select-r1.eclass b/eclass/mpi-select-r1.eclass index 78ebe94..078dbc2 100644 --- a/eclass/mpi-select-r1.eclass +++ b/eclass/mpi-select-r1.eclass @@ -96,6 +96,9 @@ mpi_foreach_implementation() echo "${status}" } +# @ECLASS-FUNCTION: mpi_wrapper +# @DESCRIPTION: +# Helper function for setting up environment mpi_wrapper() { export BUILD_DIR="${PF}-${ABI}" @@ -103,26 +106,42 @@ mpi_wrapper() echo ${impl} } +# @ECLASS-FUNCTION: mpi-select_get_implementation +# @DESCRIPTION: +# Helper function for getting the current implementation in use mpi-select_get_implementation() { echo "${PN}" } +# @ECLASS-FUNCTION: mpi-select_bindir +# @DESCRIPTION: +# Helper function for getting the directory for binaries to be installed to mpi-select_bindir() { echo "${D}/usr/bin/${PF}/" } +# @ECLASS-FUNCTION: mpi-select_libdir +# @DESCRIPTION: +# Helper function for getting the directory for libraries to be installed to mpi-select_libdir() { echo "${D}/usr/$(get_libdir)/${PF}/" } +# @ECLASS-FUNCTION: mpi-select_etcdir +# @DESCRIPTION: +# Helper function for getting the directory for /etc* to be installed to mpi-select_etcdir() { echo "${D}/etc/${PF}/" } +########################### +# MPI SRC PHASE FUNCTIONS # +########################### + mpi_src_configure() { append-cflags -std=gnu89 -- cgit v1.2.3-65-gdbad