rspamd: fix build

changing to ninja in cmake build-style broke the sed calls
This commit is contained in:
John 2021-02-20 12:17:25 +01:00
parent 3868813e5c
commit 1a18a2ced4

View file

@ -32,15 +32,15 @@ if [ "$CROSS_BUILD" ]; then
pre_build() {
make -C build_native/contrib/snowball
sed -i "s#\./snowball#../../../build_native/contrib/snowball/snowball#g" \
build/contrib/snowball/CMakeFiles/stemmer.dir/build.make
vsed -e "s#${wrksrc}/build/contrib/snowball/snowball#${wrksrc}/build_native/contrib/snowball/snowball#g" \
-i build/build.ninja
}
fi
pre_configure() {
case "$XBPS_TARGET_MACHINE" in
*-musl) # Remove non existing library nsl
sed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d"
vsed -i CMakeLists.txt -e "/LIST(APPEND CMAKE_REQUIRED_LIBRARIES nsl)/d"
esac
if [ "$CROSS_BUILD" ]; then
configure_args+=" -C ${FILESDIR}/TryRunResults.cmake"