54 lines
1.9 KiB
Ruby
54 lines
1.9 KiB
Ruby
class Makedepend < Formula
|
|
desc "Creates dependencies in makefiles"
|
|
homepage "http://x.org"
|
|
url "http://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.5.tar.bz2"
|
|
sha256 "f7a80575f3724ac3d9b19eaeab802892ece7e4b0061dd6425b4b789353e25425"
|
|
|
|
bottle do
|
|
cellar :any
|
|
sha256 "3f3535296b2232448aa2b7509eee7ef65460ccc913475daf0b30b7ab6277e0e1" => :el_capitan
|
|
sha1 "9a35ee27a96d2916dd347b362a2f62a3eb37b252" => :yosemite
|
|
sha1 "83db1daee01e4eb752c711934eb88850b3ee70d6" => :mavericks
|
|
sha1 "9c55ea85af719a448a4522958bd0e57e5e7741d1" => :mountain_lion
|
|
sha1 "66c5cb0f796db17741c38fb98bd2c05c82bf989c" => :lion
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
resource "xproto" do
|
|
url "http://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.25.tar.bz2"
|
|
sha256 "92247485dc4ffc3611384ba84136591923da857212a7dc29f4ad7797e13909fe"
|
|
end
|
|
|
|
resource "xorg-macros" do
|
|
url "http://xorg.freedesktop.org/releases/individual/util/util-macros-1.18.0.tar.bz2"
|
|
sha256 "e5e3d132a852f0576ea2cf831a9813c54a58810a59cdb198f56b884c5a78945b"
|
|
end
|
|
|
|
def install
|
|
resource("xproto").stage do
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{buildpath}/xproto"
|
|
system "make", "install"
|
|
end
|
|
|
|
resource("xorg-macros").stage do
|
|
system "./configure", "--prefix=#{buildpath}/xorg-macros"
|
|
system "make", "install"
|
|
end
|
|
|
|
ENV.append_path "PKG_CONFIG_PATH", "#{buildpath}/xproto/lib/pkgconfig"
|
|
ENV.append_path "PKG_CONFIG_PATH", "#{buildpath}/xorg-macros/share/pkgconfig"
|
|
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{prefix}"
|
|
system "make", "install"
|
|
end
|
|
|
|
test do
|
|
touch "Makefile"
|
|
system "#{bin}/makedepend"
|
|
end
|
|
end
|