summaryrefslogtreecommitdiff
path: root/bootstrap.conf
blob: ea4f75aa8af12d85a0cff024082581070cbd2949 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
# bootstrap.conf (Enchant) version 2020-01-18

# This file is part of Enchant.
#
# Enchant is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 2.1 of the License, or
# (at your option) any later version.
#
# Enchant is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.


## -------------- ##
## Configuration. ##
## -------------- ##

# File that should exist relative to the top directory of a checked out
# hierarchy, but not in a distribution tarball.
checkout_only_file=.gitignore

# List of programs, minimum versions, and software urls required to
# bootstrap, maintain and release Enchant.

# Build prerequisites
buildreq='
        git        1.5.5   https://git-scm.com
        gpg        1.4.11  https://www.gnupg.org
        tar        -       https://www.gnu.org/s/tar
'

# Non-default gnulib directory options.
local_gl_path=gl-mod/bootstrap:gl
gnulib_git_submodules=gl-mod/bootstrap

# Additional gnulib-tool options to use.
gnulib_tool_options='
        --lgpl
        --makefile-name=Makefile.gnulib
'

# gnulib modules used by this package.
gnulib_modules='
        bootstrap
        c99
        configmake
        flock
        getopt-posix
        gnu-make
        manywarnings
        relocatable-lib-lgpl
        snippet/unused-parameter
        strchrnul
        strdup-posix
        ssize_t
'


## --------------- ##
## Hook functions. ##
## --------------- ##

# enchant_ignore_gnulib_ignore
# -------------------------
# gnulib-tool updates m4/.gitignore and lib/.gitignore, and keeping
# generated files under version control does not make sense.  Since
# lib is entirely ignored, we only need to prepopulate the m4 ignore
# files with generated files not tracked by gnulib-tool.
enchant_ignore_gnulib_ignore ()
{
    $debug_cmd

    $require_macro_dir

    if test -f "$macro_dir/.gitignore" ; then
      :
    else
      func_verbose "creating initial \`$macro_dir/.gitignore'"
      cat > $macro_dir/.gitignore <<\EOF
# files created by gnulib, but that gnulib doesn't track
*~
.gitignore
gnulib-comp.m4
EOF
    fi
}
func_add_hook func_prep enchant_ignore_gnulib_ignore


# Local variables:
# mode: shell-script
# sh-indentation: 2
# eval: (add-hook 'write-file-functions 'time-stamp)
# time-stamp-start: "# bootstrap.conf (Enchant) version "
# time-stamp-format: "%:y-%02m-%02d"
# time-stamp-end: "$"
# End: