-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2b945d
commit 4082c25
Showing
2 changed files
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class Libmseed < Formula | ||
desc "Library for the miniSEED data format" | ||
homepage "https://iris-edu.github.io/libmseed" | ||
url "https://github.com/iris-edu/libmseed/archive/refs/tags/v2.19.8.tar.gz" | ||
sha256 "10ac972cb4e76c8d6aa27bf9f56fc59d1922991477d9ddefd375b89dba9e93f6" | ||
license "Apache-2.0" | ||
|
||
def install | ||
system "make", "install", "PREFIX=#{prefix}" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
class Msi < Formula | ||
desc "Print details of data in miniSEED format" | ||
homepage "https://github.com/iris-edu/msi" | ||
url "https://github.com/iris-edu/msi/archive/refs/tags/v3.8.tar.gz" | ||
sha256 "e1018936832346868307a9934d82083e77894c0e356aab03e0a7e0146bbb6fec" | ||
license "GPL-3.0" | ||
|
||
depends_on "libmseed" | ||
|
||
def install | ||
rm_r "libmseed" | ||
|
||
cd "src" do | ||
inreplace "Makefile" do |s| | ||
s.gsub! "-I../libmseed", "" | ||
s.gsub! "-L../libmseed", "" | ||
end | ||
|
||
system "make" | ||
end | ||
|
||
bin.install "msi" | ||
end | ||
|
||
test do | ||
system "msi", "-h" | ||
end | ||
end |