Gentoo Archives: gentoo-commits

From: David Seifert <soap@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/solidity/, dev-lang/solidity/files/
Date: Wed, 12 Oct 2016 07:38:28
Message-Id: 1476257801.448a5dfc6ecd2f1c5d5db8c8ae0124155a5498ae.soap@gentoo
1 commit: 448a5dfc6ecd2f1c5d5db8c8ae0124155a5498ae
2 Author: Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
3 AuthorDate: Sat Oct 8 21:04:39 2016 +0000
4 Commit: David Seifert <soap <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 12 07:36:41 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448a5dfc
7
8 dev-lang/solidity: New package
9
10 Solidity is a high-level language whose syntax is similar
11 to that of JavaScript and it is designed to compile
12 to code for the Ethereum Virtual Machine.
13
14 Package-Manager: portage-2.3.0
15 Closes: https://github.com/gentoo/gentoo/pull/2514
16
17 Signed-off-by: David Seifert <soap <AT> gentoo.org>
18
19 dev-lang/solidity/Manifest | 1 +
20 .../solidity/files/solidity-0.4.2-commit_hash.txt | 1 +
21 dev-lang/solidity/metadata.xml | 12 +++++++
22 dev-lang/solidity/solidity-0.4.2.ebuild | 41 ++++++++++++++++++++++
23 4 files changed, 55 insertions(+)
24
25 diff --git a/dev-lang/solidity/Manifest b/dev-lang/solidity/Manifest
26 new file mode 100644
27 index 00000000..9e7a8e6
28 --- /dev/null
29 +++ b/dev-lang/solidity/Manifest
30 @@ -0,0 +1 @@
31 +DIST solidity-0.4.2.tar.gz 495039 SHA256 0dd176919cab5492aecb27d1d8de39182b5e880979d5082fca6d7a01ebce28f1 SHA512 2ef2e58775e22eefce867ee73dbab61f54def1edd95e089ec3a388b5aaba316c44fe18b92d45e070014b9df6e450b2b27fe78434f5db40f0476c505b2541572c WHIRLPOOL 541c2bd8d729bd9d1ef15739b539ca877b7c1f4e1ed9e9eda8ad7d3fd4c306001799727de14dae8fbf0092c31c9b0448c9ea7af92ca069ac24cf010f0a6c8ef6
32
33 diff --git a/dev-lang/solidity/files/solidity-0.4.2-commit_hash.txt b/dev-lang/solidity/files/solidity-0.4.2-commit_hash.txt
34 new file mode 100644
35 index 00000000..fd2779b
36 --- /dev/null
37 +++ b/dev-lang/solidity/files/solidity-0.4.2-commit_hash.txt
38 @@ -0,0 +1 @@
39 +af6afb04
40
41 diff --git a/dev-lang/solidity/metadata.xml b/dev-lang/solidity/metadata.xml
42 new file mode 100644
43 index 00000000..72530b2
44 --- /dev/null
45 +++ b/dev-lang/solidity/metadata.xml
46 @@ -0,0 +1,12 @@
47 +<?xml version="1.0" encoding="UTF-8"?>
48 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
49 +<pkgmetadata>
50 + <maintainer type="person">
51 + <email>mathy@××××××××××.be</email>
52 + <name>Mathy Vanvoorden</name>
53 + </maintainer>
54 + <maintainer type="project">
55 + <email>proxy-maint@g.o</email>
56 + <name>Proxy Maintainers</name>
57 + </maintainer>
58 +</pkgmetadata>
59
60 diff --git a/dev-lang/solidity/solidity-0.4.2.ebuild b/dev-lang/solidity/solidity-0.4.2.ebuild
61 new file mode 100644
62 index 00000000..0fa788e
63 --- /dev/null
64 +++ b/dev-lang/solidity/solidity-0.4.2.ebuild
65 @@ -0,0 +1,41 @@
66 +# Copyright 1999-2016 Gentoo Foundation
67 +# Distributed under the terms of the GNU General Public License v2
68 +# $Id$
69 +
70 +EAPI=6
71 +
72 +CMAKE_MIN_VERSION="3.0.0"
73 +
74 +inherit cmake-utils
75 +
76 +DESCRIPTION="The Solidity Contract-Oriented Programming Language"
77 +HOMEPAGE="https://github.com/ethereum/solidity"
78 +SRC_URI="https://github.com/ethereum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
79 +
80 +LICENSE="GPL-3"
81 +SLOT="0"
82 +KEYWORDS="~amd64 ~x86"
83 +IUSE=""
84 +
85 +DEPEND="dev-libs/jsoncpp:=
86 + dev-libs/boost:=
87 +"
88 +RDEPEND="${DEPEND}"
89 +
90 +src_prepare() {
91 + default
92 +
93 + # The build won't work without this file but it is missing from
94 + # the release tarball.
95 + #
96 + # Reported upstream: https://github.com/ethereum/solidity/issues/1183
97 +
98 + cp "${FILESDIR}"/${P}-commit_hash.txt "${S}"/commit_hash.txt || die "Could not copy commit hash"
99 +
100 + # Without this file the build is marked as a developer version
101 + # but it is missing from the release tarball.
102 + #
103 + # Reported upstream: https://github.com/ethereum/solidity/issues/1183
104 +
105 + touch "${S}"/prerelease.txt || die "Could not mark as release version"
106 +}