summaryrefslogtreecommitdiff
path: root/app-vim/cream
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-vim/cream
reinit the tree, so we can have metadata
Diffstat (limited to 'app-vim/cream')
-rw-r--r--app-vim/cream/Manifest12
-rw-r--r--app-vim/cream/cream-0.43.ebuild158
-rw-r--r--app-vim/cream/files/cream-0.30-ebuilds.patch12
-rw-r--r--app-vim/cream/files/enhancedcommentify-2.1-extra-ft-support.patch13
-rw-r--r--app-vim/cream/files/enhancedcommentify-2.1-gentooisms.patch23
-rw-r--r--app-vim/cream/metadata.xml11
6 files changed, 229 insertions, 0 deletions
diff --git a/app-vim/cream/Manifest b/app-vim/cream/Manifest
new file mode 100644
index 000000000000..9731dadec9b0
--- /dev/null
+++ b/app-vim/cream/Manifest
@@ -0,0 +1,12 @@
+AUX cream-0.30-ebuilds.patch 435 SHA256 b85b565e4430100fe5a41d6d1ba7c5c2de41b6c4712db8d8e5ce4a46de90adf4 SHA512 96cfee5d25267dc19c47ee953cf29e2fd43e3b0ba5b7d25f72f25901e52733fb3b2b707c233b1b091d02740fcce2462b37efb28ffc3b28dff42f574b41204167 WHIRLPOOL f5d15ffc5f180b37281f32d019887dc93fef684f4e19d26f27841e08ec893c9ecd00a2f2cec37cc12c7814a5ff7d60afafa97e6d56da6ab3d8239eaec207f712
+AUX enhancedcommentify-2.1-extra-ft-support.patch 666 SHA256 27868a8207886bdb31bc96ad22ebb461725c1d90a74a203c18bf35c1706ea75a SHA512 a3450231dc95c9e82eaf103c2da0d6cd7b7e21708f1680ecd4fb08157e1bcdb0582c1c16972a3e55d0ecfa6227ad9484f4cd4ef71e01f8154d75e0103966f21b WHIRLPOOL b90a6e1529bd9920ca40d14e0da6a8146eae51a59fd6046dab176cb77e8d91cda38e8cfb5b81692a78888dea63a6c1f4f840b78e44a59c4581b4aa0a9868c69f
+AUX enhancedcommentify-2.1-gentooisms.patch 809 SHA256 bb0a2f338c5481e5e15afb6d438addc087c7fb7f594c28addadcde4c6de9e102 SHA512 1aa085e1a4bc90ec40f3f4118f8800f36b3e0e4d69625ed72cc660514074a4f3abfb0f564f45c3c187fdd9e8dbf0dd1b2974aeac14f830360e20862e32280749 WHIRLPOOL df9513518819b53e58802bc8b65efe13e10c2ca1f23ac45a7f0d036dc2713b93df26799f7f72ccde919e0d4875336582105ab2772e626fb00bdb3d9465fd81b7
+DIST cream-0.43.tar.gz 785889 SHA256 b7adee33d5464f985a71722fdbe133e726bffebf34eae14c33674c4c5327d777 SHA512 6e6c139bcb5f1ed8cb9718f2c1453a69453c87f2588b6074264f94877dd5b7f78842f5a7c45df693effc2249020e5fa61a88ab5d4e3e13806e2674f1f57dccb7 WHIRLPOOL 726a7134874d515444029fdbe7ec21f8e40f0cb2467388db36548958c49749b4a7638b932272669d883826023722fa73d70273dffc9f1d2e43932f88d400d2de
+DIST cream-spell-dict-eng_2.0.2.zip 1778434 SHA256 fc1a117fa2ebf25254c503e31969f3b5584648965e3fdda3171995f64793ef51 SHA512 72ea2c4d72fc39aa80d9f47762f42ec3fcc4251cc27a9dc62a8b8f8f4b66340df7c15afd603a0e4a12805770606c09e462be548f5203feba76badefa27321b1d WHIRLPOOL 22e506f2c625c68f78f445008268652ff3370d8027b78483ed323177d5ff1f2bd7a5031514dc2c2a6e29d3fa2b4d51181a7538cbd7026424531604ca84fabf86
+DIST cream-spell-dict-fre_2.1.zip 872841 SHA256 d15039be170dadba0011915609446aa48e82e27d692c414be6427caa6134b0b7 SHA512 d34773e3ec2bd905a669175680f91146ead8dc0a7d3de8fa668c56e550eed23ac6c8678b2e7b3c642b756d6eba97b815494395c07b3f28cb54e3a01cf8f5b1a0 WHIRLPOOL edc438ba65d67b74964b28972a365d8e298fdd24bc2ce883e99e501fddd80fe2f2b176bafea87ced4de2be907819da04a0ccbc5cc062f3928f54cc6cf1e9461f
+DIST cream-spell-dict-ger_2.0.1.zip 894848 SHA256 62fbfa9ab7a42c4c0d8d7723f865be7e8c216b5215a15d7430ed0cfb3c993eae SHA512 1fb1a797bfbcd0516d8124daf1256b27a356ef3eb58887c2a55fc8537f211faa60dcba713935b2fa5595ebf6bba07a1463819060018f725e5cd0952b978a342a WHIRLPOOL c1ffd84a2b7cacc3f5a7b46ce9c55b2e9c898dc70986cc4f7b03d29bdc44a4edebe618debf3f53d33ce90da0e3e13c8d9a97bdb9c1691239a13d609a84f0d0b1
+DIST cream-spell-dict-spa_3.0.zip 1710280 SHA256 b26ac0bbf905508b446cfb4424fad5923d4e5e6afe5cd20a313be67269485602 SHA512 27de9d920afe191ae4e7d5267b5ad6fb14a6e4185d474c09d17af1eb45f926dab2d4696080cee25d1591bf0b588234a20778e9b1485927dfffa8595b19e247d2 WHIRLPOOL b85c80f55f7acdf95ab60ac5b631b4ef19908f781584cacfa4dfd2fdbb67e9395769aceed8026a7f494ff5744b84cf65f6a6b8674478e76425c9544a90c09a0a
+EBUILD cream-0.43.ebuild 4279 SHA256 bd2d880e8750016d677a4fc4a6b2ef3849ca20502226bf81db8e7e862e3a793c SHA512 e126f9ef16ca5b6b9afb4ce985631e3d88eeae2ffa35c98b6c7af1ce1ab5ec61827e99ae615f236fa38fa2480c3776a452c1c104689bf718370cd1b7be5252df WHIRLPOOL fe2de4f965578cae1f8e207a13b94b43d953c58a3858753b102a8b5ca6290c3f6858b7b5cb1d6b7039868ecbf669701335b996ca1bb24fad2a0424cb19dfe9df
+MISC ChangeLog 3029 SHA256 717b41540ace90cf722ff177fc86f1201b8091f4047ffd490e2930286890f582 SHA512 db821827ae293ff4c872bfa970ed5c388a82fd6738bc24d35c85a5dc057db28672934606de980877329df2349f1777933ff7eb64c7ad3ff92e4294f3cc24ef62 WHIRLPOOL 685ff3dd261d0b66ab2fb2d27cd9252ee1ae2044cfae423fa526d425f70347b0e877d1d04b74061d18e3e44af3e992bd73b999ce43980235c1047a0de10b4b85
+MISC ChangeLog-2015 8267 SHA256 5ba177e77f71be51ccd23df45711151802ff3e0df5df58629615cf403677faf0 SHA512 d87ef2ea1642bd69902eda74cf6b081492ae2186ee902fbb4261a59dd8b29fb94cc014b27b699f39a0a74ef719a882670c191a1ee468b7cbf1cd318bafbbaeec WHIRLPOOL e27b9c19c304739b6601a0dc82dfae1017edd54810d62f5b6122b0c76f221ff46abd576f87f4a10aece03d8107318da57d4067bdd29cd0a7f1c07180d90f6cfa
+MISC metadata.xml 324 SHA256 38b843a8178430d570bdbd312bb77f016227ff3ab8f47414cb96df3cb2fba36b SHA512 0c3e2ef2f849117218de711a2952e6571f92a5bd768c61004284bfc72f8945c77174fb3f83bb70c69ef030dbcab467eb1a531e09a0baf7d85167c3deade5cf65 WHIRLPOOL 2798f7a473535bc8933206011d245f79180b37e99a5a8e99b34ed4ba9db46b412fe80abddd0912c0d36ddc5c7efa2b0a25ca957b380808845856fcb5ba7d1751
diff --git a/app-vim/cream/cream-0.43.ebuild b/app-vim/cream/cream-0.43.ebuild
new file mode 100644
index 000000000000..2d8b551361c0
--- /dev/null
+++ b/app-vim/cream/cream-0.43.ebuild
@@ -0,0 +1,158 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+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
+ l10n_de? ( ${HOMEPAGE}/cream-spell-dict-${DICT_DE}.zip )
+ l10n_en? ( ${HOMEPAGE}/cream-spell-dict-${DICT_EN}.zip )
+ l10n_es? ( ${HOMEPAGE}/cream-spell-dict-${DICT_ES}.zip )
+ l10n_fr? ( ${HOMEPAGE}/cream-spell-dict-${DICT_FR}.zip )"
+
+IUSE="l10n_de l10n_en l10n_fr l10n_es"
+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}\""
+}
+
+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 "L10N variable in /etc/portage/make.conf. For example, to install full"
+ elog "English and French dictionaries, use:"
+ elog " L10N=\"en fr\""
+ elog
+ elog "Available dictionaries are:"
+ for dict in "English en" "French fr" "German de" "Spanish es" ; do
+ elog " ${dict% *} \t(${dict#* }) $(usex l10n_${dict#* } \
+ "(Will be installed)" "(Will not be installed)")"
+ done
+ elog
+}
+
+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
+}
+
+src_prepare() {
+ # change installation path + fix the wrapper command (disable plugins)
+ 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
+
+ # 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 ; do
+ insinto /usr/share/vim/cream/${dir}
+ doins ${dir}/*
+ done
+
+ if [[ -n ${L10N} ]] ; then
+ insinto /usr/share/vim/cream/spelldicts
+ doins spelldicts/*
+ fi
+
+ 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_postinst() {
+ fdo-mime_desktop_database_update
+ vim-plugin_pkg_postinst
+}
+
+pkg_postrm() {
+ fdo-mime_desktop_database_update
+ vim-plugin_pkg_postrm
+}
diff --git a/app-vim/cream/files/cream-0.30-ebuilds.patch b/app-vim/cream/files/cream-0.30-ebuilds.patch
new file mode 100644
index 000000000000..30e310387005
--- /dev/null
+++ b/app-vim/cream/files/cream-0.30-ebuilds.patch
@@ -0,0 +1,12 @@
+--- cream-0.30/taglist.vim.orig 2004-10-02 00:12:58.400215576 +0100
++++ cream-0.30/taglist.vim 2004-10-02 00:26:28.535056360 +0100
+@@ -205,6 +205,9 @@
+ let s:tlist_def_cobol_settings = 'cobol;d:data;f:file;g:group;p:paragraph;' .
+ \ 'P:program;s:section'
+
++" ebuilds
++let s:tlist_def_ebuild_settings = 'sh;f:function'
++
+ " eiffel language
+ let s:tlist_def_eiffel_settings = 'eiffel;c:class;f:feature'
+
diff --git a/app-vim/cream/files/enhancedcommentify-2.1-extra-ft-support.patch b/app-vim/cream/files/enhancedcommentify-2.1-extra-ft-support.patch
new file mode 100644
index 000000000000..597518a6d547
--- /dev/null
+++ b/app-vim/cream/files/enhancedcommentify-2.1-extra-ft-support.patch
@@ -0,0 +1,13 @@
+--- plugin/EnhancedCommentify.vim.orig 2005-03-01 02:28:23.409962824 -0500
++++ plugin/EnhancedCommentify.vim 2005-03-01 02:29:45.695453528 -0500
+@@ -740,7 +740,9 @@
+ \ 'psf\|ptcap\|r\|radiance\|ratpoison\|readline\remind\|'.
+ \ 'ruby\|screen\|sed\|sm\|snnsnet\|snnspat\|snnsres\|spec\|'.
+ \ 'squid\|terminfo\|tidy\|tli\|tsscl\|vgrindefs\|vrml\|'.
+- \ 'wget\|wml\|xf86conf\|xmath\)$'
++ \ 'wget\|wml\|xf86conf\|xmath\|fstab\|apache\|resolv\|sudoers\|'.
++ \ 'ntp\|mailcap\|ssh_config\|sshdconfig\|mplayerconf\|desktop\|'.
++ \ 'gkrellmrc\|pf\|ipfilter\|grub\|fluxbox\)$'
+ let b:ECcommentOpen = '#'
+ let b:ECcommentClose = ''
+ elseif fileType =~ 'gentoo'
diff --git a/app-vim/cream/files/enhancedcommentify-2.1-gentooisms.patch b/app-vim/cream/files/enhancedcommentify-2.1-gentooisms.patch
new file mode 100644
index 000000000000..9e45142ff8ae
--- /dev/null
+++ b/app-vim/cream/files/enhancedcommentify-2.1-gentooisms.patch
@@ -0,0 +1,23 @@
+--- plugin/EnhancedCommentify.vim.orig 2005-01-27 00:20:00.049461056 -0500
++++ plugin/EnhancedCommentify.vim 2005-01-27 00:17:57.617073608 -0500
+@@ -628,6 +628,10 @@
+ " letter.
+ if match(synFiletype, '\l\+\u') == 0
+ let ft = substitute(synFiletype, '^\(\l\+\)\u.*$', '\1', "")
++ " work-around for gentoo-syntax stuff ; won't work with the above
++ " case, since all the identifiers start with a capital 'G'
++ elseif synFiletype =~ "GentooPackage*"
++ let ft = "gentoo"
+ endif
+
+ if ft == ""
+@@ -739,6 +743,9 @@
+ \ 'wget\|wml\|xf86conf\|xmath\)$'
+ let b:ECcommentOpen = '#'
+ let b:ECcommentClose = ''
++ elseif fileType =~ 'gentoo'
++ let b:ECcommentOpen = '#'
++ let b:ECcommentClose = ''
+ elseif fileType == 'webmacro'
+ let b:ECcommentOpen = '##'
+ let b:ECcommentClose = ''
diff --git a/app-vim/cream/metadata.xml b/app-vim/cream/metadata.xml
new file mode 100644
index 000000000000..a882b886daea
--- /dev/null
+++ b/app-vim/cream/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>vim@gentoo.org</email>
+ <name>Gentoo Vim Project</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">cream</remote-id>
+ </upstream>
+</pkgmetadata>