mirror of
https://github.com/ivabus/pantry
synced 2024-11-10 02:25:18 +03:00
parent
69ef92a7aa
commit
46c5117b92
7
projects/soliditylang.org/fixture.sol
Normal file
7
projects/soliditylang.org/fixture.sol
Normal file
|
@ -0,0 +1,7 @@
|
|||
// SPDX-License-Identifier: GPL-3.0
|
||||
pragma solidity ^0.8.0;
|
||||
contract HelloWorld {
|
||||
function helloWorld() external pure returns (string memory) {
|
||||
return "Hello, World!";
|
||||
}
|
||||
}
|
41
projects/soliditylang.org/package.yml
Normal file
41
projects/soliditylang.org/package.yml
Normal file
|
@ -0,0 +1,41 @@
|
|||
distributable:
|
||||
url: https://github.com/ethereum/solidity/releases/download//v{{version}}/solidity_{{version}}.tar.gz
|
||||
strip-components: 1
|
||||
|
||||
versions:
|
||||
github: ethereum/solidity/releases/tags
|
||||
|
||||
provides:
|
||||
- bin/solc
|
||||
- bin/yul-phaser
|
||||
|
||||
dependencies:
|
||||
boost.org: 1
|
||||
|
||||
interprets:
|
||||
extensions: sol
|
||||
args: solc --bin
|
||||
|
||||
build:
|
||||
dependencies:
|
||||
tea.xyz/gx/cc: c99
|
||||
tea.xyz/gx/make: '*'
|
||||
cmake.org: 3
|
||||
freedesktop.org/pkg-config: ^0.29
|
||||
git-scm.org: 2
|
||||
working-directory: build
|
||||
script: |
|
||||
cmake .. $ARGS
|
||||
make --jobs {{hw.concurrency}}
|
||||
make install
|
||||
rm {{prefix}}/bin/solidity-upgrade
|
||||
test:
|
||||
make test
|
||||
env:
|
||||
ARGS:
|
||||
- -DCMAKE_BUILD_TYPE=Release
|
||||
- -DCMAKE_INSTALL_PREFIX={{prefix}}
|
||||
- -DPEDANTIC=OFF # otherwise fails due to deprecations in boost ^1.81
|
||||
|
||||
test:
|
||||
solc --bin fixture.sol
|
Loading…
Reference in a new issue