VirtualBox

source: kBuild/trunk/src/sed/bootstrap.conf@ 3613

Last change on this file since 3613 was 3613, checked in by bird, 7 months ago

src/sed: Merged in changes between 4.1.5 and 4.9 from the vendor branch. (svn merge /vendor/sed/4.1.5 /vendor/sed/current .)

File size: 2.9 KB
Line 
1# Bootstrap configuration.
2
3# Copyright (C) 2006-2022 Free Software Foundation, Inc.
4
5# This program is free software: you can redistribute it and/or modify
6# it under the terms of the GNU General Public License as published by
7# the Free Software Foundation; either version 3 of the License, or
8# (at your option) any later version.
9
10# This program is distributed in the hope that it will be useful,
11# but WITHOUT ANY WARRANTY; without even the implied warranty of
12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13# GNU General Public License for more details.
14
15# You should have received a copy of the GNU General Public License
16# along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18avoided_gnulib_modules='
19 --avoid=lock-tests
20'
21
22# gnulib modules used by this package.
23gnulib_modules='
24acl
25alloca
26stdalign
27binary-io
28btowc
29c-ctype
30closeout
31dfa
32eloop-threshold
33extensions
34fwriting
35getdelim
36gettext-h
37git-version-gen
38gitlog-to-changelog
39idx
40ignore-value
41localcharset
42manywarnings
43mbrlen
44mbrtowc
45mbsinit
46memchr
47memrchr
48minmax
49mkostemp
50obstack
51perl
52progname
53readlink
54readme-release
55regex
56rename
57selinux-h
58ssize_t
59stat-macros
60stdbool
61strerror
62strverscmp
63unlocked-io
64update-copyright
65verify
66version-etc-fsf
67wcrtomb
68wctob
69xalloc
70'
71gnulib_name=libsed
72
73checkout_only_file=
74[email protected]
75
76# Additional xgettext options to use. Use "\\\newline" to break lines.
77XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
78 --flag=asnprintf:3:c-format\\\
79 --flag=asprintf:2:c-format\\\
80 --flag=error:3:c-format\\\
81 --flag=error_at_line:5:c-format\\\
82 --flag=vasnprintf:3:c-format\\\
83 --flag=vasprintf:2:c-format\\\
84 --flag=wrapf:1:c-format\\\
85 --from-code=UTF-8\\\
86'
87
88gnulib_tool_option_extras="--tests-base=gnulib-tests --with-tests --symlink\
89 --makefile-name=gnulib.mk --automake-subdir
90 $avoided_gnulib_modules
91"
92
93# Build prerequisites
94buildreq="\
95autoconf 2.64
96automake 1.11.2
97autopoint -
98gettext 0.19.2
99git 1.4.4
100gzip -
101makeinfo 6.1
102perl 5.5
103rsync -
104tar -
105"
106
107bootstrap_post_import_hook ()
108{
109 # Automake requires that ChangeLog exist.
110 touch ChangeLog || return 1
111}
112
113bootstrap_epilogue()
114{
115 perl -pi -e "s/\@PACKAGE\@/$package/g" README-release
116
117 # Since this is a "GNU" package, replace this line
118 # if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null \
119 # | grep -v 'libtool:' >/dev/null; then
120 # with this:
121 # if true; then
122 # Why? That pipeline searches all files in $(top_srcdir), and if you
123 # happen to have large files (or apparently large sparse files), the
124 # first grep may well run out of memory.
125 perl -pi -e 's/if LC_ALL=C grep .GNU .PACKAGE.*; then/if true; then/' \
126 po/Makefile.in.in
127
128 # Add dummy 'install-html' target, required for packages using
129 # non-recursive makefiles with older gettext.
130 # See https://debbugs.gnu.org/25690
131 if ! grep -w 'install-html' po/Makefile.in.in ; then
132 printf 'install-%s:;\n' dvi ps pdf html >> po/Makefile.in.in
133 fi
134}
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette