one-ml: Change stdlib install path

This makes the formula much less likely to accidentally collide with
another formula.

Closes Homebrew/homebrew#37819.

Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
This commit is contained in:
Alexander Altman 2015-03-17 17:31:14 -07:00 committed by Mike McQuaid
parent 60fb112d92
commit 128d6ec36e

View file

@ -2,6 +2,7 @@ class OneMl < Formula
homepage "https://www.mpi-sws.org/~rossberg/1ml/" homepage "https://www.mpi-sws.org/~rossberg/1ml/"
url "https://www.mpi-sws.org/~rossberg/1ml/1ml-0.1.zip" url "https://www.mpi-sws.org/~rossberg/1ml/1ml-0.1.zip"
sha256 "64c40c497f48355811fc198a2f515d46c1bb5031957b87f6a297822b07bb9c9a" sha256 "64c40c497f48355811fc198a2f515d46c1bb5031957b87f6a297822b07bb9c9a"
revision 1
bottle do bottle do
cellar :any cellar :any
@ -15,11 +16,11 @@ class OneMl < Formula
def install def install
system "make" system "make"
bin.install "1ml" bin.install "1ml"
(share/"std").install Dir.glob("*.1ml") (share/"one-ml/stdlib").install Dir.glob("*.1ml")
doc.install "README.txt" doc.install "README.txt"
end end
test do test do
system "#{bin}/1ml", "#{share}/std/prelude.1ml", "#{share}/std/paper.1ml" system "#{bin}/1ml", "#{share}/one-ml/stdlib/prelude.1ml", "#{share}/one-ml/stdlib/paper.1ml"
end end
end end