From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 9758A139085 for ; Sun, 5 Feb 2017 12:20:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 07FF5E0D72; Sun, 5 Feb 2017 12:20:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id DACF3E0D72 for ; Sun, 5 Feb 2017 12:20:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D51E1341142 for ; Sun, 5 Feb 2017 12:20:08 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE5B73B9F for ; Sun, 5 Feb 2017 12:20:01 +0000 (UTC) From: "Andreas Hüttel" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Hüttel" Message-ID: <1486297183.3fba2dfaac848be10a36b94ad7e5844857d6f3ea.dilfridge@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/icu/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/icu/icu-58.1-r1.ebuild dev-libs/icu/icu-58.2.ebuild X-VCS-Directories: dev-libs/icu/ X-VCS-Committer: dilfridge X-VCS-Committer-Name: Andreas Hüttel X-VCS-Revision: 3fba2dfaac848be10a36b94ad7e5844857d6f3ea X-VCS-Branch: master Date: Sun, 5 Feb 2017 12:20:01 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 2872346b-ce98-4594-bc0c-bcf0a4680507 X-Archives-Hash: 348b47f857faa4cfbf29dd761d938eb5 commit: 3fba2dfaac848be10a36b94ad7e5844857d6f3ea Author: Andreas K. Hüttel gentoo org> AuthorDate: Sun Feb 5 12:18:29 2017 +0000 Commit: Andreas Hüttel gentoo org> CommitDate: Sun Feb 5 12:19:43 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fba2dfa dev-libs/icu: Add gcc version check Package-Manager: Portage-2.3.3, Repoman-2.3.1 dev-libs/icu/icu-58.1-r1.ebuild | 16 ++++++++++++++++ dev-libs/icu/icu-58.2.ebuild | 18 +++++++++++++++++- 2 files changed, 33 insertions(+), 1 deletion(-) diff --git a/dev-libs/icu/icu-58.1-r1.ebuild b/dev-libs/icu/icu-58.1-r1.ebuild index 98327a1..fc0a00e 100644 --- a/dev-libs/icu/icu-58.1-r1.ebuild +++ b/dev-libs/icu/icu-58.1-r1.ebuild @@ -35,6 +35,15 @@ PATCHES=( "${FILESDIR}/${PN}-58.1-iterator.patch" ) +pkg_pretend() { + if tc-is-gcc ; then + if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ + || $(gcc-major-version) -lt 4 ]] ; then + die "You need at least sys-devel/gcc-4.8.3" + fi + fi +} + src_prepare() { # apply patches default @@ -63,6 +72,13 @@ src_configure() { # Use C++14 append-cxxflags -std=c++14 + if tc-is-gcc ; then + if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ + || $(gcc-major-version) -lt 4 ]] ; then + die "You need at least sys-devel/gcc-4.8.3" + fi + fi + if tc-is-cross-compiler; then mkdir "${WORKDIR}"/host || die pushd "${WORKDIR}"/host >/dev/null || die diff --git a/dev-libs/icu/icu-58.2.ebuild b/dev-libs/icu/icu-58.2.ebuild index 449b5d5..ed2bf03 100644 --- a/dev-libs/icu/icu-58.2.ebuild +++ b/dev-libs/icu/icu-58.2.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2016 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -35,6 +35,15 @@ PATCHES=( "${FILESDIR}/${PN}-58.1-iterator.patch" ) +pkg_pretend() { + if tc-is-gcc ; then + if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ + || $(gcc-major-version) -lt 4 ]] ; then + die "You need at least sys-devel/gcc-4.8.3" + fi + fi +} + src_prepare() { # apply patches default @@ -63,6 +72,13 @@ src_configure() { # Use C++14 append-cxxflags -std=c++14 + if tc-is-gcc ; then + if [[ $(gcc-major-version) == 4 && $(gcc-minor-version) -lt 9 \ + || $(gcc-major-version) -lt 4 ]] ; then + die "You need at least sys-devel/gcc-4.8.3" + fi + fi + if tc-is-cross-compiler; then mkdir "${WORKDIR}"/host || die pushd "${WORKDIR}"/host >/dev/null || die