summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Harder <radhermit@gentoo.org>2011-07-04 20:54:30 +0000
committerTim Harder <radhermit@gentoo.org>2011-07-04 20:54:30 +0000
commit4a18ecb28b8fe6533966d519d6250378ed300c87 (patch)
tree9af3ae574db7db26ee6240c8bf796a309ea0d2b2 /app-vim
parentRemove old version (diff)
downloadgentoo-2-4a18ecb28b8fe6533966d519d6250378ed300c87.tar.gz
gentoo-2-4a18ecb28b8fe6533966d519d6250378ed300c87.tar.bz2
gentoo-2-4a18ecb28b8fe6533966d519d6250378ed300c87.zip
Revision bump. Fix overwriting templates issue (bug #373765).
(Portage version: 2.2.0_alpha41/cvs/Linux x86_64)
Diffstat (limited to 'app-vim')
-rw-r--r--app-vim/perl-support/ChangeLog8
-rw-r--r--app-vim/perl-support/files/perl-support-4.12-local-templates.patch11
-rw-r--r--app-vim/perl-support/perl-support-4.12-r1.ebuild37
3 files changed, 55 insertions, 1 deletions
diff --git a/app-vim/perl-support/ChangeLog b/app-vim/perl-support/ChangeLog
index b00d47c2d0d0..dfa0b1c44030 100644
--- a/app-vim/perl-support/ChangeLog
+++ b/app-vim/perl-support/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-vim/perl-support
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-vim/perl-support/ChangeLog,v 1.37 2011/06/24 17:50:32 radhermit Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-vim/perl-support/ChangeLog,v 1.38 2011/07/04 20:54:30 radhermit Exp $
+
+*perl-support-4.12-r1 (04 Jul 2011)
+
+ 04 Jul 2011; Tim Harder <radhermit@gentoo.org> +perl-support-4.12-r1.ebuild,
+ +files/perl-support-4.12-local-templates.patch:
+ Revision bump. Fix overwriting templates issue (bug #373765).
*perl-support-4.12 (24 Jun 2011)
diff --git a/app-vim/perl-support/files/perl-support-4.12-local-templates.patch b/app-vim/perl-support/files/perl-support-4.12-local-templates.patch
new file mode 100644
index 000000000000..9007fd65a34c
--- /dev/null
+++ b/app-vim/perl-support/files/perl-support-4.12-local-templates.patch
@@ -0,0 +1,11 @@
+--- plugin/perl-support.vim.orig
++++ plugin/perl-support.vim
+@@ -145,7 +145,7 @@
+ let s:Perl_GlobalTemplateFile = s:Perl_GlobalTemplateDir.'/Templates'
+ endif
+ "
+- let s:Perl_LocalTemplateFile = s:plugin_dir.'/perl-support/templates/Templates'
++ let s:Perl_LocalTemplateFile = $HOME.'/.vim/perl-support/templates/Templates'
+ let s:Perl_LocalTemplateDir = fnamemodify( s:Perl_LocalTemplateFile, ":p:h" ).'/'
+ let s:Perl_CodeSnippets = s:plugin_dir.'/perl-support/codesnippets/'
+ let s:escfilename = ' \%#[]'
diff --git a/app-vim/perl-support/perl-support-4.12-r1.ebuild b/app-vim/perl-support/perl-support-4.12-r1.ebuild
new file mode 100644
index 000000000000..2758c51b00de
--- /dev/null
+++ b/app-vim/perl-support/perl-support-4.12-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-vim/perl-support/perl-support-4.12-r1.ebuild,v 1.1 2011/07/04 20:54:30 radhermit Exp $
+
+EAPI=4
+
+inherit vim-plugin eutils
+
+DESCRIPTION="vim plugin: Perl-IDE - Write and run Perl scripts using menus and hotkeys"
+HOMEPAGE="http://www.vim.org/scripts/script.php?script_id=556"
+SRC_URI="https://github.com/vim-scripts/${PN}.vim/tarball/${PV} -> ${P}.tar.gz"
+LICENSE="as-is"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE=""
+
+VIM_PLUGIN_HELPFILES="perlsupport"
+
+RDEPEND="dev-perl/Perl-Tags
+ dev-perl/Perl-Critic"
+
+src_unpack() {
+ unpack ${A}
+ mv *-${PN}.vim-* "${S}"
+}
+
+src_prepare() {
+ # Don't set tabstop and shiftwidth
+ sed -i -e '/=4/s/^/"/' ftplugin/perl.vim
+
+ epatch "${FILESDIR}"/${P}-local-templates.patch
+}
+
+src_install() {
+ dodoc doc/{ChangeLog,perl-hot-keys.pdf}
+ rm doc/{ChangeLog,perl-hot-keys.*,pmdesc3.text}
+ vim-plugin_src_install
+}