summaryrefslogtreecommitdiff
path: root/benchmarks/phoronix-test-suite/patches
diff options
context:
space:
mode:
authorjym <jym@pkgsrc.org>2011-12-07 00:23:09 +0000
committerjym <jym@pkgsrc.org>2011-12-07 00:23:09 +0000
commit666e7305b8f3ae6f87cc5b4e6baa351fb13cef58 (patch)
treee4b9523f2160e7996e1321bc66c89e7447a3a8ba /benchmarks/phoronix-test-suite/patches
parenteaf88264b80d22f42797cfc1c36eca0654239e68 (diff)
downloadpkgsrc-666e7305b8f3ae6f87cc5b4e6baa351fb13cef58.tar.gz
Welcome to phoronix-test-suite-3.4.0.
DESCR: The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available for the *nix operating system. This software is designed to effectively carry out both qualitative and quantitative benchmarks in a clean, reproducible, and easy-to-use manner.
Diffstat (limited to 'benchmarks/phoronix-test-suite/patches')
-rw-r--r--benchmarks/phoronix-test-suite/patches/patch-install-sh41
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/