Permalink
Browse files

app-vim/gentoo-syntax stable package restored.

  • Loading branch information...
1 parent a180c63 commit a3e6d54ee1a394e625278c5a899c50b6854a31ac @Garrappachc Garrappachc committed Jan 10, 2012
@@ -1,3 +1,6 @@
AUX make-conf-colorize.patch 3098 RMD160 edf24e00100f58214e0b1853b7bb2d1df1d8a7dd SHA1 5dffd2362126ce036d3f990b8b2b8fdf7c2d0c35 SHA256 ebbe6b9299abe6c403f09e8733751275f111c3a04d0f6c6bc355b8b7056a63f7
+DIST gentoo-syntax-20101212.tar.bz2 18927 RMD160 f17bc03506037dd1c5236ec97a3292b4a4e65f5a SHA1 a1d29bb9cc93b1307ef4c665127d4fceacfa363d SHA256 70bb59acb00a726941e43d8f99d63ee9feb9335de9eb6d36e66917f2a2d3416f
DIST gentoo-syntax-20120109.tar.bz2 19526 RMD160 17630802e8bc1c59be9e2d37b11e7584a9c99d1d SHA1 b2d478ce3646ea8126ea9c25e5223b4d2e810744 SHA256 dabab1a569ec84286d15feb93652f044888d92c0e0c8c1f298f8dec80fcab4c5
-EBUILD gentoo-syntax-20120109.ebuild 1871 RMD160 042e31b279c7ffb4dd4d6cd561398977bb5e2143 SHA1 1e49eaf4746aa004dee0c0a53fe946875ae6cc23 SHA256 0817cdc6a980336b2a719e117f442dddc446fd43d463346e574d1f81edb4c2e1
+EBUILD gentoo-syntax-20101212.ebuild 1882 RMD160 25e1fbe2df3e3d67b9ede14993fc6fca4059eae7 SHA1 ca1745c571df46c9778c4b490958566dbd377b2f SHA256 f931214e5dafb0edc6baffa139d1b451983ac584b25dcc980e704fbd92c2c03a
+EBUILD gentoo-syntax-20120109.ebuild 1878 RMD160 8131d47ba38ec30088afbb5b2b190dd900943d06 SHA1 a7c907e70f82f5174e57f9354b672ff4310e6def SHA256 ee16dbd9ad2a88a095efc1b0dc2947a14a8b57d2dbc87581babade421404bac8
+MISC gentoo-syntax-20120109.ebuild~ 1871 RMD160 042e31b279c7ffb4dd4d6cd561398977bb5e2143 SHA1 1e49eaf4746aa004dee0c0a53fe946875ae6cc23 SHA256 0817cdc6a980336b2a719e117f442dddc446fd43d463346e574d1f81edb4c2e1
@@ -0,0 +1,50 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-vim/gentoo-syntax/gentoo-syntax-20101212.ebuild,v 1.3 2011/05/03 09:34:13 grobian Exp $
+
+inherit eutils vim-plugin
+
+DESCRIPTION="vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings"
+HOMEPAGE="http://www.gentoo.org/"
+SRC_URI="mirror://gentoo/${P}.tar.bz2"
+
+LICENSE="vim"
+KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~ppc-aix ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~hppa-hpux ~ia64-hpux ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+IUSE="ignore-glep31"
+
+VIM_PLUGIN_HELPFILES="gentoo-syntax"
+VIM_PLUGIN_MESSAGES="filetype"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ if use ignore-glep31 ; then
+ for f in ftplugin/*.vim ; do
+ ebegin "Removing UTF-8 rules from ${f} ..."
+ sed -i -e 's~\(setlocal fileencoding=utf-8\)~" \1~' ${f} \
+ || die "waah! bad sed voodoo. need more goats."
+ eend $?
+ done
+ fi
+
+ epatch "${FILESDIR}/make-conf-colorize.patch"
+}
+
+pkg_postinst() {
+ vim-plugin_pkg_postinst
+ if use ignore-glep31 1>/dev/null ; then
+ ewarn "You have chosen to disable the rules which ensure GLEP 31"
+ ewarn "compliance. When editing ebuilds, please make sure you get"
+ ewarn "the character set correct."
+ else
+ elog "Note for developers and anyone else who edits ebuilds:"
+ elog " This release of gentoo-syntax now contains filetype rules to set"
+ elog " fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31."
+ elog " If you find this feature breaks things, please submit a bug and"
+ elog " assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE"
+ elog " flag to remove these rules."
+ fi
+ echo
+}
+
@@ -4,7 +4,7 @@
EAPI=4
-inherit vim-plugin
+inherit eutils vim-plugin
DESCRIPTION="vim plugin: Gentoo Ebuild, Eclass, GLEP, ChangeLog and Portage Files syntax highlighting, filetype and indent settings"
HOMEPAGE="http://www.gentoo.org/"

0 comments on commit a3e6d54

Please sign in to comment.