summaryrefslogtreecommitdiff
path: root/bootstrap.conf
blob: e44d9864aad4495387c3b9aa472ec0998bc77025 (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
# Bootstrap configuration.

# Copyright (C) 2006-2022 Free Software Foundation, Inc.

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program 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 General Public License
# along with this program.  If not, see <https://www.gnu.org/licenses/>.


# gnulib modules used by this package.
gnulib_modules="
gettext-h valgrind-tests git-version-gen
gitlog-to-changelog vc-list-files
lib-msvc-compat lib-symbol-visibility
relocatable-lib-lgpl locale setlocale localeconv
useless-if-before-free do-release-commit-and-tag
announce-gen stdbool attribute lseek remove stdio
vasprintf
"

COPYRIGHT_HOLDER='Vivien Kraus'
MSGID_BUGS_ADDRESS='vivien@planete-kraus.eu'

# Additional xgettext options to use.  Use "\\\newline" to break lines.
XGETTEXT_OPTIONS='\\\
 --flag=_:1:pass-c-format\\\
 --flag=N_:1:pass-c-format\\\
 --flag=P_:2:pass-c-format\\\
 --flag=NP_:2:pass-c-format\\\
 --flag=error:3:c-format --flag=error_at_line:5:c-format\\\
 --keyword=_ --keyword=N_ --keyword=P_:1c,2 --keyword=NP_:1c,2 \\\
 --from-code=utf-8'

gnulib_name=libgnu

gnulib_tool_option_extras='--makefile-name=Makefile.gnulib'

checkout_only_file=guix.scm

po_download_command_format="git archive --format=tar translations | tar -x -C %s && echo %s"

bootstrap_post_import_hook ()
{
  "${GNULIB_SRCDIR}"/gnulib-tool --import \
                                 --lib=libgnu \
                                 --source-base=libprog \
                                 --m4-base=m4prog \
                                 --doc-base=doc \
                                 --aux-dir=build-aux \
                                 --libtool \
                                 --macro-prefix=glprog \
                                 relocatable-prog gettext-h locale setlocale stdbool attribute
}