qtbase: fix sed syntax in .pc file fixup

This commit is contained in:
Thomas Tuegel
2017-03-11 16:25:48 -06:00
parent bf6c90ed67
commit e24261ed16
4 changed files with 8 additions and 5 deletions
@@ -269,9 +269,12 @@ stdenv.mkDerivation {
done done
popd popd
fi fi
''
# fixup .pc file (where to find 'moc' etc.) # fixup .pc file (where to find 'moc' etc.)
sed "s|^host_bins=.*|host_bins=$dev/bin|" -i "$dev/lib/pkgconfig/Qt5Core.pc" + lib.optionalString (!stdenv.isDarwin) ''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
-e "/^host_bins=/ c host_bins=$dev/bin"
''; '';
inherit lndir; inherit lndir;
@@ -272,7 +272,7 @@ stdenv.mkDerivation {
# fixup .pc file (where to find 'moc' etc.) # fixup .pc file (where to find 'moc' etc.)
+ lib.optionalString (!stdenv.isDarwin) '' + lib.optionalString (!stdenv.isDarwin) ''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
"s|^host_bins=.*|host_bins=$dev/bin|" -e "/^host_bins=/ c host_bins=$dev/bin"
'' ''
# Don't move .prl files on darwin because they end up in # Don't move .prl files on darwin because they end up in
@@ -233,7 +233,7 @@ stdenv.mkDerivation {
# fixup .pc file (where to find 'moc' etc.) # fixup .pc file (where to find 'moc' etc.)
+ lib.optionalString (!stdenv.isDarwin) '' + lib.optionalString (!stdenv.isDarwin) ''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
"s|^host_bins=.*|host_bins=$dev/bin|" -e "/^host_bins=/ c host_bins=$dev/bin"
'' ''
# Don't move .prl files on darwin because they end up in # Don't move .prl files on darwin because they end up in
@@ -230,7 +230,7 @@ stdenv.mkDerivation {
# fixup .pc file (where to find 'moc' etc.) # fixup .pc file (where to find 'moc' etc.)
+ lib.optionalString (!stdenv.isDarwin) '' + lib.optionalString (!stdenv.isDarwin) ''
sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \ sed -i "$dev/lib/pkgconfig/Qt5Core.pc" \
"s|^host_bins=.*|host_bins=$dev/bin|" -e "/^host_bins=/ c host_bins=$dev/bin"
'' ''
# Don't move .prl files on darwin because they end up in # Don't move .prl files on darwin because they end up in