diff options
Diffstat (limited to 'benchmarks/phoronix-test-suite/patches/patch-install-sh')
-rw-r--r-- | benchmarks/phoronix-test-suite/patches/patch-install-sh | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/benchmarks/phoronix-test-suite/patches/patch-install-sh b/benchmarks/phoronix-test-suite/patches/patch-install-sh new file mode 100644 index 00000000000..68ab8b1bf2d --- /dev/null +++ b/benchmarks/phoronix-test-suite/patches/patch-install-sh @@ -0,0 +1,41 @@ +$NetBSD: patch-install-sh,v 1.1 2011/12/07 00:23:09 jym Exp $ +Handle pkgsrc hierarchy, especially paths to man pages. +Do not execute xdg-* during installation, let the shared-mime-info +and desktop-file-utils update their databases. +--- install-sh.orig 2011-05-17 18:00:59.000000000 +0000 ++++ install-sh +@@ -50,10 +50,9 @@ rm -rf $DESTDIR$INSTALL_PREFIX/share/doc + mkdir -p $DESTDIR$INSTALL_PREFIX/bin/ + mkdir -p $DESTDIR$INSTALL_PREFIX/share/applications/ + mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/ +-mkdir -p $DESTDIR$INSTALL_PREFIX/share/man/man1/ ++mkdir -p $DESTDIR$INSTALL_PREFIX/man/man1/ + mkdir -p $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/ + mkdir -p $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/ +-mkdir -p $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/ + + cp CHANGE-LOG $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/ + cp COPYING $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/ +@@ -64,8 +63,8 @@ cp -r * $DESTDIR$INSTALL_PREFIX/share/do + cd .. + rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/ + +-cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/share/man/man1/ +-cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/phoronix-test-suite ++cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/man/man1/ ++cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/share/bash-completion.d + cp pts-core/static/images/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/phoronix-test-suite.png + cp pts-core/static/images/openbenchmarking.png $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/64x64/apps/openbenchmarking.png + cp pts-core/static/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/ +@@ -79,11 +78,6 @@ chmod +x $DESTDIR$INSTALL_PREFIX/bin/pho + + # sed 's:\$url = PTS_PATH . \"documentation\/index.html\";:\$url = \"'"$INSTALL_PREFIX"'\/share\/doc\/packages\/phoronix-test-suite\/index.html\";:g' pts-core/commands/gui_gtk.php > $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/commands/gui_gtk.php + +-# XDG MIME OpenBenchmarking support +-xdg-mime install pts-core/openbenchmarking.org/openbenchmarking-mime.xml +-xdg-mime default phoronix-test-suite.desktop application/x-openbenchmarking +-xdg-icon-resource install --context mimetypes --size 64 pts-core/static/images/openbenchmarking.png application-x-openbenchmarking +- + echo -e "\nPhoronix Test Suite Installation Completed\n + Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite + Documentation: $INSTALL_PREFIX/share/doc/phoronix-test-suite/ |