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