public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-lang/solidity/files/, dev-lang/solidity/
@ 2017-12-20 19:47 Craig Andrews
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Andrews @ 2017-12-20 19:47 UTC (permalink / raw
  To: gentoo-commits

commit:     6632bce8e713fab5f91ca75798ba9ae546f58c16
Author:     Mathy Vanvoorden <mathy <AT> vanvoorden <DOT> be>
AuthorDate: Tue Nov  7 22:35:49 2017 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Wed Dec 20 19:47:16 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6632bce8

dev-lang/solidity: version bump to 0.4.18

The previous patch needed to build valid releases is no longer needed
since upstream now provides valid release tarballs.

A new patch is added to remove the download and static compile of jsoncpp
during the build. The dependency has been fixed on 1.8.1 since the code
does not compile with a newer version. Upstream actually fixes to 1.7.7
but that version isn't in the tree and 1.8.1 works.

Closes: https://bugs.gentoo.org/629998
Closes: https://bugs.gentoo.org/627940
Package-Manager: Portage-2.3.8, Repoman-2.3.4

 dev-lang/solidity/Manifest                         |  1 +
 ...solidity-0.4.18-fix-cmake-external-jsoncpp.diff | 15 +++++++++
 dev-lang/solidity/solidity-0.4.18.ebuild           | 37 ++++++++++++++++++++++
 3 files changed, 53 insertions(+)

diff --git a/dev-lang/solidity/Manifest b/dev-lang/solidity/Manifest
index 8f5a3e2236b..28e0008baeb 100644
--- a/dev-lang/solidity/Manifest
+++ b/dev-lang/solidity/Manifest
@@ -1 +1,2 @@
+DIST solidity-0.4.18.tar.gz 1005571 BLAKE2B b7748f1e9ceb260ee5c02a5e6ddb7a3387a6f1df252889258045cf03e3cab365f1ac41c7e75805a49b71beceb88439855c53b6c59a81d610db48f9fe5256da55 SHA512 aa88060567a50fa833a81ef2c9ce9614ed0fddd9dc82c1546998dacd9a7cad1863882aa0700d830f80fe52bd91659a9fa07434af193624206876ba7224c34eb7
 DIST solidity-0.4.2.tar.gz 495039 BLAKE2B ee09fc457d64727468eedb3d9150ad123f8e7cbfe80a71de0a730f43bd3b0b71f2ceb01ba189b542e273cfe4c1bccef3f0e0c5077512992c058729f52fded015 SHA512 2ef2e58775e22eefce867ee73dbab61f54def1edd95e089ec3a388b5aaba316c44fe18b92d45e070014b9df6e450b2b27fe78434f5db40f0476c505b2541572c

diff --git a/dev-lang/solidity/files/solidity-0.4.18-fix-cmake-external-jsoncpp.diff b/dev-lang/solidity/files/solidity-0.4.18-fix-cmake-external-jsoncpp.diff
new file mode 100644
index 00000000000..1acafc9d9e3
--- /dev/null
+++ b/dev-lang/solidity/files/solidity-0.4.18-fix-cmake-external-jsoncpp.diff
@@ -0,0 +1,15 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 24bea3b3..4326927b 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,7 +18,9 @@ include(EthCcache)
+ 
+ # Let's find our dependencies
+ include(EthDependencies)
+-include(jsoncpp)
++find_package(PkgConfig REQUIRED)
++pkg_check_modules(JSONCPP jsoncpp)
++include_directories("${JSONCPP_INCLUDE_DIRS}")
+ 
+ find_package(Threads)
+ 

diff --git a/dev-lang/solidity/solidity-0.4.18.ebuild b/dev-lang/solidity/solidity-0.4.18.ebuild
new file mode 100644
index 00000000000..8a36d44a909
--- /dev/null
+++ b/dev-lang/solidity/solidity-0.4.18.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+MY_P="${PN}_${PV}"
+
+DESCRIPTION="The Solidity Contract-Oriented Programming Language"
+HOMEPAGE="https://github.com/ethereum/solidity"
+SRC_URI="https://github.com/ethereum/${PN}/releases/download/v${PV}/${MY_P}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="=dev-libs/jsoncpp-1.8.1:=
+	>=dev-libs/boost-1.54:=
+"
+RDEPEND="${DEPEND}"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+	# Upstream downloads and builds a static jsoncpp during build
+	"${FILESDIR}"/${P}-fix-cmake-external-jsoncpp.diff
+)
+
+src_configure() {
+	local mycmakeargs=(
+		"-DBoost_USE_STATIC_LIBS=off"
+	)
+
+	cmake-utils_src_configure
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-lang/solidity/files/, dev-lang/solidity/
@ 2017-12-20 19:47 Craig Andrews
  0 siblings, 0 replies; 2+ messages in thread
From: Craig Andrews @ 2017-12-20 19:47 UTC (permalink / raw
  To: gentoo-commits

commit:     d650a0beae9042b59f844c70587b2c463015b71a
Author:     Craig Andrews <candrews <AT> gentoo <DOT> org>
AuthorDate: Wed Dec 20 19:46:35 2017 +0000
Commit:     Craig Andrews <candrews <AT> gentoo <DOT> org>
CommitDate: Wed Dec 20 19:47:20 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d650a0be

dev-lang/solidity: Cleanup old version

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 dev-lang/solidity/Manifest                         |  1 -
 .../solidity/files/solidity-0.4.2-commit_hash.txt  |  1 -
 dev-lang/solidity/solidity-0.4.2.ebuild            | 38 ----------------------
 3 files changed, 40 deletions(-)

diff --git a/dev-lang/solidity/Manifest b/dev-lang/solidity/Manifest
index 28e0008baeb..e5bfbe94e0b 100644
--- a/dev-lang/solidity/Manifest
+++ b/dev-lang/solidity/Manifest
@@ -1,2 +1 @@
 DIST solidity-0.4.18.tar.gz 1005571 BLAKE2B b7748f1e9ceb260ee5c02a5e6ddb7a3387a6f1df252889258045cf03e3cab365f1ac41c7e75805a49b71beceb88439855c53b6c59a81d610db48f9fe5256da55 SHA512 aa88060567a50fa833a81ef2c9ce9614ed0fddd9dc82c1546998dacd9a7cad1863882aa0700d830f80fe52bd91659a9fa07434af193624206876ba7224c34eb7
-DIST solidity-0.4.2.tar.gz 495039 BLAKE2B ee09fc457d64727468eedb3d9150ad123f8e7cbfe80a71de0a730f43bd3b0b71f2ceb01ba189b542e273cfe4c1bccef3f0e0c5077512992c058729f52fded015 SHA512 2ef2e58775e22eefce867ee73dbab61f54def1edd95e089ec3a388b5aaba316c44fe18b92d45e070014b9df6e450b2b27fe78434f5db40f0476c505b2541572c

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
deleted file mode 100644
index fd2779b6375..00000000000
--- a/dev-lang/solidity/files/solidity-0.4.2-commit_hash.txt
+++ /dev/null
@@ -1 +0,0 @@
-af6afb04

diff --git a/dev-lang/solidity/solidity-0.4.2.ebuild b/dev-lang/solidity/solidity-0.4.2.ebuild
deleted file mode 100644
index 7deebb0fb76..00000000000
--- a/dev-lang/solidity/solidity-0.4.2.ebuild
+++ /dev/null
@@ -1,38 +0,0 @@
-# Copyright 1999-2017 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit cmake-utils
-
-DESCRIPTION="The Solidity Contract-Oriented Programming Language"
-HOMEPAGE="https://github.com/ethereum/solidity"
-SRC_URI="https://github.com/ethereum/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-
-LICENSE="GPL-3"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE=""
-
-DEPEND="dev-libs/jsoncpp:=
-	dev-libs/boost:=
-"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
-	cmake-utils_src_prepare
-
-	# The build won't work without this file but it is missing from
-	# the release tarball.
-	#
-	# Reported upstream: https://github.com/ethereum/solidity/issues/1183
-
-	cp "${FILESDIR}"/${P}-commit_hash.txt "${S}"/commit_hash.txt || die "Could not copy commit hash"
-
-	# Without this file the build is marked as a developer version
-	# but it is missing from the release tarball.
-	#
-	# Reported upstream: https://github.com/ethereum/solidity/issues/1183
-
-	touch "${S}"/prerelease.txt || die "Could not mark as release version"
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-12-20 19:47 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-12-20 19:47 [gentoo-commits] repo/gentoo:master commit in: dev-lang/solidity/files/, dev-lang/solidity/ Craig Andrews
  -- strict thread matches above, loose matches on Subject: below --
2017-12-20 19:47 Craig Andrews

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox