Gentoo Archives: gentoo-dev

From: Patrice Clement <monsieurp@g.o>
To: gentoo-dev@l.g.o
Cc: vim@g.o
Subject: [gentoo-dev] [PATCH 1/2] vim-spell.eclass: document functions using Gentoo documentation tags.
Date: Sat, 19 Aug 2017 12:54:36
Message-Id: 20170819125350.10651-2-monsieurp@gentoo.org
In Reply to: [gentoo-dev] [PATCH 0/2] vim-spell.eclass: improvements. by Patrice Clement
1 ---
2 eclass/vim-spell.eclass | 29 ++++++++++++++++++-----------
3 1 file changed, 18 insertions(+), 11 deletions(-)
4
5 diff --git a/eclass/vim-spell.eclass b/eclass/vim-spell.eclass
6 index 0a3ef952a87..1b0f93c264d 100644
7 --- a/eclass/vim-spell.eclass
8 +++ b/eclass/vim-spell.eclass
9 @@ -1,12 +1,13 @@
10 -# Copyright 1999-2011 Gentoo Foundation
11 +# Copyright 1999-2017 Gentoo Foundation
12 # Distributed under the terms of the GNU General Public License v2
13
14 -#
15 -# Original Author: Ciaran McCreesh <ciaranm@g.o>
16 -# Maintainers: Vim Herd <vim@g.o>
17 -# Purpose: Simplify installing spell files for vim7
18 -#
19 -
20 +# @ECLASS: vim-spell.eclass
21 +# @MAINTAINER:
22 +# Vim Maintainers <vim@g.o>
23 +# @AUTHOR:
24 +# Ciaran McCreesh <ciaranm@g.o>
25 +# @BLURB: Eclass for managing Vim spell files.
26 +# @DESCRIPTION:
27 # How to make a vim spell file package using prebuilt spell lists
28 # from upstream (${CODE} is the language's two letter code):
29 #
30 @@ -21,9 +22,9 @@
31 #
32 # * Upload the tarball to the Gentoo mirrors.
33 #
34 -# * (for now) Add your spell file to package.mask next to the other vim7
35 -# things. The vim herd will handle unmasking your spell packages when vim7
36 -# comes out of package.mask.
37 +# * Add your spell file to package.mask next to the other vim things. Vim
38 +# Project members will handle unmasking your spell packages when vim comes out
39 +# of package.mask.
40 #
41 # * Create the app-vim/vim-spell-${CODE} package. You should base your ebuild
42 # upon app-vim/vim-spell-en. You will need to change VIM_SPELL_LANGUAGE,
43 @@ -52,7 +53,7 @@
44 # Don't forget to update your package as necessary.
45 #
46 # If there isn't an upstream-provided pregenerated spell file for your language
47 -# yet, read :help spell.txt from inside vim7 for instructions on how to create
48 +# yet, read :help spell.txt from inside vim for instructions on how to create
49 # spell files. It's best to let upstream know if you've generated spell files
50 # for another language rather than keeping them Gentoo-specific.
51
52 @@ -77,6 +78,9 @@ if [[ -z "${HOMEPAGE}" ]] ; then
53 HOMEPAGE="http://www.vim.org/"
54 fi
55
56 +# @FUNCTION: vim-spell_src_install
57 +# @DESCRIPTION:
58 +# Install Vim spell files.
59 vim-spell_src_install() {
60 target="/usr/share/vim/vimfiles/spell/"
61 dodir "${target}"
62 @@ -103,6 +107,9 @@ vim-spell_src_install() {
63 [[ -z "${had_spell_file}" ]] && die "Didn't install any spell files?"
64 }
65
66 +# @FUNCTION: vim-spell_pkg_postinst
67 +# @DESCRIPTION:
68 +# Display installed Vim spell files.
69 vim-spell_pkg_postinst() {
70 has "${EAPI:-0}" 0 1 2 && ! use prefix && EROOT="${ROOT}"
71 target="/usr/share/vim/vimfiles/spell/"
72 --
73 2.13.0