-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathicestorm.rb
35 lines (32 loc) · 1.61 KB
/
icestorm.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
class Icestorm < Formula
desc "Project IceStorm - Lattice iCE40 FPGA tools"
homepage "http://www.clifford.at/icestorm/"
# The SymbiFlow page here says that Project IceStorm will become part of SymbiFlow in the future: https://symbiflow.github.io/#icestorm
head "https://github.com/cliffordwolf/icestorm.git"
# TODO: What are the deps? Which are build-time?
# See some info here: http://www.clifford.at/icestorm/#install
# See Mac info I recall using when creating these formulae here:
# http://www.clifford.at/icestorm/notes_osx.html
# On second thought that link doesn't seem to mention dependencies?
# IIRC I figured these out through trial and error?
depends_on "pkg-config" => :build # Speculative! TODO: Check if only needed on build!
depends_on "libftdi0" # Used in iceprog?
depends_on "python" # Most programs are py3 scripts?
def install
# TODO: Per the mac info page above, should probably set LDLIBS/CFLAGS
# so that you can install dependencies outside of /usr/local
system "make", "PREFIX=#{prefix}", "install"
end
test do
# `test do` will create, run in and delete a temporary directory.
#
# This test will fail and we won't accept that! For Homebrew/homebrew-core
# this will need to be a test that verifies the functionality of the
# software. Run the test with `brew test icestorm`. Options passed
# to `brew install` such as `--HEAD` also need to be provided to `brew test`.
#
# The installed folder is not in the path, so use the entire path to any
# executables being tested: `system "#{bin}/program", "do", "something"`.
system "false"
end
end