openbsd-ports/editors/libreoffice/patches/patch-solenv_bin_ooinstall
2013-05-31 14:50:11 +00:00

21 lines
1.0 KiB
Plaintext

$OpenBSD: patch-solenv_bin_ooinstall,v 1.2 2013/05/31 14:50:15 robert Exp $
--- solenv/bin/ooinstall.orig.port Thu May 2 17:55:29 2013
+++ solenv/bin/ooinstall Sun May 12 12:52:22 2013
@@ -111,10 +111,12 @@ if ($is_windows) {
# make distro-pack-install shufle with the SDK installation to make it LSB compliant
# it creates symlinks from the orignal path to /usr/share; they are not valid with $DESTDIR
# and potential second ooinstall call fails with strange error messages if the old tree is still there
-if ($destdir && "$ENV{DESTDIR}" ne "/" && -d "$ENV{DESTDIR}") {
- print "Cleaning destdir...\n";
- system ("rm -rf \"$ENV{DESTDIR}\"") && die "Failed to clean up destdir: $!";
-}
+### SKIP ON OPENBSD ###
+#if ($destdir && "$ENV{DESTDIR}" ne "/" && -d "$ENV{DESTDIR}") {
+# print "Cleaning destdir...\n";
+# system ("rm -rf \"$ENV{DESTDIR}\"") && die "Failed to clean up destdir: $!";
+#}
+#######################
print "Running LibreOffice installer\n";
system ("cd $ENV{SRC_ROOT}/instsetoo_native/util ; " .