-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathicestorm.rb
26 lines (20 loc) · 934 Bytes
/
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
class Icestorm < Formula
desc "tools for documenting and working with iCE40 FPGA files"
homepage "https://github.com/cliffordwolf/icestorm"
head "https://github.com/cliffordwolf/icestorm.git"
depends_on "pkg-config" => :build
depends_on "gnu-sed" => :build
depends_on "libftdi"
depends_on "python"
depends_on "icestorm"
def install
# icestorm now uses sed in its makefiles, but assumes gnu-sed syntax; we'll patch them to use
# homebrew's names for gnu-sed
# upstream has fixed the syntax. Now works properly with SED on darwin (see Issue #4).
# inreplace 'icebox/Makefile', 'sed', 'gsed'
system "make", "install", "PREFIX=#{prefix}"
# FIXME: Icestorm installs a set of utility functions and database definitions into /bin/,
# as it lacks e.g. a setup.py for its module. This should be correced in icestorm, but I'm leaving it
# for now (I should fix this upstream).
end
end