Skip to content

Commit

Permalink
startup-notification: migrate to brewed x11
Browse files Browse the repository at this point in the history
#64166

Closes #64778.

Signed-off-by: Jonathan Chang <[email protected]>
  • Loading branch information
jonchang committed Nov 14, 2020
1 parent e602b33 commit 5057646
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Formula/startup-notification.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ class StartupNotification < Formula
homepage "https://www.freedesktop.org/wiki/Software/startup-notification/"
url "https://www.freedesktop.org/software/startup-notification/releases/startup-notification-0.12.tar.gz"
sha256 "3c391f7e930c583095045cd2d10eb73a64f085c7fde9d260f2652c7cb3cfbe4a"
license "LGPL-2.0-or-later"
revision 1

bottle do
cellar :any
Expand All @@ -14,14 +16,18 @@ class StartupNotification < Formula
sha256 "770f1ab8c0339c940b098d91989fbc06bacafabe1a91cc891e9891ef39e83781" => :yosemite
end

depends_on "pkg-config" => :build
depends_on :x11
depends_on "pkg-config" => [:build, :test]
depends_on "libx11"
depends_on "libxcb"
depends_on "xcb-util"

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

test do
assert_match "-I#{include}", shell_output("pkg-config --cflags libstartup-notification-1.0").chomp
end
end

0 comments on commit 5057646

Please sign in to comment.