summaryrefslogtreecommitdiff
path: root/benchmarks/phoronix-test-suite/files/patch-install-sh
diff options
context:
space:
mode:
authorMartin Matuska <mm@FreeBSD.org>2011-03-15 22:21:08 +0000
committerMartin Matuska <mm@FreeBSD.org>2011-03-15 22:21:08 +0000
commitc8db9a5ab3db4fc860cc25a83353bff96eb9ebb6 (patch)
treed4a36697f48e2e6960623028640c1a8246098776 /benchmarks/phoronix-test-suite/files/patch-install-sh
parentUpdate to bugfix release 1.26. (diff)
Update to 3.0.1
Take maintainership
Notes
Notes: svn path=/head/; revision=270976
Diffstat (limited to 'benchmarks/phoronix-test-suite/files/patch-install-sh')
-rw-r--r--benchmarks/phoronix-test-suite/files/patch-install-sh60
1 files changed, 47 insertions, 13 deletions
diff --git a/benchmarks/phoronix-test-suite/files/patch-install-sh b/benchmarks/phoronix-test-suite/files/patch-install-sh
index 14c5d83fd62e..4527667910f0 100644
--- a/benchmarks/phoronix-test-suite/files/patch-install-sh
+++ b/benchmarks/phoronix-test-suite/files/patch-install-sh
@@ -1,31 +1,65 @@
---- install-sh.orig 2009-03-07 23:21:13.000000000 -0500
-+++ install-sh 2009-07-06 13:45:10.000000000 -0400
-@@ -51,30 +51,24 @@
- mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/
+--- install-sh.orig 2011-02-15 19:34:54.000000000 +0100
++++ install-sh 2011-03-15 23:12:11.058903759 +0100
+@@ -45,33 +45,34 @@
+ fi
+
+ rm -rf $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+-rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
+
+ mkdir -p $DESTDIR$INSTALL_PREFIX/bin/
++if [ -z "$WITHOUT_X11" ]
++then
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/applications/
+ mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/hicolor/48x48/apps/
++fi
mkdir -p $DESTDIR$INSTALL_PREFIX/share/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/
-cp AUTHORS $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
-
- cd documentation/
+-
+-cd documentation/
-cp -r * $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/
- cd ..
- rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
+-cd ..
+-rm -rf $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/man-pages/
++if [ -n "$WITH_BASH_COMPLETIONS" ]
++then
++mkdir -p $DESTDIR$INSTALL_PREFIX/etc/bash_completion.d/
++fi
cp documentation/man-pages/*.1 $DESTDIR$INSTALL_PREFIX/share/man/man1/
- cp pts-core/media/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/phoronix-test-suite.png
+-cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/../etc/bash_completion.d/phoronix-test-suite
++if [ -n "$WITH_BASH_COMPLETION" ]
++then
++cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/etc/bash_completion.d/phoronix-test-suite
++fi
++if [ -z "$WITHOUT_X11" ]
++then
+ 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/
++fi
--cp -r pts/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
-+cp -r pts $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts/etc/scripts/package-build-*
-cp -r pts-core/ $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+cp -r pts-core $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/
+ rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/phoronix-test-suite.desktop
sed 's:PTS_DIR=`pwd`:PTS_DIR='"$INSTALL_PREFIX"'\/share\/phoronix-test-suite:g' phoronix-test-suite > $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
- chmod +x $DESTDIR$INSTALL_PREFIX/bin/phoronix-test-suite
+@@ -79,14 +80,16 @@
+
+ # 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
+
++if [ -z "$WITHOUT_X11" ]
++then
+ # 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
++fi
echo -e "\nPhoronix Test Suite Installation Completed\n
Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite