diff options
| author | nibbles 2bits | 2012-04-23 22:02:31 -0700 | 
|---|---|---|
| committer | Jack Nagel | 2012-04-24 23:49:03 -0500 | 
| commit | d9feece16ec73a1cad2f552d00db3e6c0427ba91 (patch) | |
| tree | b67d6afce56f68836181b279f1c4a488c41b0724 /Library/Formula/phoronix-test-suite.rb | |
| parent | a63c052f010d630fb2558155e28e0fb3d2149c49 (diff) | |
| download | homebrew-d9feece16ec73a1cad2f552d00db3e6c0427ba91.tar.bz2 | |
phoronix-test-suite 3.8.0
Upgrade phoronix-test-suite to version 3.8.0.
Change patch to support the changes within `install.sh`
* Put metafiles in prefix
* Add `.bash` to the bash-completion script name
* Change the XDG MIME Openbenchmarking conditional from `DESTDIR`
to `INSTALL_PREFIX` so that all the files it uses get copied into
the Cellar, because Macs don't run `xdg-utils`.  This makes that
conditional behave as if Phoronix is being installed into a chroot.
* Remove the `-e` from echo so that it doesn't get echoed.
Closes #11847.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library/Formula/phoronix-test-suite.rb')
| -rw-r--r-- | Library/Formula/phoronix-test-suite.rb | 59 | 
1 files changed, 43 insertions, 16 deletions
diff --git a/Library/Formula/phoronix-test-suite.rb b/Library/Formula/phoronix-test-suite.rb index 63208950f..cca7973c3 100644 --- a/Library/Formula/phoronix-test-suite.rb +++ b/Library/Formula/phoronix-test-suite.rb @@ -2,40 +2,67 @@ require 'formula'  class PhoronixTestSuite < Formula    homepage 'http://www.phoronix-test-suite.com/' -  url "http://www.phoronix-test-suite.com/download.php?file=phoronix-test-suite-2.8.1" -  md5 "623d0ea01963df438f738ec50e90afc6" +  url 'http://www.phoronix-test-suite.com/download.php?file=phoronix-test-suite-3.8.0' +  md5 '3048aae07c43602008492682c4d29795'    def patches; DATA; end    def install -    system "./install-sh #{prefix}" +    system "./install-sh", prefix    end  end  __END__ -diff --git a/install-sh b/install-sh -index 596dfae..c83ebe2 100755 ---- a/install-sh -+++ b/install-sh -@@ -53,7 +53,7 @@ mkdir -p $DESTDIR$INSTALL_PREFIX/share/icons/ +--- a/install-sh	2012-01-04 08:43:26.000000000 -0800 ++++ b/install-sh	2012-04-23 20:34:21.000000000 -0700 +@@ -55,11 +55,11 @@   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/  +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/ -@@ -69,9 +69,9 @@ cp pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/../etc/bash_completio - cp pts-core/static/images/phoronix-test-suite.png $DESTDIR$INSTALL_PREFIX/share/icons/phoronix-test-suite.png +-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/ ++cp CHANGE-LOG $DESTDIR$INSTALL_PREFIX/CHANGELOG ++cp COPYING $DESTDIR$INSTALL_PREFIX/ ++cp AUTHORS $DESTDIR$INSTALL_PREFIX/ +  + cd documentation/ + cp -r * $DESTDIR$INSTALL_PREFIX/share/doc/phoronix-test-suite/ +@@ -67,13 +67,13 @@ + 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 pts-core/static/bash_completion $DESTDIR$INSTALL_PREFIX/etc/bash_completion.d/phoronix-test-suite.bash + 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/phoronix-test-suite.desktop $DESTDIR$INSTALL_PREFIX/share/applications/ + cp pts-core/static/phoronix-test-suite-launcher.desktop $DESTDIR$INSTALL_PREFIX/share/applications/ --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 + rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/static/phoronix-test-suite-launcher.desktop + rm -f $DESTDIR$INSTALL_PREFIX/share/phoronix-test-suite/pts-core/openbenchmarking.org/openbenchmarking-mime.xml +@@ -88,7 +88,7 @@ + # 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 +-if [ "X$DESTDIR" = "X" ] ++if [ "X$INSTALL_PREFIX" = "X" ] + then + 	#No chroot + 	xdg-mime install pts-core/openbenchmarking.org/openbenchmarking-mime.xml +@@ -102,7 +102,7 @@ +  + fi - 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 +-echo -e "\nPhoronix Test Suite Installation Completed\n ++echo "\nPhoronix Test Suite Installation Completed\n + Executable File: $INSTALL_PREFIX/bin/phoronix-test-suite + Documentation: $INSTALL_PREFIX/share/doc/phoronix-test-suite/ + Phoronix Test Suite Files: $INSTALL_PREFIX/share/phoronix-test-suite/\n"  | 
