-# Copyright 1999-2016 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
-inherit vim-plugin eutils
+inherit vim-plugin
DESCRIPTION="vim plugin: enhanced comment creation"
HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=23"
LICENSE="BSD"
-KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"
-IUSE=""
+KEYWORDS="alpha amd64 ia64 mips ppc sparc x86"
VIM_PLUGIN_HELPFILES="EnhancedCommentify"
-DEPEND="
- >=sys-apps/sed-4"
+DEPEND="sys-apps/sed"
# See bug #74897.
RDEPEND="
${DEPEND}
!app-vim/ctx"
-src_prepare() {
- default
-
+PATCHES=(
# See bug #79185.
- epatch "${FILESDIR}"/${PN}-2.1-gentooisms.patch
- epatch "${FILESDIR}"/${PN}-2.1-extra-ft-support.patch
-}
+ "${FILESDIR}"/${PN}-2.1-gentooisms.patch
+ "${FILESDIR}"/${PN}-2.1-extra-ft-support.patch
+)
---- plugin/EnhancedCommentify.vim.orig 2005-03-01 02:28:23.409962824 -0500
-+++ plugin/EnhancedCommentify.vim 2005-03-01 02:29:45.695453528 -0500
+--- a/plugin/EnhancedCommentify.vim 2005-03-01 02:28:23.409962824 -0500
++++ b/plugin/EnhancedCommentify.vim 2005-03-01 02:29:45.695453528 -0500
@@ -740,7 +740,9 @@
\ 'psf\|ptcap\|r\|radiance\|ratpoison\|readline\remind\|'.
\ 'ruby\|screen\|sed\|sm\|snnsnet\|snnspat\|snnsres\|spec\|'.
---- plugin/EnhancedCommentify.vim.orig 2005-01-27 00:20:00.049461056 -0500
-+++ plugin/EnhancedCommentify.vim 2005-01-27 00:17:57.617073608 -0500
+--- a/plugin/EnhancedCommentify.vim 2005-01-27 00:20:00.049461056 -0500
++++ b/plugin/EnhancedCommentify.vim 2005-01-27 00:17:57.617073608 -0500
@@ -628,6 +628,10 @@
" letter.
if match(synFiletype, '\l\+\u') == 0