From 89e80782350327dbcae6e70412b162f570274475 Mon Sep 17 00:00:00 2001 From: Justin Lecher Date: Sat, 12 Sep 2015 12:36:30 +0200 Subject: [PATCH] net-misc/netctl: Use optfeature from eutils.eclass Package-Manager: portage-2.2.20 Signed-off-by: Justin Lecher --- net-misc/netctl/netctl-1.10.ebuild | 15 +-------------- net-misc/netctl/netctl-1.9.ebuild | 15 +-------------- net-misc/netctl/netctl-9999.ebuild | 17 ++--------------- 3 files changed, 4 insertions(+), 43 deletions(-) diff --git a/net-misc/netctl/netctl-1.10.ebuild b/net-misc/netctl/netctl-1.10.ebuild index 88a933e680b8..4a6ba6fb7d38 100644 --- a/net-misc/netctl/netctl-1.10.ebuild +++ b/net-misc/netctl/netctl-1.10.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit bash-completion-r1 +inherit bash-completion-r1 eutils if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="git://projects.archlinux.org/netctl.git" @@ -54,19 +54,6 @@ src_install() { newins contrib/zsh-completion _netctl } -optfeature() { - local desc=$1 - shift - while (( $# )); do - if has_version "$1"; then - elog " [I] $1 for ${desc}" - else - elog " [ ] $1 for ${desc}" - fi - shift - done -} - pkg_postinst() { if [[ -z ${REPLACING_VERSIONS} ]]; then elog "To get additional features, a number of optional runtime dependencies may be" diff --git a/net-misc/netctl/netctl-1.9.ebuild b/net-misc/netctl/netctl-1.9.ebuild index 8fd90dca1862..cf44dd20c24c 100644 --- a/net-misc/netctl/netctl-1.9.ebuild +++ b/net-misc/netctl/netctl-1.9.ebuild @@ -4,7 +4,7 @@ EAPI=5 -inherit bash-completion-r1 +inherit bash-completion-r1 eutils if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="git://projects.archlinux.org/netctl.git" @@ -54,19 +54,6 @@ src_install() { newins contrib/zsh-completion _netctl } -optfeature() { - local desc=$1 - shift - while (( $# )); do - if has_version "$1"; then - elog " [I] $1 for ${desc}" - else - elog " [ ] $1 for ${desc}" - fi - shift - done -} - pkg_postinst() { if [[ -z ${REPLACING_VERSIONS} ]]; then elog "To get additional features, a number of optional runtime dependencies may be" diff --git a/net-misc/netctl/netctl-9999.ebuild b/net-misc/netctl/netctl-9999.ebuild index 87bbb92b396b..d85787dd2937 100644 --- a/net-misc/netctl/netctl-9999.ebuild +++ b/net-misc/netctl/netctl-9999.ebuild @@ -1,10 +1,10 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2015 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ EAPI=5 -inherit bash-completion-r1 +inherit bash-completion-r1 eutils if [[ ${PV} = *9999* ]]; then EGIT_REPO_URI="git://projects.archlinux.org/netctl.git" @@ -53,19 +53,6 @@ src_install() { newins contrib/zsh-completion _netctl } -optfeature() { - local desc=$1 - shift - while (( $# )); do - if has_version "$1"; then - elog " [I] $1 for ${desc}" - else - elog " [ ] $1 for ${desc}" - fi - shift - done -} - pkg_postinst() { if [[ -z ${REPLACING_VERSIONS} ]]; then elog "To get additional features, a number of optional runtime dependencies may be" -- 2.26.2