Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b5ed5a851e | ||
|
|
302295537d | ||
|
|
2b3f9c7b25 | ||
|
|
2fa0b4d8b0 | ||
|
|
22f34dd7db | ||
|
|
f8eb7ddd35 | ||
|
|
82e130df9f | ||
|
|
f0e8417be4 | ||
|
|
431181406f | ||
|
|
e8217afe1b | ||
|
|
63d275701b | ||
|
|
d387bb74ea | ||
|
|
ff986520d1 | ||
|
|
20f97682ac | ||
|
|
f447a8a640 | ||
|
|
37491333e6 | ||
|
|
1e620f5e7d | ||
|
|
e0daa8cb68 | ||
|
|
a2bdd1c804 | ||
|
|
b48d6bd5af | ||
|
|
36827d7637 | ||
|
|
e6522ee54e | ||
|
|
da9c583c2d | ||
|
|
d0625075ea | ||
|
|
458e371515 | ||
|
|
02c724dd21 | ||
|
|
03f7f8cbd2 | ||
|
|
975edee3a7 | ||
|
|
4b379beae2 | ||
|
|
acb6c9febe | ||
|
|
421a659181 | ||
|
|
a400253621 | ||
|
|
a11591ba69 | ||
|
|
9e81b8295b | ||
|
|
d7740e2513 | ||
|
|
e3836cad36 | ||
|
|
e1334e7b95 | ||
|
|
edf2aa9573 | ||
|
|
2ba239c9ab | ||
|
|
cff044e22e | ||
|
|
78661fd581 | ||
|
|
ba81e638f7 | ||
|
|
34de07506c | ||
|
|
fd979d03e7 | ||
|
|
629231d8d5 | ||
|
|
342c8683e4 | ||
|
|
564673f49e | ||
|
|
94c13e55ee | ||
|
|
296e4fb18b | ||
|
|
3cfb8fd22a | ||
|
|
d7324f0ff5 | ||
|
|
aca22acb83 | ||
|
|
36c2d3e611 | ||
|
|
17a9268052 | ||
|
|
58bbe40b84 | ||
|
|
6755501c79 | ||
|
|
a9d4bc393e | ||
|
|
cd25ed22b3 | ||
|
|
69df652c46 | ||
|
|
891751521b | ||
|
|
1fe7926d8b | ||
|
|
a2009ec874 | ||
|
|
d0190691a2 | ||
|
|
881e07123d | ||
|
|
9968e8d031 | ||
|
|
b058e4c268 | ||
|
|
90b3a466a9 | ||
|
|
5c9aa6afc6 | ||
|
|
b044b21851 | ||
|
|
6258a28a9c | ||
|
|
155db8df8a | ||
|
|
ff438dea59 | ||
|
|
a5f9b37c27 | ||
|
|
bdcf5daac5 | ||
|
|
9f32b5fd9b | ||
|
|
0d5cd31b45 | ||
|
|
36fbc6378a | ||
|
|
68ebfce8cf | ||
|
|
642131c25a | ||
|
|
8b0d0c9374 | ||
|
|
702ce9e879 | ||
|
|
a317f9f31c | ||
|
|
6215fe45cd | ||
|
|
f62a04151d | ||
|
|
8e4052b10c | ||
|
|
72836585fa | ||
|
|
bedd97399a | ||
|
|
9863ed82de | ||
|
|
db852cc3f4 | ||
|
|
7e7b4d68c0 | ||
|
|
31f4e224ce | ||
|
|
12fa7b4b6b | ||
|
|
b26d13a698 | ||
|
|
fd1b06d2ff | ||
|
|
e1f289149b | ||
|
|
7a80aba76d | ||
|
|
0b31135ea0 | ||
|
|
74bd32cf74 | ||
|
|
1eb6fd51a8 | ||
|
|
7c08aa6304 | ||
|
|
6f7568af59 | ||
|
|
cc8a6b9deb | ||
|
|
9893857aad | ||
|
|
bbefbf8fc4 | ||
|
|
c9039c23e0 | ||
|
|
ce12bf72fc | ||
|
|
f154230944 | ||
|
|
6d85291c79 | ||
|
|
0a26601faf | ||
|
|
9310ffb044 | ||
|
|
908c35b455 | ||
|
|
c3023f596f | ||
|
|
05cefc309e | ||
|
|
ae22afb01c | ||
|
|
2957b570c5 | ||
|
|
38e441f190 | ||
|
|
5cae01d81d | ||
|
|
7bc12c58da | ||
|
|
2ecde7fe57 | ||
|
|
54e3e4778c | ||
|
|
2c6008d531 | ||
|
|
69afc839fa | ||
|
|
ed6f8c5c12 | ||
|
|
67e64dee16 | ||
|
|
80371e4c82 | ||
|
|
27cf902d42 | ||
|
|
6a4b719574 | ||
|
|
8d1d0721cb | ||
|
|
266c314a3c | ||
|
|
61bece1f21 | ||
|
|
df762b8675 | ||
|
|
ecac1a3b48 | ||
|
|
cf5046f264 | ||
|
|
d625cc33fb | ||
|
|
40c826da08 | ||
|
|
02d0f0cd5a | ||
|
|
5b717f87a4 | ||
|
|
e599e661a8 | ||
|
|
9a9e5214d9 | ||
|
|
db1d50a8ed | ||
|
|
4051106416 | ||
|
|
4b3efa56f4 | ||
|
|
826de7f70f | ||
|
|
2042394e16 | ||
|
|
7ce57f53eb | ||
|
|
555bba6421 | ||
|
|
f69cbc2929 | ||
|
|
b53a9ce35f | ||
|
|
68bde3e786 | ||
|
|
7ce22a5fba | ||
|
|
006b1328cd | ||
|
|
72f9e297b8 | ||
|
|
36151ca31a | ||
|
|
b5c0b675a3 | ||
|
|
1236c7435f | ||
|
|
24972db79f | ||
|
|
1975f0f33a | ||
|
|
1964065a71 | ||
|
|
bddb767290 | ||
|
|
a460f2d1b5 | ||
|
|
c307a32fb2 | ||
|
|
9774dff598 | ||
|
|
3bd76c45ca | ||
|
|
47b7bb4226 | ||
|
|
1fed6abaa3 | ||
|
|
103cc7908a | ||
|
|
23c4d834f1 | ||
|
|
5d2497a719 | ||
|
|
260b830fd9 | ||
|
|
143b7bee5f | ||
|
|
116fe7b2dc | ||
|
|
b9d5136fb3 | ||
|
|
1fcd5f3c24 | ||
|
|
5bafc03354 | ||
|
|
549201c986 | ||
|
|
1c4a0f33cf | ||
|
|
3b1f4e031b | ||
|
|
8d435e616c | ||
|
|
1147bf3e92 | ||
|
|
bdc303e035 | ||
|
|
fde676c52f | ||
|
|
7a4a90411a | ||
|
|
09cd8a467d | ||
|
|
b67e4d6f23 | ||
|
|
d2d4cead91 | ||
|
|
dd55d98f84 | ||
|
|
dc8d60d116 | ||
|
|
3304b115ae | ||
|
|
15aeaae83d | ||
|
|
2c22b28cb4 | ||
|
|
7c33bcb67d | ||
|
|
8c13057d44 | ||
|
|
deceb82db5 | ||
|
|
41815fdb92 | ||
|
|
d11482da3d | ||
|
|
cca45a2a3b | ||
|
|
ac0327ec7b | ||
|
|
5fedb43743 | ||
|
|
ff1511fdcf | ||
|
|
0177765a84 | ||
|
|
d9be2ff23d | ||
|
|
5244096353 | ||
|
|
532998dddd | ||
|
|
c9ad4e924d | ||
|
|
ba8a443f53 | ||
|
|
30098374fc | ||
|
|
2cd8548477 | ||
|
|
b4370995c6 | ||
|
|
a3ae55562d | ||
|
|
4fb54be672 | ||
|
|
55941f1cef | ||
|
|
897d36590b | ||
|
|
05b0e69f98 | ||
|
|
cb7987167b | ||
|
|
bfdd4db599 | ||
|
|
9829892078 | ||
|
|
1b61e85644 | ||
|
|
1171b8092b | ||
|
|
77afa0cd0d | ||
|
|
5c2f424bc9 | ||
|
|
c4058addb3 | ||
|
|
d0af946307 | ||
|
|
546a0b8c31 | ||
|
|
b8bd33f94b | ||
|
|
d3a6f0e1d4 | ||
|
|
045b0b74c6 | ||
|
|
43cf0029ca | ||
|
|
c662a07a0c | ||
|
|
13b101201d | ||
|
|
bbfb647c6a | ||
|
|
c24a5cf7ad | ||
|
|
2705f1bb8f | ||
|
|
d20e3c000e | ||
|
|
3df1f1a9dc | ||
|
|
02d5b55858 | ||
|
|
46a2af30a3 | ||
|
|
0714704092 | ||
|
|
a85a5d6600 | ||
|
|
5d1869d4e3 | ||
|
|
2411876bdd | ||
|
|
bce1d614a9 | ||
|
|
4a74b632c4 | ||
|
|
0b8f50b821 | ||
|
|
aabe87964d | ||
|
|
bc79d33c5a | ||
|
|
f06c7447bf | ||
|
|
5ff630d322 | ||
|
|
5d7ec9de76 | ||
|
|
879528d2cb | ||
|
|
c1829a410c | ||
|
|
eb733b3fb9 | ||
|
|
e0a67c4390 | ||
|
|
28dc3eadaf | ||
|
|
19b1f2f87f | ||
|
|
68d4ad6275 | ||
|
|
4c041c2756 | ||
|
|
155397cf6e | ||
|
|
a10f3a43b5 | ||
|
|
cb459a92a2 | ||
|
|
351557a6fc | ||
|
|
ac798b126a | ||
|
|
f56b40848c | ||
|
|
b7bed24260 | ||
|
|
1464346b15 | ||
|
|
a9e88f3320 | ||
|
|
8a58e0c2b5 | ||
|
|
97f4f7ada9 | ||
|
|
49a5ae2b15 | ||
|
|
b12ccf5c38 | ||
|
|
7bdfa550f8 | ||
|
|
1e5d38e2a6 | ||
|
|
b0be408d9f | ||
|
|
e01fa6d680 | ||
|
|
a7d272e410 | ||
|
|
7ff0c26888 | ||
|
|
a5ffc1a184 | ||
|
|
ca726349de | ||
|
|
a32ada3711 | ||
|
|
57d25b0ff0 | ||
|
|
5c8ef21bb4 | ||
|
|
875f82031d | ||
|
|
7d6d68cb70 | ||
|
|
5dfdead82f | ||
|
|
26dae8bef7 | ||
|
|
fe4e29c119 | ||
|
|
88086440d1 | ||
|
|
e2ceb8f76f | ||
|
|
8511663e3a | ||
|
|
71495bbf42 | ||
|
|
b11f0b15b9 | ||
|
|
6c89dceec2 | ||
|
|
7c28ef5619 | ||
|
|
3847b49275 | ||
|
|
ab666acbba | ||
|
|
b5e26e9cb4 | ||
|
|
4fc6cf0248 | ||
|
|
74136a606d | ||
|
|
9cbc35d943 | ||
|
|
172229c376 | ||
|
|
e290d7982c | ||
|
|
8202ac08f6 | ||
|
|
cc99ce3ed6 | ||
|
|
5c831caa15 | ||
|
|
0b3751a07e | ||
|
|
2964e24a22 | ||
|
|
c95a5d6e87 | ||
|
|
5e5859a2f8 | ||
|
|
2cc4ec5867 | ||
|
|
c0c17366e0 | ||
|
|
77a5d56352 | ||
|
|
45a5a7f7f7 | ||
|
|
444eb21da9 | ||
|
|
3269a8aa3b | ||
|
|
236623da56 | ||
|
|
eb1eb11bd2 | ||
|
|
1cdf87c6f1 | ||
|
|
08d3bcf8aa | ||
|
|
c4fc17f762 | ||
|
|
06ddfb9e84 | ||
|
|
bdbedc8a04 | ||
|
|
77ce720df0 | ||
|
|
28331c48a8 | ||
|
|
702947edfc | ||
|
|
760a2c3e9f | ||
|
|
cf946543ba | ||
|
|
44f038e149 | ||
|
|
2183f39a47 | ||
|
|
38964bd46d | ||
|
|
f0fd6a24d9 | ||
|
|
b4b83a3146 | ||
|
|
8f5368b5b2 | ||
|
|
9fb367dd95 | ||
|
|
3e24d82016 | ||
|
|
76640fe1d9 | ||
|
|
992e70691f | ||
|
|
3d3c190e80 | ||
|
|
7957d94dee | ||
|
|
621c31f23f | ||
|
|
46f9314695 | ||
|
|
b54e17d9c7 | ||
|
|
29b2fc220b | ||
|
|
63a9f575c1 | ||
|
|
11a3f1cd1d | ||
|
|
d8c8d5051d | ||
|
|
aafd555d3f | ||
|
|
fde1e737f4 | ||
|
|
301f00b5da | ||
|
|
74a6541a38 | ||
|
|
ad87edc0d9 | ||
|
|
ee390b09d5 | ||
|
|
6ba763d049 | ||
|
|
d12a6447f8 | ||
|
|
d6d1fb9b1d | ||
|
|
92063284e1 | ||
|
|
be46eefde0 | ||
|
|
b70d8220c3 | ||
|
|
b2aa0db6cc | ||
|
|
62d4577ce3 | ||
|
|
5dabe20a51 | ||
|
|
67ad5cd346 | ||
|
|
c534157697 | ||
|
|
2326ca7437 | ||
|
|
3e5be81ecf | ||
|
|
7267edadd9 | ||
|
|
d6ec751e14 | ||
|
|
962f176d54 | ||
|
|
c9a8f9e4be | ||
|
|
7e4175b542 | ||
|
|
81d2c80f8b | ||
|
|
6557a34cde | ||
|
|
2a1b7dccb5 | ||
|
|
b76c7e5bd1 | ||
|
|
1692013336 | ||
|
|
8967e5c481 | ||
|
|
4e8c5b97f9 | ||
|
|
08f16905f4 | ||
|
|
8b98a97555 | ||
|
|
602cf5e62b | ||
|
|
eca9e04547 | ||
|
|
99835d0d70 | ||
|
|
43943ac922 | ||
|
|
4d6cb5dd9e | ||
|
|
0005fb9b88 | ||
|
|
a476570489 | ||
|
|
d08cca6f44 | ||
|
|
bf70996462 | ||
|
|
893f9fa694 | ||
|
|
1aa0c82825 | ||
|
|
fdb9a03d73 | ||
|
|
021f5b6d21 | ||
|
|
ab5f2395b2 | ||
|
|
f6b595af5c | ||
|
|
b7ce80066c | ||
|
|
fdfd09b4ac | ||
|
|
af850e5e3f | ||
|
|
0afd50ab33 | ||
|
|
47b0ef55cb | ||
|
|
a3713918a2 | ||
|
|
eff6eb8cde | ||
|
|
426044039f | ||
|
|
894ea6a4b8 | ||
|
|
25e0aa4feb | ||
|
|
c4bd2649df | ||
|
|
8a55b775bb | ||
|
|
0ad9b8cd3d | ||
|
|
8f12c3e25d | ||
|
|
e7510e745c | ||
|
|
21a230cadc | ||
|
|
1448558325 | ||
|
|
28ded3a0f1 | ||
|
|
2392e53388 | ||
|
|
aa52ef5033 | ||
|
|
8da14674ce | ||
|
|
dd76798c4b | ||
|
|
dfd8a37977 | ||
|
|
44012a5809 | ||
|
|
4ef874ba48 | ||
|
|
960f68871f | ||
|
|
df5851320d | ||
|
|
781fbb8679 | ||
|
|
99349207ff | ||
|
|
1103150d1b | ||
|
|
bc41c67c51 | ||
|
|
2c0a7fa26c | ||
|
|
14eb880c78 | ||
|
|
88eaeeca93 | ||
|
|
c4cd8fece4 | ||
|
|
f41d921880 | ||
|
|
8a12b9981f | ||
|
|
074e8c9d81 | ||
|
|
9c2e08271a | ||
|
|
133e01695f | ||
|
|
5e1f828384 | ||
|
|
410e2dd298 | ||
|
|
b3155196a1 | ||
|
|
67943f2d6f | ||
|
|
22f42a3fdb | ||
|
|
532cba2e2d | ||
|
|
1df3a9a698 | ||
|
|
b3aa0d7a58 | ||
|
|
1fb9147cf6 | ||
|
|
0aea7ab2a7 | ||
|
|
7d2f6c9f22 | ||
|
|
87ce13db89 | ||
|
|
fb6e21985c | ||
|
|
19ae1f5532 | ||
|
|
25ccccfba2 | ||
|
|
69d6f2f642 | ||
|
|
73e945e4ad | ||
|
|
5beb99f997 | ||
|
|
4c6d17d479 | ||
|
|
8cb50ba511 | ||
|
|
29bbae134b | ||
|
|
ae4adcb3b5 | ||
|
|
0f924805dd | ||
|
|
5906c9e130 | ||
|
|
bd51e891a9 | ||
|
|
874dcdfefc | ||
|
|
6fe48bd30e | ||
|
|
70b4428c08 | ||
|
|
ff998466c7 | ||
|
|
167b04822c | ||
|
|
157787706d | ||
|
|
12608f1f08 | ||
|
|
4a58207c77 | ||
|
|
fbf95104af | ||
|
|
e6fed6250b | ||
|
|
80f7b9f418 | ||
|
|
fe42df6bd8 | ||
|
|
a9a9d39875 | ||
|
|
a86152c9cb |
No files matched your search
+12
-4
@@ -10,7 +10,7 @@ matrix:
|
||||
os: osx
|
||||
osx_image: xcode7
|
||||
rvm: system
|
||||
- env: OSX=10.9
|
||||
- env: OSX=10.9 HOMEBREW_RUBY=1.8.7
|
||||
os: osx
|
||||
osx_image: beta-xcode6.2
|
||||
rvm: system
|
||||
@@ -21,12 +21,20 @@ before_install:
|
||||
- sudo rm -rf /usr/local/.git/refs /usr/local/.git/packed-refs
|
||||
- sudo rsync -az "$TRAVIS_BUILD_DIR/" /usr/local/
|
||||
- export TRAVIS_BUILD_DIR="/usr/local"
|
||||
- sudo chown -R $USER /usr/local
|
||||
- env | grep TRAVIS_
|
||||
- if [ -f ".git/shallow" ]; then travis_retry git fetch --unshallow; fi
|
||||
- if [ -f ".git/shallow" ]; then
|
||||
travis_retry git fetch --unshallow;
|
||||
fi
|
||||
- git reset --hard $TRAVIS_COMMIT
|
||||
- git clean -qxdff
|
||||
|
||||
install:
|
||||
- if [ "$HOMEBREW_RUBY" = "1.8.7" ]; then
|
||||
brew install homebrew/versions/ruby187;
|
||||
export PATH="/usr/local/opt/ruby187/bin:$PATH";
|
||||
export HOMEBREW_RUBY_PATH="/usr/local/opt/ruby187/bin/ruby";
|
||||
fi
|
||||
- export HOMEBREW_DEVELOPER="1"
|
||||
|
||||
script:
|
||||
- brew test-bot
|
||||
|
||||
|
||||
@@ -157,6 +157,9 @@ class Cmd
|
||||
"-fuse-linker-plugin"
|
||||
# clang doesn't support these flags
|
||||
args << arg unless tool =~ /^clang/
|
||||
when "-Wno-deprecated-register", "-Wno-implicit-fallthrough"
|
||||
# older gccs don't support these flags
|
||||
args << arg unless tool =~ /^g..-4.[02]/
|
||||
when /^-W[alp],/, /^-Wno-/
|
||||
args << arg
|
||||
when /^-W.*/
|
||||
|
||||
@@ -3,6 +3,8 @@ class Abook < Formula
|
||||
homepage "http://abook.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/abook/abook/0.5.6/abook-0.5.6.tar.gz"
|
||||
sha256 "0646f6311a94ad3341812a4de12a5a940a7a44d5cb6e9da5b0930aae9f44756e"
|
||||
revision 1
|
||||
|
||||
head "git://git.code.sf.net/p/abook/git"
|
||||
|
||||
bottle do
|
||||
|
||||
@@ -6,6 +6,7 @@ class Algernon < Formula
|
||||
url "https://github.com/xyproto/algernon/archive/0.85.tar.gz"
|
||||
sha256 "c30380d9781166a6cc6297210e70c742c5a6c91bbbbdbf223783db1ffa1aa7e6"
|
||||
head "https://github.com/xyproto/algernon.git"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "4afae3ee47dc003a6916c399b103dd8d8223db6c2234ba4a3a67f9e52e338efd" => :el_capitan
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
class Alpine < Formula
|
||||
desc "News and email agent"
|
||||
homepage "http://patches.freeiz.com/alpine/"
|
||||
url "http://patches.freeiz.com/alpine/release/src/alpine-2.20.tar.xz"
|
||||
homepage "http://alpine.freeiz.com/alpine/"
|
||||
url "http://alpine.freeiz.com/alpine/release/src/alpine-2.20.tar.xz"
|
||||
sha256 "ed639b6e5bb97e6b0645c85262ca6a784316195d461ce8d8411999bf80449227"
|
||||
|
||||
bottle do
|
||||
|
||||
@@ -6,8 +6,7 @@ class AndroidNdk < Formula
|
||||
|
||||
version "r10e"
|
||||
|
||||
# As of r10e, only a 64-bit version is provided
|
||||
depends_on :arch => :x86_64
|
||||
depends_on :arch => :intel
|
||||
depends_on "android-sdk" => :recommended
|
||||
|
||||
def install
|
||||
|
||||
@@ -7,6 +7,8 @@ class AndroidPlatformTools < Formula
|
||||
version "23.0.0"
|
||||
sha256 "a5ed48f56f784fcba35e3650c001fff49de75d3631d2fc2c83479a9ebaa92724"
|
||||
|
||||
depends_on :arch => :intel
|
||||
|
||||
conflicts_with "android-sdk",
|
||||
:because => "the Android Platform-tools are part of the Android SDK"
|
||||
|
||||
|
||||
@@ -3,15 +3,15 @@ require "base64"
|
||||
class AndroidSdk < Formula
|
||||
desc "Android API libraries and developer tools"
|
||||
homepage "https://developer.android.com/index.html"
|
||||
url "https://dl.google.com/android/android-sdk_r24.3.4-macosx.zip"
|
||||
version "24.3.4"
|
||||
sha256 "074da140b380177108b9b74869403df7a65c5b555d4f5e439fa8556f1018352b"
|
||||
url "https://dl.google.com/android/android-sdk_r24.4-macosx.zip"
|
||||
version "24.4"
|
||||
sha256 "a1cb0c9b2036d597e18986de1bd43918b6113373ff3bf6fdb81b6cce4ec3efd7"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "7e9cfe4358bc78d50c5481c94eac4a8257253991a04c2484b2ad647d3e030d0f" => :yosemite
|
||||
sha256 "8e2345713d8c4d45edca76daa49779bfdd5964117730c325662a01fdab74023d" => :mavericks
|
||||
sha256 "75990555c5bc71c43afcb83bcb7ee70c580cedf8b86b2c60d82a1abb7bc588b6" => :mountain_lion
|
||||
sha256 "6813bb19eb0127850832a32cddd55cfd0106a8d079726c3a9e8e18855efe0165" => :el_capitan
|
||||
sha256 "7210e0118c1bbba916add540c9a1b7dc9b14b0c2cfbdbea9a1e0ca0e6b0143ec" => :yosemite
|
||||
sha256 "e148339aa960c019ae70e967b3cadcd57fe93838067453b21264a8e330818a42" => :mavericks
|
||||
end
|
||||
|
||||
conflicts_with "android-platform-tools",
|
||||
@@ -22,6 +22,8 @@ class AndroidSdk < Formula
|
||||
sha256 "44b3e20ed9cb8fff01dc6907a57bd8648cd0d1bcc7b129ec952a190983ab5e1a"
|
||||
end
|
||||
|
||||
depends_on :arch => :intel
|
||||
|
||||
# Version of the android-build-tools the wrapper scripts reference.
|
||||
def build_tools_version
|
||||
"23.0.1"
|
||||
|
||||
@@ -12,7 +12,8 @@ end
|
||||
|
||||
class AppleGcc42 < Formula
|
||||
homepage 'http://r.research.att.com/tools/'
|
||||
url 'http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz'
|
||||
url 'https://ia902307.us.archive.org/31/items/tigerbrew/gcc-42-5553-darwin8-all.tar.gz'
|
||||
mirror 'http://r.research.att.com/gcc-42-5553-darwin8-all.tar.gz'
|
||||
version '4.2.1-5553'
|
||||
sha1 '0e529a2e4723e016e3d086d6ca3215d700931503'
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ class ArgusClients < Formula
|
||||
homepage "http://qosient.com/argus/"
|
||||
url "http://qosient.com/argus/src/argus-clients-3.0.8.tar.gz"
|
||||
sha256 "aee8585d50959e00070a382f3121edfaa844a0a51dc0b73edf84c0f4eb8912c9"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
||||
@@ -18,7 +18,7 @@ class ArpScan < Formula
|
||||
depends_on "autoconf" => :build
|
||||
end
|
||||
|
||||
depends_on "homebrew/dupes/libpcap" => :optional
|
||||
depends_on "libpcap" => :optional
|
||||
|
||||
def install
|
||||
system "autoreconf", "--install" if build.head?
|
||||
|
||||
@@ -3,6 +3,7 @@ class Augeas < Formula
|
||||
homepage "http://augeas.net"
|
||||
url "http://download.augeas.net/augeas-1.4.0.tar.gz"
|
||||
sha256 "659fae7ac229029e60a869a3b88c616cfd51cf2fba286cdfe3af3a052cb35b30"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "9f9d87829624afc741c590614bb0dbf8858ebd5df6728e55925d3a8d82125d84" => :yosemite
|
||||
|
||||
@@ -15,7 +15,7 @@ class Autoconf < Formula
|
||||
end
|
||||
|
||||
# Tiger's m4 is too old.
|
||||
depends_on 'homebrew/dupes/m4' if MacOS.version == :tiger
|
||||
depends_on "m4" if MacOS.version == :tiger
|
||||
|
||||
keg_only :provided_until_xcode43
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
class Awscli < Formula
|
||||
desc "Official Amazon AWS command-line interface"
|
||||
homepage "https://aws.amazon.com/cli/"
|
||||
url "https://pypi.python.org/packages/source/a/awscli/awscli-1.8.7.tar.gz"
|
||||
mirror "https://github.com/aws/aws-cli/archive/1.8.7.tar.gz"
|
||||
sha256 "6ae4170c48ec768465afd2b9e70c6db4cd45673aa5b2f1ee2b0513e94a0d96cd"
|
||||
url "https://pypi.python.org/packages/source/a/awscli/awscli-1.8.8.tar.gz"
|
||||
mirror "https://github.com/aws/aws-cli/archive/1.8.8.tar.gz"
|
||||
sha256 "7865aad2d38840a85a9e23ec2943fbb4a6aeb1ff8026911c74b0d3a2054756ab"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "3beb60f4bf9580934e745369976b3a8ed8fa605587448caa970d5e50b081513c" => :el_capitan
|
||||
sha256 "f9f8df7d772725ac65ef6e6b34e7c367b84bf4001ae3d483372c58080a089c22" => :yosemite
|
||||
sha256 "39ad6a5be6d5d14aef4a930d5f01ca764bae180db74f0a2228ad83b58d2ef10d" => :mavericks
|
||||
sha256 "a8db57572041d9310606af9e5193d6e5271a727175028a018040a5148995a5b3" => :el_capitan
|
||||
sha256 "52ba872ac532b42ae7f0f729720338aa52f6255f8464fe76bb0bb0547d0e9a9e" => :yosemite
|
||||
sha256 "7b5a2488f85d6eca208c47d595da4c7bfd489b6e840fa3a5dcc0d3210798f618" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
@@ -50,8 +50,8 @@ class Awscli < Formula
|
||||
end
|
||||
|
||||
resource "botocore" do
|
||||
url "https://pypi.python.org/packages/source/b/botocore/botocore-1.2.5.tar.gz"
|
||||
sha256 "f9e173ff2193bfe712478afb44a04673895a6b1823586f5993332ed155a82e0d"
|
||||
url "https://pypi.python.org/packages/source/b/botocore/botocore-1.2.6.tar.gz"
|
||||
sha256 "e0f71ce5c74e9251f5fb49cfe6b74d4612545824d5ebc0a37269315d23f81da3"
|
||||
end
|
||||
|
||||
resource "docutils" do
|
||||
|
||||
@@ -3,6 +3,7 @@ class BaculaFd < Formula
|
||||
homepage "http://www.bacula.org/"
|
||||
url "https://downloads.sourceforge.net/project/bacula/bacula/7.0.5/bacula-7.0.5.tar.gz"
|
||||
sha256 "1457849eb33011b43371801b62ffa13d29bebe51be8d5a36da563b87bb094a49"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha1 "aa312ee016437c22b7e4955c67defa51c7703540" => :yosemite
|
||||
|
||||
+13
-21
@@ -1,29 +1,21 @@
|
||||
class Bash < Formula
|
||||
desc "Bash (Bourne-again SHell) is a UNIX command interpreter"
|
||||
desc "Bourne-Again SHell, a UNIX command interpreter"
|
||||
homepage "https://www.gnu.org/software/bash/"
|
||||
url "https://ftpmirror.gnu.org/bash/bash-4.4.tar.gz"
|
||||
mirror "https://mirrors.ocf.berkeley.edu/gnu/bash/bash-4.4.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/gnu/bash/bash-4.4.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/bash/bash-4.4.tar.gz"
|
||||
mirror "https://gnu.cu.be/bash/bash-4.4.tar.gz"
|
||||
mirror "https://mirror.unicorncloud.org/gnu/bash/bash-4.4.tar.gz"
|
||||
sha256 "d86b3392c1202e8ff5a423b302e6284db7f8f435ea9f39b5b1b20fd3ac36dfcb"
|
||||
revision 1
|
||||
|
||||
head "http://git.savannah.gnu.org/r/bash.git"
|
||||
|
||||
stable do
|
||||
url "http://ftpmirror.gnu.org/bash/bash-4.3.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/bash/bash-4.3.tar.gz"
|
||||
sha256 "afc687a28e0e24dc21b988fa159ff9dbcf6b7caa92ade8645cc6d5605cd024d4"
|
||||
version "4.3.42"
|
||||
|
||||
# Vendor the patches. The mirrors are unreliable for getting the patches,
|
||||
# and the more patches there are, the more unreliable they get. Upstream
|
||||
# patches can be found in: http://git.savannah.gnu.org/cgit/bash.git
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/dunn/a8986687991b57eb3b25/raw/76dd864812e821816f4b1c18e3333c8fced3919b/bash-4.3.42.diff"
|
||||
sha256 "2eeb9b3ed71f1e13292c2212b6b8036bc258c58ec9c82eec7a86a091b05b15d2"
|
||||
end
|
||||
end
|
||||
|
||||
bottle do
|
||||
sha256 "a767075b636c0964d2eca3c4f87eb679384fcd2eb7a778ea862248717f63b082" => :el_capitan
|
||||
sha256 "e4c37730749adcdbc274fa57b62300f2f2c68078b962cfd196a7e8f0764b543c" => :yosemite
|
||||
sha256 "4078f42a58506e67d25ec0f82f85efd265bf2eac606a9aeca50a7e7bd5b7e025" => :mavericks
|
||||
sha256 "4fded417b56f73ffcf48b5d05bc22e04beb521c7f91f4d6b5671876173584c27" => :mountain_lion
|
||||
sha256 "a2f73335f36d0a35970b1ee2b41e4a6b939ffd9df2a3ee9e9ebb942765d10002" => :sierra
|
||||
sha256 "9f11130718619dd0523760d714c8ac349fd62cc0b11dc70671ff132e7fc94ef5" => :el_capitan
|
||||
sha256 "af85e62012466dbb9ec9e08fe59acb03aff35f2d41844d2871c80bbd5a9e6ac3" => :yosemite
|
||||
end
|
||||
|
||||
depends_on "readline"
|
||||
@@ -37,7 +29,7 @@ class Bash < Formula
|
||||
# Homebrew's bash instead of /bin/bash.
|
||||
ENV.append_to_cflags "-DSSH_SOURCE_BASHRC"
|
||||
|
||||
system "./configure", "--prefix=#{prefix}", "--with-installed-readline"
|
||||
system "./configure", "--prefix=#{prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
|
||||
@@ -21,11 +21,18 @@ class Bind < Formula
|
||||
ENV.append "CFLAGS", ENV.cppflags
|
||||
|
||||
json = build.with?("json-c") ? "yes" : "no"
|
||||
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/358
|
||||
gssapi = MacOS.version > :tiger ? "yes" : "no"
|
||||
dlopen = MacOS.version > :leopard ? "yes" : "no"
|
||||
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--enable-threads",
|
||||
"--enable-ipv6",
|
||||
"--with-openssl=#{Formula["openssl"].opt_prefix}",
|
||||
"--with-libjson=#{json}"
|
||||
"--with-libjson=#{json}",
|
||||
"--with-gssapi=#{gssapi}",
|
||||
"--with-dlopen=#{dlopen}"
|
||||
|
||||
# From the bind9 README: "Do not use a parallel "make"."
|
||||
ENV.deparallelize
|
||||
|
||||
@@ -16,7 +16,7 @@ class Bison < Formula
|
||||
depends_on "automake"
|
||||
# "It also requires GNU Autoconf, GNU m4 and Perl in order to run"
|
||||
depends_on "autoconf"
|
||||
depends_on "homebrew/dupes/m4"
|
||||
depends_on "m4"
|
||||
end
|
||||
|
||||
keg_only :provided_by_osx, "Some formulae require a newer version of bison."
|
||||
|
||||
@@ -3,7 +3,7 @@ class Cadaver < Formula
|
||||
homepage "http://www.webdav.org/cadaver/"
|
||||
url "http://www.webdav.org/cadaver/cadaver-0.23.3.tar.gz"
|
||||
sha256 "fd4ce68a3230ba459a92bcb747fc6afa91e46d803c1d5ffe964b661793c13fca"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
|
||||
@@ -2,16 +2,16 @@ class Caf < Formula
|
||||
# Renamed from libccpa
|
||||
desc "Implementation of the Actor Model for C++"
|
||||
homepage "http://actor-framework.org/"
|
||||
url "https://github.com/actor-framework/actor-framework/archive/0.14.1.tar.gz"
|
||||
sha256 "8940474ae0c3700e503d092f124489a13667098b63b8e94a09e110541d827985"
|
||||
url "https://github.com/actor-framework/actor-framework/archive/0.14.2.tar.gz"
|
||||
sha256 "5d7fadee7c6af2ad2eb9cb66cf2a6109c72f47652b7e3f0c01a267d3dfb99290"
|
||||
head "https://github.com/actor-framework/actor-framework.git",
|
||||
:branch => "develop"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "c1c051d79566b1a260296ca8b10d1c44d48e4592e70a2d74483684f86102fbcc" => :yosemite
|
||||
sha256 "b27513e9fb42b65f94e2f732a75f9eb4cdfe7e552fa0690b03b2f03593bb9c87" => :mavericks
|
||||
sha256 "8939cef5647b3241311801cdf4396a9342a55d6c6e2303e74b013d55a9583ef7" => :mountain_lion
|
||||
sha256 "5b0d8d5b21051111480c9213132570c2d8c944b00a2ef1c21ba7338777a9d9d9" => :el_capitan
|
||||
sha256 "e247d4384eccd86021cb1bb67fd552e05d32dacb5ebd292053008834fd0defb5" => :yosemite
|
||||
sha256 "3d5b7662c7cf136f6ba87864f4ce67464228d2db2d31ffe8e470c7803d34bac4" => :mavericks
|
||||
end
|
||||
|
||||
needs :cxx11
|
||||
|
||||
+17
-15
@@ -1,26 +1,16 @@
|
||||
class Cairo < Formula
|
||||
desc "Vector graphics library with cross-device output support"
|
||||
homepage "http://cairographics.org/"
|
||||
url "http://cairographics.org/releases/cairo-1.14.2.tar.xz"
|
||||
mirror "https://www.mirrorservice.org/sites/ftp.netbsd.org/pub/pkgsrc/distfiles/cairo-1.14.2.tar.xz"
|
||||
sha256 "c919d999ddb1bbbecd4bbe65299ca2abd2079c7e13d224577895afa7005ecceb"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
revision 3
|
||||
sha256 "c53e4efa75921181a8689a0dcd13454d7a0759e259b331ebdc92c692d0716bad" => :el_capitan
|
||||
sha256 "33d9cb9c8dcb1a12eaefb2c816cb7c82f948a9775f79b2427b011a03153fc8a0" => :yosemite
|
||||
sha256 "4332ca15d3f37a421947d4d5a43ee7f6116cbc1f920fdd4db7a6b2538cddde7b" => :mavericks
|
||||
sha256 "32c35db10bc86230c18c4484e6b7f314ba56c0186c80b356a0d0533576267a2e" => :mountain_lion
|
||||
end
|
||||
url "https://cairographics.org/releases/cairo-1.14.8.tar.xz"
|
||||
mirror "https://www.mirrorservice.org/sites/ftp.netbsd.org/pub/pkgsrc/distfiles/cairo-1.14.8.tar.xz"
|
||||
sha256 "d1f2d98ae9a4111564f6de4e013d639cf77155baf2556582295a0f00a9bc5e20"
|
||||
|
||||
keg_only :provided_pre_mountain_lion
|
||||
|
||||
option :universal
|
||||
# Tiger's X11 is simply way too old
|
||||
option 'without-x', 'Build without X11 support' if MacOS.version > :tiger
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on :x11 => :recommended if MacOS.version <= :leopard
|
||||
depends_on :x11 => :optional if MacOS.version > :leopard
|
||||
depends_on "freetype"
|
||||
depends_on "fontconfig"
|
||||
@@ -28,6 +18,15 @@ class Cairo < Formula
|
||||
depends_on "pixman"
|
||||
depends_on "glib"
|
||||
|
||||
# Fixes building when certain CoreText features are unavailable
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/452
|
||||
if MacOS.version < :leopard
|
||||
patch do
|
||||
url "https://cgit.freedesktop.org/~ranma42/cairo/patch/?id=5a8a9c97ed268004cbac510d39739ff56c0fb43c"
|
||||
sha256 "8d119eca6c35ac8645d13d656b5a721cfeeec1ebcf5793f9d5182c604782de15"
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
@@ -41,7 +40,10 @@ class Cairo < Formula
|
||||
]
|
||||
|
||||
if build.with? "x11"
|
||||
args << "--enable-xcb=yes" << "--enable-xlib=yes" << "--enable-xlib-xrender=yes"
|
||||
# Tiger's X11 does not include XCB,
|
||||
# and Leopard's X11 has an XCB that's too old.
|
||||
args << "--enable-xcb=yes" if MacOS.version > :leopard
|
||||
args << "--enable-xlib=yes" << "--enable-xlib-xrender=yes"
|
||||
else
|
||||
args << "--enable-xcb=no" << "--enable-xlib=no" << "--enable-xlib-xrender=no"
|
||||
end
|
||||
|
||||
@@ -3,6 +3,7 @@ class Calc < Formula
|
||||
homepage "http://www.isthe.com/chongo/tech/comp/calc/"
|
||||
url "http://www.isthe.com/chongo/src/calc/calc-2.12.5.0.tar.bz2"
|
||||
sha256 "a0e7b47af38330f188970998c8e5039134dadf6f2e3f2c00d7efdae272a4338d"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "f68eb0e031534c68f3fb1c2c1d53a90c343f281b81f998cf4bfc9745a0b8d306" => :el_capitan
|
||||
|
||||
@@ -3,6 +3,7 @@ class Cgdb < Formula
|
||||
homepage "https://cgdb.github.io/"
|
||||
url "http://cgdb.me/files/cgdb-0.6.8.tar.gz"
|
||||
sha256 "be203e29be295097439ab67efe3dc8261f742c55ff3647718d67d52891f4cf41"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "8d47a315bc04053f84802069723edf9ea920c7361464992c1a657f41db52f901" => :el_capitan
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
class CharmTools < Formula
|
||||
desc "Tools for authoring and maintaining juju"
|
||||
desc "Tools for authoring and maintaining juju charms"
|
||||
homepage "https://launchpad.net/charm-tools"
|
||||
url "https://launchpad.net/charm-tools/1.5/1.5.1/+download/charm-tools-1.5.1.tar.gz"
|
||||
sha256 "295365eaa520ae48bd3e64f078cf97f0c43551d9173d3b4491f036417c0eca39"
|
||||
url "https://launchpad.net/charm-tools/1.7/1.7.0/+download/charm-tools-1.7.0.tar.gz"
|
||||
sha256 "6bc12d24460b366e12176538692d5b29c3697f5c8a98b525a05fa5ec7b04e042"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "ce32f7bea01b802b7e3fe7602824803bc9e1e0aa2f7b9b9b97209d9e55069472" => :yosemite
|
||||
sha256 "dac2d32c219b2cf83e611626292a229eb5901b218ad39b8704d4d59a2b36f491" => :mavericks
|
||||
sha256 "4239d0adc10d00e4d96f74bba4d05221cd828b18fe9dce3498aacbf38c8c6484" => :mountain_lion
|
||||
cellar :any_skip_relocation
|
||||
sha256 "3501cda00eebfa84b6de87d2a3816740cb4756d8682ffb4cc2dd41ecd11f2110" => :el_capitan
|
||||
sha256 "cae0728f61d14a01e9adf2246bdba70ca114b1b4b768c5d7e3a434b50c73d474" => :yosemite
|
||||
sha256 "f959e49c90a21203f16452ff1ea65e88d40de992fca8551d2c7fb2b3be24a693" => :mavericks
|
||||
end
|
||||
|
||||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
|
||||
@@ -13,7 +13,7 @@ class Chicken < Formula
|
||||
end
|
||||
|
||||
# needs make 3.81 or newer
|
||||
depends_on "homebrew/dupes/make" => :build if MacOS.version < :leopard
|
||||
depends_on "make" => :build if MacOS.version < :leopard
|
||||
|
||||
def install
|
||||
ENV.deparallelize
|
||||
|
||||
@@ -25,6 +25,9 @@ class Clamav < Formula
|
||||
|
||||
skip_clean "share/clamav"
|
||||
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/360
|
||||
fails_with :gcc_4_0
|
||||
|
||||
def install
|
||||
args = [
|
||||
"--disable-dependency-tracking",
|
||||
|
||||
@@ -4,6 +4,7 @@ class Clisp < Formula
|
||||
url "http://ftpmirror.gnu.org/clisp/release/2.49/clisp-2.49.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/clisp/release/2.49/clisp-2.49.tar.bz2"
|
||||
sha256 "8132ff353afaa70e6b19367a25ae3d5a43627279c25647c220641fed00f8e890"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "cbd72b99874b8a53da52938f41122e741cccb1e300c2bbf3175f6cefbe48a100" => :yosemite
|
||||
|
||||
@@ -0,0 +1,30 @@
|
||||
class CloogPpl015 < Formula
|
||||
homepage "http://repo.or.cz/w/cloog-ppl.git"
|
||||
url "ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-ppl-0.15.11.tar.gz"
|
||||
mirror "http://gcc.cybermirror.org/infrastructure/cloog-ppl-0.15.11.tar.gz"
|
||||
sha256 "7cd634d0b2b401b04096b545915ac67f883556e9a524e8e803a6bf6217a84d5f"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "e80958bc126358051c2c40ba8b12aae5fa2e55a086dd103241f7469a6812df29" => :yosemite
|
||||
sha256 "e18498773771e61e533c1521212ad4f2be43f62b5c00478c89fc52934850450f" => :mavericks
|
||||
sha256 "ff20e10aa53c2650de8f008d8b6cd803ed1960e6d88282574c2217700ba0a81f" => :mountain_lion
|
||||
end
|
||||
|
||||
keg_only "Conflicts with cloog in main repository."
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "ppl011"
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--disable-dependency-tracking
|
||||
--prefix=#{prefix}
|
||||
--with-gmp=#{Formula["gmp4"].opt_prefix}"
|
||||
--with-ppl=#{Formula["ppl011"].opt_prefix}"
|
||||
]
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,52 @@
|
||||
class Cloog018 < Formula
|
||||
desc "Generate code for scanning Z-polyhedra"
|
||||
homepage "http://www.cloog.org/"
|
||||
# Track gcc infrastructure releases.
|
||||
url "http://www.bastoul.net/cloog/pages/download/count.php3?url=./cloog-0.18.0.tar.gz"
|
||||
mirror "ftp://gcc.gnu.org/pub/gcc/infrastructure/cloog-0.18.0.tar.gz"
|
||||
sha256 "1c4aa8dde7886be9cbe0f9069c334843b21028f61d344a2d685f88cb1dcf2228"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
revision 1
|
||||
sha256 "95b8d981633d853151cae2efa07bcf6655e5af04dad88418087fc614de8f160d" => :el_capitan
|
||||
sha256 "5befa09d6f42cebefe5085959a9d7267158bd9eb7a1d7d0a95c122c5377ccaa9" => :yosemite
|
||||
sha256 "b64ee12cd97286090e012e25882119b82ce4dc9b8dbaacf7ac17f7570f327cfa" => :mavericks
|
||||
end
|
||||
|
||||
keg_only "Conflicts with cloog in main repository."
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "gmp4"
|
||||
depends_on "isl011"
|
||||
|
||||
def install
|
||||
system "./configure", "--prefix=#{prefix}",
|
||||
"--disable-dependency-tracking",
|
||||
"--disable-silent-rules",
|
||||
"--with-gmp-prefix=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-isl-prefix=#{Formula["isl011"].opt_prefix}"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
cloog_source = <<-EOS.undent
|
||||
c
|
||||
|
||||
0 2
|
||||
0
|
||||
|
||||
1
|
||||
|
||||
1
|
||||
0 2
|
||||
0 0 0
|
||||
0
|
||||
|
||||
0
|
||||
EOS
|
||||
|
||||
assert_match "Generated from /dev/stdin by CLooG",
|
||||
pipe_output("#{bin}/cloog /dev/stdin", cloog_source)
|
||||
end
|
||||
end
|
||||
@@ -5,9 +5,10 @@ class ClutterGst < Formula
|
||||
sha256 "2dbdbc3292e92684bbdbf1694c61f6b781f5810e4d79a415dfdee2f7ee42148c"
|
||||
|
||||
bottle do
|
||||
sha256 "118737f49a233d0e26862e2a4d61ea9f71a57949e06eff39a8840cd0417379ee" => :yosemite
|
||||
sha256 "861241c0eef03dd979a20dfb19f32dffd45736205b20c2457e3732a547e2b73c" => :mavericks
|
||||
sha256 "0a67c7b33bd7fa42b13b2b3c93fde68d1cb3c1afe4c08077de833aeeebdcc81c" => :mountain_lion
|
||||
revision 1
|
||||
sha256 "93044b081e811fda6cfef3450fda71fef0253fa90c2125dbce1de1839ceae061" => :el_capitan
|
||||
sha256 "1728ff5dc8fcd9bd2041b332ec179e16b72046a0da772d34a224de527fe7e67d" => :yosemite
|
||||
sha256 "d2b0f46bcf88ad8ff13594973d2c2d55ee929bc27fe331882f0eb84cc718c992" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
@@ -72,6 +73,7 @@ class ClutterGst < Formula
|
||||
-I#{glib.opt_lib}/glib-2.0/include
|
||||
-I#{gst_plugins_base.opt_include}/gstreamer-1.0
|
||||
-I#{gstreamer.opt_include}/gstreamer-1.0
|
||||
-I#{gstreamer.opt_lib}/gstreamer-1.0/include
|
||||
-I#{include}/clutter-gst-3.0
|
||||
-I#{json_glib.opt_include}/json-glib-1.0
|
||||
-I#{libpng.opt_include}/libpng16
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
class ClutterGtk < Formula
|
||||
desc "GTK+ integration library for Clutter"
|
||||
homepage "https://wiki.gnome.org/Projects/Clutter"
|
||||
url "https://download.gnome.org/sources/clutter-gtk/1.6/clutter-gtk-1.6.2.tar.xz"
|
||||
sha256 "bbd03dfa9a20102d5cdb440513b0a035933da557ad7e9da31546034de2daf069"
|
||||
url "https://download.gnome.org/sources/clutter-gtk/1.6/clutter-gtk-1.6.4.tar.xz"
|
||||
sha256 "52fc9b35d301737a221bb6c24abafafe23e4bd0a5e2060bba3860b6cac7b32aa"
|
||||
|
||||
bottle do
|
||||
sha256 "2d186ad62466bf517682c67bcd0a35e2dc901a35ecb0b58186ad68b0fcdc420f" => :yosemite
|
||||
sha256 "30a60e8e1b6f9a2166f63cf541328e67ef363ab80fe73e4579ec1b13c158ee77" => :mavericks
|
||||
sha256 "f7fb4c5553d7853ea96b90c27689128ce144103ebdb7abaee29b06a9aef377ae" => :mountain_lion
|
||||
sha256 "af7aba2417b205ad7987c43cad168a4cc6cc3ef6b5289fad758a123ca60ac8bc" => :el_capitan
|
||||
sha256 "0007a7945588d7409514fe32e42435ea4a4c6584b2e54d217cb88d1769fd550c" => :yosemite
|
||||
sha256 "99544dde6b1386f6b12536b6ba7abd04a112123fa8bb39c475bb365a960ccd99" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
||||
@@ -1,13 +1,13 @@
|
||||
class Clutter < Formula
|
||||
desc "Generic high-level canvas library"
|
||||
homepage "https://wiki.gnome.org/Projects/Clutter"
|
||||
url "https://download.gnome.org/sources/clutter/1.22/clutter-1.22.4.tar.xz"
|
||||
sha256 "1d77ce16025f87667a1d00dc4fa617a1935156f63fd17635fdadf138866c9e1e"
|
||||
url "https://download.gnome.org/sources/clutter/1.24/clutter-1.24.0.tar.xz"
|
||||
sha256 "85c87d5745b97af7633776419a47421aae7cea66c1b870f88cc5e06a4c5626e6"
|
||||
|
||||
bottle do
|
||||
sha256 "34f56ac7eceb88057cad0742a8055951885a6eab38e36fde3af5b54311c3fd48" => :yosemite
|
||||
sha256 "0d9cb416bc29d59dd542a3760fc14d2f3d8fdf6ab5531102b0835378ad3a0457" => :mavericks
|
||||
sha256 "f3068a73eda6b6df486c5658288567dec0d987de74c522412a0879e352d5dd1a" => :mountain_lion
|
||||
sha256 "ed5bd7a2b8dd5ee04ddc871299c39a8b9483fd325d93b033d1e58ea933f65209" => :el_capitan
|
||||
sha256 "fb7691feb447f9e00f925ccb4c308d3a9be01e47d705205cc969bda627ecb611" => :yosemite
|
||||
sha256 "046c2bf23f70c21011f49f642d1ff282a78b02f68afe409dc2552d5e09aff20a" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
|
||||
+21
-13
@@ -1,21 +1,21 @@
|
||||
class Cmake < Formula
|
||||
desc "Cross-platform make"
|
||||
homepage "http://www.cmake.org/"
|
||||
url "http://www.cmake.org/files/v3.3/cmake-3.3.2.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/c/cmake/cmake_3.3.2.orig.tar.gz"
|
||||
sha256 "e75a178d6ebf182b048ebfe6e0657c49f0dc109779170bad7ffcb17463f2fc22"
|
||||
head "http://cmake.org/cmake.git"
|
||||
url "https://cmake.org/files/v3.6/cmake-3.6.3.tar.gz"
|
||||
sha256 "7d73ee4fae572eb2d7cd3feb48971aea903bb30a20ea5ae8b4da826d8ccad5fe"
|
||||
|
||||
# See: https://gist.github.com/shirleyallan/6261775
|
||||
fails_with :gcc do
|
||||
build 5553
|
||||
cause "/Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory"
|
||||
end
|
||||
head "https://cmake.org/cmake.git"
|
||||
|
||||
bottle do
|
||||
sha256 "46ffe73c3277dea43fb3341c02b06b36a6c165bcb6cc900b597fcf94dbfddad7" => :leopard_g3
|
||||
sha256 "da4027b8afd98665000d9b806da19f84d352fee39a0f8c4a9a287f23e3aef567" => :leopard_altivec
|
||||
sha256 "f2b16ef4fe3f26ba8662883b670ef8e6b3d974b4cd5857c50cba0c15950cd59d" => :tiger_altivec
|
||||
cellar :any_skip_relocation
|
||||
sha256 "81a8b6e3b7f527edb89c298c8aea367e7fb00bf83f30fc4ee814e0d06b75f3dc" => :sierra
|
||||
sha256 "e0e81368fe89f206582833d5f289c6fc56ee0272b1913361e65e3221efadf447" => :el_capitan
|
||||
sha256 "16f91ff94d784b2120e248650a7a99c5974d325900f94ead54392b2fdaabeb8e" => :yosemite
|
||||
end
|
||||
|
||||
devel do
|
||||
url "https://cmake.org/files/v3.7/cmake-3.7.0-rc3.tar.gz"
|
||||
sha256 "654a5f0400c88fb07cf7e882e6254d17f248663b51a85ff07d79f7ee7b4795bd"
|
||||
end
|
||||
|
||||
option "without-docs", "Don't build man pages"
|
||||
@@ -107,12 +107,20 @@ class Cmake < Formula
|
||||
--system-bzip2
|
||||
]
|
||||
|
||||
args << (MacOS.version < :leopard ? "--no-system-curl" : "--system-curl")
|
||||
# https://github.com/Homebrew/legacy-homebrew/issues/45989
|
||||
if MacOS.version <= :lion
|
||||
args << "--no-system-curl"
|
||||
else
|
||||
args << "--system-curl"
|
||||
end
|
||||
|
||||
if build.with? "docs"
|
||||
args << "--sphinx-man" << "--sphinx-build=#{buildpath}/sphinx/bin/sphinx-build"
|
||||
end
|
||||
|
||||
# gcc-4.2 does not find stdarg.h if the sysroot is set to an SDK
|
||||
args << "--" << "-DCMAKE_OSX_SYSROOT=/"
|
||||
|
||||
system "./bootstrap", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
class Cogl < Formula
|
||||
desc "Low level OpenGL abstraction library developed for Clutter"
|
||||
homepage "https://developer.gnome.org/cogl/"
|
||||
url "https://download.gnome.org/sources/cogl/1.20/cogl-1.20.0.tar.xz"
|
||||
sha256 "729e35495829e7d31fafa3358e47b743ba21a2b08ff9b6cd28fb74c0de91192b"
|
||||
revision 1
|
||||
url "https://download.gnome.org/sources/cogl/1.22/cogl-1.22.0.tar.xz"
|
||||
sha256 "689dfb5d14fc1106e9d2ded0f7930dcf7265d0bc84fa846b4f03941633eeaa91"
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
sha256 "f1c4bcc7ed92370f25667f619a77201b922f250fefa7a4884d2e3e7d6adcf0fd" => :yosemite
|
||||
sha256 "a92b3f7ce32927fc8a10239c28c24d49d755c0dd4ecc64c40860fccba484c1f3" => :mavericks
|
||||
sha256 "401ec44a470559b23d590427339271f9469e048e1a7160e113875bab35d504c9" => :mountain_lion
|
||||
sha256 "40e791051fe658bfef8c3fd931871e2ed3d5574b99e174eba6f0adeb514328a3" => :el_capitan
|
||||
sha256 "8468cc80cc507b84f176286d86e143e319b0b34c50d34f8b626c36a95f670215" => :yosemite
|
||||
sha256 "ba4d3405e3b3af0b4e40565bae7c84e72b8fe6b96e1aa26567d3c6d77a5f7904" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -27,7 +27,7 @@ class Coq < Formula
|
||||
sha256 "dd082d214e2540429c6f757a41e4df23307e339d50ae68cd108dbd569c6b9ed1" => :mountain_lion
|
||||
end
|
||||
|
||||
depends_on 'homebrew/dupes/make' => :build if MacOS.version < :leopard
|
||||
depends_on "make" => :build if MacOS.version < :leopard
|
||||
depends_on :ld64 # needs -no_compact_unwind
|
||||
depends_on Camlp5TransitionalModeRequirement
|
||||
depends_on "camlp5"
|
||||
|
||||
@@ -1,23 +1,19 @@
|
||||
class Coreutils < Formula
|
||||
desc "GNU File, Shell, and Text utilities"
|
||||
homepage "https://www.gnu.org/software/coreutils"
|
||||
url "http://ftpmirror.gnu.org/coreutils/coreutils-8.24.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/coreutils/coreutils-8.24.tar.xz"
|
||||
sha256 "a2d75286a4b9ef3a13039c2da3868a61be4ee9f17d8ae380a35a97e506972170"
|
||||
url "https://ftp.gnu.org/gnu/coreutils/coreutils-8.30.tar.xz"
|
||||
mirror "https://ftpmirror.gnu.org/coreutils/coreutils-8.30.tar.xz"
|
||||
sha256 "e831b3a86091496cdba720411f9748de81507798f6130adeaef872d206e1b057"
|
||||
|
||||
bottle do
|
||||
sha256 "982576be0136e46016643da0efdb44e3ab201263b2a43433448821c19fb9edd4" => :el_capitan
|
||||
sha256 "142edfec5f84958bdb27866e3a826f9b580a4ae07bfd805c766ab6a9a368e34f" => :yosemite
|
||||
sha256 "851e007f3edaa58fc00d9c67aeed2ab5a8b9a1bad608dc3e5d76732cc35c593f" => :mavericks
|
||||
sha256 "32ef44141d7dff2995ea0a692a3861ee9049a37a1254a3978c7dc8283c258476" => :mountain_lion
|
||||
sha256 "45157fb067a46c953bdfcba90de688903b7b3c8fcb39afa1e0b2fef2819eedc5" => :mojave
|
||||
sha256 "77b09dbe66f3d5098998da6babf953e01e828742b8a740a831cc3f3a1f713df7" => :high_sierra
|
||||
sha256 "94844581b7e08ae2d1dc6c77acfd6e95021283cc8b7c1228fed32a423ae826cc" => :sierra
|
||||
sha256 "a5145f88de2525d168ef998f8310d5c0abcead9efee9108fb61c30de91a4869c" => :el_capitan
|
||||
end
|
||||
|
||||
conflicts_with "ganglia", :because => "both install `gstat` binaries"
|
||||
conflicts_with "idutils", :because => "both install `gid` and `gid.1`"
|
||||
conflicts_with "aardvark_shell_utils", :because => "both install `realpath` binaries"
|
||||
|
||||
head do
|
||||
url "git://git.sv.gnu.org/coreutils"
|
||||
url "https://git.savannah.gnu.org/git/coreutils.git"
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
@@ -30,8 +26,28 @@ class Coreutils < Formula
|
||||
|
||||
depends_on "gmp" => :optional
|
||||
|
||||
conflicts_with "ganglia", :because => "both install `gstat` binaries"
|
||||
conflicts_with "gegl", :because => "both install `gcut` binaries"
|
||||
conflicts_with "idutils", :because => "both install `gid` and `gid.1`"
|
||||
conflicts_with "aardvark_shell_utils", :because => "both install `realpath` binaries"
|
||||
|
||||
def install
|
||||
if MacOS.version == :el_capitan
|
||||
# Work around unremovable, nested dirs bug that affects lots of
|
||||
# GNU projects. See:
|
||||
# https://github.com/Homebrew/homebrew/issues/45273
|
||||
# https://github.com/Homebrew/homebrew/issues/44993
|
||||
# This is thought to be an el_capitan bug:
|
||||
# https://lists.gnu.org/archive/html/bug-tar/2015-10/msg00017.html
|
||||
ENV["gl_cv_func_getcwd_abort_bug"] = "no"
|
||||
|
||||
# renameatx_np and RENAME_EXCL are available at compile time from Xcode 8
|
||||
# (10.12 SDK), but the former is not available at runtime.
|
||||
inreplace "lib/renameat2.c", "defined RENAME_EXCL", "defined UNDEFINED_GIBBERISH"
|
||||
end
|
||||
|
||||
system "./bootstrap" if build.head?
|
||||
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--program-prefix=g
|
||||
@@ -54,20 +70,15 @@ class Coreutils < Formula
|
||||
man1.install_symlink "grealpath.1" => "realpath.1"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
def caveats; <<~EOS
|
||||
All commands have been installed with the prefix 'g'.
|
||||
|
||||
If you really need to use these commands with their normal names, you
|
||||
can add a "gnubin" directory to your PATH from your bashrc like:
|
||||
|
||||
PATH="#{opt_libexec}/gnubin:$PATH"
|
||||
|
||||
Additionally, you can access their man pages with normal names if you add
|
||||
the "gnuman" directory to your MANPATH from your bashrc as well:
|
||||
|
||||
MANPATH="#{opt_libexec}/gnuman:$MANPATH"
|
||||
|
||||
EOS
|
||||
EOS
|
||||
end
|
||||
|
||||
def coreutils_filenames(dir)
|
||||
@@ -82,6 +93,7 @@ class Coreutils < Formula
|
||||
test do
|
||||
(testpath/"test").write("test")
|
||||
(testpath/"test.sha1").write("a94a8fe5ccb19ba61c4c0873d391e987982fbbd3 test")
|
||||
system "#{bin}/gsha1sum", "-c", "test.sha1"
|
||||
system bin/"gsha1sum", "-c", "test.sha1"
|
||||
system bin/"gln", "-f", "test", "test.sha1"
|
||||
end
|
||||
end
|
||||
@@ -21,8 +21,8 @@ class CrosstoolNg < Formula
|
||||
depends_on "gawk"
|
||||
depends_on "binutils"
|
||||
depends_on "libelf"
|
||||
depends_on "homebrew/dupes/grep" => :optional
|
||||
depends_on "homebrew/dupes/make" => :optional
|
||||
depends_on "grep" => :optional
|
||||
depends_on "make" => :optional
|
||||
|
||||
# Avoid superenv to prevent https://github.com/mxcl/homebrew/pull/10552#issuecomment-9736248
|
||||
env :std
|
||||
|
||||
@@ -1,19 +1,22 @@
|
||||
class CurlCaBundle < Formula
|
||||
homepage "http://curl.haxx.se/docs/caextract.html"
|
||||
url "https://raw.githubusercontent.com/bagder/ca-bundle/bff056d04b9e2c92ea8c83b2e39be9c8d0501039/ca-bundle.crt",
|
||||
url "https://curl.haxx.se/ca/cacert-2017-01-18.pem",
|
||||
:using => :nounzip
|
||||
sha256 "0f119da204025da7808273fab42ed8e030cafb5c7ea4e1deda4e75f066f528fb"
|
||||
version "2015-04-27"
|
||||
mirror "https://ia902307.us.archive.org/31/items/tigerbrew/cacert-2017-01-18.pem"
|
||||
sha256 "e62a07e61e5870effa81b430e1900778943c228bd7da1259dd6a955ee2262b47"
|
||||
version "2017-01-18"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "2ca60a8bbb648ded824dce45eb150fd0e9d32f8cbd983945db7bee4c6e58b1ea" => :tiger_g3
|
||||
sha256 "fba559a40c232629dade3aaa6c13206098d6428fc5716ed05002ed748c60f946" => :tiger_altivec
|
||||
sha256 "3ec0182385448739a37805ad3f1561ec44706506cb9fa15cd8573023c4e8fb0c" => :leopard_g3
|
||||
sha256 "b168b3d05821dd315a7a8665f63f6a327957f129dda209f20df9aaad45f0742d" => :leopard_altivec
|
||||
sha256 "0507b35196c0cd269f7e209353f88154b0c4232b1f28c1ecdaeb2c89e368d927" => :tiger
|
||||
sha256 "0507b35196c0cd269f7e209353f88154b0c4232b1f28c1ecdaeb2c89e368d927" => :tiger_g3
|
||||
sha256 "0507b35196c0cd269f7e209353f88154b0c4232b1f28c1ecdaeb2c89e368d927" => :tiger_altivec
|
||||
sha256 "b7a31dae293c4c39092690a1a4b43a6bd1ff6419daae4899245f469717aa8712" => :leopard
|
||||
sha256 "b7a31dae293c4c39092690a1a4b43a6bd1ff6419daae4899245f469717aa8712" => :leopard_g3
|
||||
sha256 "b7a31dae293c4c39092690a1a4b43a6bd1ff6419daae4899245f469717aa8712" => :leopard_altivec
|
||||
end
|
||||
|
||||
def install
|
||||
share.install "ca-bundle.crt"
|
||||
share.install "cacert-#{version}.pem" => "ca-bundle.crt"
|
||||
end
|
||||
end
|
||||
+19
-14
@@ -1,15 +1,16 @@
|
||||
class Curl < Formula
|
||||
desc "Get a file from an HTTP, HTTPS or FTP server"
|
||||
homepage "http://curl.haxx.se/"
|
||||
url "https://github.com/bagder/curl/releases/download/curl-7_44_0/curl-7.44.0.tar.bz2"
|
||||
mirror "http://curl.haxx.se/download/curl-7.44.0.tar.bz2"
|
||||
sha256 "1e2541bae6582bb697c0fbae49e1d3e6fad5d05d5aa80dbd6f072e0a44341814"
|
||||
homepage "https://curl.haxx.se/"
|
||||
url "https://curl.haxx.se/download/curl-7.50.3.tar.bz2"
|
||||
mirror "http://mirror.sobukus.de/files/src/curl/curl-7.50.3.tar.bz2"
|
||||
sha256 "7b7347d976661d02c84a1f4d6daf40dee377efdc45b9e2c77dedb8acf140d8ec"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "2ff224add32d7a7dd98f938b6d9d8193ef66440d00b94cbdc005772aac2f1c05" => :tiger_altivec
|
||||
sha256 "02144e7a26f1fe078b3845d2586469bb67a79e9c8a562d882e583812a181b5fe" => :leopard_g3
|
||||
sha256 "9039d7cafbd2ed01b7b56f45c82f01c7529832bb7143284b1aa955ae7ca101e7" => :leopard_altivec
|
||||
sha256 "638108732f8c4dacea7953c81b070d8ab8bde837e0608f0b4ca36124b7ff1055" => :sierra
|
||||
sha256 "b425bee3c2602e9b470db43b00418805e97ab675bfdd292be194e61fca8d9f52" => :el_capitan
|
||||
sha256 "acd850690b6578bf1f7682804734cadf5b922aa17d696ef5154b15d048712319" => :yosemite
|
||||
sha256 "cfbb0a2c28b150d13a239b9a6acd95cdd530cf57f7e26831f966d672e88dfcc0" => :mavericks
|
||||
end
|
||||
|
||||
keg_only :provided_by_osx
|
||||
@@ -42,18 +43,17 @@ class Curl < Formula
|
||||
depends_on "rtmpdump" => :optional
|
||||
depends_on "libssh2" => :optional
|
||||
depends_on "c-ares" => :optional
|
||||
depends_on "curl-ca-bundle" if MacOS.version < :snow_leopard
|
||||
depends_on "libmetalink" => :optional
|
||||
depends_on "libressl" => :optional
|
||||
depends_on "nghttp2" => :optional
|
||||
|
||||
def install
|
||||
# Throw an error if someone actually tries to rock both SSL choices.
|
||||
# Long-term, make this singular-ssl-option-only a requirement.
|
||||
# Fail if someone tries to use both SSL choices.
|
||||
# Long-term, handle conflicting options case in core code.
|
||||
if build.with?("libressl") && build.with?("openssl")
|
||||
ohai <<-EOS.undent
|
||||
odie <<-EOS.undent
|
||||
--with-openssl and --with-libressl are both specified and
|
||||
curl can only use one at a time; proceeding with libressl.
|
||||
curl can only use one at a time.
|
||||
EOS
|
||||
end
|
||||
|
||||
@@ -68,11 +68,11 @@ class Curl < Formula
|
||||
# "--with-ssl" any more. "when possible, set the PKG_CONFIG_PATH environment
|
||||
# variable instead of using this option". Multi-SSL choice breaks w/o using it.
|
||||
if build.with? "libressl"
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["libressl"].opt_prefix}/lib/pkgconfig"
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["libressl"].opt_lib}/pkgconfig"
|
||||
args << "--with-ssl=#{Formula["libressl"].opt_prefix}"
|
||||
args << "--with-ca-bundle=#{etc}/libressl/cert.pem"
|
||||
elsif MacOS.version < :mountain_lion || build.with?("openssl") || build.with?("nghttp2")
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["openssl"].opt_prefix}/lib/pkgconfig"
|
||||
ENV.prepend_path "PKG_CONFIG_PATH", "#{Formula["openssl"].opt_lib}/pkgconfig"
|
||||
args << "--with-ssl=#{Formula["openssl"].opt_prefix}"
|
||||
args << "--with-ca-bundle=#{etc}/openssl/cert.pem"
|
||||
else
|
||||
@@ -97,6 +97,7 @@ class Curl < Formula
|
||||
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
libexec.install "lib/mk-ca-bundle.pl"
|
||||
end
|
||||
|
||||
test do
|
||||
@@ -105,5 +106,9 @@ class Curl < Formula
|
||||
filename = (testpath/"test.tar.gz")
|
||||
system "#{bin}/curl", "-L", stable.url, "-o", filename
|
||||
filename.verify_checksum stable.checksum
|
||||
|
||||
system libexec/"mk-ca-bundle.pl", "test.pem"
|
||||
assert File.exist?("test.pem")
|
||||
assert File.exist?("certdata.txt")
|
||||
end
|
||||
end
|
||||
@@ -2,8 +2,9 @@ class DBus < Formula
|
||||
# releases: even (1.10.x) = stable, odd (1.11.x) = development
|
||||
desc "Message bus system, providing inter-application communication"
|
||||
homepage "https://wiki.freedesktop.org/www/Software/dbus"
|
||||
|
||||
stable do
|
||||
head "git://anongit.freedesktop.org/dbus/dbus.git"
|
||||
|
||||
stable do
|
||||
url "http://dbus.freedesktop.org/releases/dbus/dbus-1.10.0.tar.gz"
|
||||
mirror "https://mirrors.kernel.org/debian/pool/main/d/dbus/dbus_1.10.0.orig.tar.gz"
|
||||
sha256 "1dfb9745fb992f1ccd43c920490de8caddf6726a6222e8b803be6098293f924b"
|
||||
@@ -16,6 +17,18 @@ class DBus < Formula
|
||||
sha256 "8f571788a6bd6209e27b4e4cbdd4e1d2179b7f3bbdb35262c3159ff28336b76a" => :mountain_lion
|
||||
end
|
||||
|
||||
if MacOS.version >= :leopard
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/zbentley/dbus-osx-examples/master/homebrew-patches/org.freedesktop.dbus-session.plist.osx.diff"
|
||||
sha256 "a8aa6fe3f2d8f873ad3f683013491f5362d551bf5d4c3b469f1efbc5459a20dc"
|
||||
end
|
||||
else
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/zbentley/dbus-osx-examples/master/homebrew-patches/org.freedesktop.dbus-session.plist.osx-old.diff"
|
||||
sha256 "da17af8e014d942d6e916a406ad7c901eebe6c3c7780318069db29e6c1e9ca67"
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
# Fix the TMPDIR to one D-Bus doesn't reject due to odd symbols
|
||||
ENV["TMPDIR"] = "/tmp"
|
||||
@@ -33,8 +46,6 @@ class DBus < Formula
|
||||
system "make"
|
||||
ENV.deparallelize
|
||||
system "make", "install"
|
||||
|
||||
(prefix+"org.freedesktop.dbus-session.plist").chmod 0644
|
||||
end
|
||||
|
||||
def post_install
|
||||
|
||||
@@ -25,7 +25,7 @@ class Dcmtk < Formula
|
||||
depends_on "libpng"
|
||||
depends_on "libtiff"
|
||||
depends_on "openssl"
|
||||
depends_on "homebrew/dupes/libiconv" => :optional
|
||||
depends_on "libiconv" => :optional
|
||||
|
||||
def install
|
||||
ENV.m64 if MacOS.prefer_64_bit?
|
||||
|
||||
@@ -3,6 +3,7 @@ class Devtodo < Formula
|
||||
homepage "http://swapoff.org/DevTodo"
|
||||
url "http://swapoff.org/files/devtodo/devtodo-0.1.20.tar.gz"
|
||||
sha256 "379c6ac4499fc97e9676075188f7217e324e7ece3fb6daeda7bf7969c7093e09"
|
||||
revision 1
|
||||
|
||||
depends_on "readline"
|
||||
|
||||
|
||||
@@ -12,8 +12,8 @@ class Dex < Formula
|
||||
sha256 "6f2d7d8c6a1e54dbe6d815915ac0eb0100fd68426b3d91ec9d04a5356ca0a48b" => :mountain_lion
|
||||
end
|
||||
|
||||
depends_on "homebrew/dupes/ncurses" => :optional
|
||||
depends_on "homebrew/dupes/libiconv" => :optional
|
||||
depends_on "ncurses" => :optional
|
||||
depends_on "libiconv" => :optional
|
||||
|
||||
def install
|
||||
args = ["prefix=#{prefix}",
|
||||
|
||||
@@ -3,14 +3,13 @@ class DocbookXsl < Formula
|
||||
homepage "http://docbook.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/docbook/docbook-xsl/1.78.1/docbook-xsl-1.78.1.tar.bz2"
|
||||
sha256 "c98f7296ab5c8ccd2e0bc07634976a37f50847df2d8a59bdb1e157664700b467"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
revision 1
|
||||
sha256 "6d7607d66c0299b68914780d9e108634a250da29e1da20b7dc717eb4f0e25053" => :el_capitan
|
||||
sha1 "2d71a5e24820de3f498f632b47ecaf7af7875312" => :yosemite
|
||||
sha1 "236f05f3d22a6972eca770fcaf19063c6b0ec3aa" => :mavericks
|
||||
sha1 "435ee69f4fc431bff00a973a70c5f24235f5392d" => :mountain_lion
|
||||
sha256 "8598bedecfd34bfa552d83fbc1a94236fcaab2ff06238ffdc037916dcd57faec" => :el_capitan
|
||||
sha256 "787f44fdcab7c85bedb4cb34020f706a5ebae0c920814e96e0d959514d26f808" => :yosemite
|
||||
sha256 "73e392097207550fe56679cf96e42ddf8ba265cf7d6438be77b2addb18a4f5d1" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "docbook"
|
||||
@@ -21,6 +20,7 @@ class DocbookXsl < Formula
|
||||
end
|
||||
|
||||
def install
|
||||
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
||||
doc_files = %w[AUTHORS BUGS COPYING NEWS README RELEASE-NOTES.txt TODO VERSION VERSION.xsl]
|
||||
xsl_files = %w[assembly catalog.xml common docsrc eclipse epub epub3 extensions
|
||||
fo highlighting html htmlhelp images javahelp lib log manpages
|
||||
@@ -35,6 +35,7 @@ class DocbookXsl < Formula
|
||||
end
|
||||
|
||||
def post_install
|
||||
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
||||
[prefix/"docbook-xsl/catalog.xml", prefix/"docbook-xsl-ns/catalog.xml"].each do |catalog|
|
||||
system "xmlcatalog", "--noout", "--del", "file://#{catalog}", "#{etc}/xml/catalog"
|
||||
system "xmlcatalog", "--noout", "--add", "nextCatalog", "", "file://#{catalog}", "#{etc}/xml/catalog"
|
||||
|
||||
+23
-12
@@ -6,10 +6,10 @@ class Docbook < Formula
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
revision 2
|
||||
sha256 "a3ce9c187fefb20f949095c1c4ae4e3a9dc1887a17d7322c85c10633b92b3fb9" => :el_capitan
|
||||
sha256 "d722e3791b31c9ab92a5f47d89a8f530accd628898dd10551a1185986c4eb08f" => :yosemite
|
||||
sha256 "5d563a04a11cee14fd7c52a6b4a85d397b019bf2f5cc96005e2d17dac4ad7231" => :mavericks
|
||||
revision 3
|
||||
sha256 "3fb7e4070eaa9250fa947d38e3d7803d37c159d9765e3f71397702d5ad6bb578" => :el_capitan
|
||||
sha256 "dfdb315404c98dca2682f63260f2996de101cb6b41de69ac268dcded110e2a3f" => :yosemite
|
||||
sha256 "65925fda670fdb020fe9d52cd5891f8e3a2a44619e9129b30031127c7c2e998c" => :mavericks
|
||||
end
|
||||
|
||||
resource "xml412" do
|
||||
@@ -45,7 +45,6 @@ class Docbook < Formula
|
||||
|
||||
def install
|
||||
(etc/"xml").mkpath
|
||||
system "xmlcatalog", "--noout", "--create", "#{etc}/xml/catalog"
|
||||
|
||||
%w[42 412 43 44 45 50].each do |version|
|
||||
resource("xml#{version}").stage do |r|
|
||||
@@ -60,17 +59,29 @@ class Docbook < Formula
|
||||
|
||||
rm_rf "docs"
|
||||
(prefix/"docbook/xml"/r.version).install Dir["*"]
|
||||
|
||||
catalog = prefix/"docbook/xml/#{r.version}/catalog.xml"
|
||||
|
||||
system "xmlcatalog", "--noout", "--del",
|
||||
"file://#{catalog}", "#{etc}/xml/catalog"
|
||||
system "xmlcatalog", "--noout", "--add", "nextCatalog",
|
||||
"", "file://#{catalog}", "#{etc}/xml/catalog"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def post_install
|
||||
ENV["XML_CATALOG_FILES"] = "#{etc}/xml/catalog"
|
||||
|
||||
# only create catalog file if it doesn't exist already to avoid content added
|
||||
# by other formulas to be removed
|
||||
unless File.file?("#{etc}/xml/catalog")
|
||||
system "xmlcatalog", "--noout", "--create", "#{etc}/xml/catalog"
|
||||
end
|
||||
|
||||
%w[4.2 4.1.2 4.3 4.4 4.5 5.0].each do |version|
|
||||
catalog = prefix/"docbook/xml/#{version}/catalog.xml"
|
||||
|
||||
system "xmlcatalog", "--noout", "--del",
|
||||
"file://#{catalog}", "#{etc}/xml/catalog"
|
||||
system "xmlcatalog", "--noout", "--add", "nextCatalog",
|
||||
"", "file://#{catalog}", "#{etc}/xml/catalog"
|
||||
end
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
To use the DocBook package in your XML toolchain,
|
||||
you need to add the following to your ~/.bashrc:
|
||||
|
||||
@@ -27,7 +27,16 @@ class Doxygen < Formula
|
||||
depends_on "qt" if build.with? "doxywizard"
|
||||
depends_on "llvm" => "with-clang" if build.with? "libclang"
|
||||
|
||||
# /Developer/SDKs/MacOSX10.4u.sdk/usr/include/stdarg.h:4:25: error: stdarg.h: No such file or directory
|
||||
fails_with :gcc if MacOS.version == :tiger
|
||||
|
||||
def install
|
||||
# This flag was introduced after GCC 4.2.
|
||||
# This is necessary on Tiger, since we don't have superenv yet.
|
||||
if [:gcc, :gcc_4_0].include? ENV.compiler
|
||||
inreplace "CMakeLists.txt", "-Wno-deprecated-register", ""
|
||||
end
|
||||
|
||||
args = std_cmake_args
|
||||
args << "-Dbuild_wizard=ON" if build.with? "doxywizard"
|
||||
args << "-Duse_libclang=ON -DLLVM_CONFIG=#{Formula["llvm"].opt_bin}/llvm-config" if build.with? "libclang"
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
class Dpkg < Formula
|
||||
desc "Debian package management system"
|
||||
homepage "https://wiki.debian.org/Teams/Dpkg"
|
||||
url "https://mirrors.kernel.org/debian/pool/main/d/dpkg/dpkg_1.18.2.tar.xz"
|
||||
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/d/dpkg/dpkg_1.18.2.tar.xz"
|
||||
url "https://mirrors.kernel.org/debian/pool/main/d/dpkg/dpkg_1.18.24.tar.xz"
|
||||
mirror "https://mirrors.ocf.berkeley.edu/debian/pool/main/d/dpkg/dpkg_1.18.24.tar.xz"
|
||||
sha256 "11484f2a73d027d696e720a60380db71978bb5c06cd88fe30c291e069ac457a4"
|
||||
|
||||
bottle do
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
class Dspdfviewer < Formula
|
||||
desc "Dual-Screen PDF Viewer for latex-beamer"
|
||||
homepage "http://dspdfviewer.danny-edel.de"
|
||||
url "https://github.com/dannyedel/dspdfviewer/archive/v1.13.1.tar.gz"
|
||||
sha256 "333588de0316cfdb5821b8484ee55690dfa3c7431b67c126bfdbe9c9cc3e1ed4"
|
||||
|
||||
head "https://github.com/dannyedel/dspdfviewer.git"
|
||||
|
||||
bottle do
|
||||
sha256 "8d6696c179bad40c541e4d32107b66ee64a83fd0b6619e1af80f04ddeb3fffa1" => :el_capitan
|
||||
sha256 "13fd6d702d95478e38dcda6c35e208d2d99a799a296e544b83bd35a6d31181fd" => :yosemite
|
||||
sha256 "f014c5237582f5f591c59835e5695e339c07415f8990ca026d88d0838935e2ef" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "cmake" => :build
|
||||
depends_on "boost"
|
||||
depends_on "poppler" => "with-qt"
|
||||
|
||||
def install
|
||||
mkdir "build" do
|
||||
system "cmake", "..", *std_cmake_args
|
||||
system "make", "install"
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match /#{version}/, shell_output("#{bin}/dspdfviewer --version", 1)
|
||||
end
|
||||
end
|
||||
@@ -14,8 +14,8 @@ class Duplicity < Formula
|
||||
end
|
||||
|
||||
devel do
|
||||
url "https://code.launchpad.net/duplicity/0.7-series/0.7.04/+download/duplicity-0.7.04.tar.gz"
|
||||
sha256 "b49fb7bbdf0a457adf67e9c9127c107695437cef135aca69bca90d495a97dd7a"
|
||||
url "https://code.launchpad.net/duplicity/0.7-series/0.7.05/+download/duplicity-0.7.05.tar.gz"
|
||||
sha256 "1e53807d5de5bacbbe6c4eea2f313a16e9a63423316ae7b8597ee0d9e697f744"
|
||||
end
|
||||
|
||||
option :universal
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
class DwarfFortress < Formula
|
||||
desc "Open-ended rogelike game"
|
||||
homepage "http://bay12games.com/dwarves/"
|
||||
# The final PowerPC-compatible release
|
||||
url "http://www.bay12games.com/dwarves/df_28_181_40d_m.zip"
|
||||
version "0.28.181.40d"
|
||||
sha256 "12c0ef27ef87bcdbb47d02cb9f3285351986c4ebfca3ebd3374b70b55ee4debe"
|
||||
|
||||
depends_on :x11
|
||||
|
||||
def install
|
||||
(bin/"dwarffortress").write <<-EOS.undent
|
||||
#!/bin/sh
|
||||
exec #{libexec}/Dwarf\\ Fortress.app/Contents/MacOS/Dwarf\\ Fortress
|
||||
EOS
|
||||
rm_rf "sdl" # only contains a readme
|
||||
libexec.install Dir["Dwarf Fortress 0.28.181.40d/*"]
|
||||
end
|
||||
end
|
||||
@@ -3,6 +3,7 @@ class Dwarf < Formula
|
||||
homepage "https://code.google.com/p/dwarf-ng/"
|
||||
url "https://dwarf-ng.googlecode.com/files/dwarf-0.3.0.tar.gz"
|
||||
sha256 "85062d0d3e8aa31374dd085cb79ce02c2b8737e9b143f640a262556233715763"
|
||||
revision 1
|
||||
|
||||
depends_on "readline"
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ class Ekg2 < Formula
|
||||
homepage "http://ekg2.org"
|
||||
url "http://pl.ekg2.org/ekg2-0.3.1.tar.gz"
|
||||
sha256 "6ad360f8ca788d4f5baff226200f56922031ceda1ce0814e650fa4d877099c63"
|
||||
revision 1
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "readline"
|
||||
|
||||
@@ -75,6 +75,9 @@ class Erlang < Formula
|
||||
args << "--enable-native-libs" if build.with? "native-libs"
|
||||
args << "--enable-dirty-schedulers" if build.with? "dirty-schedulers"
|
||||
args << "--enable-wx" if build.with? "wxmac"
|
||||
# Older Javas not supported by jinterface
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/372
|
||||
args << "--without-javac" if MacOS.version < :snow_leopard
|
||||
|
||||
if MacOS.version >= :snow_leopard && MacOS::CLT.installed?
|
||||
args << "--with-dynamic-trace=dtrace"
|
||||
|
||||
@@ -36,7 +36,7 @@ class Ffmpeg < Formula
|
||||
depends_on "pkg-config" => :build
|
||||
|
||||
# Tiger's make is too old
|
||||
depends_on "homebrew/dupes/make" => :build if MacOS.version < :leopard
|
||||
depends_on "make" => :build if MacOS.version < :leopard
|
||||
# Tiger's ld doesn't like -install_name
|
||||
depends_on :ld64
|
||||
# manpages won't be built without texi2html
|
||||
@@ -120,12 +120,8 @@ class Ffmpeg < Formula
|
||||
args << "--enable-libx265" if build.with? "x265"
|
||||
args << "--enable-libwebp" if build.with? "webp"
|
||||
args << "--enable-libzmq" if build.with? "zeromq"
|
||||
<<<<<<< HEAD
|
||||
args << "--disable-indev=qtkit" if build.without?("qtkit") || MacOS.version < :snow_leopard
|
||||
=======
|
||||
args << "--enable-libbs2b" if build.with? "libbs2b"
|
||||
args << "--disable-indev=qtkit" if build.without? "qtkit"
|
||||
>>>>>>> Homebrew/master
|
||||
|
||||
if build.with? "openjpeg"
|
||||
args << "--enable-libopenjpeg"
|
||||
|
||||
+31
-12
@@ -1,43 +1,62 @@
|
||||
class Fish < Formula
|
||||
desc "User-friendly command-line shell for UNIX-like operating systems"
|
||||
homepage "http://fishshell.com"
|
||||
url "http://fishshell.com/files/2.2.0/fish-2.2.0.tar.gz"
|
||||
sha256 "a76339fd14ce2ec229283c53e805faac48c3e99d9e3ede9d82c0554acfc7b77a"
|
||||
url "https://github.com/fish-shell/fish-shell/releases/download/2.7.1/fish-2.7.1.tar.gz"
|
||||
sha256 "e42bb19c7586356905a58578190be792df960fa81de35effb1ca5a5a981f0c5a"
|
||||
|
||||
bottle do
|
||||
sha256 "1a9a75647ab672132d4ea6b385a09461041f47a91a3719a82494467eaeceab97" => :tiger_altivec
|
||||
sha256 "e0ba430b35df479e52c0d33b6900cbfe55bf2779e7ab22c3e226db05e53f9410" => :leopard_g3
|
||||
sha256 "326cea656c8cadf59f2202293334c17d38dfb52ea21388f5fa2b44a6cd8cc46e" => :leopard_altivec
|
||||
sha256 "12616d6225eb804b40cdd12ecc8722252a9d28d0275af61f9afc59ef12a55f87" => :tiger_g3
|
||||
sha256 "0339873032336e84bd169f49b4a9745bcb6ee4e21cfc3cf7a99b05423405498e" => :tiger_altivec
|
||||
sha256 "6b02140be2753196951031ef7836d1297e752270c3cbda8915c6dae7dd948766" => :tiger_g5
|
||||
end
|
||||
|
||||
head do
|
||||
url "https://github.com/fish-shell/fish-shell.git", :shallow => false
|
||||
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "doxygen" => :build
|
||||
depends_on "libtool" => :build
|
||||
end
|
||||
|
||||
needs :cxx11
|
||||
depends_on "pcre2"
|
||||
|
||||
def install
|
||||
system "autoconf" if build.head?
|
||||
system "autoreconf", "--no-recursive" if build.head?
|
||||
# Necessary to get the standard signature of ttyname_r()
|
||||
ENV.append_to_cflags "-D__DARWIN_UNIX03" if MacOS.version < :leopard
|
||||
|
||||
# In Homebrew's 'superenv' sed's path will be incompatible, so
|
||||
# the correct path is passed into configure here.
|
||||
system "./configure", "--prefix=#{prefix}", "SED=/usr/bin/sed"
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--with-extra-functionsdir=#{HOMEBREW_PREFIX}/share/fish/vendor_functions.d
|
||||
--with-extra-completionsdir=#{HOMEBREW_PREFIX}/share/fish/vendor_completions.d
|
||||
--with-extra-confdir=#{HOMEBREW_PREFIX}/share/fish/vendor_conf.d
|
||||
SED=/usr/bin/sed
|
||||
]
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
You will need to add:
|
||||
#{HOMEBREW_PREFIX}/bin/fish
|
||||
to /etc/shells. Run:
|
||||
to /etc/shells.
|
||||
|
||||
Then run:
|
||||
chsh -s #{HOMEBREW_PREFIX}/bin/fish
|
||||
to make fish your default shell.
|
||||
|
||||
If you are upgrading from an older version of fish, you should now run:
|
||||
killall fishd
|
||||
to terminate the outdated fish daemon.
|
||||
EOS
|
||||
end
|
||||
|
||||
def post_install
|
||||
(pkgshare/"vendor_functions.d").mkpath
|
||||
(pkgshare/"vendor_completions.d").mkpath
|
||||
(pkgshare/"vendor_conf.d").mkpath
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/fish", "-c", "echo"
|
||||
end
|
||||
|
||||
@@ -1,16 +1,15 @@
|
||||
class Fpp < Formula
|
||||
desc "CLI program that accepts piped input and presents files for selection"
|
||||
homepage "https://facebook.github.io/PathPicker/"
|
||||
url "https://github.com/facebook/PathPicker/releases/download/0.6.1/fpp.0.6.1.tar.gz"
|
||||
sha256 "800a6dcf0cfe55fae9b901b2827f2706ef85812cc4d7d6676dde359c62235428"
|
||||
url "https://github.com/facebook/PathPicker/releases/download/0.6.2/fpp.0.6.2.tar.gz"
|
||||
sha256 "a437e8d779053cac28f582e8b9f8621bc872af9cd7a0afdce5cdd0912f974513"
|
||||
head "https://github.com/facebook/pathpicker.git"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "c3fe9eeb5cb245bbb9bcc960d953d0fab29d443bfcd518ae9fc346efcb30b4bf" => :el_capitan
|
||||
sha256 "81c66eb233cf29c15a198b5adcc7cfda6b306d9c2d38d37401c50a2494795358" => :yosemite
|
||||
sha256 "7e86a6be38372bec214594ee10cf19eb2afaad9464a4ee23afde33ed5ae5c430" => :mavericks
|
||||
sha256 "eb3e955121c0cab6f567b4b3ba942899be74452be5a56c3f766ea9904bf39d09" => :mountain_lion
|
||||
sha256 "dc11342cec78684be0e6f43b8276026fe1f23d6c7e201b0f629ba9a3fd1e1592" => :el_capitan
|
||||
sha256 "c79b5dcb7b79fee7b8562d64936894fec85b9b1ac6ae69a313e22e595263691a" => :yosemite
|
||||
sha256 "14e13d31f2fee2c5e59cdd7c68e16caffa8b0a51455ac6c2c4282f1221d5383a" => :mavericks
|
||||
end
|
||||
|
||||
depends_on :python if MacOS.version <= :snow_leopard
|
||||
|
||||
@@ -1,14 +1,14 @@
|
||||
class Galen < Formula
|
||||
desc "Automated testing of look and feel for responsive websites"
|
||||
homepage "http://galenframework.com/"
|
||||
url "https://github.com/galenframework/galen/releases/download/galen-2.0.10/galen-bin-2.0.10.zip"
|
||||
sha256 "cd014d28b29835d3e0ed06c585b05e1ccf8cf1a1a68ceb9a5b6584497f3bd321"
|
||||
url "https://github.com/galenframework/galen/releases/download/galen-2.1.2/galen-bin-2.1.2.zip"
|
||||
sha256 "46c94af882845bca40168860f5ed35630a0b5416d18c37f479807da86c1c067e"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "2f4e2026e14cb405b18ce647a3d95a4220aefb1b7bd23600a0edd6fd869772ac" => :yosemite
|
||||
sha256 "9377554f54550709b890990693707bc18ccb35c8082e4d11efaca7f85218e758" => :mavericks
|
||||
sha256 "d057fe2c3b46cb5f364b3ac07af5e7cc81ec116369ae269ee485b56fad010780" => :mountain_lion
|
||||
sha256 "165f156f19df88826e595ca67e9ce144e3b64bd655bec4d334465d946fb73f59" => :el_capitan
|
||||
sha256 "3f968ded3798169d8199f5f9c635a70e063e113525d6e365c1bf3d7c7e75c56f" => :yosemite
|
||||
sha256 "3d1dc754b35a7e1d5c37518b33e3a7fc91e560da90d7df872afeadbcb67c7040" => :mavericks
|
||||
end
|
||||
|
||||
depends_on :java => "1.6+"
|
||||
|
||||
@@ -19,6 +19,11 @@ class GambitScheme < Formula
|
||||
|
||||
fails_with :llvm
|
||||
fails_with :clang
|
||||
# According to the docs, gambit-scheme requires absurd amounts of RAM
|
||||
# to build using GCC 4.2 or 4.3; see
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/389
|
||||
fails_with :gcc
|
||||
fails_with :gcc => "4.3"
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
|
||||
@@ -4,6 +4,7 @@ class Gawk < Formula
|
||||
url "http://ftpmirror.gnu.org/gawk/gawk-4.1.3.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/gawk/gawk-4.1.3.tar.xz"
|
||||
sha256 "e3cf55e91e31ea2845f8338bedd91e40671fc30e4d82ea147d220e687abda625"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
sha256 "ed2c5f0b20e4b4af151177a750b1287435aad66bb0c8c4b60daf753f3955332c" => :el_capitan
|
||||
|
||||
+50
-69
@@ -21,21 +21,17 @@ class Gcc < Formula
|
||||
|
||||
desc "GNU compiler collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "http://ftpmirror.gnu.org/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-5.2.0/gcc-5.2.0.tar.bz2"
|
||||
sha256 "5f835b04b5f7dd4f4d2dc96190ec1621b8d89f2dc6f638f9f8bc1b1014ba8cad"
|
||||
url "https://ftp.gnu.org/gnu/gcc/gcc-7.3.0/gcc-7.3.0.tar.xz"
|
||||
mirror "https://ftpmirror.gnu.org/gcc/gcc-7.3.0/gcc-7.3.0.tar.xz"
|
||||
sha256 "832ca6ae04636adbb430e865a1451adf6979ab44ca1c8374f61fba65645ce15c"
|
||||
|
||||
bottle do
|
||||
sha256 "7786105aba6e06111cadb876900ad0f5613ad0b87e699bb81e66baa88d1279c9" => :tiger_altivec
|
||||
sha256 "aa1e0a6738594a14f270726501de6bd65628cc0f331af458c396e0728744fc1e" => :leopard_g3s
|
||||
sha256 "2e7f1d7a9600a42b88672f7719dd76257acfaa6994e11f762ccc0234c84bd905" => :leopard_altivec
|
||||
sha256 "dfe5debb5b2d22c65673a38bfc1902042d7094702f49ff3cdfa2ecb30d09308e" => :tiger_g3
|
||||
sha256 "401a75fa8baebfd62260dfa5c1b2668a4599d2543e4634d3dc7c7bb3b120e9d4" => :tiger_altivec
|
||||
end
|
||||
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-jit", "Build the jit compiler"
|
||||
option "without-fortran", "Build without the gfortran compiler"
|
||||
option "with-jit", "Build just-in-time compiler"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
@@ -43,7 +39,6 @@ class Gcc < Formula
|
||||
depends_on "libmpc"
|
||||
depends_on "mpfr"
|
||||
depends_on "isl"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
if MacOS.version < :leopard
|
||||
# The as that comes with Tiger isn't capable of dealing with the
|
||||
@@ -71,27 +66,43 @@ class Gcc < Formula
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
|
||||
patch :DATA
|
||||
|
||||
# Fix an Intel-only build failure on 10.4
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64184
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/mistydemeo/9c5b8dadd892ba3197a9cb431295cc83/raw/582d1ba135511272f7262f51a3f83c9099cd891d/sysdep-unix-tiger-intel.patch"
|
||||
sha256 "17afaf7daec1dd207cb8d06a7e026332637b11e83c3ad552b4cd32827f16c1d8"
|
||||
end
|
||||
|
||||
# This patch fixes the build on PPC
|
||||
# https://gcc.gnu.org/ml/gcc-testresults/2017-01/msg02971.html
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80865
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/mistydemeo/d35fcc040587cc75bd24d3464e93a45d/raw/c5fe1f0c6393526ff45803b0fc14e028149a245e/gcc_altivec.patch"
|
||||
sha256 "09a795d013ec3e96107bfb9d5c6bba821cc867b88c3bce494ae1564bfd4ababd"
|
||||
end
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
if Hardware::CPU.family == :g3 || ARGV.bottle_arch == :g3
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL"
|
||||
end
|
||||
|
||||
if MacOS.version < :leopard
|
||||
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
|
||||
end
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 adds go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ objc obj-c++ fortran java jit]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
# We avoiding building:
|
||||
# - Ada, which requires a pre-existing GCC Ada compiler to bootstrap
|
||||
# - Go, currently not supported on macOS
|
||||
# - BRIG
|
||||
languages = %w[c c++ objc obj-c++ fortran]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
languages << "jit" if build.with? "jit"
|
||||
end
|
||||
# JIT compiler is off by default, enabling it has performance cost
|
||||
languages << "jit" if build.with? "jit"
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
@@ -105,21 +116,14 @@ class Gcc < Formula
|
||||
"--with-mpc=#{Formula["libmpc"].opt_prefix}",
|
||||
"--with-isl=#{Formula["isl"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# Use 'bootstrap-debug' build configuration to force stripping of object
|
||||
# files prior to comparison during bootstrap (broken by Xcode 6.3).
|
||||
"--with-build-config=bootstrap-debug",
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Tigerbrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/mistydemeo/tigerbrew/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
args << "--enable-plugin" if MacOS.version > :leopard
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
@@ -127,17 +131,13 @@ class Gcc < Formula
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_share}/java/ecj.jar"
|
||||
end
|
||||
|
||||
if build.without?("multilib") || !MacOS.prefer_64_bit?
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
args << "--enable-host-shared" if build.with?("jit") || build.with?("all-languages")
|
||||
args << "--enable-host-shared" if build.with?("jit")
|
||||
|
||||
# Ensure correct install names when linking against libgcc_s;
|
||||
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
|
||||
@@ -152,12 +152,10 @@ class Gcc < Formula
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
system "make", "bootstrap"
|
||||
system "make"
|
||||
system "make", "install"
|
||||
|
||||
if build.with?("fortran") || build.with?("all-languages")
|
||||
bin.install_symlink bin/"gfortran-#{version_suffix}" => "gfortran"
|
||||
end
|
||||
bin.install_symlink bin/"gfortran-#{version_suffix}" => "gfortran"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae and avoid interfering
|
||||
@@ -168,19 +166,6 @@ class Gcc < Formula
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. TODO fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/gcc/#{version_suffix}/logging.properties",
|
||||
"#{lib}/gcc/#{version_suffix}/security/classpath.security",
|
||||
"#{lib}/gcc/#{version_suffix}/i386/logging.properties",
|
||||
"#{lib}/gcc/#{version_suffix}/i386/security/classpath.security"
|
||||
]
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
@@ -223,23 +208,19 @@ class Gcc < Formula
|
||||
system "#{bin}/g++-#{version_suffix}", "-o", "hello-cc", "hello-cc.cc"
|
||||
assert_equal "Hello, world!\n", `./hello-cc`
|
||||
|
||||
if build.with?("fortran") || build.with?("all-languages")
|
||||
fixture = <<-EOS.undent
|
||||
integer,parameter::m=10000
|
||||
real::a(m), b(m)
|
||||
real::fact=0.5
|
||||
(testpath/"test.f90").write <<-EOS.undent
|
||||
integer,parameter::m=10000
|
||||
real::a(m), b(m)
|
||||
real::fact=0.5
|
||||
|
||||
do concurrent (i=1:m)
|
||||
a(i) = a(i) + fact*b(i)
|
||||
end do
|
||||
print *, "done"
|
||||
end
|
||||
EOS
|
||||
(testpath/"in.f90").write(fixture)
|
||||
system "#{bin}/gfortran", "-c", "in.f90"
|
||||
system "#{bin}/gfortran", "-o", "test", "in.o"
|
||||
assert_equal "done", `./test`.strip
|
||||
end
|
||||
do concurrent (i=1:m)
|
||||
a(i) = a(i) + fact*b(i)
|
||||
end do
|
||||
write(*,"(A)") "Done"
|
||||
end
|
||||
EOS
|
||||
system "#{bin}/gfortran", "-o", "test", "test.f90"
|
||||
assert_equal "Done\n", `./test`
|
||||
end
|
||||
end
|
||||
__END__
|
||||
|
||||
@@ -0,0 +1,200 @@
|
||||
class Gcc44 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "GNU compiler collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.4.7/gcc-4.4.7.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.4.7/gcc-4.4.7.tar.bz2"
|
||||
sha256 "5ff75116b8f763fa0fb5621af80fc6fb3ea0f1b1a57520874982f03f26cd607f"
|
||||
|
||||
bottle do
|
||||
sha256 "361c84608ef1ddaca2f9a3996aeface6bb08f4525388c563a09b8f20fcd40386" => :mavericks
|
||||
sha256 "c5a7a27d0bfc30a3e6ecce048c786cefa7e3bb4038ad6ea3fdeeb3c6e6454bd1" => :mountain_lion
|
||||
end
|
||||
|
||||
option "with-fortran", "Build the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
|
||||
deprecated_option "enable-fortran" => "with-fortran"
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "mpfr2"
|
||||
depends_on "ppl011"
|
||||
depends_on "cloog-ppl015"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
depends_on MaximumMacOSRequirement => :mavericks
|
||||
|
||||
# Fix libffi for ppc, from MacPorts
|
||||
patch :p0 do
|
||||
url "https://trac.macports.org/export/110576/trunk/dports/lang/gcc44/files/ppc_fde_encoding.diff"
|
||||
sha256 "9c5f6fd30d089e97e0364af322272bb06f3d107f357d2b621503ebfbbb4a5af7"
|
||||
end
|
||||
|
||||
# Handle OS X deployment targets correctly (GCC PR target/63810 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
|
||||
patch :p0 do
|
||||
url "https://trac.macports.org/export/129382/trunk/dports/lang/gcc44/files/macosx-version-min.patch"
|
||||
sha256 "9083143d2c60fbd89d33354710381590da770973746dd6849e18835f449510bc"
|
||||
end
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--mandir=#{man}",
|
||||
"--infodir=#{info}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-ppl=#{Formula["ppl011"].opt_prefix}",
|
||||
"--disable-ppl-version-check",
|
||||
"--with-cloog=#{Formula["cloog-ppl015"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
# This ensures lib, libexec, include are sandboxed so that they
|
||||
# don't wander around telling little children there is no Santa
|
||||
# Claus.
|
||||
"--enable-version-specific-runtime-libs",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
# Multilib building is broken in GCC 4.4 on Darwin
|
||||
"--disable-multilib",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu formula must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
# Remove libffi stuff, which is not needed after GCC is built.
|
||||
Dir.glob(prefix/"**/libffi.*") { |file| File.delete file }
|
||||
# Rename libiberty.a.
|
||||
Dir.glob(prefix/"**/libiberty.*") { |file| add_suffix file, version_suffix }
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/logging.properties",
|
||||
"#{lib}/security/classpath.security",
|
||||
"#{lib}/i386/logging.properties",
|
||||
"#{lib}/i386/security/classpath.security",
|
||||
]
|
||||
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.4", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,226 @@
|
||||
class Gcc45 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "GNU compiler collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.5.4/gcc-4.5.4.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.5.4/gcc-4.5.4.tar.bz2"
|
||||
sha256 "eef3f0456db8c3d992cbb51d5d32558190bc14f3bc19383dd93acc27acc6befc"
|
||||
|
||||
bottle do
|
||||
sha256 "16c2a3e56e2da8ec6b38b36c54112d7c56bc05f71168fb867f586cb190c5fef7" => :yosemite
|
||||
sha256 "51b73412c9628a593e765105a098ed1500b04574145391f3f93972e54d5b1b05" => :mavericks
|
||||
sha256 "06806e0a4aa703b0cacb4a3e10b4c8738d3d97535c6dd52796ec5a85eee0638d" => :mountain_lion
|
||||
end
|
||||
|
||||
option "with-fortran", "Build the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
deprecated_option "enable-fortran" => "with-fortran"
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
deprecated_option "disable-multilib" => "without-multilib"
|
||||
|
||||
# with system ld on Tiger, build fails with countless messages of:
|
||||
# "relocation overflow for relocation entry"
|
||||
depends_on :ld64
|
||||
depends_on "gmp4"
|
||||
depends_on "libmpc08"
|
||||
depends_on "mpfr2"
|
||||
depends_on "ppl011"
|
||||
depends_on "cloog-ppl015"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
# If someone wants to try and fix this, feel free to file a PR. Thanks!
|
||||
# https://github.com/Homebrew/homebrew-versions/issues/1093
|
||||
depends_on MaximumMacOSRequirement => :yosemite
|
||||
|
||||
# Fix libffi for ppc, from MacPorts
|
||||
patch :p0 do
|
||||
url "https://trac.macports.org/export/110576/trunk/dports/lang/gcc45/files/ppc_fde_encoding.diff"
|
||||
sha256 "9c5f6fd30d089e97e0364af322272bb06f3d107f357d2b621503ebfbbb4a5af7"
|
||||
end
|
||||
|
||||
# Handle OS X deployment targets correctly (GCC PR target/63810 <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63810>).
|
||||
patch :p0 do
|
||||
url "https://trac.macports.org/export/129382/trunk/dports/lang/gcc45/files/macosx-version-min.patch"
|
||||
sha256 "9083143d2c60fbd89d33354710381590da770973746dd6849e18835f449510bc"
|
||||
end
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc08"].opt_prefix}",
|
||||
"--with-ppl=#{Formula["ppl011"].opt_prefix}",
|
||||
"--with-cloog=#{Formula["cloog-ppl015"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
# This ensures lib, libexec, include are sandboxed so that they
|
||||
# don't wander around telling little children there is no Santa
|
||||
# Claus.
|
||||
"--enable-version-specific-runtime-libs",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
# GCC 4.5 does not properly support LTO on Darwin.
|
||||
"--disable-lto",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger && Hardware.cpu_type == :intel
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu formula must be installed in order to do this.
|
||||
system "make", "install"
|
||||
|
||||
# `make install` neglects to transfer an essential plugin header file.
|
||||
Pathname.new(Dir[prefix.join "**", "plugin", "include", "config"].first).install "../gcc/config/darwin-sections.def" if MacOS.version > :tiger && Hardware.cpu_type == :intel
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
# Remove libffi stuff, which is not needed after GCC is built.
|
||||
Dir.glob(prefix/"**/libffi.*") { |file| File.delete file }
|
||||
# Rename libiberty.a.
|
||||
Dir.glob(prefix/"**/libiberty.*") { |file| add_suffix file, version_suffix }
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/logging.properties",
|
||||
"#{lib}/security/classpath.security",
|
||||
"#{lib}/i386/logging.properties",
|
||||
"#{lib}/i386/security/classpath.security",
|
||||
]
|
||||
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.5", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,219 @@
|
||||
class Gcc46 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "GNU compiler collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.6.4/gcc-4.6.4.tar.bz2"
|
||||
sha256 "35af16afa0b67af9b8eb15cafb76d2bc5f568540552522f5dc2c88dd45d977e8"
|
||||
|
||||
bottle do
|
||||
sha256 "23cb970d350f9096b17ad0a04c875d0c54ee71a0f22709e72bcf34e100412dfc" => :yosemite
|
||||
sha256 "51a8a0efb2868c517258d2a504c45217fed8a10631ba724da437adb39064a632" => :mavericks
|
||||
sha256 "8033c9313bf08a7bc825aca65c884027a877052b77418d9fcf1006dd27ac2287" => :mountain_lion
|
||||
end
|
||||
|
||||
if MacOS.version >= :el_capitan
|
||||
# Fixes build with Xcode 7.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66523
|
||||
patch do
|
||||
url "https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773"
|
||||
sha256 "db4966ade190fff4ed39976be8d13e84839098711713eff1d08920d37a58f5ec"
|
||||
end
|
||||
end
|
||||
|
||||
option "with-fortran", "Build the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
deprecated_option "enable-fortran" => "with-fortran"
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
deprecated_option "disable-multilib" => "without-multilib"
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "libmpc08"
|
||||
depends_on "mpfr2"
|
||||
depends_on "ppl011"
|
||||
depends_on "cloog-ppl015"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
# Fix 10.10 issues: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=215251
|
||||
patch :p0 do
|
||||
url "https://trac.macports.org/export/126996/trunk/dports/lang/gcc48/files/patch-10.10.diff"
|
||||
sha256 "61e5d0f18db59220cbd99717e9b644c1d0f3502b09ada746b60850cacda07328"
|
||||
end
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc08"].opt_prefix}",
|
||||
"--with-ppl=#{Formula["ppl011"].opt_prefix}",
|
||||
"--with-cloog=#{Formula["cloog-ppl015"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
# This ensures lib, libexec, include are sandboxed so that they
|
||||
# don't wander around telling little children there is no Santa
|
||||
# Claus.
|
||||
"--enable-version-specific-runtime-libs",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
# Remove libffi stuff, which is not needed after GCC is built.
|
||||
Dir.glob(prefix/"**/libffi.*") { |file| File.delete file }
|
||||
# Rename libiberty.a.
|
||||
Dir.glob(prefix/"**/libiberty.*") { |file| add_suffix file, version_suffix }
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/logging.properties",
|
||||
"#{lib}/security/classpath.security",
|
||||
"#{lib}/i386/logging.properties",
|
||||
"#{lib}/i386/security/classpath.security",
|
||||
]
|
||||
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.6", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,225 @@
|
||||
class Gcc47 < Formula
|
||||
desc "GNU compiler collection"
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.7.4/gcc-4.7.4.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.7.4/gcc-4.7.4.tar.bz2"
|
||||
sha256 "92e61c6dc3a0a449e62d72a38185fda550168a86702dea07125ebd3ec3996282"
|
||||
|
||||
head "svn://gcc.gnu.org/svn/gcc/branches/gcc-4_7-branch"
|
||||
|
||||
bottle do
|
||||
sha256 "de527788a6fedea2173e340fee47324478e8956ef31868d376c7ac561a8f2952" => :yosemite
|
||||
sha256 "b418cec1d503d859e99cb13928a2df8434a9037524f898fe095ea35f615d87f2" => :mavericks
|
||||
sha256 "fe211028f9a219f48d127bc946d5f7046b7b6e7f792fd4cd63c1deb393484db3" => :mountain_lion
|
||||
end
|
||||
|
||||
if MacOS.version >= :el_capitan
|
||||
# Fixes build with Xcode 7.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66523
|
||||
patch do
|
||||
url "https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773"
|
||||
sha256 "db4966ade190fff4ed39976be8d13e84839098711713eff1d08920d37a58f5ec"
|
||||
end
|
||||
end
|
||||
|
||||
option "with-fortran", "Build the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
deprecated_option "enable-fortran" => "with-fortran"
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
deprecated_option "disable-multilib" => "without-multilib"
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "libmpc08"
|
||||
depends_on "mpfr2"
|
||||
depends_on "ppl011"
|
||||
depends_on "cloog-ppl015"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
# The as that comes with Tiger isn't capable of dealing with the
|
||||
# PPC asm that comes in libitm
|
||||
depends_on "cctools" => :build if MacOS.version < :leopard
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
# Fix 10.10 issues: https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=215251
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/7293b7d3/gcc47/patch-10.10.diff"
|
||||
sha256 "61e5d0f18db59220cbd99717e9b644c1d0f3502b09ada746b60850cacda07328"
|
||||
end
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc08"].opt_prefix}",
|
||||
"--with-ppl=#{Formula["ppl011"].opt_prefix}",
|
||||
"--with-cloog=#{Formula["cloog-ppl015"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
# This ensures lib, libexec, include are sandboxed so that they
|
||||
# don't wander around telling little children there is no Santa
|
||||
# Claus.
|
||||
"--enable-version-specific-runtime-libs",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
# Remove libffi stuff, which is not needed after GCC is built.
|
||||
Dir.glob(prefix/"**/libffi.*") { |file| File.delete file }
|
||||
# Rename libiberty.a.
|
||||
Dir.glob(prefix/"**/libiberty.*") { |file| add_suffix file, version_suffix }
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/logging.properties",
|
||||
"#{lib}/security/classpath.security",
|
||||
"#{lib}/i386/logging.properties",
|
||||
"#{lib}/i386/security/classpath.security",
|
||||
]
|
||||
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.7", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,236 @@
|
||||
class Gcc48 < Formula
|
||||
desc "GNU compiler collection"
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.8.5/gcc-4.8.5.tar.bz2"
|
||||
sha256 "22fb1e7e0f68a63cee631d85b20461d1ea6bda162f03096350e38c8d427ecf23"
|
||||
|
||||
head "svn://gcc.gnu.org/svn/gcc/branches/gcc-4_8-branch"
|
||||
|
||||
bottle do
|
||||
rebuild 1
|
||||
sha256 "8cf53c3b1f03049538b9f78ea1ffe7ebf21fcc99a3b4147e4ede8defefc4cef4" => :el_capitan
|
||||
sha256 "ae30faa242deae02d46bc92a318e0f0b8f6f0754521fec2225c2fb0403022e31" => :yosemite
|
||||
sha256 "0bc974cb0c23ed4ca3536eb2b5e7f11e692a5e6246d99b82ad74880685f42736" => :mavericks
|
||||
end
|
||||
|
||||
if MacOS.version >= :yosemite
|
||||
# Fixes build on El Capitan
|
||||
# https://trac.macports.org/ticket/48471
|
||||
patch :p0 do
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/dcfc5a2e6/gcc48/define_non_standard_clang_macros.patch"
|
||||
sha256 "e727383c9186fdc36f804c69ad550f5cfd2b996e37083be94c0c9aa8fde226ee"
|
||||
end
|
||||
# Fixes build with Xcode 7.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66523
|
||||
patch do
|
||||
url "https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773"
|
||||
sha256 "db4966ade190fff4ed39976be8d13e84839098711713eff1d08920d37a58f5ec"
|
||||
end
|
||||
end
|
||||
|
||||
option "without-fortran", "Build without the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
deprecated_option "disable-multilib" => "without-multilib"
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "libmpc08"
|
||||
depends_on "mpfr2"
|
||||
depends_on "cloog018"
|
||||
depends_on "isl011"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
# The as that comes with Tiger isn't capable of dealing with the
|
||||
# PPC asm that comes in libitm
|
||||
depends_on "cctools" => :build if MacOS.version < :leopard
|
||||
|
||||
fails_with :gcc_4_0
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if MacOS.version < :leopard
|
||||
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
|
||||
end
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--libdir=#{lib}/gcc/#{version_suffix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc08"].opt_prefix}",
|
||||
"--with-cloog=#{Formula["cloog018"].opt_prefix}",
|
||||
"--with-isl=#{Formula["isl011"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# Use 'bootstrap-debug' build configuration to force stripping of object
|
||||
# files prior to comparison during bootstrap (broken by Xcode 6.3).
|
||||
# This causes bottle errors for gcc48 on Mountain Lion, so scope it to 10.10.
|
||||
args << "--with-build-config=bootstrap-debug" if MacOS.version >= :yosemite
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
# Ensure correct install names when linking against libgcc_s;
|
||||
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
|
||||
inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-header"s will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae
|
||||
# Since GCC 4.8 libffi stuff are no longer shipped.
|
||||
# Rename libiberty.a.
|
||||
Dir.glob(prefix/"**/libiberty.*") { |file| add_suffix file, version_suffix }
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
|
||||
# Rename java properties
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
config_files = [
|
||||
"#{lib}/logging.properties",
|
||||
"#{lib}/security/classpath.security",
|
||||
"#{lib}/i386/logging.properties",
|
||||
"#{lib}/i386/security/classpath.security",
|
||||
]
|
||||
|
||||
config_files.each do |file|
|
||||
add_suffix file, version_suffix if File.exist? file
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.8", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,209 @@
|
||||
class Gcc49 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "The GNU Compiler Collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-4.9.3/gcc-4.9.3.tar.bz2"
|
||||
sha256 "2332b2a5a321b57508b9031354a8503af6fdfb868b8c1748d33028d100a8b67e"
|
||||
|
||||
head "svn://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch"
|
||||
|
||||
bottle do
|
||||
rebuild 3
|
||||
sha256 "0acf2b010e3c2210fcb5fdc03de9dc14f0556cf5295347d8f72f2d8d1cfab4ff" => :el_capitan
|
||||
sha256 "5b635a24e9f7464fb94d2933b00a8d1b1cfc0efb1de140fe568e313d24965140" => :yosemite
|
||||
sha256 "dc24f86a9652fbb0ec0bc9dd0103d23bb68c315bd490ee5d0b10a7144453ecc4" => :mavericks
|
||||
end
|
||||
|
||||
if MacOS.version >= :yosemite
|
||||
# Fixes build with Xcode 7.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66523
|
||||
patch do
|
||||
url "https://gcc.gnu.org/bugzilla/attachment.cgi?id=35773"
|
||||
sha256 "db4966ade190fff4ed39976be8d13e84839098711713eff1d08920d37a58f5ec"
|
||||
end
|
||||
# Fixes assembler generation with XCode 7
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66509
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/tdsmith/d248e025029add31e7aa/raw/444e292786df41346a3a1cc6267bba587408a007/gcc.diff"
|
||||
sha256 "636b65a160ccb7417cc4ffc263fc815382f8bb895e32262205cd10d65ea7804a"
|
||||
end
|
||||
end
|
||||
|
||||
option "without-fortran", "Build without the gfortran compiler"
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
# enabling multilib on a host that can't run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
deprecated_option "enable-java" => "with-java"
|
||||
deprecated_option "enable-all-languages" => "with-all-languages"
|
||||
deprecated_option "enable-nls" => "with-nls"
|
||||
deprecated_option "enable-profiled-build" => "with-profiled-build"
|
||||
deprecated_option "disable-multilib" => "without-multilib"
|
||||
|
||||
depends_on "gmp4"
|
||||
depends_on "libmpc08"
|
||||
depends_on "mpfr2"
|
||||
depends_on "cloog018"
|
||||
depends_on "isl011"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d\.\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--libdir=#{lib}/gcc/#{version_suffix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp4"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr2"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc08"].opt_prefix}",
|
||||
"--with-cloog=#{Formula["cloog018"].opt_prefix}",
|
||||
"--with-isl=#{Formula["isl011"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# Use 'bootstrap-debug' build configuration to force stripping of object
|
||||
# files prior to comparison during bootstrap (broken by Xcode 6.3).
|
||||
"--with-build-config=bootstrap-debug",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_prefix}/share/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
# Ensure correct install names when linking against libgcc_s;
|
||||
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
|
||||
inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
# Since GCC 4.8 libffi stuff are no longer shipped.
|
||||
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. Fix this.
|
||||
info.rmtree
|
||||
# Since GCC 4.9 java properties are properly sandboxed.
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-4.9", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,214 @@
|
||||
class Gcc5 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "The GNU Compiler Collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.bz2"
|
||||
sha256 "608df76dec2d34de6558249d8af4cbee21eceddbcb580d666f7a5a583ca3303a"
|
||||
|
||||
bottle do
|
||||
sha256 "834b511f2f460db483e8126b446bb0a7fc7e2d7ee16bb53d6c4ec51910ce89be" => :el_capitan
|
||||
sha256 "b44fcce2f25919f93d33fe9482c1f9cc1068e3332f6890340853c32007c0113b" => :yosemite
|
||||
sha256 "7b4970b4c2c86558208476c3e281f242be4f6bfe7c1fa8391e52b9829ef4ba78" => :mavericks
|
||||
end
|
||||
|
||||
# GCC's Go compiler is not currently supported on Mac OS X.
|
||||
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
option "with-jit", "Build the jit compiler"
|
||||
option "without-fortran", "Build without the gfortran compiler"
|
||||
# enabling multilib on a host that can"t run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
depends_on "gmp"
|
||||
depends_on "libmpc"
|
||||
depends_on "mpfr"
|
||||
depends_on "isl014"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
if MacOS.version < :leopard
|
||||
# The as that comes with Tiger isn't capable of dealing with the
|
||||
# PPC asm that comes in libitm
|
||||
depends_on "cctools" => :build
|
||||
end
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
# Fix for libgccjit.so linkage on Darwin.
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if MacOS.version < :leopard
|
||||
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
|
||||
end
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++ jit]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
languages << "jit" if build.with? "jit"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--libdir=#{lib}/gcc/#{version_suffix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc"].opt_prefix}",
|
||||
"--with-isl=#{Formula["isl014"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :tiger
|
||||
|
||||
# Otherwise make fails during comparison at stage 3
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version < :leopard
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_share}/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
args << "--enable-host-shared" if build.with?("jit") || build.with?("all-languages")
|
||||
|
||||
# Ensure correct install names when linking against libgcc_s;
|
||||
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
|
||||
inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
|
||||
# Since GCC 4.8 libffi stuff are no longer shipped.
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. fix this.
|
||||
info.rmtree
|
||||
# Since GCC 4.9 java properties are properly sandboxed.
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-5", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
--- a/gcc/jit/Make-lang.in 2015-02-03 17:19:58.000000000 +0000
|
||||
+++ b/gcc/jit/Make-lang.in 2015-04-08 22:08:24.000000000 +0100
|
||||
@@ -85,8 +85,7 @@
|
||||
$(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \
|
||||
$(CPPLIB) $(LIBDECNUMBER) $(LIBS) $(BACKENDLIBS) \
|
||||
$(EXTRA_GCC_OBJS) \
|
||||
- -Wl,--version-script=$(srcdir)/jit/libgccjit.map \
|
||||
- -Wl,-soname,$(LIBGCCJIT_SONAME)
|
||||
+ -Wl,-install_name,$(LIBGCCJIT_SONAME)
|
||||
|
||||
$(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME)
|
||||
ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK)
|
||||
@@ -0,0 +1,218 @@
|
||||
class Gcc6 < Formula
|
||||
def arch
|
||||
if Hardware::CPU.type == :intel
|
||||
if MacOS.prefer_64_bit?
|
||||
"x86_64"
|
||||
else
|
||||
"i686"
|
||||
end
|
||||
elsif Hardware::CPU.type == :ppc
|
||||
if MacOS.prefer_64_bit?
|
||||
"powerpc64"
|
||||
else
|
||||
"powerpc"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def osmajor
|
||||
`uname -r`.chomp
|
||||
end
|
||||
|
||||
desc "The GNU Compiler Collection"
|
||||
homepage "https://gcc.gnu.org"
|
||||
url "https://ftpmirror.gnu.org/gcc/gcc-6.2.0/gcc-6.2.0.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gcc/gcc-6.2.0/gcc-6.2.0.tar.bz2"
|
||||
sha256 "9944589fc722d3e66308c0ce5257788ebd7872982a718aa2516123940671b7c5"
|
||||
|
||||
bottle do
|
||||
sha256 "c30c0898b73794434af820725d3b69d4f26e58357c6d2867028527ce31273b58" => :sierra
|
||||
sha256 "b3b138b29d6705f85bf3d558795bd901c53929ac7935879ff4b7778f7f7b84c7" => :el_capitan
|
||||
sha256 "0ffe5b97c65df653ea664514880fd72c01cf516b1409655a8c03e48a42275050" => :yosemite
|
||||
end
|
||||
|
||||
# GCC's Go compiler is not currently supported on Mac OS X.
|
||||
# See: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=46986
|
||||
option "with-java", "Build the gcj compiler"
|
||||
option "with-all-languages", "Enable all compilers and languages, except Ada"
|
||||
option "with-nls", "Build with native language support (localization)"
|
||||
option "with-profiled-build", "Make use of profile guided optimization when bootstrapping GCC"
|
||||
option "with-jit", "Build the jit compiler"
|
||||
option "without-fortran", "Build without the gfortran compiler"
|
||||
# enabling multilib on a host that can"t run 64-bit results in build failures
|
||||
option "without-multilib", "Build without multilib support" if MacOS.prefer_64_bit?
|
||||
|
||||
depends_on "gmp"
|
||||
depends_on "libmpc"
|
||||
depends_on "mpfr"
|
||||
depends_on "isl014"
|
||||
depends_on "ecj" if build.with?("java") || build.with?("all-languages")
|
||||
|
||||
if MacOS.version < :leopard
|
||||
# The as that comes with Tiger isn't capable of dealing with the
|
||||
# PPC asm that comes in libitm
|
||||
depends_on "cctools" => :build
|
||||
end
|
||||
|
||||
# The bottles are built on systems with the CLT installed, and do not work
|
||||
# out of the box on Xcode-only systems due to an incorrect sysroot.
|
||||
def pour_bottle?
|
||||
MacOS::CLT.installed?
|
||||
end
|
||||
|
||||
# GCC bootstraps itself, so it is OK to have an incompatible C++ stdlib
|
||||
cxxstdlib_check :skip
|
||||
|
||||
# Fix for libgccjit.so linkage on Darwin
|
||||
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64089
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
# GCC will suffer build errors if forced to use a particular linker.
|
||||
ENV.delete "LD"
|
||||
|
||||
# Otherwise libstdc++ will be incorrectly tagged with cpusubtype 10 (G4e)
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/538
|
||||
ENV.append_to_cflags "-force_cpusubtype_ALL" if Hardware::CPU.family == :g3
|
||||
|
||||
if MacOS.version < :leopard
|
||||
ENV["AS"] = ENV["AS_FOR_TARGET"] = "#{Formula["cctools"].bin}/as"
|
||||
end
|
||||
|
||||
if build.with? "all-languages"
|
||||
# Everything but Ada, which requires a pre-existing GCC Ada compiler
|
||||
# (gnat) to bootstrap. GCC 4.6.0 add go as a language option, but it is
|
||||
# currently only compilable on Linux.
|
||||
languages = %w[c c++ fortran java objc obj-c++ jit]
|
||||
else
|
||||
# C, C++, ObjC compilers are always built
|
||||
languages = %w[c c++ objc obj-c++]
|
||||
|
||||
languages << "fortran" if build.with? "fortran"
|
||||
languages << "java" if build.with? "java"
|
||||
languages << "jit" if build.with? "jit"
|
||||
end
|
||||
|
||||
version_suffix = version.to_s.slice(/\d/)
|
||||
|
||||
args = [
|
||||
"--build=#{arch}-apple-darwin#{osmajor}",
|
||||
"--prefix=#{prefix}",
|
||||
"--libdir=#{lib}/gcc/#{version_suffix}",
|
||||
"--enable-languages=#{languages.join(",")}",
|
||||
# Make most executables versioned to avoid conflicts.
|
||||
"--program-suffix=-#{version_suffix}",
|
||||
"--with-gmp=#{Formula["gmp"].opt_prefix}",
|
||||
"--with-mpfr=#{Formula["mpfr"].opt_prefix}",
|
||||
"--with-mpc=#{Formula["libmpc"].opt_prefix}",
|
||||
"--with-isl=#{Formula["isl014"].opt_prefix}",
|
||||
"--with-system-zlib",
|
||||
"--enable-libstdcxx-time=yes",
|
||||
"--enable-stage1-checking",
|
||||
"--enable-checking=release",
|
||||
"--enable-lto",
|
||||
# Use 'bootstrap-debug' build configuration to force stripping of object
|
||||
# files prior to comparison during bootstrap (broken by Xcode 6.3).
|
||||
"--with-build-config=bootstrap-debug",
|
||||
# A no-op unless --HEAD is built because in head warnings will
|
||||
# raise errors. But still a good idea to include.
|
||||
"--disable-werror",
|
||||
"--with-pkgversion=Homebrew #{name} #{pkg_version} #{build.used_options*" "}".strip,
|
||||
"--with-bugurl=https://github.com/Homebrew/homebrew-versions/issues",
|
||||
]
|
||||
|
||||
# "Building GCC with plugin support requires a host that supports
|
||||
# -fPIC, -shared, -ldl and -rdynamic."
|
||||
args << "--enable-plugin" if MacOS.version > :leopard
|
||||
|
||||
# The pre-Mavericks toolchain requires the older DWARF-2 debugging data
|
||||
# format to avoid failure during the stage 3 comparison of object files.
|
||||
# See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45248
|
||||
args << "--with-dwarf2" if MacOS.version <= :mountain_lion
|
||||
|
||||
args << "--disable-nls" if build.without? "nls"
|
||||
|
||||
if build.with?("java") || build.with?("all-languages")
|
||||
args << "--with-ecj-jar=#{Formula["ecj"].opt_share}/java/ecj.jar"
|
||||
end
|
||||
|
||||
if !MacOS.prefer_64_bit? || build.without?("multilib")
|
||||
args << "--disable-multilib"
|
||||
else
|
||||
args << "--enable-multilib"
|
||||
end
|
||||
|
||||
args << "--enable-host-shared" if build.with?("jit") || build.with?("all-languages")
|
||||
|
||||
# Ensure correct install names when linking against libgcc_s;
|
||||
# see discussion in https://github.com/Homebrew/homebrew/pull/34303
|
||||
inreplace "libgcc/config/t-slibgcc-darwin", "@shlib_slibdir@", "#{HOMEBREW_PREFIX}/lib/gcc/#{version_suffix}"
|
||||
|
||||
mkdir "build" do
|
||||
unless MacOS::CLT.installed?
|
||||
# For Xcode-only systems, we need to tell the sysroot path.
|
||||
# "native-system-headers" will be appended
|
||||
args << "--with-native-system-header-dir=/usr/include"
|
||||
args << "--with-sysroot=#{MacOS.sdk_path}"
|
||||
end
|
||||
|
||||
system "../configure", *args
|
||||
|
||||
if build.with? "profiled-build"
|
||||
# Takes longer to build, may bug out. Provided for those who want to
|
||||
# optimise all the way to 11.
|
||||
system "make", "profiledbootstrap"
|
||||
else
|
||||
system "make", "bootstrap"
|
||||
end
|
||||
|
||||
# At this point `make check` could be invoked to run the testsuite. The
|
||||
# deja-gnu and autogen formulae must be installed in order to do this.
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
# Handle conflicts between GCC formulae.
|
||||
|
||||
# Since GCC 4.8 libffi stuff are no longer shipped.
|
||||
# Rename man7.
|
||||
Dir.glob(man7/"*.7") { |file| add_suffix file, version_suffix }
|
||||
# Even when suffixes are appended, the info pages conflict when
|
||||
# install-info is run. fix this.
|
||||
info.rmtree
|
||||
# Since GCC 4.9 java properties are properly sandboxed.
|
||||
end
|
||||
|
||||
def add_suffix(file, suffix)
|
||||
dir = File.dirname(file)
|
||||
ext = File.extname(file)
|
||||
base = File.basename(file, ext)
|
||||
File.rename file, "#{dir}/#{base}-#{suffix}#{ext}"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"hello-c.c").write <<-EOS.undent
|
||||
#include <stdio.h>
|
||||
int main()
|
||||
{
|
||||
puts("Hello, world!");
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system bin/"gcc-6", "-o", "hello-c", "hello-c.c"
|
||||
assert_equal "Hello, world!\n", `./hello-c`
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
--- a/gcc/jit/Make-lang.in 2015-02-03 17:19:58.000000000 +0000
|
||||
+++ b/gcc/jit/Make-lang.in 2015-04-08 22:08:24.000000000 +0100
|
||||
@@ -85,8 +85,7 @@
|
||||
$(jit_OBJS) libbackend.a libcommon-target.a libcommon.a \
|
||||
$(CPPLIB) $(LIBDECNUMBER) $(LIBS) $(BACKENDLIBS) \
|
||||
$(EXTRA_GCC_OBJS) \
|
||||
- -Wl,--version-script=$(srcdir)/jit/libgccjit.map \
|
||||
- -Wl,-soname,$(LIBGCCJIT_SONAME)
|
||||
+ -Wl,-install_name,$(LIBGCCJIT_SONAME)
|
||||
|
||||
$(LIBGCCJIT_SONAME_SYMLINK): $(LIBGCCJIT_FILENAME)
|
||||
ln -sf $(LIBGCCJIT_FILENAME) $(LIBGCCJIT_SONAME_SYMLINK)
|
||||
@@ -1,15 +1,14 @@
|
||||
class Geographiclib < Formula
|
||||
desc "C++ geography library"
|
||||
homepage "http://geographiclib.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.44.tar.gz"
|
||||
sha256 "f0423318fb30959632f403935827e06856737cf4621695ecc27fa9c251db9d37"
|
||||
url "https://downloads.sourceforge.net/project/geographiclib/distrib/GeographicLib-1.45.tar.gz"
|
||||
sha256 "fbcd9fc9b10de0830f5cb57665dc675ae61f81b370873bb4b95540d569410dae"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "bac30c5ed336263cc2c702a4f215b46737b2a65db963de9389dc76bc5fe7a6e1" => :el_capitan
|
||||
sha256 "5835892b418d17e5c082d0386fc76a3507740f5350e16d6b1b454258e236ace2" => :yosemite
|
||||
sha256 "4d3396d27b6d87046dcb278a97e3be642617f48907dd3f64176e8638623c05cd" => :mavericks
|
||||
sha256 "c6024ea22fbb2dc922cf12e8d7b56a62ce19de4c624c76f8636e52026a5c066e" => :mountain_lion
|
||||
sha256 "f75da04b7eac8e50a1fdd175ff6daadb6aecb3ae85751bec836ee83d766e03f8" => :el_capitan
|
||||
sha256 "cbcf90ea69d31a765d8ecaeeb882de08f20c4248e446338a8d6dda01317d7ecb" => :yosemite
|
||||
sha256 "9abce610d57e2afae2b91cf7cf23496a01c0a613142167c14fce33a429804380" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "cmake" => :build
|
||||
@@ -22,6 +21,6 @@ class Geographiclib < Formula
|
||||
end
|
||||
|
||||
test do
|
||||
system "GeoConvert", "-p", "-3", "-m", "--input-string", "33.3 44.4"
|
||||
system bin/"GeoConvert", "-p", "-3", "-m", "--input-string", "33.3 44.4"
|
||||
end
|
||||
end
|
||||
@@ -1,14 +1,15 @@
|
||||
class Gettext < Formula
|
||||
desc "GNU internationalization (i18n) and localization (l10n) library"
|
||||
homepage "https://www.gnu.org/software/gettext/"
|
||||
url "http://ftpmirror.gnu.org/gettext/gettext-0.19.6.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/gettext/gettext-0.19.6.tar.xz"
|
||||
sha256 "9b95816620fd1168cb4eeca0e9dc0ffd86e864fc668f76f5e37cc054d6982e51"
|
||||
url "https://ftpmirror.gnu.org/gettext/gettext-0.19.8.1.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/gettext/gettext-0.19.8.1.tar.xz"
|
||||
sha256 "105556dbc5c3fbbc2aa0edb46d22d055748b6f5c7cd7a8d99f8e7eb84e938be4"
|
||||
|
||||
bottle do
|
||||
sha256 "41a26cf4db47c63a8d1b93092dc45bb56a832701d11838277221fd934af4ed8a" => :tiger_altivec
|
||||
sha256 "5c7b69d10f0a5e330285d1806d10ce85f0a8e01eb727ba92bcdb815d2e08f6ca" => :leopard_g3
|
||||
sha256 "522195faf5f9c5cbd80ecfb7e6f72653a248cc893be53a931c2949645f48f51b" => :leopard_altivec
|
||||
sha256 "8368522242c5fe33acd5c80b5f1321559da9efe20878da6e4b9507683a740c21" => :sierra
|
||||
sha256 "311475f36f3fd314ae0db4fb52e4ab769f62ded6c8c81678ad8295f41762e4ba" => :el_capitan
|
||||
sha256 "ca8fe572e7c8db00bb1bdfd66c379ba4a960927f4b829f47f9e2335c51dc7376" => :yosemite
|
||||
sha256 "e3091192716347fc54f6e8a8184d892feed5309672daa061a1407b071af80c05" => :mavericks
|
||||
end
|
||||
|
||||
keg_only :shadowed_by_osx, "OS X provides the BSD gettext library and some software gets confused if both are in the library path."
|
||||
@@ -16,14 +17,6 @@ class Gettext < Formula
|
||||
option :universal
|
||||
option 'with-examples', 'Keep example files'
|
||||
|
||||
def patches
|
||||
unless build.include? 'with-examples'
|
||||
# Use a MacPorts patch to disable building examples at all,
|
||||
# rather than build them and remove them afterwards.
|
||||
{:p0 => ['https://trac.macports.org/export/102008/trunk/dports/devel/gettext/files/patch-gettext-tools-Makefile.in']}
|
||||
end
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.libxml2
|
||||
ENV.universal_binary if build.universal?
|
||||
|
||||
@@ -5,7 +5,7 @@ class Ghi < Formula
|
||||
head "https://github.com/stephencelis/ghi.git"
|
||||
sha256 "1b58c7ec6e9339c44175808719694d7ee21cbd254d3a2e6d31a70d31027e9bea"
|
||||
|
||||
depends_on 'homebrew/dupes/less' if MacOS.version == :tiger
|
||||
depends_on "less" if MacOS.version == :tiger
|
||||
|
||||
def install
|
||||
bin.install "ghi"
|
||||
|
||||
@@ -3,17 +3,21 @@ class Ghostscript < Formula
|
||||
homepage "http://www.ghostscript.com/"
|
||||
|
||||
stable do
|
||||
url "http://downloads.ghostscript.com/public/ghostscript-9.16.tar.gz"
|
||||
sha256 "746d77280cca8afdd3d4c2c1389e332ed9b0605bd107bcaae1d761b061d1a68d"
|
||||
url "https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs919/ghostscript-9.19.tar.gz"
|
||||
sha256 "cf3c0dce67db1557a87366969945f9c5235887989c0b585e037af366dc035989"
|
||||
|
||||
patch :DATA # Uncomment OS X-specific make vars
|
||||
# http://djvu.sourceforge.net/gsdjvu.html
|
||||
# Can't get 1.8 to compile, but feel free to open PR if you can.
|
||||
resource "djvu" do
|
||||
url "https://downloads.sourceforge.net/project/djvu/GSDjVu/1.6/gsdjvu-1.6.tar.gz"
|
||||
sha256 "6236b14b79345eda87cce9ba22387e166e7614cca2ca86b1c6f0d611c26005df"
|
||||
end
|
||||
end
|
||||
|
||||
bottle do
|
||||
sha256 "3939157eb2567f35ee11a3e0bdc5f36658788c25f9e846b1c674b28603a40d4b" => :el_capitan
|
||||
sha256 "5bc3b9c563a5f1b35dff4089c426baeb913ec32c2d76f913e214b1a138ec97e4" => :yosemite
|
||||
sha256 "bc7d20827ad5fe991c3b05fdd23366907ecdd53a2ccba7653c897948700ef6fb" => :mavericks
|
||||
sha256 "b31197b17c3b3d500bbf9d7d9dc7f57046c46869be3f03ee4f41424987a52650" => :mountain_lion
|
||||
sha256 "eeca121b96926b72e10f2bc75be45a2739ce9b57eba5ebbc6eac945db01aa542" => :el_capitan
|
||||
sha256 "85459cef5b92ffb8ee30ab6af1a0649b2698716b4a9c23f12cf39f4435b3e542" => :yosemite
|
||||
sha256 "bbf4584ed19c2c38530c9b1e77c543370a77e441b759f519bb8b80fa9b41ebec" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
@@ -27,53 +31,24 @@ class Ghostscript < Formula
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
|
||||
# Uncomment OS X-specific make vars
|
||||
patch do
|
||||
url "https://gist.githubusercontent.com/jacknagel/9559501/raw/9709b3234cc888d29f717838650d29e7062da917/gs.patch"
|
||||
sha256 "b3c8903c00428f1a065ceda04e3377c3a110ec21bc149547615bc2166cde6163"
|
||||
end
|
||||
end
|
||||
|
||||
patch :DATA # Uncomment OS X-specific make vars
|
||||
|
||||
option "with-djvu", "Build drivers for DjVU file format"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "jpeg"
|
||||
depends_on "libtiff"
|
||||
depends_on "jbig2dec"
|
||||
depends_on "little-cms2"
|
||||
depends_on "libpng"
|
||||
depends_on :x11 => ["2.7.2", :optional]
|
||||
depends_on "djvulibre" if build.with? "djvu"
|
||||
depends_on "freetype"
|
||||
depends_on :x11 => :optional
|
||||
|
||||
conflicts_with "gambit-scheme", :because => "both install `gsc` binaries"
|
||||
|
||||
# http://sourceforge.net/projects/gs-fonts/
|
||||
# https://sourceforge.net/projects/gs-fonts/
|
||||
resource "fonts" do
|
||||
url "https://downloads.sourceforge.net/project/gs-fonts/gs-fonts/8.11%20%28base%2035%2C%20GPL%29/ghostscript-fonts-std-8.11.tar.gz"
|
||||
sha256 "0eb6f356119f2e49b2563210852e17f57f9dcc5755f350a69a46a0d641a0c401"
|
||||
end
|
||||
|
||||
# http://djvu.sourceforge.net/gsdjvu.html
|
||||
# Can't get 1.8 to compile, but feel free to open PR if you can.
|
||||
resource "djvu" do
|
||||
url "https://downloads.sourceforge.net/project/djvu/GSDjVu/1.6/gsdjvu-1.6.tar.gz"
|
||||
sha256 "6236b14b79345eda87cce9ba22387e166e7614cca2ca86b1c6f0d611c26005df"
|
||||
end
|
||||
|
||||
def move_included_source_copies
|
||||
# If the install version of any of these doesn't match
|
||||
# the version included in ghostscript, we get errors
|
||||
# Taken from the MacPorts portfile:
|
||||
# https://trac.macports.org/browser/trunk/dports/print/ghostscript/Portfile#L64
|
||||
renames = %w[freetype jbig2dec jpeg libpng tiff]
|
||||
renames.each { |lib| mv lib, "#{lib}_local" }
|
||||
end
|
||||
|
||||
def install
|
||||
src_dir = build.head? ? "gs" : "."
|
||||
|
||||
if build.with? "djvu"
|
||||
resource("djvu").stage do
|
||||
inreplace "gsdjvu.mak", "$(GL", "$(DEV"
|
||||
@@ -84,39 +59,32 @@ class Ghostscript < Formula
|
||||
end
|
||||
end
|
||||
|
||||
cd src_dir do
|
||||
move_included_source_copies
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--disable-cups
|
||||
--disable-compile-inits
|
||||
--disable-gtk
|
||||
--with-system-libtiff
|
||||
]
|
||||
args << "--without-x" if build.without? "x11"
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
--disable-cups
|
||||
--disable-compile-inits
|
||||
--disable-gtk
|
||||
]
|
||||
args << "--without-x" if build.without? "x11"
|
||||
|
||||
if build.head?
|
||||
system "./autogen.sh", *args
|
||||
else
|
||||
system "./configure", *args
|
||||
end
|
||||
|
||||
# versioned stuff in main tree is pointless for us
|
||||
inreplace "Makefile", "/$(GS_DOT_VERSION)", ""
|
||||
|
||||
if build.with? "djvu"
|
||||
inreplace "Makefile" do |s|
|
||||
s.change_make_var!("DEVICE_DEVS17", "$(DD)djvumask.dev $(DD)djvusep.dev")
|
||||
end
|
||||
end
|
||||
|
||||
# Install binaries and libraries
|
||||
system "make", "install"
|
||||
system "make", "install-so"
|
||||
if build.head?
|
||||
system "./autogen.sh", *args
|
||||
else
|
||||
system "./configure", *args
|
||||
end
|
||||
|
||||
(share+"ghostscript/fonts").install resource("fonts")
|
||||
(man+"de").rmtree
|
||||
if build.with? "djvu"
|
||||
inreplace "Makefile" do |s|
|
||||
s.change_make_var!("DEVICE_DEVS17", "$(DD)djvumask.dev $(DD)djvusep.dev")
|
||||
end
|
||||
end
|
||||
|
||||
# Install binaries and libraries
|
||||
system "make", "install"
|
||||
system "make", "install-so"
|
||||
|
||||
(pkgshare/"fonts").install resource("fonts")
|
||||
(man/"de").rmtree
|
||||
end
|
||||
|
||||
test do
|
||||
|
||||
@@ -3,6 +3,7 @@ class Ginac < Formula
|
||||
homepage "http://www.ginac.de/"
|
||||
url "http://www.ginac.de/ginac-1.6.4.tar.bz2"
|
||||
sha256 "6241158216b4f68c625ce7d843d5b6b070304f87e7fc8f4075b76501ca0f3c60"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
|
||||
+34
-17
@@ -1,25 +1,24 @@
|
||||
class Git < Formula
|
||||
desc "Distributed revision control system"
|
||||
homepage "https://git-scm.com"
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-2.6.0.tar.xz"
|
||||
sha256 "211beb96ff41a83727e39704431ac388ecb1cebb5219cda067999bce4e1e15a6"
|
||||
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-2.10.2.tar.xz"
|
||||
sha256 "94802903dd707d85ca3b9a2be35e936a54ce86375f52c6a789efe7ce7e238671"
|
||||
head "https://github.com/git/git.git", :shallow => false
|
||||
|
||||
bottle do
|
||||
sha256 "c5ded800991a31d7d12a84b9c03d013757e20ad210717b00c25bf8aba5132552" => :tiger_altivec
|
||||
sha256 "766011fdc2e7b8b3eb1816a5212f3a3268121e30e5335150bf77256202aea1e2" => :leopard_g3
|
||||
sha256 "56853920db7b8171d9f838969d879d02a781a2eb8e7784f0f25d3fc6114f7a02" => :leopard_altivec
|
||||
end
|
||||
|
||||
resource "man" do
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.6.0.tar.xz"
|
||||
sha256 "94c45cf2353f8e1bbb6b56b6f54289203319db4cc38d94f53fcfb8dc3b669615"
|
||||
sha256 "ff9d1b1600f268f0ec5af318562fc08bd9a503d512309dd26f7b166d98c8ecaf" => :sierra
|
||||
sha256 "525962ccf0890c754aedbe2a623bb32d2af2b941fbdb8ac122bbaba41f48664c" => :el_capitan
|
||||
sha256 "5c11a6d358ece56497bb67300aa082d27f04ac594bc6eafe5f6fed0437d68d33" => :yosemite
|
||||
end
|
||||
|
||||
resource "html" do
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.6.0.tar.xz"
|
||||
sha256 "0ba5d5d630e3235b74bcfb4ea2e9bbda8a3e619aaaf9e1f56e12dec5d8dc1d87"
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-htmldocs-2.10.2.tar.xz"
|
||||
sha256 "dd43111c3518a92a7fe64ac5cd32a5d4d77d49c67f7d89dce3e8293bc3d6b491"
|
||||
end
|
||||
|
||||
resource "man" do
|
||||
url "https://www.kernel.org/pub/software/scm/git/git-manpages-2.10.2.tar.xz"
|
||||
sha256 "83b0a317f6039ad95ef6af6a182cf659c2d053eed5d8f70b06710eb787f8aa6f"
|
||||
end
|
||||
|
||||
option "with-blk-sha1", "Compile with the block-optimized SHA1 implementation"
|
||||
@@ -82,10 +81,18 @@ class Git < Formula
|
||||
ENV["CURLDIR"] = Formula["curl"].opt_prefix if MacOS.version < :snow_leopard
|
||||
ENV["NO_APPLE_COMMON_CRYPTO"] = "1" if MacOS.version < :leopard
|
||||
|
||||
# Support Tcl versions before "lime" color name was introduced
|
||||
# https://github.com/Homebrew/homebrew-core/issues/115
|
||||
# https://www.mail-archive.com/git%40vger.kernel.org/msg92017.html
|
||||
inreplace "gitk-git/gitk", "lime", '"#99FF00"'
|
||||
|
||||
perl_version = /\d\.\d+/.match(`perl --version`)
|
||||
|
||||
if build.with? "brewed-svn"
|
||||
ENV["PERLLIB_EXTRA"] = "#{Formula["subversion"].opt_prefix}/Library/Perl/#{perl_version}/darwin-thread-multi-2level"
|
||||
ENV["PERLLIB_EXTRA"] = %W[
|
||||
#{Formula["subversion"].opt_lib}/perl5/site_perl
|
||||
#{Formula["subversion"].opt_prefix}/Library/Perl/#{perl_version}/darwin-thread-multi-2level
|
||||
].join(":")
|
||||
elsif MacOS.version >= :mavericks
|
||||
ENV["PERLLIB_EXTRA"] = %W[
|
||||
#{MacOS.active_developer_dir}
|
||||
@@ -169,6 +176,14 @@ class Git < Formula
|
||||
# To avoid this feature hooking into the system OpenSSL, remove it.
|
||||
# If you need it, install git --with-brewed-openssl.
|
||||
rm "#{libexec}/git-core/git-imap-send" if build.without? "brewed-openssl"
|
||||
|
||||
# Set the macOS keychain credential helper by default
|
||||
# (as Apple's CLT's git also does this).
|
||||
(buildpath/"gitconfig").write <<-EOS.undent
|
||||
[credential]
|
||||
\thelper = osxkeychain
|
||||
EOS
|
||||
etc.install "gitconfig"
|
||||
end
|
||||
|
||||
def caveats; <<-EOS.undent
|
||||
@@ -181,8 +196,10 @@ class Git < Formula
|
||||
end
|
||||
|
||||
test do
|
||||
HOMEBREW_REPOSITORY.cd do
|
||||
assert_equal "bin/brew", `#{bin}/git ls-files -- bin`.strip
|
||||
end
|
||||
system bin/"git", "init"
|
||||
%w[haunted house].each { |f| touch testpath/f }
|
||||
system bin/"git", "add", "haunted", "house"
|
||||
system bin/"git", "commit", "-a", "-m", "Initial Commit"
|
||||
assert_equal "haunted\nhouse", shell_output("#{bin}/git ls-files").strip
|
||||
end
|
||||
end
|
||||
+16
-17
@@ -1,15 +1,13 @@
|
||||
class Glib < Formula
|
||||
desc "Core application library for C"
|
||||
homepage "https://developer.gnome.org/glib/"
|
||||
url "https://download.gnome.org/sources/glib/2.46/glib-2.46.0.tar.xz"
|
||||
sha256 "b1cee83469ae7d80f17c267c37f090414e93960bd62d2b254a5a96fbc5baacb4"
|
||||
|
||||
revision 1
|
||||
url "https://download.gnome.org/sources/glib/2.50/glib-2.50.1.tar.xz"
|
||||
sha256 "2ef87a78f37c1eb5b95f4cc95efd5b66f69afad9c9c0899918d04659cf6df7dd"
|
||||
|
||||
bottle do
|
||||
sha256 "15fd5f2f9eb1cbdb340c5d0f4fce7f0cad222c7663801f41d13ae04f075135c2" => :tiger_altivec
|
||||
sha256 "a77fa2cdde4c04eb14fba684bcbafcd1be11aad39e98431cba135eeead9eaf92" => :leopard_g3
|
||||
sha256 "92b517c29d6ccdc549dd4952d1d85c250e6dc663e36379fd053771ff01840a7a" => :leopard_altivec
|
||||
sha256 "4892a83baa553ef938ec2a7cb4d6f72af9bbd45ddef730e42b9640c5c9883fe4" => :sierra
|
||||
sha256 "818420b0efd28fc6ed8fce3be2291cb4761ba264a535b795bf42e251b432c7c2" => :el_capitan
|
||||
sha256 "cfde246fc576b0cf6c4609045b5f1dc4c412133047036326176e350e425e8e4e" => :yosemite
|
||||
end
|
||||
|
||||
option :universal
|
||||
@@ -21,9 +19,11 @@ class Glib < Formula
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "gettext"
|
||||
depends_on "libffi"
|
||||
depends_on "pcre"
|
||||
depends_on :python if MacOS.version < :leopard
|
||||
# the version of zlib which comes with Tiger does not
|
||||
# export some symbols glib expects
|
||||
depends_on 'homebrew/dupes/zlib' if MacOS.version == :tiger
|
||||
depends_on "zlib" if MacOS.version == :tiger
|
||||
|
||||
fails_with :llvm do
|
||||
build 2334
|
||||
@@ -31,8 +31,7 @@ class Glib < Formula
|
||||
end
|
||||
|
||||
resource "config.h.ed" do
|
||||
url "https://svn.macports.org/repository/macports/trunk/dports/devel/glib2/files/config.h.ed", :using => :curl
|
||||
mirror "https://trac.macports.org/export/111532/trunk/dports/devel/glib2/files/config.h.ed"
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/eb51d82/glib/config.h.ed"
|
||||
version "111532"
|
||||
sha256 "9f1e23a084bc879880e589893c17f01a2f561e20835d6a6f08fcc1dad62388f1"
|
||||
end
|
||||
@@ -49,13 +48,13 @@ class Glib < Formula
|
||||
# to unrelated issues in GCC, but improves the situation.
|
||||
# Patch submitted upstream: https://bugzilla.gnome.org/show_bug.cgi?id=672777
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/patches/59e4d327791d4fe3423c2c871adb98e3f3f07633/glib/gio.patch"
|
||||
sha256 "cc3f0f6d561d663dfcdd6154b075150f68a36f5a92f94e5163c1c20529bfdf32"
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/a39dec26/glib/gio.patch"
|
||||
sha256 "284cbf626f814c21f30167699e6e59dcc0d31000d71151f25862b997a8c8493d"
|
||||
end
|
||||
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/patches/59e4d327791d4fe3423c2c871adb98e3f3f07633/glib/universal.patch"
|
||||
sha256 "7e1ad7667c7d89fcd08950c9c32cd66eb9c8e2ee843f023d1fadf09a9ba39fee"
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/fe50d25d/glib/universal.diff"
|
||||
sha256 "e21f902907cca543023c930101afe1d0c1a7ad351daa0678ba855341f3fd1b57"
|
||||
end if build.universal?
|
||||
|
||||
# Fixes g_get_monotonic_time on non-Intel Macs; submitted upstream:
|
||||
@@ -65,7 +64,7 @@ class Glib < Formula
|
||||
sha1 "5637d98e1c7bbfa8824e60612976a8c13d0c0fb6"
|
||||
end
|
||||
|
||||
# Reverts GNotification support on OS X.
|
||||
# Reverts GNotification support on macOS.
|
||||
# This only supports OS X 10.9, and the reverted commits removed the
|
||||
# ability to build glib on older versions of OS X.
|
||||
# https://bugzilla.gnome.org/show_bug.cgi?id=747146
|
||||
@@ -74,8 +73,8 @@ class Glib < Formula
|
||||
# also applied to configure and gio/Makefile.in
|
||||
if MacOS.version < :mavericks
|
||||
patch do
|
||||
url "https://raw.githubusercontent.com/Homebrew/patches/59e4d327791d4fe3423c2c871adb98e3f3f07633/glib/gnotification-mountain.patch"
|
||||
sha256 "723def732304552ca55ae9f5b568ff3e8a59a14d512af72b6c1f0421f8228a68"
|
||||
url "https://raw.githubusercontent.com/Homebrew/formula-patches/a4fe61b/glib/gnotification-mountain.patch"
|
||||
sha256 "5bf6d562dd2be811d71e6f84eb43fc6c51a112db49ec0346c1b30f4f6f4a4233"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
+31
-15
@@ -1,29 +1,39 @@
|
||||
class Gmp < Formula
|
||||
desc "GNU multiple precision arithmetic library"
|
||||
homepage "https://gmplib.org/"
|
||||
url "http://ftpmirror.gnu.org/gmp/gmp-6.0.0a.tar.bz2"
|
||||
mirror "https://gmplib.org/download/gmp/gmp-6.0.0a.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.0.0a.tar.bz2"
|
||||
sha256 "7f8e9a804b9c6d07164cf754207be838ece1219425d64e28cfa3e70d5c759aaf"
|
||||
url "https://gmplib.org/download/gmp/gmp-6.1.2.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/gmp/gmp-6.1.2.tar.xz"
|
||||
sha256 "87b565e89a9a684fe4ebeeddb8399dce2599f9c9049854ca8c0dfbdea0e21912"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha1 "954d513d362b0bda155bd8bf0347a49a93e3f885" => :tiger_altivec
|
||||
sha1 "ef404f79249e760443a037cc5f9374df4074f8fc" => :leopard_g3
|
||||
sha1 "f6b2011e9b1a6e22ccbb30f6ed94d338063feb30" => :leopard_altivec
|
||||
end
|
||||
|
||||
option "32-bit"
|
||||
option :cxx11
|
||||
|
||||
def arch_to_string_map
|
||||
@arch_map ||= {
|
||||
:g3 => "powerpc750",
|
||||
:g4 => "powerpc7400",
|
||||
:g4e => "powerpc7450",
|
||||
:g5 => "powerpc970"
|
||||
}
|
||||
end
|
||||
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/212
|
||||
env :std
|
||||
|
||||
def install
|
||||
ENV.cxx11 if build.cxx11?
|
||||
args = ["--prefix=#{prefix}", "--enable-cxx"]
|
||||
if build.bottle?
|
||||
bottle_sym = ARGV.bottle_arch || Hardware.oldest_cpu
|
||||
arch = arch_to_string_map.fetch(bottle_sym, "core2")
|
||||
args << "--build=#{arch}-apple-darwin#{`uname -r`.to_i}"
|
||||
end
|
||||
|
||||
if build.build_32_bit?
|
||||
if build.build_32_bit? || !MacOS.prefer_64_bit?
|
||||
ENV.m32
|
||||
args << "ABI=32"
|
||||
end
|
||||
@@ -32,22 +42,28 @@ class Gmp < Formula
|
||||
# https://github.com/Homebrew/homebrew/issues/20693
|
||||
args << "--disable-assembly" if build.build_32_bit? || build.bottle?
|
||||
|
||||
system "./configure", *args
|
||||
system "./configure", "--disable-static", *args
|
||||
system "make"
|
||||
system "make", "check"
|
||||
ENV.deparallelize
|
||||
system "make", "install"
|
||||
system "make", "clean"
|
||||
system "./configure", "--disable-shared", "--disable-assembly", *args
|
||||
system "make"
|
||||
lib.install Dir[".libs/*.a"]
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <gmp.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
mpz_t integ;
|
||||
mpz_init (integ);
|
||||
mpz_clear (integ);
|
||||
int main() {
|
||||
mpz_t i, j, k;
|
||||
mpz_init_set_str (i, "1a", 16);
|
||||
mpz_init (j);
|
||||
mpz_init (k);
|
||||
mpz_sqrtrem (j, k, i);
|
||||
if (mpz_get_si (j) != 5 || mpz_get_si (k) != 1) abort();
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
|
||||
@@ -0,0 +1,93 @@
|
||||
class Gmp4 < Formula
|
||||
desc "GNU multiple precision arithmetic library"
|
||||
homepage "http://gmplib.org/"
|
||||
# Track gcc infrastructure releases.
|
||||
url "https://ftpmirror.gnu.org/gmp/gmp-4.3.2.tar.bz2"
|
||||
mirror "https://ftp.gnu.org/gnu/gmp/gmp-4.3.2.tar.bz2"
|
||||
mirror "ftp://ftp.gmplib.org/pub/gmp-4.3.2/gmp-4.3.2.tar.bz2"
|
||||
mirror "ftp://gcc.gnu.org/pub/gcc/infrastructure/gmp-4.3.2.tar.bz2"
|
||||
sha256 "936162c0312886c21581002b79932829aa048cfaf9937c6265aeaa14f1cd1775"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
revision 1
|
||||
sha256 "5c5d632ea58479fba37a0844d0b9a4fd1e865e809286ada95d5484d72ab50a78" => :el_capitan
|
||||
sha256 "932a2d0987dd26bbc3cb54b7d38d4cf6b0e5a4bd46fef8442b79b75f067abf6e" => :yosemite
|
||||
sha256 "b7012c46ac9e5b5aa1004184e85a2e99fc047d9f92f1e8b82699ba1f1ea1f7bf" => :mavericks
|
||||
end
|
||||
|
||||
keg_only "Conflicts with gmp in main repository."
|
||||
|
||||
option "with-32-bit"
|
||||
option "without-check", "Do not run `make check` to verify libraries"
|
||||
|
||||
deprecated_option "32-bit" => "with-32-bit"
|
||||
deprecated_option "skip-check" => "without-check"
|
||||
|
||||
fails_with :gcc_4_0 do
|
||||
cause "Reports of problems using gcc 4.0 on Leopard: https://github.com/mxcl/homebrew/issues/issue/2302"
|
||||
end
|
||||
|
||||
# Patches gmp.h to remove the __need_size_t define, which
|
||||
# was preventing libc++ builds from getting the ptrdiff_t type
|
||||
# Applied upstream in http://gmplib.org:8000/gmp/raw-rev/6cd3658f5621
|
||||
patch :DATA
|
||||
|
||||
def install
|
||||
args = ["--prefix=#{prefix}", "--enable-cxx"]
|
||||
|
||||
# Build 32-bit where appropriate, and help configure find 64-bit CPUs
|
||||
if MacOS.prefer_64_bit? && !build.build_32_bit?
|
||||
ENV.m64
|
||||
args << "--build=x86_64-apple-darwin"
|
||||
else
|
||||
ENV.m32
|
||||
args << "--host=none-apple-darwin"
|
||||
end
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
ENV.deparallelize # Doesn't install in parallel on 8-core Mac Pro
|
||||
system "make", "install"
|
||||
|
||||
# Different compilers and options can cause tests to fail even
|
||||
# if everything compiles, so yes, we want to do this step.
|
||||
system "make", "check" if build.with? "check"
|
||||
end
|
||||
|
||||
test do
|
||||
(testpath/"test.c").write <<-EOS.undent
|
||||
#include <gmp.h>
|
||||
|
||||
int main()
|
||||
{
|
||||
mpz_t integ;
|
||||
mpz_init (integ);
|
||||
mpz_clear (integ);
|
||||
return 0;
|
||||
}
|
||||
EOS
|
||||
system ENV.cc, "test.c", "-L#{lib}", "-lgmp", "-I#{include}", "-o", "test"
|
||||
system "./test"
|
||||
end
|
||||
end
|
||||
|
||||
__END__
|
||||
diff --git a/gmp-h.in b/gmp-h.in
|
||||
index d7fbc34..3c57c48 100644
|
||||
--- a/gmp-h.in
|
||||
+++ b/gmp-h.in
|
||||
@@ -46,13 +46,11 @@ along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. */
|
||||
#ifndef __GNU_MP__
|
||||
#define __GNU_MP__ 4
|
||||
|
||||
-#define __need_size_t /* tell gcc stddef.h we only want size_t */
|
||||
#if defined (__cplusplus)
|
||||
#include <cstddef> /* for size_t */
|
||||
#else
|
||||
#include <stddef.h> /* for size_t */
|
||||
#endif
|
||||
-#undef __need_size_t
|
||||
|
||||
/* Instantiated by configure. */
|
||||
#if ! defined (__GMP_WITHIN_CONFIGURE)
|
||||
@@ -4,6 +4,7 @@ class GnuApl < Formula
|
||||
url "http://ftpmirror.gnu.org/apl/apl-1.4.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/apl/apl-1.4.tar.gz"
|
||||
sha256 "69da31db180e6ae17116122758c266e19f62e256f04e3c4959f6f2b224a1893a"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
|
||||
@@ -4,7 +4,7 @@ class GnuSmalltalk < Formula
|
||||
url "http://ftpmirror.gnu.org/smalltalk/smalltalk-3.2.5.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/smalltalk/smalltalk-3.2.5.tar.xz"
|
||||
sha256 "819a15f7ba8a1b55f5f60b9c9a58badd6f6153b3f987b70e7b167e7755d65acc"
|
||||
revision 1
|
||||
revision 2
|
||||
|
||||
head "https://github.com/bonzini/smalltalk.git"
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ class GnuUnits < Formula
|
||||
url "http://ftpmirror.gnu.org/units/units-2.02.tar.gz"
|
||||
mirror "https://ftp.gnu.org/gnu/units/units-2.02.tar.gz"
|
||||
sha256 "2b34fa70c9319956135b990afc1ac99d411ba5b291b5d29e4a89fdf052944e9a"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
|
||||
@@ -3,6 +3,7 @@ class Gnuplot < Formula
|
||||
homepage "http://www.gnuplot.info"
|
||||
url "https://downloads.sourceforge.net/project/gnuplot/gnuplot/5.0.1/gnuplot-5.0.1.tar.gz"
|
||||
sha256 "7cbc557e71df581ea520123fb439dea5f073adcc9010a2885dc80d4ed28b3c47"
|
||||
revision 1
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
|
||||
+21
-10
@@ -1,26 +1,25 @@
|
||||
class Goaccess < Formula
|
||||
desc "Log analyzer and interactive viewer for the Apache Webserver"
|
||||
homepage "http://goaccess.io/"
|
||||
url "http://tar.goaccess.io/goaccess-0.9.3.tar.gz"
|
||||
sha256 "aa5819d47d4d554d13b5d4d79524b907ade685accf8c89d399fba0e2a318bc46"
|
||||
url "http://tar.goaccess.io/goaccess-0.9.4.tar.gz"
|
||||
sha256 "8a6e167f6a9330ccf37c652e577792c9c626d7134d64f841eb54fefcdff6c5ce"
|
||||
|
||||
bottle do
|
||||
sha256 "b794786dbfd4f88154abe3d06ae166d82bb57729a891dc9c8e438f17c9fcd7ff" => :el_capitan
|
||||
sha256 "a8f198a65bbc1f78374f4875de7ae292bc4c6468eafc30e1548733cc3c8d4d72" => :yosemite
|
||||
sha256 "c3b9794ea9b90361e81630e9550a3ac6d7a3e413e5c61d7dc00fd3f942b1c802" => :mavericks
|
||||
sha256 "c4da90f9f07798cc89c94eb158b878a30609f05f8be00b38454256bbe2203b0a" => :mountain_lion
|
||||
sha256 "e55d00891372ed68169bb759c7113fb47951793146287f58542f05033966b0a6" => :el_capitan
|
||||
sha256 "e823561ca8d621ab0e33fa32e8750c9a29eb381ac8f3ed14001a6d90dce14812" => :yosemite
|
||||
sha256 "ea928044dc0a5309be812828d29e75d4cba36300b269aa355f117a2489c8274f" => :mavericks
|
||||
end
|
||||
|
||||
option "with-geoip", "Enable IP location information using GeoIP"
|
||||
|
||||
deprecated_option "enable-geoip" => "with-geoip"
|
||||
|
||||
head do
|
||||
url "https://github.com/allinurl/goaccess.git"
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
end
|
||||
|
||||
option "with-geoip", "Enable IP location information using GeoIP"
|
||||
|
||||
deprecated_option "enable-geoip" => "with-geoip"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "glib"
|
||||
depends_on "geoip" => :optional
|
||||
@@ -38,4 +37,16 @@ class Goaccess < Formula
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
test do
|
||||
require "json"
|
||||
|
||||
(testpath/"access.log").write <<-EOS.undent
|
||||
127.0.0.1 - - [04/May/2015:15:48:17 +0200] "GET / HTTP/1.1" 200 612 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.135 Safari/537.36"
|
||||
EOS
|
||||
|
||||
output = shell_output("#{bin}/goaccess --time-format=%T --date-format=%d/%b/%Y --log-format='%h %^[%d:%t %^] \"%r\" %s %b \"%R\" \"%u\"' -f access.log -o json 2>/dev/null")
|
||||
|
||||
assert_equal "Chrome", JSON.parse(output)["browsers"][0]["data"]
|
||||
end
|
||||
end
|
||||
@@ -14,7 +14,7 @@ class GobjectIntrospection < Formula
|
||||
|
||||
option :universal
|
||||
|
||||
depends_on "homebrew/dupes/make" => :build if MacOS.version < :leopard
|
||||
depends_on "make" => :build if MacOS.version < :leopard
|
||||
depends_on "pkg-config" => :run
|
||||
depends_on "glib"
|
||||
depends_on "libffi"
|
||||
|
||||
@@ -3,6 +3,7 @@ class Gphoto2 < Formula
|
||||
homepage "http://gphoto.org/"
|
||||
url "http://downloads.sourceforge.net/project/gphoto/gphoto/2.5.1/gphoto2-2.5.1.tar.bz2"
|
||||
sha1 "c363adfb5d0f21c03bc5dc27daf19e9e409832ec"
|
||||
revision 1
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "jpeg"
|
||||
|
||||
@@ -3,6 +3,7 @@ class Gqlplus < Formula
|
||||
homepage "http://gqlplus.sourceforge.net/"
|
||||
url "https://downloads.sourceforge.net/project/gqlplus/gqlplus/1.15/gqlplus-1.15.tar.gz"
|
||||
sha256 "9a539cdcf952b4acd2ae2d940772366bf6c9ee0fb51846c02d3c7dc1df3056d5"
|
||||
revision 1
|
||||
|
||||
depends_on "readline"
|
||||
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
class Grep < Formula
|
||||
desc "GNU grep, egrep and fgrep"
|
||||
homepage "https://www.gnu.org/software/grep/"
|
||||
url "https://ftpmirror.gnu.org/grep/grep-3.0.tar.xz"
|
||||
mirror "https://ftp.gnu.org/gnu/grep/grep-3.0.tar.xz"
|
||||
sha256 "e2c81db5056e3e8c5995f0bb5d0d0e1cad1f6f45c3b2fc77b6e81435aed48ab5"
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "bb9a99c94bca06d1ac13a26db05916cd069e1f58aba803ee3290ee2caa15b326" => :sierra
|
||||
sha256 "d97ddcf459bf893cbabc2129ff2425c2ff8668ad996c3d96fcef85f0a06fd948" => :el_capitan
|
||||
sha256 "4674ad09c934d919a5251461cb2b200627d5ad950875f131da3ddb517835af32" => :yosemite
|
||||
end
|
||||
|
||||
option "with-default-names", "Do not prepend 'g' to the binary"
|
||||
deprecated_option "default-names" => "with-default-names"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "pcre"
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--disable-dependency-tracking
|
||||
--disable-nls
|
||||
--prefix=#{prefix}
|
||||
--infodir=#{info}
|
||||
--mandir=#{man}
|
||||
--with-packager=Homebrew
|
||||
]
|
||||
|
||||
args << "--program-prefix=g" if build.without? "default-names"
|
||||
|
||||
system "./configure", *args
|
||||
system "make"
|
||||
system "make", "install"
|
||||
end
|
||||
|
||||
def caveats
|
||||
if build.without? "default-names" then <<-EOS.undent
|
||||
The command has been installed with the prefix "g".
|
||||
If you do not want the prefix, install using the "with-default-names"
|
||||
option.
|
||||
EOS
|
||||
end
|
||||
end
|
||||
|
||||
test do
|
||||
text_file = testpath/"file.txt"
|
||||
text_file.write "This line should be matched"
|
||||
cmd = build.with?("default-names") ? "grep" : "ggrep"
|
||||
grepped = shell_output("#{bin}/#{cmd} match #{text_file}")
|
||||
assert_match "should be matched", grepped
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1,111 @@
|
||||
class Grip < Formula
|
||||
desc "GitHub Markdown previewer"
|
||||
homepage "https://github.com/joeyespo/grip"
|
||||
url "https://files.pythonhosted.org/packages/3c/ea/2a475ed37e1b6476182e71223c98667f51704bdbc919608372b203c7ea04/grip-4.5.2.tar.gz"
|
||||
sha256 "048b7e5c738ed80bee345bd10840f27eb31687eb67132b40f2473dc1cf67aa0f"
|
||||
|
||||
bottle do
|
||||
cellar :any_skip_relocation
|
||||
sha256 "1d4b1cbd24fd7e087f13f947510fbf886bb1eccbd0bc7c45f23c4a5eebec678e" => :tiger_g3
|
||||
sha256 "cd904541d7370920a24f07abe782cc68f947dc26e820eb7000f9c0edceb9e8e2" => :tiger_g4
|
||||
sha256 "69934d0ea8e23b288a28e5dbbe429415d0b0e9df7d3bdb3c338b3bf0acd12121" => :tiger_g4e
|
||||
sha256 "0fabed73fb8cb3072f4b849e47ca2ebab0d6c8300652755866a354e49d146024" => :tiger_g5
|
||||
end
|
||||
|
||||
depends_on "python"
|
||||
|
||||
resource "certifi" do
|
||||
url "https://files.pythonhosted.org/packages/15/d4/2f888fc463d516ff7bf2379a4e9a552fef7f22a94147655d9b1097108248/certifi-2018.1.18.tar.gz"
|
||||
sha256 "edbc3f203427eef571f79a7692bb160a2b0f7ccaa31953e99bd17e307cf63f7d"
|
||||
end
|
||||
|
||||
resource "chardet" do
|
||||
url "https://files.pythonhosted.org/packages/fc/bb/a5768c230f9ddb03acc9ef3f0d4a3cf93462473795d18e9535498c8f929d/chardet-3.0.4.tar.gz"
|
||||
sha256 "84ab92ed1c4d4f16916e05906b6b75a6c0fb5db821cc65e70cbd64a3e2a5eaae"
|
||||
end
|
||||
|
||||
resource "click" do
|
||||
url "https://files.pythonhosted.org/packages/95/d9/c3336b6b5711c3ab9d1d3a80f1a3e2afeb9d8c02a7166462f6cc96570897/click-6.7.tar.gz"
|
||||
sha256 "f15516df478d5a56180fbf80e68f206010e6d160fc39fa508b65e035fd75130b"
|
||||
end
|
||||
|
||||
resource "docopt" do
|
||||
url "https://files.pythonhosted.org/packages/a2/55/8f8cab2afd404cf578136ef2cc5dfb50baa1761b68c9da1fb1e4eed343c9/docopt-0.6.2.tar.gz"
|
||||
sha256 "49b3a825280bd66b3aa83585ef59c4a8c82f2c8a522dbe754a8bc8d08c85c491"
|
||||
end
|
||||
|
||||
resource "Flask" do
|
||||
url "https://files.pythonhosted.org/packages/eb/12/1c7bd06fcbd08ba544f25bf2c6612e305a70ea51ca0eda8007344ec3f123/Flask-0.12.2.tar.gz"
|
||||
sha256 "49f44461237b69ecd901cc7ce66feea0319b9158743dd27a2899962ab214dac1"
|
||||
end
|
||||
|
||||
resource "idna" do
|
||||
url "https://files.pythonhosted.org/packages/f4/bd/0467d62790828c23c47fc1dfa1b1f052b24efdf5290f071c7a91d0d82fd3/idna-2.6.tar.gz"
|
||||
sha256 "2c6a5de3089009e3da7c5dde64a141dbc8551d5b7f6cf4ed7c2568d0cc520a8f"
|
||||
end
|
||||
|
||||
resource "itsdangerous" do
|
||||
url "https://files.pythonhosted.org/packages/dc/b4/a60bcdba945c00f6d608d8975131ab3f25b22f2bcfe1dab221165194b2d4/itsdangerous-0.24.tar.gz"
|
||||
sha256 "cbb3fcf8d3e33df861709ecaf89d9e6629cff0a217bc2848f1b41cd30d360519"
|
||||
end
|
||||
|
||||
resource "Jinja2" do
|
||||
url "https://files.pythonhosted.org/packages/56/e6/332789f295cf22308386cf5bbd1f4e00ed11484299c5d7383378cf48ba47/Jinja2-2.10.tar.gz"
|
||||
sha256 "f84be1bb0040caca4cea721fcbbbbd61f9be9464ca236387158b0feea01914a4"
|
||||
end
|
||||
|
||||
resource "Markdown" do
|
||||
url "https://files.pythonhosted.org/packages/b3/73/fc5c850f44af5889192dff783b7b0d8f3fe8d30b65c8e3f78f8f0265fecf/Markdown-2.6.11.tar.gz"
|
||||
sha256 "a856869c7ff079ad84a3e19cd87a64998350c2b94e9e08e44270faef33400f81"
|
||||
end
|
||||
|
||||
resource "MarkupSafe" do
|
||||
url "https://files.pythonhosted.org/packages/4d/de/32d741db316d8fdb7680822dd37001ef7a448255de9699ab4bfcbdf4172b/MarkupSafe-1.0.tar.gz"
|
||||
sha256 "a6be69091dac236ea9c6bc7d012beab42010fa914c459791d627dad4910eb665"
|
||||
end
|
||||
|
||||
resource "path-and-address" do
|
||||
url "https://files.pythonhosted.org/packages/2b/b5/749fab14d9e84257f3b0583eedb54e013422b6c240491a4ae48d9ea5e44f/path-and-address-2.0.1.zip"
|
||||
sha256 "e96363d982b3a2de8531f4cd5f086b51d0248b58527227d43cf5014d045371b7"
|
||||
end
|
||||
|
||||
resource "Pygments" do
|
||||
url "https://files.pythonhosted.org/packages/71/2a/2e4e77803a8bd6408a2903340ac498cb0a2181811af7c9ec92cb70b0308a/Pygments-2.2.0.tar.gz"
|
||||
sha256 "dbae1046def0efb574852fab9e90209b23f556367b5a320c0bcb871c77c3e8cc"
|
||||
end
|
||||
|
||||
resource "requests" do
|
||||
url "https://files.pythonhosted.org/packages/b0/e1/eab4fc3752e3d240468a8c0b284607899d2fbfb236a56b7377a329aa8d09/requests-2.18.4.tar.gz"
|
||||
sha256 "9c443e7324ba5b85070c4a818ade28bfabedf16ea10206da1132edaa6dda237e"
|
||||
end
|
||||
|
||||
resource "urllib3" do
|
||||
url "https://files.pythonhosted.org/packages/ee/11/7c59620aceedcc1ef65e156cc5ce5a24ef87be4107c2b74458464e437a5d/urllib3-1.22.tar.gz"
|
||||
sha256 "cc44da8e1145637334317feebd728bd869a35285b93cbb4cca2577da7e62db4f"
|
||||
end
|
||||
|
||||
resource "Werkzeug" do
|
||||
url "https://files.pythonhosted.org/packages/9f/08/a3bb1c045ec602dc680906fc0261c267bed6b3bb4609430aff92c3888ec8/Werkzeug-0.14.1.tar.gz"
|
||||
sha256 "c3fd7a7d41976d9f44db327260e263132466836cef6f91512889ed60ad26557c"
|
||||
end
|
||||
|
||||
def install
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"vendor/lib/python2.7/site-packages"
|
||||
resources.each do |r|
|
||||
r.stage do
|
||||
system "python", *Language::Python.setup_install_args(libexec/"vendor")
|
||||
end
|
||||
end
|
||||
|
||||
ENV.prepend_create_path "PYTHONPATH", libexec/"lib/python2.7/site-packages"
|
||||
system "python", *Language::Python.setup_install_args(libexec)
|
||||
|
||||
bin.install Dir[libexec/"bin/*"]
|
||||
bin.env_script_all_files(libexec/"bin", :PYTHONPATH => ENV["PYTHONPATH"])
|
||||
end
|
||||
|
||||
test do
|
||||
assert_match "<strong>Homebrew</strong> is awesome",
|
||||
pipe_output("#{bin}/grip - --export -", "**Homebrew** is awesome.")
|
||||
end
|
||||
end
|
||||
@@ -1,30 +1,28 @@
|
||||
class Groonga < Formula
|
||||
desc "Fulltext search engine and column store"
|
||||
homepage "http://groonga.org/"
|
||||
url "http://packages.groonga.org/source/groonga/groonga-5.0.7.tar.gz"
|
||||
sha256 "f0f148916179993b22c14f914f148fd9bad3163071b106a36251e92a3869b710"
|
||||
url "http://packages.groonga.org/source/groonga/groonga-5.0.8.tar.gz"
|
||||
sha256 "9bc8aca52842a90cbeeb816a2a8ad9c89b226c14fca4c18661039e54587a5a29"
|
||||
|
||||
bottle do
|
||||
sha256 "85c010c3f572c48e1fe53b6936db4ec1c829bd0bed2ddc2052deae28be672167" => :el_capitan
|
||||
sha256 "8d6f96fb3bf2212916e0bf0dcb4af23983b6f89fe0c29f553a03fcb76e4bfc31" => :yosemite
|
||||
sha256 "02681009cdcfbad7c085380277706c8d3391ff9949c63f129135dfebdd015a4b" => :mavericks
|
||||
sha256 "c5b2b8d400696df717b19d149ebd75a9407b19c96f7fa70863d5cbc1b49f0134" => :mountain_lion
|
||||
sha256 "696fa3bede74506be0a48cb3922c4b8b892bb2ef7422ffb23674658f5a42f51b" => :el_capitan
|
||||
sha256 "ccca48f11abdb8fc0179c4fd551b5dd09f985c2c2124fbaeef265c806fc11c19" => :yosemite
|
||||
sha256 "97f66a1f7d66d8d53396af2bb918afef2f4706da4d091d4b4db479c9ee7daf3d" => :mavericks
|
||||
end
|
||||
|
||||
option "with-benchmark", "With benchmark program for developer use"
|
||||
|
||||
deprecated_option "enable-benchmark" => "with-benchmark"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "pcre"
|
||||
depends_on "msgpack"
|
||||
depends_on "mecab" => :optional
|
||||
depends_on "mecab-ipadic" if build.with? "mecab"
|
||||
depends_on "lz4" => :optional
|
||||
depends_on "openssl"
|
||||
|
||||
depends_on "mecab-ipadic" if build.with? "mecab"
|
||||
depends_on "glib" if build.with? "benchmark"
|
||||
|
||||
deprecated_option "enable-benchmark" => "with-benchmark"
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
@@ -34,7 +32,7 @@ class Groonga < Formula
|
||||
--without-libstemmer
|
||||
]
|
||||
|
||||
args << "--enable-benchmark" if build.include? "enable-benchmark"
|
||||
args << "--enable-benchmark" if build.with? "benchmark"
|
||||
args << "--with-mecab" if build.with? "mecab"
|
||||
args << "--with-lz4" if build.with? "lz4"
|
||||
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
class GstLibav < Formula
|
||||
desc "GStreamer plugins for Libav (a fork of FFmpeg)"
|
||||
homepage "http://gstreamer.freedesktop.org"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-libav-1.4.5.tar.xz"
|
||||
sha256 "605c62624604f3bb5c870844cc1f2711779cc533b004c2aa1d8c0d58557afbbc"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-1.6.0.tar.xz"
|
||||
sha256 "6cca6cf73182a882768ef0c860af88c2fd2c77e2c81ce464a998ab4e6baa604c"
|
||||
|
||||
bottle do
|
||||
sha256 "794810f2c445e8217ed8db0701f5a9098a4c62661f25c7222cb416ae78aae854" => :el_capitan
|
||||
sha1 "b1deaafa0ea7ab50ffc14706ceedc0465846af58" => :yosemite
|
||||
sha1 "812d25e4e2bd610bdd1b9f1202dc27e5fb645c50" => :mavericks
|
||||
sha1 "7e147f585f4674346454b43099d003a9dc42f083" => :mountain_lion
|
||||
sha256 "0f24e12e8dcecd40a561fc75b53e0d2435da03236a0aa56bbafd02ffa31c2825" => :el_capitan
|
||||
sha256 "b779cfa2dafc69decb29fd0fa6f18ed5da1b4c745ed2f3f663f3822651dd31ba" => :yosemite
|
||||
sha256 "667ad19a7b15d2cba56aca4867f3efdaeef7b6690a3c9bf2403c42dc6673d561" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
@@ -24,6 +22,7 @@ class GstLibav < Formula
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "yasm" => :build
|
||||
depends_on "gst-plugins-base"
|
||||
depends_on "xz" # For LZMA
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
class GstPluginsBad < Formula
|
||||
desc "GStreamer plugins (less supported, missing docs, not fully tested)"
|
||||
homepage "http://gstreamer.freedesktop.org/"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-bad-1.4.5.tar.xz"
|
||||
sha256 "152fad7250683d72f9deb36c5685428338365fe4a4c87ffe15e38783b14f983c"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-1.6.0.tar.xz"
|
||||
sha256 "d8ff26128d4ecd2ffeb28e14843808d2d971b09056b7cee6f08afcae01fc0f49"
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
sha256 "e853f0c985b9e4a8b38c85b415d939bced34bceb70a95949e096f1bbca735ee3" => :el_capitan
|
||||
sha256 "c4cb9cf4187786a73e43618260378e3db8cff3887acf3f352a1a549373f0340d" => :yosemite
|
||||
sha256 "5280b336808a878ba93477d5664d6f784e2f78f6880b5ea267adcd93e7e7f38b" => :mavericks
|
||||
sha256 "1de5eb524831527facb2f91df2c8b7292aca6d7e72f3c454116f3c67989edcba" => :mountain_lion
|
||||
sha256 "39891fb950bb3e48e44449121320fcf23068b03126113fa9a85e95ad1c134e80" => :el_capitan
|
||||
sha256 "4a0544b92e6309f14610008ed73963a5c2a6bd3b11e86b9cd3c3200a60670a87" => :yosemite
|
||||
sha256 "cfc9e1ce7af3b1ada6cf79211ea54a6250321516b5694eb431ecd7377642b896" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
@@ -19,12 +16,14 @@ class GstPluginsBad < Formula
|
||||
depends_on "autoconf" => :build
|
||||
depends_on "automake" => :build
|
||||
depends_on "libtool" => :build
|
||||
depends_on "openssl"
|
||||
end
|
||||
|
||||
option "with-applemedia", "Build with applemedia support"
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "gettext"
|
||||
depends_on "gst-plugins-base"
|
||||
depends_on "openssl"
|
||||
|
||||
depends_on "dirac" => :optional
|
||||
depends_on "faac" => :optional
|
||||
@@ -40,8 +39,6 @@ class GstPluginsBad < Formula
|
||||
depends_on "sound-touch" => :optional
|
||||
depends_on "srtp" => :optional
|
||||
|
||||
option "with-applemedia", "Build with applemedia support"
|
||||
|
||||
def install
|
||||
args = %W[
|
||||
--prefix=#{prefix}
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
class GstPluginsBase < Formula
|
||||
desc "GStreamer plugins (well-supported, basic set)"
|
||||
homepage "http://gstreamer.freedesktop.org/"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-base-1.4.5.tar.xz"
|
||||
sha256 "77bd8199e7a312d3d71de9b7ddf761a3b78560a2c2a80829d0815ca39cbd551d"
|
||||
url "https://download.gnome.org/sources/gst-plugins-base/1.6/gst-plugins-base-1.6.0.tar.xz"
|
||||
sha256 "314fd1b707f65caf8eb6164d9422fc51e2b220a890ccd2de6ec03a2883d77231"
|
||||
|
||||
bottle do
|
||||
sha256 "e4299d056a51ab06dbda85620d66751908b21f736f0f4afba144e5c3d32706d3" => :el_capitan
|
||||
sha1 "8e9098a2afac082a3eb54bf0c62387f827443ef6" => :yosemite
|
||||
sha1 "ab9e0aef6bf01b6e5ff379a1c0d694a588ea938d" => :mavericks
|
||||
sha1 "eb0cea91727094bf924aac81a21bc71c7d4f8e68" => :mountain_lion
|
||||
sha256 "e1c9b62174870496f06c2a31c639b267559cf0d5bbd6344042d6798c528890c9" => :el_capitan
|
||||
sha256 "d923837664e2ae437b3a9f8e5251794c50e721f761f601df9128ef0d2a60b7b1" => :yosemite
|
||||
sha256 "b99d142014674fcecffb2920a6fae7c4862c4ca4f1f817690dbe5dfd931f14db" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -3,18 +3,16 @@ class GstPluginsGood < Formula
|
||||
homepage "http://gstreamer.freedesktop.org/"
|
||||
|
||||
stable do
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-good-1.4.5.tar.xz"
|
||||
sha256 "79b1b5f3f7bcaa8a615202eb5e176121eeb8336960f70687e536ad78dbc7e641"
|
||||
url "https://download.gnome.org/sources/gst-plugins-good/1.6/gst-plugins-good-1.6.0.tar.xz"
|
||||
sha256 "a0915639595305e48884656e22b16fda7c6892aa02cdb3eb43e23dab6e6b81fa"
|
||||
|
||||
depends_on "check" => :optional
|
||||
end
|
||||
|
||||
bottle do
|
||||
sha256 "c7e0f3400bf49d94fb4ea8073725d82f0c282582b4e819942226b7f5840dc262" => :el_capitan
|
||||
sha1 "184f6be9e300566f37e7b014cca49f78018c36d4" => :yosemite
|
||||
sha1 "a05a8f0dc08ea2626623f30dcb2cc458bd973b7e" => :mavericks
|
||||
sha1 "7ce582ddab67b58d87469d112745144a0cf0edd2" => :mountain_lion
|
||||
sha256 "f0b959674f1bf2135378c640853971899df115830e047d0a33784671c35d17d4" => :el_capitan
|
||||
sha256 "1a3009aa7e6dc2cd2cffd598a0c9e1f3183a268460aa15ebd1f750153a4d0f9d" => :yosemite
|
||||
sha256 "cd42820977c3cdb2ca5315f7c86c1e041b523960fac07e767175958c873ff683" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
class GstPluginsUgly < Formula
|
||||
desc "GStreamer plugins (well-supported, possibly problematic for distributors)"
|
||||
homepage "http://gstreamer.freedesktop.org/"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gst-plugins-ugly-1.4.5.tar.xz"
|
||||
sha256 "5cd5e81cf618944f4dc935f1669b2125e8bb2fe9cc7dc8dc15b72237aca49067"
|
||||
revision 1
|
||||
url "http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-1.6.0.tar.xz"
|
||||
sha256 "91178dc0d687a83c083190a905681d3a66901374b1004fc52cd300b7802e5f06"
|
||||
|
||||
bottle do
|
||||
sha256 "c0835a682d672145d898d77070cbb87ac2177cb99fe7eeb0a817a83ace254120" => :el_capitan
|
||||
sha256 "a8e8b3809afa54e5208d1b9b55abf8dd6fa37d223c0307038816865f37d34c04" => :yosemite
|
||||
sha256 "4c94061b809c7e2448721dece73b643a7f4c2b9b0bfd3188c40b817430285705" => :mavericks
|
||||
sha256 "e8cbbb7406940ed09cb7e3b7b2ba487e6eff1e5b14c22301205994ac1e92bc66" => :mountain_lion
|
||||
sha256 "ffcf9543143cd22f5f5ed1b10c1f871f8776d76422e647d28bb0031cbd3e26b3" => :el_capitan
|
||||
sha256 "2ea34047f62a5ea1cd95b72574f57b14c5696c9b7c59fc8fcdd077a9ac2ea016" => :yosemite
|
||||
sha256 "da269f4f506b6de87161922886e03a52a0f99839ce695b73efef43565baed142" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -1,15 +1,13 @@
|
||||
class GstPython < Formula
|
||||
desc "GStreamer Python overrides for gobject-introspection-based pygst bindings"
|
||||
homepage "http://gstreamer.freedesktop.org/modules/gst-python.html"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-python/gst-python-1.4.0.tar.xz"
|
||||
sha256 "b1e40c29ceb41b03f08d38aca6056054f0341d0706276326dceeec6ac8d53d3e"
|
||||
revision 1
|
||||
url "http://gstreamer.freedesktop.org/src/gst-python/gst-python-1.6.0.tar.xz"
|
||||
sha256 "60dbc7f5ac2b6655ed4a7ed2cee63ee5a525d37cb16eaa6b9df7d7dfe4e9605f"
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
sha256 "23cc5d7ab90a98cb8baf83cff0b8c1f46077ed9171f1aa8b8a28db963f8d6039" => :yosemite
|
||||
sha256 "40fda115c1425f67ec25228f86d902c7cbc4522bc71cc7daedce37f04041a1cf" => :mavericks
|
||||
sha256 "d3b34dcf00708c39721a1696a9bea2ef5fe3144ef1dad200971e063654d372eb" => :mountain_lion
|
||||
sha256 "2493558defcd65f0b0f486344e679f594feef4b550fd15f4f6946dbaaeab2ef9" => :el_capitan
|
||||
sha256 "2f874fe16da1680cf209939e708b8806a54cfa5336deaf6f9e2097e257277eaf" => :yosemite
|
||||
sha256 "94059057636ee841d5cd0474c7f62bb9400b2a7236ca1da09c5593d866d3d81f" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "gst-plugins-base"
|
||||
|
||||
@@ -1,14 +1,13 @@
|
||||
class GstValidate < Formula
|
||||
desc "Tools to validate GstElements from GStreamer"
|
||||
homepage "http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-validate/html/"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.4.0.tar.xz"
|
||||
sha256 "ac30d1041a8cfe5d268439f5cedee7e9753ba49080fc67bff1266581198438d0"
|
||||
url "http://gstreamer.freedesktop.org/src/gst-validate/gst-validate-1.6.0.tar.xz"
|
||||
sha256 "3baef8c7b5363293c20314a30afd54629849fc597669991fdcf92303602dafee"
|
||||
|
||||
bottle do
|
||||
revision 1
|
||||
sha256 "450bf253e256d9031ad6ab0eb703e85d78e44b8bce2ad91090370abd5d7caf90" => :yosemite
|
||||
sha256 "b08355b9b695b2be027e9f162f36f8b18e98eb876e5c636c244a5dfb2b48e712" => :mavericks
|
||||
sha256 "e0d7815b3658c3227c49562c0c9ca532c66207df2e237e1977ce5dc159a2913f" => :mountain_lion
|
||||
sha256 "338d8f489811e92491ad6d86a96c76ac6056b6e178bb5caa412f73feff9b7d8f" => :el_capitan
|
||||
sha256 "46a75949ef97e6cfa1e1996886ebd34e1446752600e9308ce904ead70386ac19" => :yosemite
|
||||
sha256 "8d11ac9dc97c9f85f941ad6d684b3e2640795f02d02338562dd5e9a9da7f23f2" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -1,16 +1,13 @@
|
||||
class Gstreamer < Formula
|
||||
desc "GStreamer is a development framework for multimedia applications"
|
||||
homepage "http://gstreamer.freedesktop.org/"
|
||||
url "http://gstreamer.freedesktop.org/src/gstreamer/gstreamer-1.4.5.tar.xz"
|
||||
mirror "http://ftp.osuosl.org/pub/blfs/svn/g/gstreamer-1.4.5.tar.xz"
|
||||
sha256 "40801aa7f979024526258a0e94707ba42b8ab6f7d2206e56adbc4433155cb0ae"
|
||||
url "https://download.gnome.org/sources/gstreamer/1.6/gstreamer-1.6.0.tar.xz"
|
||||
sha256 "52ef885647afef11c8b7645a9afefe04aa09e8971c4b932e7717872ab8a30fcc"
|
||||
|
||||
bottle do
|
||||
revision 2
|
||||
sha256 "ef286655192a6ee7283fbb536465062e55d8f7627993adcc67152c1d3ec8ee85" => :el_capitan
|
||||
sha256 "ac4e49623736041c7d8fdc981c155b7c40e12c17c0f7e04d2f32d2f0ee1b5ffb" => :yosemite
|
||||
sha256 "2a91498326318c4de55ddb5eae47b3540bbda7ac44166899886e5cc1c2ad7fb2" => :mavericks
|
||||
sha256 "b943636f153cc792c2d63e7ce68c4084d1ffff2987606e8ec95f1ef0a77cea82" => :mountain_lion
|
||||
sha256 "6b75e4ba010fd85957d99abf356da19e4bb991031a5938bcd0c84e0e8ed25b8b" => :el_capitan
|
||||
sha256 "370ba64ff63f4d80c445b317a0380afb91c92fd60b45dde385f9ff888975df87" => :yosemite
|
||||
sha256 "32f9f7ee8a26494bac8ee4805b8a23569bbb2ab4cfd9779703d0be3ff772e0ae" => :mavericks
|
||||
end
|
||||
|
||||
head do
|
||||
|
||||
@@ -6,9 +6,10 @@ class Gstreamermm < Formula
|
||||
|
||||
bottle do
|
||||
cellar :any
|
||||
sha256 "e4e614f4c4e7fda7666eea57945aa93c11e973bf55b380801049fd86ec4c9184" => :yosemite
|
||||
sha256 "d73102b9fff62852dacbdc56133d8ea076bd0ee98178f4130429027b7cfdca27" => :mavericks
|
||||
sha256 "effafd4f64170919212081608852d5f116338c19f8a03073457b2122d2b5a7d1" => :mountain_lion
|
||||
revision 1
|
||||
sha256 "68ec9b15b33e8fdf3bf2a52d1ea1fb8798b8fdcae9d60870f1fc602a45fd570a" => :el_capitan
|
||||
sha256 "f03b02c1e6a7fda7056007a9d4e0d5799d54fb8e587d6bdee85c0cb3ed1d0182" => :yosemite
|
||||
sha256 "387e38811dde21973d36e13ab58960879f8d721c34349a31228da41bfddbdea8" => :mavericks
|
||||
end
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
@@ -56,6 +57,7 @@ class Gstreamermm < Formula
|
||||
-I#{glibmm.opt_lib}/glibmm-2.4/include
|
||||
-I#{gst_plugins_base.opt_include}/gstreamer-1.0
|
||||
-I#{gstreamer.opt_include}/gstreamer-1.0
|
||||
-I#{gstreamer.opt_lib}/gstreamer-1.0/include
|
||||
-I#{include}/gstreamermm-1.0
|
||||
-I#{libsigcxx.opt_include}/sigc++-2.0
|
||||
-I#{libsigcxx.opt_lib}/sigc++-2.0/include
|
||||
|
||||
@@ -4,7 +4,7 @@ class Guile < Formula
|
||||
url "http://ftpmirror.gnu.org/guile/guile-2.0.11.tar.xz"
|
||||
mirror "https://ftp.gnu.org/pub/gnu/guile/guile-2.0.11.tar.xz"
|
||||
sha256 "aed0a4a6db4e310cbdfeb3613fa6f86fddc91ef624c1e3f8937a6304c69103e2"
|
||||
revision 2
|
||||
revision 3
|
||||
|
||||
bottle do
|
||||
sha256 "d7e7ad8d491f84c1405b82ee8ef0da5b21f551b6a0f2795bae92e8bec2f19be2" => :el_capitan
|
||||
|
||||
@@ -22,6 +22,12 @@ class Harfbuzz < Formula
|
||||
|
||||
option "with-cairo", "Build command-line utilities that depend on Cairo"
|
||||
|
||||
# ld64 is needed to lookup @loader_path/libicudata.*.dylib
|
||||
depends_on :ld64
|
||||
|
||||
# the make binary shipped on Tiger cannot handle the gobject-introspection Makefiles
|
||||
depends_on "make" => :build if MacOS.version < :leopard
|
||||
|
||||
depends_on "pkg-config" => :build
|
||||
depends_on "glib"
|
||||
depends_on "freetype"
|
||||
@@ -30,6 +36,13 @@ class Harfbuzz < Formula
|
||||
depends_on "cairo" => :optional
|
||||
depends_on "graphite2" => :optional
|
||||
|
||||
# Fixes undefined constant on pre-10.6
|
||||
# https://github.com/mistydemeo/tigerbrew/issues/388
|
||||
patch do
|
||||
url "https://git.gnome.org/browse/gtk-osx/plain/patches/harfbuzz-kCTTypesetterOptionForcedEmbeddingLevel-Leopard.patch"
|
||||
sha256 "12b927a41d3e2983197a96d20a6776a911a7dcafc18135abf5f1148b96f180c0"
|
||||
end if MacOS.version < :snow_leopard
|
||||
|
||||
resource "ttf" do
|
||||
url "https://github.com/behdad/harfbuzz/raw/fc0daafab0336b847ac14682e581a8838f36a0bf/test/shaping/fonts/sha1sum/270b89df543a7e48e206a2d830c0e10e5265c630.ttf"
|
||||
sha256 "9535d35dab9e002963eef56757c46881f6b3d3b27db24eefcc80929781856c77"
|
||||
@@ -41,7 +54,6 @@ class Harfbuzz < Formula
|
||||
--prefix=#{prefix}
|
||||
--enable-introspection=yes
|
||||
--with-gobject=yes
|
||||
--with-coretext=yes
|
||||
]
|
||||
|
||||
args << "--with-coretext=yes" if MacOS.version >= :leopard
|
||||
@@ -52,7 +64,7 @@ class Harfbuzz < Formula
|
||||
|
||||
system "./autogen.sh" if build.head?
|
||||
system "./configure", *args
|
||||
system "make", "install"
|
||||
make "install"
|
||||
end
|
||||
|
||||
test do
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
class HerokuToolbelt < Formula
|
||||
desc "Everything you need to get started with Heroku"
|
||||
homepage "https://toolbelt.heroku.com/other"
|
||||
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.42.10.tgz"
|
||||
sha256 "fb979a603e955bd5f6561ad2bb1b8e88bec2c57d844264671323690f770d76f4"
|
||||
url "https://s3.amazonaws.com/assets.heroku.com/heroku-client/heroku-client-3.42.22.tgz"
|
||||
sha256 "752e74b0ccf87d706a551c451f2e912fa0417397804b5ad5ea2edd9869e6a2f6"
|
||||
head "https://github.com/heroku/heroku.git"
|
||||
|
||||
bottle :unneeded
|
||||
|
||||
depends_on :arch => :x86_64
|
||||
depends_on :ruby => "1.9"
|
||||
|
||||
def install
|
||||
inreplace 'bin/heroku', '/usr/bin/env ruby', Formula['ruby'].opt_bin/'ruby'
|
||||
libexec.install Dir["*"]
|
||||
# turn off autoupdates (off by default in HEAD)
|
||||
if build.stable?
|
||||
@@ -17,14 +19,6 @@ class HerokuToolbelt < Formula
|
||||
bin.write_exec_script libexec/"bin/heroku"
|
||||
end
|
||||
|
||||
def caveats
|
||||
<<-EOS.undent
|
||||
Unlike the standalone download for Heroku Toolbelt, the Homebrew package
|
||||
does not come with Foreman. It is available via RubyGems, direct download,
|
||||
and other installation methods. See https://ddollar.github.io/foreman/ for more info.
|
||||
EOS
|
||||
end
|
||||
|
||||
test do
|
||||
system "#{bin}/heroku", "version"
|
||||
end
|
||||
|
||||
Loaded 100 of 284 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user