Lines 4-10
Link Here
|
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit bash-completion-r1 eutils linux-info |
7 |
inherit eutils linux-info |
8 |
|
8 |
|
9 |
add_req_use_for() { |
9 |
add_req_use_for() { |
10 |
local dep="$1"; shift |
10 |
local dep="$1"; shift |
Lines 179-185
Link Here
|
179 |
} |
179 |
} |
180 |
|
180 |
|
181 |
src_configure() { |
181 |
src_configure() { |
182 |
econf --libdir="${MY_LIBDIR}" |
182 |
local bashcompletiondir |
|
|
183 |
local myconf |
184 |
|
185 |
if $(tc-getPKG_CONFIG) bash-completion --exists; then |
186 |
bashcompletiondir="$($(tc-getPKG_CONFIG) bash-completion \ |
187 |
--variable=completionsdir)" |
188 |
else |
189 |
bashcompletiondir=/usr/share/bash-completion |
190 |
fi |
191 |
|
192 |
if use dracut_modules_systemd; then |
193 |
local systemdsystemunitdir="$($(tc-getPKG_CONFIG) systemd \ |
194 |
--variable=systemdsystemunitdir)" |
195 |
local myconf="--systemdsystemunitdir=\"${systemdsystemunitdir}\"" |
196 |
fi |
197 |
|
198 |
econf \ |
199 |
--libdir="${MY_LIBDIR}" \ |
200 |
--bashcompletiondir="${bashcompletiondir}" \ |
201 |
${myconf} |
183 |
} |
202 |
} |
184 |
|
203 |
|
185 |
src_compile() { |
204 |
src_compile() { |
Lines 195-202
Link Here
|
195 |
src_install() { |
214 |
src_install() { |
196 |
default |
215 |
default |
197 |
|
216 |
|
198 |
newbashcomp "${PN}-bash-completion.sh" "${PN}" |
|
|
199 |
|
200 |
local dracutlibdir="${MY_LIBDIR#/}/dracut" |
217 |
local dracutlibdir="${MY_LIBDIR#/}/dracut" |
201 |
|
218 |
|
202 |
echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" |
219 |
echo "DRACUT_VERSION=$PVR" > "${D%/}/${dracutlibdir}/dracut-version.sh" |