dev-cpp/folly: add || die on sed commands

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Theo Anderson <telans@posteo.de>
This commit is contained in:
Theo Anderson
2021-01-05 16:17:53 +13:00
parent 6414d36385
commit 6eba7d3168
2 changed files with 3 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ RDEPEND="${DEPEND}"
src_prepare(){
einfo $(get_libdir)
sed "s/lib CACHE/$(get_libdir) CACHE/" -i CMakeLists.txt
sed "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" -i CMakeLists.txt
sed "s/lib CACHE/$(get_libdir) CACHE/" -i CMakeLists.txt || die
sed "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" -i CMakeLists.txt || die
cmake_src_prepare
}

View File

@@ -32,5 +32,5 @@ src_prepare() {
cmake_src_prepare
sed -e "s/lib CACHE/$(get_libdir) CACHE/" \
-e "s/lib\/cmake\/folly CACHE/$(get_libdir)\/cmake\/folly CACHE/" \
-i CMakeLists.txt
-i CMakeLists.txt || die
}