Skip to content

Commit

Permalink
Replace fake makedepend package with the real one from X
Browse files Browse the repository at this point in the history
  • Loading branch information
jacknagel committed Mar 11, 2014
1 parent c66b019 commit ed65f44
Showing 1 changed file with 35 additions and 11 deletions.
46 changes: 35 additions & 11 deletions Formula/makedepend.rb
Original file line number Diff line number Diff line change
@@ -1,18 +1,42 @@
require 'formula'
require "formula"

class Makedepend < Formula
homepage 'https://github.com/ioerror/makedepend/'
url 'https://github.com/ioerror/makedepend/archive/0.2.tar.gz'
sha1 '85b3b2a53b401b8bd5be19443960acb1367d3055'
head 'https://github.com/ioerror/makedepend.git'
homepage "http://x.org"
url "http://xorg.freedesktop.org/releases/individual/util/makedepend-1.0.5.tar.bz2"
sha1 "2599afa039d2070bae9df6ce43da288b3a4adf97"

def install
bin.mkpath
ENV['DESTDIR'] = prefix
system 'make', 'install'
depends_on "pkg-config" => :build

resource "xproto" do
url "http://xorg.freedesktop.org/releases/individual/proto/xproto-7.0.25.tar.bz2"
sha1 "335f84713f9da3f77c48536f53abb9b03bcb3961"
end

resource "xorg-macros" do
url "http://xorg.freedesktop.org/releases/individual/util/util-macros-1.18.0.tar.bz2"
sha1 "c0b04a082e50bb8d56a904648f61a8f3eea63043"
end

test do
system "#{bin}/makedepend", "--version"
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}/xorg-macros/share/pkgconfig"
ENV["X_CFLAGS"] = "-I#{buildpath}/xproto/include"
ENV["X_LIBS"] = "-L#{buildpath}/xproto/lib"

system "./configure", "--disable-dependency-tracking",
"--disable-silent-rules",
"--prefix=#{prefix}"
system "make", "install"
end
end

0 comments on commit ed65f44

Please sign in to comment.