Gentoo Archives: gentoo-commits

From: "Ali Polatel (hawking)" <hawking@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-vim/cream: ChangeLog cream-0.41-r1.ebuild cream-0.41.ebuild
Date: Tue, 23 Sep 2008 17:12:36
Message-Id: E1KiBRA-0000JB-Hs@stork.gentoo.org
1 hawking 08/09/23 17:12:32
2
3 Modified: ChangeLog
4 Added: cream-0.41-r1.ebuild
5 Removed: cream-0.41.ebuild
6 Log:
7 Revbump. Pass --servername CREAM to gvim, bug 238267.
8 (Portage version: -svn/cvs/Linux 2.6.26-gentoo x86_64)
9
10 Revision Changes Path
11 1.41 app-vim/cream/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-vim/cream/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-vim/cream/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-vim/cream/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 20 Sep 2008 14:12:28 -0000 1.40
24 +++ ChangeLog 23 Sep 2008 17:12:31 -0000 1.41
25 @@ -1,6 +1,12 @@
26 # ChangeLog for app-vim/cream
27 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v 1.40 2008/09/20 14:12:28 hawking Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v 1.41 2008/09/23 17:12:31 hawking Exp $
30 +
31 +*cream-0.41-r1 (23 Sep 2008)
32 +
33 + 23 Sep 2008; Ali Polatel <hawking@g.o> -cream-0.41.ebuild,
34 + +cream-0.41-r1.ebuild:
35 + Revbump. Pass --servername CREAM to gvim, bug 238267.
36
37 *cream-0.41 (20 Sep 2008)
38
39
40
41
42 1.1 app-vim/cream/cream-0.41-r1.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-vim/cream/cream-0.41-r1.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-vim/cream/cream-0.41-r1.ebuild?rev=1.1&content-type=text/plain
46
47 Index: cream-0.41-r1.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.41-r1.ebuild,v 1.1 2008/09/23 17:12:31 hawking Exp $
52
53 inherit vim-plugin eutils fdo-mime
54
55 DESCRIPTION="An easy-to-use configuration of the GVim text editor"
56 HOMEPAGE="http://cream.sourceforge.net"
57
58 DICT_EN="eng_2.0.2"
59 DICT_FR="fre_2.1"
60 DICT_ES="spa_3.0"
61 DICT_DE="ger_2.0.1"
62
63 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
64 linguas_en? ( ${HOMEPAGE}/cream-spell-dict-${DICT_EN}.zip )
65 linguas_fr? ( ${HOMEPAGE}/cream-spell-dict-${DICT_FR}.zip )
66 linguas_es? ( ${HOMEPAGE}/cream-spell-dict-${DICT_ES}.zip )
67 linguas_de? ( ${HOMEPAGE}/cream-spell-dict-${DICT_DE}.zip )"
68
69 IUSE="linguas_en linguas_fr linguas_es linguas_de"
70 LICENSE="GPL-2"
71 SLOT="0"
72 KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"
73
74 DEPEND="
75 >=app-editors/gvim-7.0
76 app-arch/unzip"
77 RDEPEND="
78 >=app-editors/gvim-7.0
79 dev-util/ctags"
80
81 VIM_PLUGIN_HELPTEXT=\
82 "Cream is completely independent from the rest of your Vim/GVim setup.
83 To launch GVim in Cream mode, use this wrapper script:
84 \ % cream [filename...]
85
86 Cream's documentation has been installed in ${ROOT}usr/share/doc/${PF}
87 In particular, you may want to read:
88
89 \ - the Cream features list:
90 file://${ROOT}usr/share/doc/${PF}/html/features.html
91
92 \ - the Cream shortcuts list:
93 file://${ROOT}usr/share/doc/${PF}/html/keyboardshortcuts.html
94
95 \ - the Cream FAQ:
96 file://${ROOT}usr/share/doc/${PF}/html/faq.html"
97
98 # Utility function to rename a Vim help file and its links/anchors:
99 # prefix_help_file prefix file [pattern ...]
100 prefix_help_file() {
101 local prefix="${1}" ; shift
102 local helpfile="${1}" ; shift
103 while [[ -n "${1}" ]] ; do
104 sed -i "s:\([*|]\)\(${1}[*|]\):\1${prefix}-\2:g" "${helpfile}" \
105 || die "Failed to sed \"${1}\" on \"${helpfile}\""
106 shift
107 done
108 mv "${helpfile}" "${helpfile%/*}/${prefix}-${helpfile##*/}" \
109 || die "Failed to rename \"${helpfile}\""
110 }
111
112 src_unpack() {
113 mkdir -p "${S}"/spelldicts
114
115 # install spell dictionaries into ${S}/spelldicts
116 local my_a
117 for my_a in ${A} ; do
118 if [ -z ${my_a/*spell-dict*/} ] ; then
119 cd "${S}"/spelldicts
120 unpack ${my_a}
121 else
122 cd "${WORKDIR}"
123 unpack ${my_a}
124 fi
125 done
126
127 # change installation path + fix the wrapper command (disable plugins)
128 cd "${S}"
129 cat >cream <<EOF
130 #!/bin/sh
131 gvim --servername CREAM --noplugin -U NONE -u "\\\$VIM/cream/creamrc" "\$@"
132 EOF
133 sed -i "/let \$CREAM/s:VIMRUNTIME:VIM:" creamrc || die "sed #1 broke"
134
135 # make taglist ebuild aware, bug #66052
136 epatch "${FILESDIR}"/${PN}-0.30-ebuilds.patch
137
138 # more filetypes for EnhancedCommentify, including the Gentoo ones
139 epatch "${FILESDIR}"/enhancedcommentify-2.1-gentooisms.patch
140 epatch "${FILESDIR}"/enhancedcommentify-2.1-extra-ft-support.patch
141
142 # rename vim help files to avoid conflicts with other vim packages
143 prefix_help_file cream help/EnhancedCommentify.txt \
144 'EnhancedCommentify' 'EnhComm-[a-zA-Z]\+'
145 }
146
147 src_install() {
148 # install launcher and menu entry
149 dobin cream
150 domenu cream.desktop
151 doicon cream.svg cream.png
152
153 # install shared vim files
154 insinto /usr/share/vim/cream
155 doins *.vim creamrc
156 local dir
157 for dir in addons bitmaps filetypes lang spelldicts ; do
158 insinto /usr/share/vim/cream/${dir}
159 doins ${dir}/*
160 done
161 insinto /usr/share/vim/vimfiles/doc
162 doins help/*.txt
163
164 # install docs
165 dodoc docs/{CHANGELOG,DEVELOPER,KEYBOARD,PressRelease,README,RELEASE}.txt
166 dohtml docs-html/*
167 # html doc may be opened from Cream GUI
168 dosym ../../doc/${PF}/html /usr/share/vim/cream/docs-html
169 }
170
171 pkg_setup() {
172 elog "Cream comes with several dictionaries for spell checking. In"
173 elog "all cases, at least a small English dictionary will be installed."
174 elog
175 elog "To specify which optional dictionaries are installed, set the"
176 elog "LINGUAS variable in /etc/make.conf. For example, to install full"
177 elog "English and French dictionaries, use:"
178 elog " LINGUAS=\"en fr\""
179 elog
180 elog "Available dictionaries are:"
181 for dict in "English en" "French fr" "German de" "Spanish es" ; do
182 # portage bug: shouldn't get a QA notice for linguas stuff...
183 elog " ${dict% *} \t(${dict#* }) $( ( \
184 use linguas_${dict#* } &>/dev/null && \
185 echo '(Will be installed)' ) || echo '(Will not be installed)' )"
186 done
187 elog
188 # give the user time to cancel if necessary
189 epause
190 }
191
192 pkg_postinst() {
193 fdo-mime_desktop_database_update
194 vim-plugin_pkg_postinst
195 }
196
197 pkg_postrm() {
198 fdo-mime_desktop_database_update
199 vim-plugin_pkg_postrm
200 }