diff options
Diffstat (limited to 'app-vim/cream')
-rw-r--r-- | app-vim/cream/Manifest | 10 | ||||
-rw-r--r-- | app-vim/cream/cream-0.43.ebuild | 158 | ||||
-rw-r--r-- | app-vim/cream/files/cream-0.30-ebuilds.patch | 12 | ||||
-rw-r--r-- | app-vim/cream/files/enhancedcommentify-2.1-extra-ft-support.patch | 13 | ||||
-rw-r--r-- | app-vim/cream/files/enhancedcommentify-2.1-gentooisms.patch | 23 | ||||
-rw-r--r-- | app-vim/cream/metadata.xml | 11 |
6 files changed, 227 insertions, 0 deletions
diff --git a/app-vim/cream/Manifest b/app-vim/cream/Manifest new file mode 100644 index 000000000000..22a9cc28d414 --- /dev/null +++ b/app-vim/cream/Manifest @@ -0,0 +1,10 @@ +AUX cream-0.30-ebuilds.patch 435 BLAKE2B d6668878dbfc867442b9c39cc58b75c0ad079aff6ffb6d031ad42e36cd90a5cc4ac6e3799664d8e957b84aa6ea79ad39d03106fb8a674d4487d9e2b21ad3ec23 SHA512 96cfee5d25267dc19c47ee953cf29e2fd43e3b0ba5b7d25f72f25901e52733fb3b2b707c233b1b091d02740fcce2462b37efb28ffc3b28dff42f574b41204167 +AUX enhancedcommentify-2.1-extra-ft-support.patch 666 BLAKE2B 007791dd72aae136e0d221b35fa8a7537fd3d1b3928a41cc1345c77572a81873574d04397dc372562ee257af19bcc3af2e3de7c330c689a4b36f06893077f040 SHA512 a3450231dc95c9e82eaf103c2da0d6cd7b7e21708f1680ecd4fb08157e1bcdb0582c1c16972a3e55d0ecfa6227ad9484f4cd4ef71e01f8154d75e0103966f21b +AUX enhancedcommentify-2.1-gentooisms.patch 809 BLAKE2B 8007d10b08528f34825fe11acb8de386f10d6cdfdf980c5942c7047866b17227c6f9165542cc24c2a676cfff70802eafa4a32945bb42f0b2461b570e5cff0858 SHA512 1aa085e1a4bc90ec40f3f4118f8800f36b3e0e4d69625ed72cc660514074a4f3abfb0f564f45c3c187fdd9e8dbf0dd1b2974aeac14f830360e20862e32280749 +DIST cream-0.43.tar.gz 785889 BLAKE2B 39231309c5382e26587a602d8185e40012f7b850ed6dcd1372eaed65e05e6a97ed7222bdc29666255f345e99ff696901da02acf7814ff784b6545d06f970866a SHA512 6e6c139bcb5f1ed8cb9718f2c1453a69453c87f2588b6074264f94877dd5b7f78842f5a7c45df693effc2249020e5fa61a88ab5d4e3e13806e2674f1f57dccb7 +DIST cream-spell-dict-eng_2.0.2.zip 1778434 BLAKE2B c4f73ba51cf1371faec1d3aaae44d55a38ef11d351bd66cd51514067feea78b27f381cb7184be8cd26d74e863634ea9e2f4841ef29b98693e92874cee9ab680c SHA512 72ea2c4d72fc39aa80d9f47762f42ec3fcc4251cc27a9dc62a8b8f8f4b66340df7c15afd603a0e4a12805770606c09e462be548f5203feba76badefa27321b1d +DIST cream-spell-dict-fre_2.1.zip 872841 BLAKE2B 0711e0780c8a9b77f8bea9deda47bef3417ebea91f672a5146a0644c2f2fd70f4ccbc032802a62bd60b908d1c289a2acc46bf80115a3c37a5ef113f509319773 SHA512 d34773e3ec2bd905a669175680f91146ead8dc0a7d3de8fa668c56e550eed23ac6c8678b2e7b3c642b756d6eba97b815494395c07b3f28cb54e3a01cf8f5b1a0 +DIST cream-spell-dict-ger_2.0.1.zip 894848 BLAKE2B 0018d95b887ee48b7f36b9a7a90413a3a45c4daf6f939ec428670f54e690206e447813c0fff3048106d816960b6be0ce7153362dd0305fc2276fab1b58269efd SHA512 1fb1a797bfbcd0516d8124daf1256b27a356ef3eb58887c2a55fc8537f211faa60dcba713935b2fa5595ebf6bba07a1463819060018f725e5cd0952b978a342a +DIST cream-spell-dict-spa_3.0.zip 1710280 BLAKE2B 44039b8ee664fe9c9664bb60af60e6b9687dd51989a2452ee3bc7afca4fa6d7f124221aca7d8578c27b462b3d660417a7c518ba4bbff64fa76125cecb29f0fd9 SHA512 27de9d920afe191ae4e7d5267b5ad6fb14a6e4185d474c09d17af1eb45f926dab2d4696080cee25d1591bf0b588234a20778e9b1485927dfffa8595b19e247d2 +EBUILD cream-0.43.ebuild 4279 BLAKE2B 73076eb05caf45817e3ca9b7791f6fb0c6a7793513c77a98a971d85de84173b387cc28944c91693d7518a67bf02a2a5167f3e72987c9e0fd08d221d7691bc4b0 SHA512 e126f9ef16ca5b6b9afb4ce985631e3d88eeae2ffa35c98b6c7af1ce1ab5ec61827e99ae615f236fa38fa2480c3776a452c1c104689bf718370cd1b7be5252df +MISC metadata.xml 324 BLAKE2B 6c7902862acd6c6ad8e94e0bbd0d63f771039cd456cc401a72812c2dbe94d91bd13610fe77cb6484fecf33afc9beccd8aaa3e8d11cd4dfd0884c3bd90a228c10 SHA512 0c3e2ef2f849117218de711a2952e6571f92a5bd768c61004284bfc72f8945c77174fb3f83bb70c69ef030dbcab467eb1a531e09a0baf7d85167c3deade5cf65 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> |