public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-util/cmake/, dev-util/cmake/files/
Date: Wed, 30 Nov 2016 09:42:21 +0000 (UTC)	[thread overview]
Message-ID: <1480498927.beaae227169e69fea254a848ce1313f4491f53b1.mgorny@gentoo> (raw)

commit:     beaae227169e69fea254a848ce1313f4491f53b1
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 27 12:30:35 2016 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 09:42:07 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=beaae227

dev-util/cmake: Support indicating Gentoo build via CMAKE_GENTOO_BUILD

Support indicating Gentoo package build using a new CMAKE_GENTOO_BUILD
CMake variable, as an alternative to relying on CMAKE_BUILD_TYPE being
equal to Gentoo. This makes it possible to reduce reliance on a custom
build type in the future.

 dev-util/cmake/{cmake-3.7.0.ebuild => cmake-3.7.0-r1.ebuild} | 0
 dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch     | 2 +-
 dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch      | 4 ++--
 dev-util/cmake/files/cmake-3.5.2-FindQt4.patch               | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/dev-util/cmake/cmake-3.7.0.ebuild b/dev-util/cmake/cmake-3.7.0-r1.ebuild
similarity index 100%
rename from dev-util/cmake/cmake-3.7.0.ebuild
rename to dev-util/cmake/cmake-3.7.0-r1.ebuild

diff --git a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
index 2a83ff7..5f9c266 100644
--- a/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
+++ b/dev-util/cmake/files/cmake-2.8.10.2-FindPythonLibs.patch
@@ -7,7 +7,7 @@ index bffa9fb..8fc90ee 100644
    )
  
 +# Gentoo portage requires that you use exactly the given python version
-+if (CMAKE_BUILD_TYPE STREQUAL Gentoo)
++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
 +    execute_process(COMMAND python -c "import sys; sys.stdout.write('.'.join([str(x) for x in sys.version_info[:2]]))"
 +                    OUTPUT_VARIABLE _Gentoo_Python_VERSION)
 +    list(FIND _Python_VERSIONS "${_Gentoo_Python_VERSION}" _Gentoo_Python_INDEX)

diff --git a/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch b/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch
index 3abb2e4..bb3ca95 100644
--- a/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch
+++ b/dev-util/cmake/files/cmake-3.1.0-FindPythonInterp.patch
@@ -5,7 +5,7 @@
      set(_PYTHON_FIND_OTHER_VERSIONS ${_PYTHON3_VERSIONS} ${_PYTHON2_VERSIONS} ${_PYTHON1_VERSIONS})
  endif()
 +
-+if (CMAKE_BUILD_TYPE STREQUAL Gentoo)
++if (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
 +    set(_Python_NAMES python)
 +endif()
 +
@@ -17,7 +17,7 @@
  
  # Search for newest python version if python executable isn't found
 -if(NOT PYTHON_EXECUTABLE)
-+if(NOT PYTHON_EXECUTABLE AND NOT CMAKE_BUILD_TYPE STREQUAL Gentoo)
++if(NOT PYTHON_EXECUTABLE AND NOT (CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo))
      foreach(_CURRENT_VERSION IN LISTS _Python_VERSIONS)
        set(_Python_NAMES python${_CURRENT_VERSION})
        if(WIN32)

diff --git a/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch b/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch
index 845fc6e..2f2764d 100644
--- a/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch
+++ b/dev-util/cmake/files/cmake-3.5.2-FindQt4.patch
@@ -23,7 +23,7 @@ Gentoo-bug: 547222
 -    PATH_SUFFIXES bin
 -    DOC "The qmake executable for the Qt installation to use"
 -  )
-+  if(CMAKE_BUILD_TYPE STREQUAL Gentoo)
++  if(CMAKE_GENTOO_BUILD OR CMAKE_BUILD_TYPE STREQUAL Gentoo)
 +    find_program(QT_QMAKE_EXECUTABLE NAMES ${QMAKE_NAME}
 +      PATHS
 +        $ENV{EPREFIX}/usr/${CMAKE_INSTALL_LIBDIR}/qt4/bin


             reply	other threads:[~2016-11-30  9:42 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-30  9:42 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-12-07 12:22 [gentoo-commits] repo/gentoo:master commit in: dev-util/cmake/, dev-util/cmake/files/ Sam James
2023-06-09  9:48 Sam James
2021-10-14 19:38 Lars Wendler
2021-09-02 10:43 Andreas Sturmlechner
2021-06-15 12:22 Lars Wendler
2021-02-26 21:19 Andreas Sturmlechner
2020-12-18 20:19 Fabian Groffen
2020-12-17 13:31 Andreas Sturmlechner
2020-12-17 10:23 Andreas Sturmlechner
2020-12-12 18:02 Andreas Sturmlechner
2020-07-22 16:26 Lars Wendler
2020-02-13 12:27 Lars Wendler
2019-07-04 19:40 Andreas Sturmlechner
2019-06-14 20:42 Andreas Sturmlechner
2019-03-01 22:21 Lars Wendler
2019-02-18  9:24 Lars Wendler
2019-02-10 22:18 Lars Wendler
2019-02-03  9:59 Benda XU
2018-07-19  9:33 Lars Wendler
2018-03-15 13:50 Lars Wendler
2018-02-19 13:08 Lars Wendler
2017-06-09  1:19 Lars Wendler
2017-03-23 12:20 Lars Wendler
2017-03-18  2:54 Michael Palimaka
2017-01-01 16:32 Johannes Huber
2016-05-21 18:36 Michael Palimaka
2015-11-13 12:42 Lars Wendler
2015-10-12 13:04 Michael Palimaka

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1480498927.beaae227169e69fea254a848ce1313f4491f53b1.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox