facter: fix mips* build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
d70d910c47
commit
7329526862
|
@ -15,9 +15,12 @@ homepage="http://puppetlabs.com/facter"
|
|||
distfiles="http://downloads.puppetlabs.com/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||
checksum=3b4950e0284154f448a47500905a078117006b48267996ea3795da51ccead198
|
||||
|
||||
if [ "$XBPS_GCC_VERSION_MAJOR" -ge 8 ]; then
|
||||
CXXFLAGS+=" -Wno-catch-value -Wno-stringop-truncation"
|
||||
fi
|
||||
CXXFLAGS="-Wno-catch-value -Wno-stringop-truncation"
|
||||
pre_configure() {
|
||||
case "$XBPS_TARGET_MACHINE" in
|
||||
mips*) sed -i lib/CMakeLists.txt -e'/add_subdirectory(tests)/d' ;;
|
||||
esac
|
||||
}
|
||||
|
||||
post_install() {
|
||||
vlicense LICENSE
|
||||
|
|
Loading…
Reference in New Issue