ChangeLog

# ChangeLog for app-vim/cream
# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v 1.39 2007/04/18 20:20:07 gustavoz Exp $

18 Apr 2007; Gustavo Zacarias cream-0.34.ebuild:
Stable on sparc

17 Mar 2007; Steve Dibb cream-0.34.ebuild:
amd64 stable

23 Jan 2007; Marius Mauch cream-0.32.ebuild,
cream-0.34.ebuild, cream-0.36.ebuild:
Replacing einfo with elog

10 Jan 2007; Mike Kelly -cream-0.31.ebuild:
Remove old version.

19 Oct 2006; Aron Griffis cream-0.34.ebuild:
Mark 0.34 stable on alpha

*cream-0.36 (21 Sep 2006)

21 Sep 2006; Mike Kelly +cream-0.36.ebuild:
Version bump, thanks to TGL (bug #128990).

16 Sep 2006; Tobias Scherbaum cream-0.34.ebuild:
ppc stable

30 Aug 2006; Joshua Jackson cream-0.31.ebuild,
cream-0.32.ebuild, cream-0.34.ebuild:
Proxy commit for Mark Loeser to fix Linguas issues with all cream ebuilds

10 Jul 2006; Aron Griffis cream-0.34.ebuild:
Mark 0.34 stable on ia64

28 Feb 2006; Ciaran McCreesh
+files/enhancedcommentify-2.1-extra-ft-support.patch,
+files/enhancedcommentify-2.1-gentooisms.patch, cream-0.34.ebuild:
Improve EnhancedCommentify. Thanks to TGL in bug #124395.

*cream-0.34 (24 Feb 2006)

24 Feb 2006; Ciaran McCreesh cream-0.31.ebuild,
cream-0.32.ebuild, +cream-0.34.ebuild:
New version, thanks to TGL in bug #123153. Add missing unzip DEPENDS.

24 Apr 2005; Michael Hanselmann cream-0.32.ebuild:
Stable on ppc.

21 Apr 2005; Simon Stelling cream-0.32.ebuild:
stable on amd64

01 Feb 2005; Ciaran McCreesh cream-0.32.ebuild:
x86, sparc, mips stable

*cream-0.32 (31 Dec 2004)

31 Dec 2004; Ciaran McCreesh +cream-0.32.ebuild:
Bump, bug #76009

31 Oct 2004; Ciaran McCreesh
-files/cream-0.29-ctags.patch, -files/cream-0.29-desktop.patch,
-files/cream-0.29-paths.patch, -files/cream-0.30-autocmd.patch,
-cream-0.28.ebuild, -cream-0.29-r1.ebuild, -cream-0.30-r1.ebuild,
-cream-0.30-r2.ebuild, -cream-0.30-r3.ebuild:
Tidy up old versions

31 Oct 2004; Ciaran McCreesh cream-0.31.ebuild:
Stable on sparc, mips, x86

*cream-0.31 (13 Oct 2004)

13 Oct 2004; Ciaran McCreesh +cream-0.31.ebuild:
Bump. Thanks to TGL in bug #67348.

*cream-0.30-r3 (02 Oct 2004)

02 Oct 2004; Ciaran McCreesh
+files/cream-0.30-ebuilds.patch, +cream-0.30-r3.ebuild:
Ebuilds are bash files too. Bug #66052

11 Sep 2004; Ciaran McCreesh cream-0.30-r2.ebuild:
Added in help text and moved the einfo things around, bug #63318.

06 Sep 2004; Ciaran McCreesh cream-0.30-r2.ebuild:
Stable on x86, sparc, mips

*cream-0.30-r2 (26 Aug 2004)

26 Aug 2004; Ciaran McCreesh
+files/cream-0.30-autocmd.patch, +cream-0.30-r2.ebuild:
Fix screwy recursive autocmd badness, bug #61158. Thanks to TGL
for the patch.

20 Aug 2004; Ciaran McCreesh cream-0.30-r1.ebuild,
-cream-0.30.ebuild:
Remove the screwy version, stable the working version on sparc and mips

*cream-0.30-r1 (13 Aug 2004)

13 Aug 2004; Ciaran McCreesh +cream-0.30-r1.ebuild:
Disable regular vim plugins, they interfere too much. Thanks to TGL
in bug #58683

18 Jul 2004; Daniel Ahlberg cream-0.30.ebuild:
Added amd64 keyword, closing #56808.

12 Jul 2004; Ciaran McCreesh cream-0.30.ebuild:
Stable on sparc, mips

*cream-0.30 (15 Jun 2004)

15 Jun 2004; Ciaran McCreesh +cream-0.30.ebuild:
Version bump, thanks to TGL in bug #54016

12 May 2004; Ciaran McCreesh cream-0.29-r1.ebuild:
Stable on sparc, mips

*cream-0.29-r1 (29 Apr 2004)

29 Apr 2004; Ciaran McCreesh
+files/cream-0.29-ctags.patch, +files/cream-0.29-desktop.patch,
+files/cream-0.29-paths.patch, -files/gentoo-cream-0.29-mkdir.patch,
+cream-0.29-r1.ebuild, -cream-0.29.ebuild:
Pulling 0.29 as it is broken. Adding in 0.29-r1 as ~arch. Thanks to TGL
in #48960

27 Apr 2004; Aron Griffis cream-0.29.ebuild:
Add inherit eutils

*cream-0.29 (25 Apr 2004)

25 Apr 2004; Wout Mertens cream-0.29.ebuild:
Version Bump.
Changed the ebuild to use the install script, for upwards maintainability.
Note that the cream.sh executable was missing in CVS for 0.28, but it's
not necessary any more.
Patched creamrc so mkdirs also work under Unix.
Marking stable because the previous one didn't work for me and this one
does, and no stable version is available.

16 Mar 2004; David Holm cream-0.28.ebuild:
Added to ~ppc.

15 Mar 2004; Ciaran McCreesh cream-0.28.ebuild:
Stable on sparc, added ~mips

*cream-0.28 (07 Feb 2004)

07 Feb 2004; Ciaran McCreesh cream-0.28.ebuild,
metadata.xml:
Initial ebuild, thanks to TGL in bug #40522

Manifest

AUX cream-0.30-ebuilds.patch 435 RMD160 d4327ff5e6e54ef3e74da5bda8860d3e387fd4d1 SHA1 5efe3f8f8753c550bb954566a7bb4c5cb2a22fca SHA256 b85b565e4430100fe5a41d6d1ba7c5c2de41b6c4712db8d8e5ce4a46de90adf4
AUX cream.sh 128 RMD160 e2cd44db6947972522a4ef711ec69b3a78c9480e SHA1 d6d6f972e46171a2613f623bccde0efc67aaebbf SHA256 5ef28601b620113cdbf5a93810c77159c68782772ec4cf00feaada71aec31ce8
AUX enhancedcommentify-2.1-extra-ft-support.patch 666 RMD160 8a431e2a575726a35394fe38222519a81a118df0 SHA1 ece3c13f742452563fb73218b3d2b549c11d47a0 SHA256 27868a8207886bdb31bc96ad22ebb461725c1d90a74a203c18bf35c1706ea75a
AUX enhancedcommentify-2.1-gentooisms.patch 809 RMD160 97bb27cf1371719f4e8a82349688521117618a27 SHA1 010dd41bb36fa24460f8b7371b964464549148ac SHA256 bb0a2f338c5481e5e15afb6d438addc087c7fb7f594c28addadcde4c6de9e102
DIST cream-0.32.tar.gz 814766 RMD160 566b7c3f4ed99abbacab7d51683f96ac07abfd68 SHA1 e425244ccee591e53f4b4749253d5c5493110c82 SHA256 3261c98f1db4b9adf054d7052beb416f1225cce32e14cdd44df4555a5b45edb5
DIST cream-0.34.tar.gz 1096752 RMD160 ac9f39439031f7f69448c16f073bef4fef0076e2 SHA1 17c6ec2e9db7f3136ab36aa985a817b367986ae3 SHA256 76a33c0ab931c0caf2247d7e66c5f1fa43e232ead5c05b65b4860dbd6f5f9655
DIST cream-0.36.tar.gz 759442 RMD160 123240f8b9be824bbb2c5def1705105fcf7db39f SHA1 8b86bb50e23c4282854b0a5721a3f852751cecfd SHA256 6754a8fc7c191d8753c77bdbc3e672bf11e695b732175ce1f8fb25cee7926d05
DIST cream-spell-dict-eng_2.0.2.zip 1778434 RMD160 9b963f601d9ce331e7553765f3e9a232e473e271 SHA1 69fb8b5fa0e9fd66abef037db2c6e7e27dcf2df9 SHA256 fc1a117fa2ebf25254c503e31969f3b5584648965e3fdda3171995f64793ef51
DIST cream-spell-dict-fre_2.1.zip 872841 RMD160 28efaffd7a1325229aeb1e5aa85a4072df0a91ff SHA1 0a9f9f9bd2b203af9d04c2d59775a9ead14d09b7 SHA256 d15039be170dadba0011915609446aa48e82e27d692c414be6427caa6134b0b7
DIST cream-spell-dict-ger_2.0.1.zip 894848 RMD160 50321a0d6b22a5761c587c93269bf3b1908b6e48 SHA1 d38ad0e2186dff63b7aa2fd1a0f67766464da8eb SHA256 62fbfa9ab7a42c4c0d8d7723f865be7e8c216b5215a15d7430ed0cfb3c993eae
DIST cream-spell-dict-spa_3.0.zip 1710280 RMD160 5418c029358b11bb339ca0b0dc0965e7381333b2 SHA1 00aa9d1dcb0000a34b4f6adfa894fa715251be11 SHA256 b26ac0bbf905508b446cfb4424fad5923d4e5e6afe5cd20a313be67269485602
EBUILD cream-0.32.ebuild 3325 RMD160 ceb78100310470e9106af96d23220292a6826c79 SHA1 1c057543059fefa9f69b28fe3791e87c730e79af SHA256 2ec0f5a08a7dd29157bef7bcb197a80d4db958ad2d39e6fde52a653493806aad
EBUILD cream-0.34.ebuild 4527 RMD160 af45d7e70b373609c661319ac4e38a204a4a6911 SHA1 0c6552fcb428a470dd6efd1abb20a5ec6f08fe9c SHA256 9ed4dc5e35bed3d2061acc166f3322b0bc680554fdb9cad77f20d66a0a7c2422
EBUILD cream-0.36.ebuild 4531 RMD160 d2f30db8edaf238ae16b152d015f1d3bf691d3e6 SHA1 937a833a0c4747cbadf1474fc3db34c9be33dae9 SHA256 0bc93b1e72208db4dafb307aa43e0b357632b8a706fefec9be6d0d9b80c7aec9
MISC ChangeLog 5486 RMD160 bdbbc8152af2e745e7e33a851778e3bbf2202318 SHA1 cab348bae65857b7baa5a9d267fb988e614fa422 SHA256 5df79ec77c76a8ec51c22ac4d1f34589710292c60a1bc8adf73b0d6150ed1853
MISC metadata.xml 431 RMD160 7a1541d4b0a3ee5bb8cc734dd385a317b65e2f41 SHA1 25f7000c98ff591e933456600b4f80f6dd4aae32 SHA256 f8b6ad7fcb3088b1672d216ca4aa5860f588e6fa1bdcc3f7a0bd16a64e074eae

cream-0.32.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.32.ebuild,v 1.12 2007/07/11 05:14:08 mr_bones_ Exp $

inherit vim-plugin eutils

DESCRIPTION="Cream is an easy-to-use configuration of the GVim text editor"
HOMEPAGE="http://cream.sourceforge.net"

DICT_EN="eng_2.0.2"
DICT_FR="fre_2.1"
DICT_ES="spa_3.0"
DICT_DE="ger_2.0.1"

SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
linguas_en? ( ${HOMEPAGE}/cream-spell-dict-${DICT_EN}.zip )
linguas_fr? ( ${HOMEPAGE}/cream-spell-dict-${DICT_FR}.zip )
linguas_es? ( ${HOMEPAGE}/cream-spell-dict-${DICT_ES}.zip )
linguas_de? ( ${HOMEPAGE}/cream-spell-dict-${DICT_DE}.zip )"

IUSE="linguas_en linguas_fr linguas_es linguas_de"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 sparc ppc mips amd64 alpha ia64"

DEPEND="app-arch/unzip"
RDEPEND=">=app-editors/gvim-6.2
dev-util/ctags"

VIM_PLUGIN_HELPTEXT=\
"Cream is completely independent from the rest of your Vim/GVim setup.
To launch GVim in Cream mode, use this wrapper script:
\ % cream [filename...]

Cream's documentation has been installed in ${ROOT}usr/share/doc/${PF}
In particular, you may want to read:

\ - the Cream features list:
file://${ROOT}usr/share/doc/${PF}/html/features.html

\ - the Cream shortcuts list:
file://${ROOT}usr/share/doc/${PF}/html/keyboardshortcuts.html

\ - the Cream FAQ:
file://${ROOT}usr/share/doc/${PF}/html/faq.html"

src_unpack() {
mkdir -p ${S}/spelldicts

# install spell dictionaries into ${S}/spelldicts
local my_a
for my_a in ${A} ; do
if [ -z ${my_a/*spell-dict*/} ] ; then
cd ${S}/spelldicts
unpack ${my_a}
else
cd ${WORKDIR}
unpack ${my_a}
fi
done

# change installation path + fix the wrapper command (disable plugins)
cd ${S}
cat >cream < #!/bin/sh
gvim --noplugin -U NONE -u "\\\$VIM/cream/creamrc" "\$@"
EOF
sed -i "/let \$CREAM/s:VIMRUNTIME:VIM:" creamrc || die "sed #1 broke"

# make taglist ebuild aware, bug #66052
epatch ${FILESDIR}/${PN}-0.30-ebuilds.patch
}

src_install() {
# install launcher and menu entry
dobin cream
insinto /usr/share/applications
doins cream.desktop
insinto /usr/share/icons
doins cream.svg cream.png

# install shared vim files
insinto /usr/share/vim/cream
doins *.vim creamrc
local dir
for dir in addons bitmaps spelldicts filetypes ; do
cp -R ${dir} ${D}/usr/share/vim/cream
done
dodir /usr/share/vim/vimfiles
cp -R help ${D}/usr/share/vim/vimfiles/doc

# install docs
dodoc docs/*
dohtml docs-html/*
}

pkg_setup() {
elog "Cream comes with several dictionaries for spell checking. In"
elog "all cases, at least a small English dictionary will be installed."
elog
elog "To specify which optional dictionaries are installed, set the"
elog "LINGUAS variable in /etc/make.conf. For example, to install full"
elog "English and French dictionaries, use:"
elog " LINGUAS=\"en fr\""
elog
elog "Available dictionaries are:"
for dict in "English en" "French fr" "German de" "Spanish es" ; do
# portage bug: shouldn't get a QA notice for linguas stuff...
elog " ${dict% *} \t(${dict#* }) $( ( \
use linguas_${dict#* } &>/dev/null && \
echo '(Will be installed)' ) || echo '(Will not be installed)' )"
done
elog
# give the user time to cancel if necessary
epause
}

cream-0.34.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.34.ebuild,v 1.10 2007/05/16 10:58:12 armin76 Exp $

inherit vim-plugin eutils fdo-mime

DESCRIPTION="An easy-to-use configuration of the GVim text editor"
HOMEPAGE="http://cream.sourceforge.net"

DICT_EN="eng_2.0.2"
DICT_FR="fre_2.1"
DICT_ES="spa_3.0"
DICT_DE="ger_2.0.1"

SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
linguas_en? ( ${HOMEPAGE}/cream-spell-dict-${DICT_EN}.zip )
linguas_fr? ( ${HOMEPAGE}/cream-spell-dict-${DICT_FR}.zip )
linguas_es? ( ${HOMEPAGE}/cream-spell-dict-${DICT_ES}.zip )
linguas_de? ( ${HOMEPAGE}/cream-spell-dict-${DICT_DE}.zip )"

IUSE="linguas_en linguas_fr linguas_es linguas_de"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="alpha amd64 ia64 ~mips ppc sparc ~x86"

DEPEND="
>=app-editors/gvim-6.4
app-arch/unzip"
RDEPEND="
>=app-editors/gvim-6.4
dev-util/ctags"

VIM_PLUGIN_HELPTEXT=\
"Cream is completely independent from the rest of your Vim/GVim setup.
To launch GVim in Cream mode, use this wrapper script:
\ % cream [filename...]

Cream's documentation has been installed in ${ROOT}usr/share/doc/${PF}
In particular, you may want to read:

\ - the Cream features list:
file://${ROOT}usr/share/doc/${PF}/html/features.html

\ - the Cream shortcuts list:
file://${ROOT}usr/share/doc/${PF}/html/keyboardshortcuts.html

\ - the Cream FAQ:
file://${ROOT}usr/share/doc/${PF}/html/faq.html"

# Utility function to rename a Vim help file and its links/anchors:
# prefix_help_file prefix file [pattern ...]
prefix_help_file() {
local prefix="${1}" ; shift
local helpfile="${1}" ; shift
while [[ -n "${1}" ]] ; do
sed -i "s:\([*|]\)\(${1}[*|]\):\1${prefix}-\2:g" "${helpfile}" \
|| die "Failed to sed \"${1}\" on \"${helpfile}\""
shift
done
mv "${helpfile}" "${helpfile%/*}/${prefix}-${helpfile##*/}" \
|| die "Failed to rename \"${helpfile}\""
}

src_unpack() {
mkdir -p ${S}/spelldicts

# install spell dictionaries into ${S}/spelldicts
local my_a
for my_a in ${A} ; do
if [ -z ${my_a/*spell-dict*/} ] ; then
cd ${S}/spelldicts
unpack ${my_a}
else
cd ${WORKDIR}
unpack ${my_a}
fi
done

# change installation path + fix the wrapper command (disable plugins)
cd ${S}
cat >cream < #!/bin/sh
gvim --noplugin -U NONE -u "\\\$VIM/cream/creamrc" "\$@"
EOF
sed -i "/let \$CREAM/s:VIMRUNTIME:VIM:" creamrc || die "sed #1 broke"

# make taglist ebuild aware, bug #66052
epatch ${FILESDIR}/${PN}-0.30-ebuilds.patch

# more filetypes for EnhancedCommentify, including the Gentoo ones
epatch ${FILESDIR}/enhancedcommentify-2.1-gentooisms.patch
epatch ${FILESDIR}/enhancedcommentify-2.1-extra-ft-support.patch

# rename vim help files to avoid conflicts with other vim packages
prefix_help_file cream help/EnhancedCommentify.txt \
'EnhancedCommentify' 'EnhComm-[a-zA-Z]\+'
prefix_help_file cream help/opsplorer.txt \
'opsplorer\.txt' 'opsplorer_[a-z_]\+'
}

src_install() {
# install launcher and menu entry
dobin cream
domenu cream.desktop
doicon cream.svg cream.png

# install shared vim files
insinto /usr/share/vim/cream
doins *.vim creamrc
local dir
for dir in addons bitmaps filetypes lang spelldicts ; do
insinto /usr/share/vim/cream/${dir}
doins ${dir}/*
done
insinto /usr/share/vim/vimfiles/doc
doins help/*.txt

# install docs
dodoc docs/{CHANGELOG,DEVELOPER,KEYBOARD,PressRelease,README,RELEASE}.txt
dohtml docs-html/*
# html doc may be opened from Cream GUI
dosym ../../doc/${PF}/html /usr/share/vim/cream/docs-html
}

pkg_setup() {
elog "Cream comes with several dictionaries for spell checking. In"
elog "all cases, at least a small English dictionary will be installed."
elog
elog "To specify which optional dictionaries are installed, set the"
elog "LINGUAS variable in /etc/make.conf. For example, to install full"
elog "English and French dictionaries, use:"
elog " LINGUAS=\"en fr\""
elog
elog "Available dictionaries are:"
for dict in "English en" "French fr" "German de" "Spanish es" ; do
# portage bug: shouldn't get a QA notice for linguas stuff...
elog " ${dict% *} \t(${dict#* }) $( ( \
use linguas_${dict#* } &>/dev/null && \
echo '(Will be installed)' ) || echo '(Will not be installed)' )"
done
elog
# give the user time to cancel if necessary
epause
}

pkg_postinst() {
fdo-mime_desktop_database_update
vim-plugin_pkg_postinst
}

pkg_postrm() {
fdo-mime_desktop_database_update
vim-plugin_pkg_postrm
}

cream-0.36.ebuild

# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.36.ebuild,v 1.3 2007/05/16 10:58:12 armin76 Exp $

inherit vim-plugin eutils fdo-mime

DESCRIPTION="An easy-to-use configuration of the GVim text editor"
HOMEPAGE="http://cream.sourceforge.net"

DICT_EN="eng_2.0.2"
DICT_FR="fre_2.1"
DICT_ES="spa_3.0"
DICT_DE="ger_2.0.1"

SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz
linguas_en? ( ${HOMEPAGE}/cream-spell-dict-${DICT_EN}.zip )
linguas_fr? ( ${HOMEPAGE}/cream-spell-dict-${DICT_FR}.zip )
linguas_es? ( ${HOMEPAGE}/cream-spell-dict-${DICT_ES}.zip )
linguas_de? ( ${HOMEPAGE}/cream-spell-dict-${DICT_DE}.zip )"

IUSE="linguas_en linguas_fr linguas_es linguas_de"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ia64 ~mips ~ppc ~sparc ~x86"

DEPEND="
>=app-editors/gvim-6.4
app-arch/unzip"
RDEPEND="
>=app-editors/gvim-6.4
dev-util/ctags"

VIM_PLUGIN_HELPTEXT=\
"Cream is completely independent from the rest of your Vim/GVim setup.
To launch GVim in Cream mode, use this wrapper script:
\ % cream [filename...]

Cream's documentation has been installed in ${ROOT}usr/share/doc/${PF}
In particular, you may want to read:

\ - the Cream features list:
file://${ROOT}usr/share/doc/${PF}/html/features.html

\ - the Cream shortcuts list:
file://${ROOT}usr/share/doc/${PF}/html/keyboardshortcuts.html

\ - the Cream FAQ:
file://${ROOT}usr/share/doc/${PF}/html/faq.html"

# Utility function to rename a Vim help file and its links/anchors:
# prefix_help_file prefix file [pattern ...]
prefix_help_file() {
local prefix="${1}" ; shift
local helpfile="${1}" ; shift
while [[ -n "${1}" ]] ; do
sed -i "s:\([*|]\)\(${1}[*|]\):\1${prefix}-\2:g" "${helpfile}" \
|| die "Failed to sed \"${1}\" on \"${helpfile}\""
shift
done
mv "${helpfile}" "${helpfile%/*}/${prefix}-${helpfile##*/}" \
|| die "Failed to rename \"${helpfile}\""
}

src_unpack() {
mkdir -p ${S}/spelldicts

# install spell dictionaries into ${S}/spelldicts
local my_a
for my_a in ${A} ; do
if [ -z ${my_a/*spell-dict*/} ] ; then
cd ${S}/spelldicts
unpack ${my_a}
else
cd ${WORKDIR}
unpack ${my_a}
fi
done

# change installation path + fix the wrapper command (disable plugins)
cd ${S}
cat >cream < #!/bin/sh
gvim --noplugin -U NONE -u "\\\$VIM/cream/creamrc" "\$@"
EOF
sed -i "/let \$CREAM/s:VIMRUNTIME:VIM:" creamrc || die "sed #1 broke"

# make taglist ebuild aware, bug #66052
epatch ${FILESDIR}/${PN}-0.30-ebuilds.patch

# more filetypes for EnhancedCommentify, including the Gentoo ones
epatch ${FILESDIR}/enhancedcommentify-2.1-gentooisms.patch
epatch ${FILESDIR}/enhancedcommentify-2.1-extra-ft-support.patch

# rename vim help files to avoid conflicts with other vim packages
prefix_help_file cream help/EnhancedCommentify.txt \
'EnhancedCommentify' 'EnhComm-[a-zA-Z]\+'
prefix_help_file cream help/opsplorer.txt \
'opsplorer\.txt' 'opsplorer_[a-z_]\+'
}

src_install() {
# install launcher and menu entry
dobin cream
domenu cream.desktop
doicon cream.svg cream.png

# install shared vim files
insinto /usr/share/vim/cream
doins *.vim creamrc
local dir
for dir in addons bitmaps filetypes lang spelldicts ; do
insinto /usr/share/vim/cream/${dir}
doins ${dir}/*
done
insinto /usr/share/vim/vimfiles/doc
doins help/*.txt

# install docs
dodoc docs/{CHANGELOG,DEVELOPER,KEYBOARD,PressRelease,README,RELEASE}.txt
dohtml docs-html/*
# html doc may be opened from Cream GUI
dosym ../../doc/${PF}/html /usr/share/vim/cream/docs-html
}

pkg_setup() {
elog "Cream comes with several dictionaries for spell checking. In"
elog "all cases, at least a small English dictionary will be installed."
elog
elog "To specify which optional dictionaries are installed, set the"
elog "LINGUAS variable in /etc/make.conf. For example, to install full"
elog "English and French dictionaries, use:"
elog " LINGUAS=\"en fr\""
elog
elog "Available dictionaries are:"
for dict in "English en" "French fr" "German de" "Spanish es" ; do
# portage bug: shouldn't get a QA notice for linguas stuff...
elog " ${dict% *} \t(${dict#* }) $( ( \
use linguas_${dict#* } &>/dev/null && \
echo '(Will be installed)' ) || echo '(Will not be installed)' )"
done
elog
# give the user time to cancel if necessary
epause
}

pkg_postinst() {
fdo-mime_desktop_database_update
vim-plugin_pkg_postinst
}

pkg_postrm() {
fdo-mime_desktop_database_update
vim-plugin_pkg_postrm
}

files

metadata.xml




vim

degrenier@easyconnect.fr
Please Cc: Thomas de Grenier de Latour (not a Gentoo
developer) on any bugs, as he knows lots about the package and I'd
like his opinion before I make any big changes.