sys-kernel/dracut: Use optfeature from eutils.eclass
authorJustin Lecher <jlec@gentoo.org>
Sat, 12 Sep 2015 10:44:22 +0000 (12:44 +0200)
committerJustin Lecher <jlec@gentoo.org>
Sat, 12 Sep 2015 10:44:22 +0000 (12:44 +0200)
Package-Manager: portage-2.2.20
Signed-off-by: Justin Lecher <jlec@gentoo.org>
sys-kernel/dracut/dracut-040-r3.ebuild
sys-kernel/dracut/dracut-041-r3.ebuild
sys-kernel/dracut/dracut-043-r2.ebuild
sys-kernel/dracut/metadata.xml

index 1e44af4535011734a9d046632c4eddbe4ee126be..cc3554d189b0a3925f523702e0b88eaca1ca9190 100644 (file)
@@ -77,24 +77,6 @@ rm_module() {
        done
 }
 
-# Grabbed from net-misc/netctl ebuild.
-optfeature() {
-       local desc=$1
-       shift
-       while (( $# )); do
-               if has_version "$1"; then
-                       elog "  [I] $1 to ${desc}"
-               else
-                       elog "  [ ] $1 to ${desc}"
-               fi
-               shift
-       done
-}
-
-#
-# ebuild functions
-#
-
 src_prepare() {
        epatch "${PATCHES[@]}"
 
index 46660cfa185b1b09dca4f7daaf529b6a7eb9da40..9c8e7d6f940d3dd4aefd93614b0676b0602803a7 100644 (file)
@@ -80,24 +80,6 @@ rm_module() {
        done
 }
 
-# Grabbed from net-misc/netctl ebuild.
-optfeature() {
-       local desc=$1
-       shift
-       while (( $# )); do
-               if has_version "$1"; then
-                       elog "  [I] $1 to ${desc}"
-               else
-                       elog "  [ ] $1 to ${desc}"
-               fi
-               shift
-       done
-}
-
-#
-# ebuild functions
-#
-
 src_prepare() {
        epatch "${PATCHES[@]}"
 
index 9bb3d165ff3f75bd4ef170bb748467f1c9a17e90..2a65cf6abd079b7e7fc621af5c45291411c8a63f 100644 (file)
@@ -79,24 +79,6 @@ rm_module() {
        done
 }
 
-# Grabbed from net-misc/netctl ebuild.
-optfeature() {
-       local desc=$1
-       shift
-       while (( $# )); do
-               if has_version "$1"; then
-                       elog "  [I] $1 to ${desc}"
-               else
-                       elog "  [ ] $1 to ${desc}"
-               fi
-               shift
-       done
-}
-
-#
-# ebuild functions
-#
-
 src_prepare() {
        epatch "${PATCHES[@]}"
 
index d95852636990af64155ed26f378b4d2e1b5c977a..d4f4342f0ca03bdf89cba4a92f4fe876485d4ad9 100644 (file)
@@ -32,4 +32,3 @@
        distributions.
        </longdescription>
 </pkgmetadata>
-