summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2011-04-25 16:50:49 +0000
committerJim Ramsay <lack@gentoo.org>2011-04-25 16:50:49 +0000
commit1eda22fbd38e868a7e8389a64c6d3fac5572300a (patch)
treee4cd08b1d3b4812e0b8a41c07305aee27f204355 /app-vim/cream
parentStable on amd64 wrt bug #363985 (diff)
downloadhistorical-1eda22fbd38e868a7e8389a64c6d3fac5572300a.tar.gz
historical-1eda22fbd38e868a7e8389a64c6d3fac5572300a.tar.bz2
historical-1eda22fbd38e868a7e8389a64c6d3fac5572300a.zip
Version bump: 0.43 is released (Bug #306949)
Package-Manager: portage-2.1.9.34/cvs/Linux i686
Diffstat (limited to 'app-vim/cream')
-rw-r--r--app-vim/cream/ChangeLog9
-rw-r--r--app-vim/cream/Manifest4
-rw-r--r--app-vim/cream/cream-0.43.ebuild153
3 files changed, 163 insertions, 3 deletions
diff --git a/app-vim/cream/ChangeLog b/app-vim/cream/ChangeLog
index ec6a01e41891..7ee7cc208e0c 100644
--- a/app-vim/cream/ChangeLog
+++ b/app-vim/cream/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for app-vim/cream
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v 1.44 2010/11/21 02:55:28 sping Exp $
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/ChangeLog,v 1.45 2011/04/25 16:50:49 lack Exp $
+
+*cream-0.43 (25 Apr 2011)
+
+ 25 Apr 2011; Jim Ramsay <lack@gentoo.org> +cream-0.43.ebuild:
+ Version bump: 0.43 is released (Bug #306949)
21 Nov 2010; Sebastian Pipping <sping@gentoo.org> -files/cream.sh:
Remove unused file (bug #344617)
diff --git a/app-vim/cream/Manifest b/app-vim/cream/Manifest
index 4d9f6415c0d9..93ab108c87bb 100644
--- a/app-vim/cream/Manifest
+++ b/app-vim/cream/Manifest
@@ -5,6 +5,7 @@ AUX enhancedcommentify-2.1-gentooisms.patch 809 RMD160 97bb27cf1371719f4e8a82349
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.41.tar.gz 758620 RMD160 8f9a2bc517e8dcf0ac99bcda96b77a14b1c8585c SHA1 3d92c6f3d23aa782c2de0ba562ce0a2964083606 SHA256 217c35fdbbc7c945f1ba49dc478571fccf46d2902b9a80bfc652768f260527ea
+DIST cream-0.43.tar.gz 785889 RMD160 1998a29c4c5beeefff9d7f418d9b78a5c5c3b8c0 SHA1 d0bc331184b059c2e5f9d50cab0760f4fe951f23 SHA256 b7adee33d5464f985a71722fdbe133e726bffebf34eae14c33674c4c5327d777
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
@@ -12,5 +13,6 @@ DIST cream-spell-dict-spa_3.0.zip 1710280 RMD160 5418c029358b11bb339ca0b0dc0965e
EBUILD cream-0.32.ebuild 3335 RMD160 6614a33cf7f7e7000cf427e4c1442f2ce5d6a950 SHA1 ef034461f077f6f0757c9a707a1ee2d0873564df SHA256 476eab3210784cb5bd2e4c015963eb2057383879ba2b32dc656cc993d212176d
EBUILD cream-0.34.ebuild 4541 RMD160 7276acc2a5ca1b4859143bbdab1c97c824faa0fd SHA1 8f796afe12d187f2f4deb62c61ec4ea2e4e8188f SHA256 afe4b54d9d529311df1c479124c69c0779ea0841cca20e1bf6f1be4ed1e28cca
EBUILD cream-0.41-r2.ebuild 4551 RMD160 be203ec43347a27a34fa753ca6b12bb4e86bec94 SHA1 530bc55373861784501daa2cbfda53992534e48e SHA256 186ecc1b586aecab4c68652aaa0ec7d541c48142fe3e77a62fa6b74b6428607b
-MISC ChangeLog 6251 RMD160 1ea39281b9724458c63b7cd67b08d802099b2cd7 SHA1 fd8a82ef6999d72a8ba65149b9bf38ab1a7d91b2 SHA256 cad1925bf02e84b3b39233d8b2f069be7506163401983a87041ba8898c4c6a2d
+EBUILD cream-0.43.ebuild 4477 RMD160 3f9672e642f7cab48c4da463e8cc7983432d0e19 SHA1 ec26225b6bf421040d2b348e706f69608f0a86c4 SHA256 4f4596d9dce36f4c8162e2d3aa31c81a23674192dee5550a4383bdcbd0901fc0
+MISC ChangeLog 6389 RMD160 b2f304a7f586d9d9c235779a9177a15c929ee702 SHA1 edecfa097317b08152a8264e643c436cf334ca1a SHA256 de29936d507038af9995ab9ccf088ca91f25930a68fcf29f5f0382b2f3ea11dc
MISC metadata.xml 431 RMD160 7a1541d4b0a3ee5bb8cc734dd385a317b65e2f41 SHA1 25f7000c98ff591e933456600b4f80f6dd4aae32 SHA256 f8b6ad7fcb3088b1672d216ca4aa5860f588e6fa1bdcc3f7a0bd16a64e074eae
diff --git a/app-vim/cream/cream-0.43.ebuild b/app-vim/cream/cream-0.43.ebuild
new file mode 100644
index 000000000000..835ec0edb651
--- /dev/null
+++ b/app-vim/cream/cream-0.43.ebuild
@@ -0,0 +1,153 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-vim/cream/cream-0.43.ebuild,v 1.1 2011/04/25 16:50:49 lack 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-7.0
+ app-arch/unzip"
+RDEPEND="
+ >=app-editors/gvim-7.0
+ 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 <<EOF
+#!/bin/sh
+gvim --servername CREAM --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]\+'
+
+}
+
+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
+}