Commits
Chris Jones authored e6f08a92ea7
9 9 | |
10 10 | # epoch unfortunately needed to go back to 0.18.0 as 0.19.0 |
11 11 | # built tensorflow badily, giving runtime seg. faults... |
12 12 | # Now resolved, but epoch must NOT be removed though now. |
13 13 | epoch 1 |
14 14 | |
15 15 | # ports |
16 16 | name bazel |
17 17 | subport bazel25 { } |
18 18 | subport bazel26 { } |
19 + | subport bazel29 { } |
19 20 | |
20 21 | if { ${name} eq ${subport} } { |
21 22 | |
22 23 | # Main port |
23 24 | github.setup bazelbuild ${name} 2.0.0 |
24 25 | revision 0 |
25 26 | |
26 - | conflicts bazel25 bazel26 |
27 + | conflicts bazel25 bazel26 bazel29 |
27 28 | |
28 29 | checksums rmd160 acf9b886d2ec69f2c7019037e3aeba6de48cb011 \ |
29 30 | sha256 724da3c656f68e787a86ebb9844773aa1c2e3a873cc39462a8f1b336153d6cbb \ |
30 31 | size 259625808 |
31 32 | |
32 33 | if { ${os.platform} eq "darwin" && ${os.major} < 16 } { |
33 34 | known_fail yes |
34 35 | # https://trac.macports.org/ticket/58518 |
35 36 | pre-fetch { |
36 37 | ui_error "${name} ${version} requires macOS10.12 or newer." |
37 38 | return -code error "incompatible macOS version" |
38 39 | } |
39 40 | } |
41 + | |
42 + | # Required java version. |
43 + | java.version 12+ |
44 + | # JDK port to install if required java not found |
45 + | java.fallback openjdk13 |
46 + | |
47 + | } elseif { "bazel29" eq ${subport} } { |
48 + | |
49 + | # Note this port is the current build dependency for py-tensorflaw, and as such |
50 + | # the version here is *specifically* the one required. Do not update.... |
51 + | github.setup bazelbuild ${name} 0.29.1 |
52 + | revision 0 |
53 + | |
54 + | # livecheck none is correct here, see above. |
55 + | livecheck.type none |
56 + | |
57 + | conflicts bazel bazel25 bazel26 |
58 + | |
59 + | checksums rmd160 e83da6d224b5888da300082fd07a7f0457f2d07a \ |
60 + | sha256 872a52cff208676e1169b3e1cae71b1fe572c4109cbd66eab107d8607c378de5 \ |
61 + | size 265744999 |
62 + | |
63 + | if { ${os.platform} eq "darwin" && ${os.major} < 14 } { |
64 + | known_fail yes |
65 + | # https://trac.macports.org/ticket/58518 |
66 + | pre-fetch { |
67 + | ui_error "${name} ${version} requires macOS10.10 or newer." |
68 + | return -code error "incompatible macOS version" |
69 + | } |
70 + | } |
40 71 | |
41 72 | # Required java version. |
42 73 | java.version 12+ |
43 74 | # JDK port to install if required java not found |
44 75 | java.fallback openjdk13 |
45 76 | |
46 77 | } elseif { "bazel26" eq ${subport} } { |
47 78 | |
48 79 | # Note this port is the current build dependency for py-tensorflaw, and as such |
49 80 | # the version here is *specifically* the one required. Do not update.... |
50 81 | github.setup bazelbuild ${name} 0.26.1 |
51 82 | revision 0 |
52 83 | |
53 84 | # livecheck none is correct here, see above. |
54 85 | livecheck.type none |
55 86 | |
56 - | conflicts bazel bazel25 |
87 + | conflicts bazel bazel25 bazel29 |
57 88 | |
58 89 | checksums rmd160 a430c264af30bb9e0e89199e3efe11d6a31bc3b1 \ |
59 90 | sha256 c0e94f8f818759f3f67af798c38683520c540f469cb41aea8f5e5a0e43f11600 \ |
60 91 | size 244633948 |
61 92 | |
62 93 | if { ${os.platform} eq "darwin" && ${os.major} < 14 } { |
63 94 | known_fail yes |
64 95 | # https://trac.macports.org/ticket/58518 |
65 96 | pre-fetch { |
66 97 | ui_error "${name} ${version} requires macOS10.10 or newer." |
74 105 | java.fallback openjdk13 |
75 106 | |
76 107 | } elseif { "bazel25" eq ${subport} } { |
77 108 | |
78 109 | github.setup bazelbuild ${name} 0.25.2 |
79 110 | revision 1 |
80 111 | |
81 112 | # livecheck none is correct here, see above. |
82 113 | livecheck.type none |
83 114 | |
84 - | conflicts bazel bazel26 |
115 + | conflicts bazel bazel26 bazel29 |
85 116 | |
86 117 | checksums rmd160 cfff49a4be85f7693ae615c293b13d0a447b80d7 \ |
87 118 | sha256 7456032199852c043e6c5b3e4c71dd8089c1158f72ec554e6ec1c77007f0ab51 \ |
88 119 | size 275804130 |
89 120 | |
90 121 | if { ${os.platform} eq "darwin" && ${os.major} < 14 } { |
91 122 | known_fail yes |
92 123 | # https://trac.macports.org/ticket/58518 |
93 124 | pre-fetch { |
94 125 | ui_error "${name} ${version} requires macOS10.10 or newer." |