blob: 81670c11430be1e48a29c6b1aab5a5b9e288e98f (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
src_configure() {
export ac_cv_header_security_pam_misc_h=no
export ac_cv_header_security_pam_appl_h=no
local myconf=(
--disable-libtool-lock
--enable-libmount
--disable-libsmartcols
--disable-libfdisk
--enable-libuuid
--without-ncursesw
--without-ncurses
--disable-widechar
--without-python
--disable-pylibmount
--enable-static-programs=blkid
)
gkconf "${myconf[@]}"
}
src_install() {
local MYMAKEOPTS=( "V=1" )
MYMAKEOPTS+=( "DESTDIR=${D}" )
MYMAKEOPTS+=( "install-pkgconfigDATA" )
MYMAKEOPTS+=( "install-nodist_blkidincHEADERS" )
MYMAKEOPTS+=( "install-nodist_mountincHEADERS" )
MYMAKEOPTS+=( "install-usrlib_execLTLIBRARIES" )
MYMAKEOPTS+=( "install-uuidincHEADERS" )
gkmake "${MYMAKEOPTS[@]}"
mkdir "${D}"/sbin || die "Failed to create '${D}/sbin'!"
cp -a blkid.static "${D}"/sbin/blkid \
|| die "Failed to copy '${S}/blkid.static' to '${D}/sbin/blkid'!"
"${STRIP}" --strip-all "${D}"/sbin/blkid \
|| die "Failed to strip '${D}/sbin/blkid'!"
}
|