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 80985139084 for ; Sun, 10 Dec 2017 02:27:58 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 491DCE0FE9; Sun, 10 Dec 2017 02:27:57 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 11E8FE0FE9 for ; Sun, 10 Dec 2017 02:27:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8A9633C4EE for ; Sun, 10 Dec 2017 02:27:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A3DFAE7F for ; Sun, 10 Dec 2017 02:27:53 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: <1512872745.61045949abc0ec1e9691eac416825201bc649d8a.blueness@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-vpn/i2pd/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-vpn/i2pd/i2pd-2.15.0.ebuild net-vpn/i2pd/i2pd-2.16.0.ebuild net-vpn/i2pd/i2pd-2.17.0.ebuild X-VCS-Directories: net-vpn/i2pd/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 61045949abc0ec1e9691eac416825201bc649d8a X-VCS-Branch: master Date: Sun, 10 Dec 2017 02:27:53 +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: 86cf48d0-7ea2-42ca-aecf-ae8f00aabf44 X-Archives-Hash: 18882eddbc1e164fdc69213f34367dc1 commit: 61045949abc0ec1e9691eac416825201bc649d8a Author: Alexey Korepanov yandex ru> AuthorDate: Sat Dec 9 17:09:40 2017 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sun Dec 10 02:25:45 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=61045949 net-vpn/i2pd: make compiler version check right Signed-off-by: Anthony G. Basile gentoo.org> net-vpn/i2pd/i2pd-2.15.0.ebuild | 18 +++++++++++++----- net-vpn/i2pd/i2pd-2.16.0.ebuild | 18 +++++++++++++----- net-vpn/i2pd/i2pd-2.17.0.ebuild | 18 +++++++++++++----- 3 files changed, 39 insertions(+), 15 deletions(-) diff --git a/net-vpn/i2pd/i2pd-2.15.0.ebuild b/net-vpn/i2pd/i2pd-2.15.0.ebuild index a5cedbfaa37..2c29b4139a6 100644 --- a/net-vpn/i2pd/i2pd-2.15.0.ebuild +++ b/net-vpn/i2pd/i2pd-2.15.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils systemd user cmake-utils +inherit eutils systemd user cmake-utils versionator toolchain-funcs DESCRIPTION="A C++ daemon for accessing the I2P anonymous network" HOMEPAGE="https://github.com/PurpleI2P/i2pd" @@ -26,10 +26,9 @@ DEPEND="${RDEPEND} libressl? ( dev-libs/libressl:0[static-libs] >=dev-libs/boost-1.65 ) sys-libs/zlib[static-libs] - upnp? ( net-libs/miniupnpc[static-libs] ) ) - websocket? ( dev-cpp/websocketpp ) - i2p-hardening? ( >=sys-devel/gcc-4.7 ) - || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 )" + upnp? ( net-libs/miniupnpc[static-libs] ) + ) + websocket? ( dev-cpp/websocketpp )" I2PD_USER=i2pd I2PD_GROUP=i2pd @@ -40,6 +39,15 @@ DOCS=( README.md contrib/i2pd.conf contrib/tunnels.conf ) PATCHES=( "${FILESDIR}/${PN}-2.14.0-fix_installed_components.patch" ) +pkg_pretend() { + if tc-is-gcc && ! version_is_at_least "4.7" "$(gcc-version)"; then + die "At least gcc 4.7 is required" + fi + if use i2p-hardening && ! tc-is-gcc; then + die "i2p-hardening requires gcc" + fi +} + src_configure() { mycmakeargs=( -DWITH_AESNI=$(usex cpu_flags_x86_aes ON OFF) diff --git a/net-vpn/i2pd/i2pd-2.16.0.ebuild b/net-vpn/i2pd/i2pd-2.16.0.ebuild index a5cedbfaa37..2c29b4139a6 100644 --- a/net-vpn/i2pd/i2pd-2.16.0.ebuild +++ b/net-vpn/i2pd/i2pd-2.16.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils systemd user cmake-utils +inherit eutils systemd user cmake-utils versionator toolchain-funcs DESCRIPTION="A C++ daemon for accessing the I2P anonymous network" HOMEPAGE="https://github.com/PurpleI2P/i2pd" @@ -26,10 +26,9 @@ DEPEND="${RDEPEND} libressl? ( dev-libs/libressl:0[static-libs] >=dev-libs/boost-1.65 ) sys-libs/zlib[static-libs] - upnp? ( net-libs/miniupnpc[static-libs] ) ) - websocket? ( dev-cpp/websocketpp ) - i2p-hardening? ( >=sys-devel/gcc-4.7 ) - || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 )" + upnp? ( net-libs/miniupnpc[static-libs] ) + ) + websocket? ( dev-cpp/websocketpp )" I2PD_USER=i2pd I2PD_GROUP=i2pd @@ -40,6 +39,15 @@ DOCS=( README.md contrib/i2pd.conf contrib/tunnels.conf ) PATCHES=( "${FILESDIR}/${PN}-2.14.0-fix_installed_components.patch" ) +pkg_pretend() { + if tc-is-gcc && ! version_is_at_least "4.7" "$(gcc-version)"; then + die "At least gcc 4.7 is required" + fi + if use i2p-hardening && ! tc-is-gcc; then + die "i2p-hardening requires gcc" + fi +} + src_configure() { mycmakeargs=( -DWITH_AESNI=$(usex cpu_flags_x86_aes ON OFF) diff --git a/net-vpn/i2pd/i2pd-2.17.0.ebuild b/net-vpn/i2pd/i2pd-2.17.0.ebuild index a5cedbfaa37..2c29b4139a6 100644 --- a/net-vpn/i2pd/i2pd-2.17.0.ebuild +++ b/net-vpn/i2pd/i2pd-2.17.0.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit eutils systemd user cmake-utils +inherit eutils systemd user cmake-utils versionator toolchain-funcs DESCRIPTION="A C++ daemon for accessing the I2P anonymous network" HOMEPAGE="https://github.com/PurpleI2P/i2pd" @@ -26,10 +26,9 @@ DEPEND="${RDEPEND} libressl? ( dev-libs/libressl:0[static-libs] >=dev-libs/boost-1.65 ) sys-libs/zlib[static-libs] - upnp? ( net-libs/miniupnpc[static-libs] ) ) - websocket? ( dev-cpp/websocketpp ) - i2p-hardening? ( >=sys-devel/gcc-4.7 ) - || ( >=sys-devel/gcc-4.7 >=sys-devel/clang-3.3 )" + upnp? ( net-libs/miniupnpc[static-libs] ) + ) + websocket? ( dev-cpp/websocketpp )" I2PD_USER=i2pd I2PD_GROUP=i2pd @@ -40,6 +39,15 @@ DOCS=( README.md contrib/i2pd.conf contrib/tunnels.conf ) PATCHES=( "${FILESDIR}/${PN}-2.14.0-fix_installed_components.patch" ) +pkg_pretend() { + if tc-is-gcc && ! version_is_at_least "4.7" "$(gcc-version)"; then + die "At least gcc 4.7 is required" + fi + if use i2p-hardening && ! tc-is-gcc; then + die "i2p-hardening requires gcc" + fi +} + src_configure() { mycmakeargs=( -DWITH_AESNI=$(usex cpu_flags_x86_aes ON OFF)