56 lines
2.1 KiB
Ruby
56 lines
2.1 KiB
Ruby
class Makedepend < Formula
|
|
desc "Creates dependencies in makefiles"
|
|
homepage "https://x.org/"
|
|
url "https://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.6.tar.bz2"
|
|
sha256 "d558a52e8017d984ee59596a9582c8d699a1962391b632bec3bb6804bf4d501c"
|
|
|
|
bottle do
|
|
cellar :any_skip_relocation
|
|
sha256 "afe76789b5f01ccfee8cc0d4ffa308015fb5d8791a1d7ce6b2dc1ee4bf2a020f" => :catalina
|
|
sha256 "a25fb9fd3ce11f6b98da2c53fad8f046174697087f5f34664999afb9df5f41de" => :mojave
|
|
sha256 "0f463e197923867ff9387b2ccd1461d4b410e89205bd3896ae98c5d52679c4c8" => :high_sierra
|
|
end
|
|
|
|
depends_on "pkg-config" => :build
|
|
|
|
resource "xproto" do
|
|
url "https://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.31.tar.gz"
|
|
mirror "http://xorg.mirrors.pair.com/individual/proto/xproto-7.0.31.tar.gz"
|
|
sha256 "6d755eaae27b45c5cc75529a12855fed5de5969b367ed05003944cf901ed43c7"
|
|
end
|
|
|
|
resource "xorg-macros" do
|
|
url "https://xorg.freedesktop.org/releases/individual/util/util-macros-1.19.2.tar.bz2"
|
|
mirror "http://xorg.mirrors.pair.com/individual/util/util-macros-1.19.2.tar.bz2"
|
|
sha256 "d7e43376ad220411499a79735020f9d145fdc159284867e99467e0d771f3e712"
|
|
end
|
|
|
|
def install
|
|
resource("xproto").stage do
|
|
system "./configure", "--disable-dependency-tracking",
|
|
"--disable-silent-rules",
|
|
"--prefix=#{buildpath}/xproto"
|
|
|
|
# https://github.com/spack/spack/issues/4805#issuecomment-316130729 build fix for xproto
|
|
ENV.deparallelize { 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
|