forked from Homebrew/legacy-homebrew
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
221 additions
and
120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,39 @@ | ||
require 'formula' | ||
|
||
class MySqlInstalled < Requirement | ||
def message; <<-EOS.undent | ||
MySQL is required to install. | ||
You can install this with Homebrew using: | ||
brew install mysql-connector-c | ||
For MySQL client libraries only. | ||
brew install mysql | ||
For MySQL server. | ||
Or you can use an official installer from: | ||
http:https://dev.mysql.com/downloads/mysql/ | ||
EOS | ||
end | ||
def satisfied? | ||
which 'mysql_config' | ||
end | ||
def fatal? | ||
true | ||
end | ||
end | ||
|
||
class Dbslayer < Formula | ||
homepage 'http:https://code.nytimes.com/projects/dbslayer/wiki' | ||
url 'http:https://code.nytimes.com/downloads/dbslayer-beta-12.tgz' | ||
version '0.12.b' | ||
md5 'a529ea503c244d723166f78c75df3bb3' | ||
|
||
def install | ||
unless which 'mysql_config' | ||
opoo "No MySQL client library detected" | ||
puts "This formula may fail to build, see caveats for more information." | ||
end | ||
depends_on MySqlInstalled.new | ||
|
||
def install | ||
system "./configure", "--prefix=#{prefix}" | ||
system "make" | ||
system "make install" | ||
end | ||
|
||
def caveats; <<-EOS.undent | ||
DBSlayer depends on a MySQL client library. | ||
You can install this with Homebrew using: | ||
brew install mysql | ||
For MySQL server. | ||
brew install mysql-connector-c | ||
For MySQL client libraries only. | ||
We don't install these for you when you install this formula, as | ||
we don't know which datasource you intend to use. | ||
EOS | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,28 @@ | ||
require 'formula' | ||
|
||
class HgInstalled < Requirement | ||
def message; <<-EOS.undent | ||
Mercurial is required to use this software. | ||
You can install this with Homebrew using: | ||
brew install mercurial | ||
Or you can use an official installer from: | ||
http:https://mercurial.selenic.com/ | ||
EOS | ||
end | ||
def satisfied? | ||
which 'hg' | ||
end | ||
end | ||
|
||
class GitHg < Formula | ||
head 'https://github.com/offbytwo/git-hg.git' | ||
homepage 'http:https://offbytwo.com/git-hg/' | ||
|
||
def install | ||
unless which 'hg' | ||
puts "You may need to install Mercurial before using this software:" | ||
puts " brew install mercurial" | ||
end | ||
depends_on HgInstalled.new | ||
|
||
def install | ||
prefix.install Dir['*'] | ||
end | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.