aboutsummaryrefslogtreecommitdiff
path: root/Formula/fallible-latest.rb
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-02-21 19:48:17 -0300
committerEuAndreh <eu@euandre.org>2021-02-21 20:02:15 -0300
commit1e99186b9dcc75595b525a8aa93bd9fee70c323e (patch)
tree03654aecd6fab13f047b77e164404764e49e1cc5 /Formula/fallible-latest.rb
parentTODOs.md: Add Void to the list of target OSes (diff)
downloadpackage-repository-1e99186b9dcc75595b525a8aa93bd9fee70c323e.tar.gz
package-repository-1e99186b9dcc75595b525a8aa93bd9fee70c323e.tar.xz
Support -latest (main branch) and tagged releases
Diffstat (limited to '')
-rw-r--r--Formula/fallible-latest.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/Formula/fallible-latest.rb b/Formula/fallible-latest.rb
new file mode 100644
index 0000000..fa0668e
--- /dev/null
+++ b/Formula/fallible-latest.rb
@@ -0,0 +1,16 @@
+class FallibleLatest < Formula
+ desc 'Fault injection library for stress-testing failure scenarios'
+ homepage 'https://fallible.euandreh.xyz'
+ url 'https://git.euandreh.xyz/fallible/snapshot/fallible-db1527a0d72471d702e0ec4609ce67ef7df73b41.tar.gz'
+ sha256 'ebe9517b415407766fbafe7d9cb725bc8f32ab79151c48e1bf4b69f773aeccef'
+ license 'AGPL-3.0-or-later'
+
+ depends_on 'valgrind' => :build
+
+ def install
+ system './configure', "--prefix=#{prefix}"
+ system 'make'
+ system 'make', 'check'
+ system 'make', 'install'
+ end
+end