From: Alfredo Tupone Date: Wed, 6 Sep 2006 21:46:45 +0000 (+0000) Subject: Fixing creation of metadata.xml. Bug #129533 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=df55e78737606df073809f4f2d42e7f00793df60;p=gentoo.git Fixing creation of metadata.xml. Bug #129533 Package-Manager: portage-2.1-r2 --- diff --git a/app-vim/gentoo-syntax/ChangeLog b/app-vim/gentoo-syntax/ChangeLog index 8d2d38a4bc83..7bb82d62299e 100644 --- a/app-vim/gentoo-syntax/ChangeLog +++ b/app-vim/gentoo-syntax/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-vim/gentoo-syntax # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-vim/gentoo-syntax/ChangeLog,v 1.66 2006/04/07 21:40:59 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-vim/gentoo-syntax/ChangeLog,v 1.67 2006/09/06 21:46:45 tupone Exp $ + +*gentoo-syntax-20051221-r1 (06 Sep 2006) + + 06 Sep 2006; + +files/gentoo-syntax-20051221-metadata.patch, + +gentoo-syntax-20051221-r1.ebuild: + Fixing creation of metadata.xml. Bug #129533 by me 07 Apr 2006; Bryan Østergaard ' + endif ++ put ='' + endif +- put ='' + put ='' + put ='' + put ='' diff --git a/app-vim/gentoo-syntax/gentoo-syntax-20051221-r1.ebuild b/app-vim/gentoo-syntax/gentoo-syntax-20051221-r1.ebuild new file mode 100644 index 000000000000..b95164589fd3 --- /dev/null +++ b/app-vim/gentoo-syntax/gentoo-syntax-20051221-r1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-vim/gentoo-syntax/gentoo-syntax-20051221-r1.ebuild,v 1.1 2006/09/06 21:46:45 tupone 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/" +LICENSE="vim" +KEYWORDS="alpha amd64 arm hppa ia64 mips ppc ~ppc-macos ppc64 s390 sparc x86 ~x86-fbsd" +SRC_URI="mirror://gentoo/${P}.tar.bz2" + +IUSE="ignore-glep31" +VIM_PLUGIN_HELPFILES="gentoo-syntax" +VIM_PLUGIN_MESSAGES="filetype" + +src_unpack() { + unpack ${A} + cd ${S} + + epatch "${FILESDIR}"/${P}-metadata.patch + 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 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 + einfo "Note for developers and anyone else who edits ebuilds:" + einfo " This release of gentoo-syntax now contains filetype rules to set" + einfo " fileencoding for ebuilds and ChangeLogs to utf-8 as per GLEP 31." + einfo " If you find this feature breaks things, please submit a bug and" + einfo " assign it to vim@gentoo.org. You can use the 'ignore-glep31' USE" + einfo " flag to remove these rules." + fi + echo + epause 5 +} +