source: BLFS/xsl/gen_config.xsl@ fd4a798

ablfs-more legacy trunk
Last change on this file since fd4a798 was fd4a798, checked in by Pierre Labastie <pierre.labastie@…>, 3 years ago

Remove $Id$ comments, they are useless with git

  • Property mode set to 100644
File size: 6.4 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2
3<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4 version="1.0">
5
6 <xsl:output method="text"
7 encoding='ISO-8859-1'/>
8
9 <xsl:template match="/">
10 <xsl:apply-templates select="//list"/>
11 <xsl:text>comment ""
12
13menu "Default package for resolving MTA dependency"
14
15choice
16 prompt "Mail server"
17 config MS_sendmail
18 bool "sendmail"
19 config MS_postfix
20 bool "postfix"
21 config MS_exim
22 bool "exim"
23endchoice
24config MAIL_SERVER
25 string
26 default "sendmail" if MS_sendmail
27 default "postfix" if MS_postfix
28 default "exim" if MS_exim
29
30endmenu
31
32choice
33 prompt "Dependency level"
34 default DEPLVL_2
35
36 config DEPLVL_1
37 bool "Required dependencies only"
38
39 config DEPLVL_2
40 bool "Required plus recommended dependencies"
41
42 config DEPLVL_3
43 bool "Req/rec plus optional dependencies of requested package(s)"
44
45 config DEPLVL_4
46 bool "All non external dependencies"
47
48endchoice
49config optDependency
50 int
51 default 1 if DEPLVL_1
52 default 2 if DEPLVL_2
53 default 3 if DEPLVL_3
54 default 4 if DEPLVL_4
55
56config LANGUAGE
57 string "LANG variable in the form ll_CC.charmap[@modifiers]"
58 default "en_US.UTF-8"
59 help
60 Because of the book layout, the 3 fields, ll, CC and charmap are
61 mandatory. The @modfier is honoured if present.
62
63config KBLAYOUT
64 string "Keyboard layout (to be used in GDM)"
65 default "us"
66 help
67 Used in GDM for setting the login screen keyboard layout.
68 See the GDM page in the book for what to put into this field
69
70config SUDO
71 bool "Build as User"
72 default y
73 help
74 Select if sudo will be used (you build as a normal user)
75 otherwise sudo is not needed (you build as root)
76
77
78config WRAP_INSTALL
79 bool "Use `porg style' package management"
80 default n
81 help
82 Select if you want the installation commands to be wrapped
83 between "wrapInstall '" and "' ; packInstall" functions,
84 where wrapInstall is used to set up a LD_PRELOAD library (for
85 example using porg), and packInstall makes the package tarball
86
87config DEL_LA_FILES
88 bool "Remove libtool .la files after package installation"
89 default y
90 help
91 This option should be active on any system mixing libtool
92 and meson build systems. ImageMagick .la files are preserved.
93
94config STATS
95 bool "Generate statistics for the requested package(s)"
96 default n
97 help
98 If you want timing and memory footprint statistics to be
99 generated for the packages you build (not their dependencies),
100 set this option to y.
101</xsl:text>
102 </xsl:template>
103
104 <xsl:template match="list">
105 <xsl:if
106 test=".//*[self::package or self::module]
107 [(version and not(inst-version)) or
108 string(version) != string(inst-version)]">
109 <xsl:text>config&#9;MENU_</xsl:text>
110 <xsl:value-of select="@id"/>
111 <xsl:text>
112bool&#9;"</xsl:text>
113 <xsl:value-of select="name"/>
114 <xsl:text>"
115default&#9;n
116
117menu "</xsl:text>
118 <xsl:value-of select="name"/>
119 <xsl:text>"
120depends on MENU_</xsl:text>
121 <xsl:value-of select="@id"/>
122 <xsl:text>
123
124</xsl:text>
125 <xsl:apply-templates select="sublist"/>
126 <xsl:text>endmenu
127
128</xsl:text>
129 </xsl:if>
130 </xsl:template>
131
132 <xsl:template match="sublist">
133 <xsl:if
134 test=".//*[self::package or self::module]
135 [(version and not(inst-version)) or
136 string(version) != string(inst-version)]">
137 <xsl:text>&#9;config&#9;MENU_</xsl:text>
138 <xsl:value-of select="@id"/>
139 <xsl:text>
140&#9;bool&#9;"</xsl:text>
141 <xsl:value-of select="name"/>
142 <xsl:text>"
143&#9;default&#9;n
144
145&#9;menu "</xsl:text>
146 <xsl:value-of select="name"/>
147 <xsl:text>"
148&#9;depends on MENU_</xsl:text>
149 <xsl:value-of select="@id"/>
150 <xsl:text>
151
152</xsl:text>
153 <xsl:apply-templates select="package"/>
154 <xsl:text>&#9;endmenu
155
156</xsl:text>
157 </xsl:if>
158 </xsl:template>
159
160 <xsl:template match="package">
161 <xsl:if
162 test="(version and not(inst-version)) or
163 string(version) != string(inst-version)">
164 <xsl:text>&#9;&#9;config&#9;CONFIG_</xsl:text>
165 <xsl:value-of select="name"/>
166 <xsl:text>
167&#9;&#9;bool&#9;"</xsl:text>
168 <xsl:value-of select="name"/>
169 <xsl:text> </xsl:text>
170 <xsl:value-of select="version"/>
171 <xsl:if test="inst-version">
172 <xsl:text> [Installed </xsl:text>
173 <xsl:value-of select="inst-version"/>
174 <xsl:text>]</xsl:text>
175 </xsl:if>
176 <xsl:text>"
177&#9;&#9;default&#9;n
178
179</xsl:text>
180 </xsl:if>
181 <xsl:if
182 test="not(version) and ./module[not(inst-version) or
183 string(version) != string(inst-version)]">
184 <xsl:text>&#9;&#9;config&#9;MENU_</xsl:text>
185 <xsl:value-of select="translate(name,' ()','___')"/>
186 <xsl:text>
187&#9;&#9;bool&#9;"</xsl:text>
188 <xsl:value-of select="name"/>
189 <xsl:text>"
190&#9;&#9;default&#9;n
191
192&#9;&#9;menu "</xsl:text>
193 <xsl:value-of select="name"/>
194 <xsl:text>"
195&#9;&#9;depends on MENU_</xsl:text>
196 <xsl:value-of select="translate(name,' ()','___')"/>
197 <xsl:text>
198
199</xsl:text>
200 <xsl:apply-templates select="module"/>
201 <xsl:text>&#9;&#9;endmenu
202
203</xsl:text>
204 </xsl:if>
205 </xsl:template>
206
207 <xsl:template match="module">
208 <xsl:if
209 test="not(inst-version) or
210 string(version) != string(inst-version)">
211 <xsl:text>&#9;&#9;&#9;config&#9;CONFIG_</xsl:text>
212 <xsl:value-of select="name"/>
213 <xsl:text>
214&#9;&#9;&#9;bool&#9;"</xsl:text>
215 <xsl:value-of select="name"/>
216 <xsl:text> </xsl:text>
217 <xsl:value-of select="version"/>
218 <xsl:if test="inst-version">
219 <xsl:text> [Installed </xsl:text>
220 <xsl:value-of select="inst-version"/>
221 <xsl:text>]</xsl:text>
222 </xsl:if>
223 <xsl:text>"
224&#9;&#9;&#9;default&#9;</xsl:text>
225 <xsl:choose>
226 <xsl:when test="contains(../name,'xorg')">
227 <xsl:text>y
228
229</xsl:text>
230 </xsl:when>
231 <xsl:otherwise>
232 <xsl:text>n
233
234</xsl:text>
235 </xsl:otherwise>
236 </xsl:choose>
237 </xsl:if>
238 </xsl:template>
239
240</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.