diff --git a/srcpkgs/facter/template b/srcpkgs/facter/template index b953418e39caf0..a93973208803ea 100644 --- a/srcpkgs/facter/template +++ b/srcpkgs/facter/template @@ -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