Skip to content

Commit

Permalink
leptonica: added conflicts_with for osxutils
Browse files Browse the repository at this point in the history
Closes Homebrew/legacy-homebrew#22275.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information
alexreg authored and adamv committed Sep 13, 2013
1 parent f5f1710 commit 18014d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Formula/leptonica.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ class Leptonica < Formula
depends_on 'jpeg' => :recommended
depends_on 'libtiff' => :optional

conflicts_with 'osxutils',
:because => "both leptonica and osxutils ship a `fileinfo` executable."

def install
system "./configure", "--disable-dependency-tracking",
"--prefix=#{prefix}"
Expand Down
3 changes: 3 additions & 0 deletions Formula/osxutils.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ class Osxutils < Formula

head 'https://github.com/vasi/osxutils.git'

conflicts_with 'leptonica',
:because => "both leptonica and osxutils ship a `fileinfo` executable."

def install
system 'make'
system 'make', "PREFIX=#{prefix}", 'install'
Expand Down

0 comments on commit 18014d0

Please sign in to comment.