git: e26af9cd5880 - main - lang/solidity: update to 0.8.13 release.

From: Alex Dupre <ale_at_FreeBSD.org>
Date: Wed, 13 Apr 2022 13:56:52 UTC
The branch main has been updated by ale:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e26af9cd588079493e1843ec3e3411c46cdb5757

commit e26af9cd588079493e1843ec3e3411c46cdb5757
Author:     Alex Dupre <ale@FreeBSD.org>
AuthorDate: 2022-04-13 12:47:01 +0000
Commit:     Alex Dupre <ale@FreeBSD.org>
CommitDate: 2022-04-13 13:56:48 +0000

    lang/solidity: update to 0.8.13 release.
---
 lang/solidity/Makefile                                      |  2 +-
 lang/solidity/distinfo                                      |  6 +++---
 lang/solidity/files/patch-libevmasm_Assembly.cpp            | 11 +++++++++++
 lang/solidity/files/patch-libevmasm_Instruction.h           |  6 +++---
 lang/solidity/files/patch-libevmasm_SemanticInformation.cpp | 11 +++++++++++
 lang/solidity/files/patch-libevmasm_SimplificationRule.h    | 11 +++++++++++
 6 files changed, 40 insertions(+), 7 deletions(-)

diff --git a/lang/solidity/Makefile b/lang/solidity/Makefile
index 8ec9a3f997ba..4a2b8337020f 100644
--- a/lang/solidity/Makefile
+++ b/lang/solidity/Makefile
@@ -1,7 +1,7 @@
 # Created by: Alex Dupre <ale@FreeBSD.org>
 
 PORTNAME=	solidity
-PORTVERSION=	0.8.12
+PORTVERSION=	0.8.13
 CATEGORIES=	lang
 MASTER_SITES=	https://github.com/ethereum/solidity/releases/download/v${PORTVERSION}/
 DISTNAME=	${PORTNAME}_${PORTVERSION}
diff --git a/lang/solidity/distinfo b/lang/solidity/distinfo
index d07e4f4f2452..557825a2ffad 100644
--- a/lang/solidity/distinfo
+++ b/lang/solidity/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1645092631
-SHA256 (solidity_0.8.12.tar.gz) = c63c2caf64feaef9fbde7c8d26e3d15aa9b159d08e7213e1e6bd3e4fd06c8308
-SIZE (solidity_0.8.12.tar.gz) = 3147863
+TIMESTAMP = 1648132604
+SHA256 (solidity_0.8.13.tar.gz) = 474c76b30f6de12e1d84171d094a110f4a9dbee8e110313de430e7ebabccb3da
+SIZE (solidity_0.8.13.tar.gz) = 3183155
diff --git a/lang/solidity/files/patch-libevmasm_Assembly.cpp b/lang/solidity/files/patch-libevmasm_Assembly.cpp
new file mode 100644
index 000000000000..41034a4cceaa
--- /dev/null
+++ b/lang/solidity/files/patch-libevmasm_Assembly.cpp
@@ -0,0 +1,11 @@
+--- libevmasm/Assembly.cpp.orig	2022-03-24 17:16:26 UTC
++++ libevmasm/Assembly.cpp
+@@ -48,6 +48,8 @@ using namespace solidity::evmasm;
+ using namespace solidity::langutil;
+ using namespace solidity::util;
+ 
++#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
++
+ AssemblyItem const& Assembly::append(AssemblyItem _i)
+ {
+ 	assertThrow(m_deposit >= 0, AssemblyException, "Stack underflow.");
diff --git a/lang/solidity/files/patch-libevmasm_Instruction.h b/lang/solidity/files/patch-libevmasm_Instruction.h
index ddefe0e6d4cf..3b8c13e7d7e6 100644
--- a/lang/solidity/files/patch-libevmasm_Instruction.h
+++ b/lang/solidity/files/patch-libevmasm_Instruction.h
@@ -1,8 +1,8 @@
---- libevmasm/Instruction.h.orig	2020-12-16 17:41:40 UTC
+--- libevmasm/Instruction.h.orig	2022-03-16 14:18:52 UTC
 +++ libevmasm/Instruction.h
-@@ -27,6 +27,8 @@
+@@ -26,6 +26,8 @@
+ #include <libsolutil/Common.h>
  #include <libsolutil/Assertions.h>
- #include <functional>
  
 +#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
 +
diff --git a/lang/solidity/files/patch-libevmasm_SemanticInformation.cpp b/lang/solidity/files/patch-libevmasm_SemanticInformation.cpp
new file mode 100644
index 000000000000..1d7ec7ac648c
--- /dev/null
+++ b/lang/solidity/files/patch-libevmasm_SemanticInformation.cpp
@@ -0,0 +1,11 @@
+--- libevmasm/SemanticInformation.cpp.orig	2022-03-24 17:18:03 UTC
++++ libevmasm/SemanticInformation.cpp
+@@ -29,6 +29,8 @@ using namespace std;
+ using namespace solidity;
+ using namespace solidity::evmasm;
+ 
++#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
++
+ vector<SemanticInformation::Operation> SemanticInformation::readWriteOperations(Instruction _instruction)
+ {
+ 	switch (_instruction)
diff --git a/lang/solidity/files/patch-libevmasm_SimplificationRule.h b/lang/solidity/files/patch-libevmasm_SimplificationRule.h
new file mode 100644
index 000000000000..df9e65db7012
--- /dev/null
+++ b/lang/solidity/files/patch-libevmasm_SimplificationRule.h
@@ -0,0 +1,11 @@
+--- libevmasm/SimplificationRule.h.orig	2022-03-24 17:18:35 UTC
++++ libevmasm/SimplificationRule.h
+@@ -25,6 +25,8 @@
+ #include <libsolutil/CommonData.h>
+ #include <functional>
+ 
++#undef MSIZE // remove MSIZE definition from <sys/params.h>, included by boost 1.66.0
++
+ namespace solidity::evmasm
+ {
+