diff options
| author | Mike McQuaid | 2014-03-31 11:54:58 -0500 |
|---|---|---|
| committer | Mike McQuaid | 2014-03-31 11:54:58 -0500 |
| commit | cd47c938b3d8d0194221ec8fd2e97425aae048e6 (patch) | |
| tree | dd6271cf8a0c299cc31bd61f742e26996bca50ac /Library | |
| parent | f3b3b70a9d8f42252e8964238b6365843846ddcc (diff) | |
| download | homebrew-cd47c938b3d8d0194221ec8fd2e97425aae048e6.tar.bz2 | |
pocl: move to homebrew/science.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/pocl.rb | 41 | ||||
| -rw-r--r-- | Library/Homebrew/tap_migrations.rb | 1 |
2 files changed, 1 insertions, 41 deletions
diff --git a/Library/Formula/pocl.rb b/Library/Formula/pocl.rb deleted file mode 100644 index 913d30620..000000000 --- a/Library/Formula/pocl.rb +++ /dev/null @@ -1,41 +0,0 @@ -require 'formula' - -class Pocl < Formula - homepage 'http://pocl.sourceforge.net' - url 'http://pocl.sourceforge.net/downloads/pocl-0.9.tar.gz' - sha1 'd6e30f3120c7952dec9004db1db91a11d08c7b74' - - depends_on 'pkg-config' => :build - depends_on 'hwloc' - depends_on 'llvm' => 'with-clang' - depends_on :libltdl - - # Check if ndebug flag is required for compiling pocl didn't work on osx. - # https://github.com/pocl/pocl/pull/65 - patch do - url "https://github.com/pocl/pocl/commit/fa86bf.patch" - sha1 "0498e60449653c2e600c4896c566dce4ec7c2c72" - end - - def install - ENV.j1 - system "./configure", "--disable-debug", - "--enable-direct-linkage", - "--disable-icd", - "--enable-testsuites=", - "--prefix=#{prefix}" - system "make", "install" - end - - test do - (testpath/'foo.cl').write <<-EOS.undent - kernel void foo(int *in, int *out) { - int i = get_global_id(0); - out[i] = in[i]; - } - EOS - system "#{bin}/pocl-standalone -h head.h -o foo.bc foo.cl" - system "\"#{Formula["llvm"].opt_bin}/llvm-dis\" < foo.bc | grep foo_workgroup" - system "pkg-config pocl --modversion | grep #{version}" - end -end diff --git a/Library/Homebrew/tap_migrations.rb b/Library/Homebrew/tap_migrations.rb index e01e3988d..52ece1ef0 100644 --- a/Library/Homebrew/tap_migrations.rb +++ b/Library/Homebrew/tap_migrations.rb @@ -22,6 +22,7 @@ TAP_MIGRATIONS = { "nlopt" => "homebrew/science", "octave" => "homebrew/science", "opencv" => "homebrew/science", + "pocl" => "homebrew/science", "qfits" => "homebrew/boneyard", "qrupdate" => "homebrew/science", "slicot" => "homebrew/science", |
