From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id D1451138247 for ; Mon, 20 Jan 2014 17:54:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CE9CDE105A; Mon, 20 Jan 2014 17:53:27 +0000 (UTC) Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com [74.125.83.42]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1C9C0E104E for ; Mon, 20 Jan 2014 17:53:26 +0000 (UTC) Received: by mail-ee0-f42.google.com with SMTP id e49so3579922eek.15 for ; Mon, 20 Jan 2014 09:53:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=IzTiXocnk+59zwV9aiiBGuMYJ6UQYVQWF4pLKQ651XY=; b=uIvQRUEljIw4Ozb+yJDKsiOWjlJeZDOsW3/Go1ygwFbyMbTzW2SN9aO2YYRzDWy1x2 VswC2VY/hgIXaLDfHnug8I7KbIbMIQq4hz48jiWi36kQevbbv52zk0yblnq9fcF1NrB+ f54wxkbq3kUr+cwGDw4elaRyBeY7GjHURgixOgYBw0Ow8RjXj3kkExEi+2l0I7b5bAFM zEc9LpvikYPeZZgfTVqEmQzG7PNNsE3dMDY79tMWT+IGoO6/fOFd0kPRnStzcHd3zqf2 4HVkUMJLkjlbYVnxh45aajGFkLqsNCK7rEakIcRPFnxjykDYFGIZEUpyjvu2Q+Gn3ZNP OTFA== X-Received: by 10.14.2.73 with SMTP id 49mr19158735eee.15.1390240405872; Mon, 20 Jan 2014 09:53:25 -0800 (PST) Received: from localhost.localdomain (dsl-trebrasgw2-58c0d8-67.dhcp.inet.fi. [88.192.216.67]) by mx.google.com with ESMTPSA id o47sm5514777eem.21.2014.01.20.09.53.25 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Jan 2014 09:53:25 -0800 (PST) From: Reinis Danne To: gentoo-science@lists.gentoo.org Subject: [gentoo-science] [PATCH 07/10] alternatives-2.eclass: Add EAPI check Date: Mon, 20 Jan 2014 19:53:09 +0200 Message-Id: <1390240392-12173-8-git-send-email-rei4dan@gmail.com> X-Mailer: git-send-email 1.8.5.3 In-Reply-To: <1390240392-12173-1-git-send-email-rei4dan@gmail.com> References: <1390240392-12173-1-git-send-email-rei4dan@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-science@lists.gentoo.org Reply-to: gentoo-science@lists.gentoo.org X-Archives-Salt: 71963939-0a3e-4338-9f41-596db0ce2cf2 X-Archives-Hash: 6e97a3e526a3dc7f69ff7fe793513e8c --- eclass/alternatives-2.eclass | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eclass/alternatives-2.eclass b/eclass/alternatives-2.eclass index 9dc49af..5128e11 100644 --- a/eclass/alternatives-2.eclass +++ b/eclass/alternatives-2.eclass @@ -10,6 +10,17 @@ # If your package provides pkg_postinst or pkg_prerm phases, you need to be # sure you explicitly run alternatives-2_pkg_{postinst,prerm} where appropriate. +case "${EAPI:-0}" in + 0|1|2|3) + die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" + ;; + 4|5) + ;; + *) + die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" + ;; +esac + ALTERNATIVES_DIR="/etc/env.d/alternatives" DEPEND=">=app-admin/eselect-1.4-r100" -- 1.8.5.3