aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/phoronix-test-suite.rb
diff options
context:
space:
mode:
authorDavid Höppner2010-02-06 21:00:56 +0100
committerDavid Höppner2010-02-06 21:00:56 +0100
commit67ff548c58542f861ac6df21d9468865e42b18cb (patch)
tree6c47fa1d8329cbdc42fc9256d9be165e95e46c57 /Library/Formula/phoronix-test-suite.rb
parent205bbb1f28df391f031514fe5266b61ea6ab253f (diff)
downloadhomebrew-67ff548c58542f861ac6df21d9468865e42b18cb.tar.bz2
New formula Phoronix Test Suite
The Phoronix Test Suite is the most comprehensive testing and benchmarking platform available for the Linux 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 'Library/Formula/phoronix-test-suite.rb')
-rw-r--r--Library/Formula/phoronix-test-suite.rb44
1 files changed, 44 insertions, 0 deletions
diff --git a/Library/Formula/phoronix-test-suite.rb b/Library/Formula/phoronix-test-suite.rb
new file mode 100644
index 000000000..0c7b2795f
--- /dev/null
+++ b/Library/Formula/phoronix-test-suite.rb
@@ -0,0 +1,44 @@
+require 'formula'
+
+class PhoronixTestSuite <Formula
+ head 'http://www.phorogit.com/repo/phoronix-test-suite.git'
+ homepage 'http://www.phoronix-test-suite.com/'
+
+ def download_strategy
+ GitDownloadStrategy
+ end
+
+ def patches
+ DATA
+ end
+
+ def install
+ 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/
+ 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 pts-core/static/phoronix-test-suite.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
+
+ 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