Skip to content

Commit

Permalink
crystal: update to 0.27.2
Browse files Browse the repository at this point in the history
  • Loading branch information
mohd-akram authored and Chih-Hsuan Yen committed Mar 16, 2019
1 parent e461984 commit 9a415ae
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
17 changes: 9 additions & 8 deletions lang/crystal/Portfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
PortSystem 1.0
PortGroup github 1.0

github.setup crystal-lang crystal 0.27.0
github.setup crystal-lang crystal 0.27.2
revision 0
categories lang
platforms darwin
Expand Down Expand Up @@ -38,16 +38,17 @@ master_sites-append https://github.com/crystal-lang/${name}/releases/download/${
distfiles-append ${name}-${cr_full_ver}-${os.platform}-${build_arch}${extract.suffix}:bootstrap

checksums ${distname}${extract.suffix} \
rmd160 9a3eed38c62b8a8d293f0fbf32f1fe84b8654261 \
sha256 1608026ab08dfab002e98631fb56845cff2a280db578177ab010456c2a26794c \
size 2026765 \
rmd160 a235fe9128e09cda28bfc96957ede3833b9f2633 \
sha256 2be4039d912dc1150b81624c078af256c98fc45ab3ee0e7761e35c7842503e42 \
size 2061826 \
${name}-${cr_full_ver}-${os.platform}-${build_arch}${extract.suffix} \
rmd160 a82381f5c48d20fadf5f8a7387bfac4c04bf39a5 \
sha256 f34bb10357ce5a31ed37066750ee35443ed8cf5fc3f37d3490b984a4bfb1ee51 \
size 15280881
rmd160 87aa8d75d973c87f5785103f7dc07672d88ccc68 \
sha256 2fcd11a3c3d12176004c13aa90d8ca15acde7d1ffa9a82cbaadcd526984a8691 \
size 15340333

patchfiles patch-compiler.diff patch-readline.diff \
patch-crypto.diff patch-ssl.diff patch-xml.diff
patch-crypto.diff patch-ssl.diff patch-xml.diff \
patch-xml-reader.diff ; # Remove on next release

if {${os.platform} eq "darwin" && ${os.major} <= 15} {
pre-fetch {
Expand Down
10 changes: 10 additions & 0 deletions lang/crystal/files/patch-xml-reader.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
--- src/xml/reader.cr.orig 2019-03-16 02:39:46.000000000 +0400
+++ src/xml/reader.cr 2019-03-16 02:40:23.000000000 +0400
@@ -129,6 +129,7 @@

# Returns the XML for the node and its content including subtrees.
def read_outer_xml
+ return "" if node_type.none?
xml = LibXML.xmlTextReaderReadOuterXml(@reader)
xml ? String.new(xml) : ""
end

0 comments on commit 9a415ae

Please sign in to comment.