summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
Diffstat (limited to 'eclass')
-rw-r--r--eclass/Manifest.gzbin41170 -> 41172 bytes
-rw-r--r--eclass/cmake-utils.eclass34
-rw-r--r--eclass/obs-download.eclass2
-rw-r--r--eclass/obs-service.eclass2
4 files changed, 21 insertions, 17 deletions
diff --git a/eclass/Manifest.gz b/eclass/Manifest.gz
index d4c56be6b46d..856b221307d1 100644
--- a/eclass/Manifest.gz
+++ b/eclass/Manifest.gz
Binary files differ
diff --git a/eclass/cmake-utils.eclass b/eclass/cmake-utils.eclass
index 3a5a1f24cedb..f8853be502a1 100644
--- a/eclass/cmake-utils.eclass
+++ b/eclass/cmake-utils.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: cmake-utils.eclass
@@ -58,7 +58,7 @@ _CMAKE_UTILS_ECLASS=1
# @ECLASS-VARIABLE: CMAKE_MIN_VERSION
# @DESCRIPTION:
# Specify the minimum required CMake version.
-: ${CMAKE_MIN_VERSION:=3.7.2}
+: ${CMAKE_MIN_VERSION:=3.9.6}
# @ECLASS-VARIABLE: CMAKE_REMOVE_MODULES
# @DESCRIPTION:
@@ -109,8 +109,12 @@ case ${EAPI} in
*) die "EAPI=${EAPI:-0} is not supported" ;;
esac
-inherit toolchain-funcs multilib ninja-utils flag-o-matic eutils \
- multiprocessing versionator xdg-utils
+inherit toolchain-funcs ninja-utils flag-o-matic multiprocessing versionator xdg-utils
+
+case ${EAPI} in
+ 7) ;;
+ *) inherit eutils multilib ;;
+esac
EXPORT_FUNCTIONS src_prepare src_configure src_compile src_test src_install
@@ -568,10 +572,10 @@ cmake-utils_src_configure() {
# When cross-compiling with a sysroot (e.g. with crossdev's emerge wrappers)
# we need to tell cmake to use libs/headers from the sysroot but programs from / only.
cat >> "${toolchain_file}" <<- _EOF_ || die
- set(CMAKE_FIND_ROOT_PATH "${SYSROOT}")
- set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
- set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
- set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
+ SET (CMAKE_FIND_ROOT_PATH "${SYSROOT}")
+ SET (CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)
+ SET (CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)
+ SET (CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)
_EOF_
fi
fi
@@ -587,11 +591,11 @@ cmake-utils_src_configure() {
ELSE ()
- SET(CMAKE_PREFIX_PATH "${EPREFIX}/usr" CACHE STRING "" FORCE)
- SET(CMAKE_MACOSX_RPATH ON CACHE BOOL "" FORCE)
- SET(CMAKE_SKIP_BUILD_RPATH OFF CACHE BOOL "" FORCE)
- SET(CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE)
- SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "" FORCE)
+ SET (CMAKE_PREFIX_PATH "${EPREFIX}/usr" CACHE STRING "" FORCE)
+ SET (CMAKE_MACOSX_RPATH ON CACHE BOOL "" FORCE)
+ SET (CMAKE_SKIP_BUILD_RPATH OFF CACHE BOOL "" FORCE)
+ SET (CMAKE_SKIP_RPATH OFF CACHE BOOL "" FORCE)
+ SET (CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE CACHE BOOL "" FORCE)
ENDIF (NOT APPLE)
_EOF_
@@ -604,8 +608,8 @@ cmake-utils_src_configure() {
SET (CMAKE_GENTOO_BUILD ON CACHE BOOL "Indicate Gentoo package build")
SET (LIB_SUFFIX ${libdir/lib} CACHE STRING "library path suffix" FORCE)
SET (CMAKE_INSTALL_LIBDIR ${libdir} CACHE PATH "Output directory for libraries")
- set (CMAKE_INSTALL_INFODIR "${EPREFIX}/usr/share/info" CACHE PATH "")
- set (CMAKE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "")
+ SET (CMAKE_INSTALL_INFODIR "${EPREFIX}/usr/share/info" CACHE PATH "")
+ SET (CMAKE_INSTALL_MANDIR "${EPREFIX}/usr/share/man" CACHE PATH "")
_EOF_
[[ "${NOCOLOR}" = true || "${NOCOLOR}" = yes ]] && echo 'SET (CMAKE_COLOR_MAKEFILE OFF CACHE BOOL "pretty colors during make" FORCE)' >> "${common_config}"
diff --git a/eclass/obs-download.eclass b/eclass/obs-download.eclass
index 5ed65410c51d..7c824869ae6d 100644
--- a/eclass/obs-download.eclass
+++ b/eclass/obs-download.eclass
@@ -3,7 +3,7 @@
# @ECLASS: obs-download.eclass
# @MAINTAINER:
-# suse@gentoo.org
+# maintainer-needed@gentoo.org
# @BLURB: Simplifies downloading from openSUSE Build Service.
# @DESCRIPTION:
# This eclass constructs OBS_URI based on provided project in openSUSE Build
diff --git a/eclass/obs-service.eclass b/eclass/obs-service.eclass
index f0397d1fe523..3240cc019a2f 100644
--- a/eclass/obs-service.eclass
+++ b/eclass/obs-service.eclass
@@ -3,7 +3,7 @@
# @ECLASS: obs-service.eclass
# @MAINTAINER:
-# suse@gentoo.org
+# maintainer-needed@gentoo.org
# @BLURB: Reduces code duplication in the Open Build Service services.
# @DESCRIPTION:
# This eclass makes it easier to package Open Build Service services. Based on