diff options
-rw-r--r-- | app-vim/gentoo-syntax/Manifest | 1 | ||||
-rw-r--r-- | app-vim/gentoo-syntax/gentoo-syntax-20150823.ebuild | 48 |
2 files changed, 49 insertions, 0 deletions
diff --git a/app-vim/gentoo-syntax/Manifest b/app-vim/gentoo-syntax/Manifest index 5861beb8fe18..4e919f9c38db 100644 --- a/app-vim/gentoo-syntax/Manifest +++ b/app-vim/gentoo-syntax/Manifest @@ -1,3 +1,4 @@ DIST gentoo-syntax-20120109.tar.bz2 19526 SHA256 dabab1a569ec84286d15feb93652f044888d92c0e0c8c1f298f8dec80fcab4c5 SHA512 cbd0215dc8b5d89f3c0ec2aaa274f05d47891f67a7e5513af04ae53374c4adf6686e7fce2446d329033b951bf0106cc96075015ecaeaa38983b843bbac0119bf WHIRLPOOL 05ea6343ebdf3263392348bc1d0be045915232c58c652f85a2f38b31c612aa3466379329bef735b08e0d74856ff1e8d0139b433e1e3f999b9fde93740912a8c5 DIST gentoo-syntax-20130619.tar.bz2 24689 SHA256 959f4ac0845d97f01aadc8ee7dffbaebe9d933253de6eba35df530aff2d6ebd2 SHA512 122fdbb644105fd3e4bb24431fe7ed3cc20052336167da9914274040a9ad220b45c5edb04a6b00a019db476e3271023f64248960940276aa3a7785c9a4fbdc98 WHIRLPOOL 92c381de077c8ec2e278023da2d7c3d8c53840e2b0e653a1241b51ec99abebfb32ca123579a70ea5ed8f79cf5a2f94b2c0647c4fca1e1a156045fcfa341a85ce DIST gentoo-syntax-20141129.tar.bz2 25211 SHA256 007c979e5124413bb320ba3583e67ba6c77d9619560597d3d93d9c43b1e7061f SHA512 935ffcafe0c6a8c3b9395b626c11cf8e53e2f9b5a44d780cff833489819b138e19ef14548058146319d2353269bbf80955e0d0d50ad87e78afa9a7b4f96ebd85 WHIRLPOOL e9e19e7840c2c81e7e8ac790dec4250f683d22a1bcc34166b8f8f8c8dcabbc63c2a4a0a45be7347451e8f2841a35c5e246148a4d0d05f94930292e98b2a9fc31 +DIST gentoo-syntax-20150823.tar.bz2 25848 SHA256 72eba1cf2d0ffb481aa5bc56dbdeb2a9172565cfd3b454ce56eb9fdf665ec6ca SHA512 9d6f82aba6aa33f5d49dfd085628aacb7584614acf82954fa0e814b7fac5eda47c8d3eb6672ad38144a1444d507babad8805ea3029ccc35210a8752ea10eab82 WHIRLPOOL 85cebe212b1e86e79e92b55b7456da7d053973877485c9855580308b49d892fffc2fdbf98c6be2c7df843bf72246a5251d4716f25fc010afeace6255f9e0a9f5 diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20150823.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20150823.ebuild new file mode 100644 index 000000000000..471996139828 --- /dev/null +++ b/app-vim/gentoo-syntax/gentoo-syntax-20150823.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit vim-plugin + +DESCRIPTION="vim plugin: Gentoo and portage related syntax highlighting, filetype, and indent settings" +HOMEPAGE="https://github.com/gentoo/gentoo-syntax" +SRC_URI="http://dev.gentoo.org/~floppym/dist/${P}.tar.bz2" + +LICENSE="vim" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~sparc-fbsd ~x86-fbsd ~x64-freebsd ~x86-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_prepare() { + 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 +} + +pkg_postinst() { + vim-plugin_pkg_postinst + + if [[ -z ${REPLACING_VERSIONS} ]] ; then + 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 + fi +} |