From 7a3babbd8c8d240b68c2a4172b96424324cf8716 Mon Sep 17 00:00:00 2001 From: Bertrand Jacquin Date: Sat, 18 Dec 2021 12:13:36 +0000 Subject: net-p2p/bisq: version bump Package-Manager: Portage-3.0.28, Repoman-3.0.3 --- net-p2p/bisq/Manifest | 3 +- net-p2p/bisq/bisq-1.7.5.ebuild | 88 ------------------------------------------ net-p2p/bisq/bisq-1.8.0.ebuild | 85 ++++++++++++++++++++++++++++++++++++++++ 3 files changed, 86 insertions(+), 90 deletions(-) delete mode 100644 net-p2p/bisq/bisq-1.7.5.ebuild create mode 100644 net-p2p/bisq/bisq-1.8.0.ebuild diff --git a/net-p2p/bisq/Manifest b/net-p2p/bisq/Manifest index 9f1957cb..1c1597d8 100644 --- a/net-p2p/bisq/Manifest +++ b/net-p2p/bisq/Manifest @@ -1,2 +1 @@ -DIST bisq-1.7.5.tar.gz 75475858 BLAKE2B 37d9c8254238f59e474b97ea46c76669b37437f55859e173534b827601fe6ec1ee1263f1eb3f62a6e52cb0222bd94cfe605ba0d3ad9b6f71f10c07ce15f777dd SHA512 92be390d0063f9bb9c1522baa19c36c5460eca43b8c5f1d8b17a01218ce707002d506cb03b06bd901666509a66f2967c74526c314f1d49c26e92792be0d4adc3 -DIST gradle-5.6.4-all.zip 139794962 BLAKE2B 1ed22491abf92188c6a233c7ec1b4635bc167c386777639dbc9f61dae89f8d7382185b937de54df97d4dbdfcfa82fba19c8e79faecd0d6a336bfd18264e8cfad SHA512 b2914e7497dc1eb2c68557466a2268b3f78371e00fdf9aa793ae6f614836ccb18ac9c9fb6d3b342c9ef152bdc474ae889a788f4b78b54fb83c1509781f2ee192 +DIST bisq-1.8.0.tar.gz 79657407 BLAKE2B 681278a48f62989164acaabdeac7554f302cb9e771480b8bce97dd489b452bb8e7d1fc5ecaf60ddb5880d004e1d86fad2654b526e570073d5b5a36120c4acc32 SHA512 605766386d15c4589b28ad9ec278f6cf902a5524c6ec39f324b746e97d7ecf9be56d8747721117c51d0aca3905fcf1ce50e868175fd05a7ff2237df5bd4d3837 diff --git a/net-p2p/bisq/bisq-1.7.5.ebuild b/net-p2p/bisq/bisq-1.7.5.ebuild deleted file mode 100644 index 2babcae7..00000000 --- a/net-p2p/bisq/bisq-1.7.5.ebuild +++ /dev/null @@ -1,88 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -EGRADLE_VER="5.6.4" - -inherit eutils java-pkg-2 - -DESCRIPTION="Decentralized governance for a decentralized exchange" -HOMEPAGE="https://bisq.network" - -LICENSE="AGPL-3+" -SLOT="0" -KEYWORDS="~amd64" - -DEPEND="|| ( - dev-java/openjdk:11 - dev-java/openjdk-bin:11 - ) - " -RDEPEND="|| ( - dev-java/openjdk:11[javafx] - ( - dev-java/openjdk-bin:11 - dev-java/openjfx:11 - ) - ) -" - -SRC_URI="https://bisq.network/downloads/archive/v${PV}.tar.gz -> ${P}.tar.gz - https://services.gradle.org/distributions/gradle-${EGRADLE_VER}-all.zip" - -# FIXME identify all download made by gradle -# See https://stackoverflow.com/questions/37697622/gradle-get-url-of-dependency-artifact -RESTRICT="network-sandbox" - -src_prepare () { - default - - if has_version "dev-java/openjdk:11" ; then - JAVA_HOME="${EPREFIX}/usr/$(get_libdir)/openjdk-11" - elif has_version "dev-java/openjdk-bin:11" ; then - JAVA_HOME="${EPREFIX}/opt/openjdk-bin-11" - else - die "Unable to find java" - fi - - export JAVA_HOME - export GRADLE_HOME="${WORKDIR}/gradle-${EGRADLE_VER}" -} - -src_compile () { - # FIXME add --offline - "${GRADLE_HOME}/bin/gradle" \ - -Djava.io.tmpdir="${T}" \ - --info \ - --console=verbose \ - --no-daemon \ - --no-build-cache \ - --project-cache-dir="${T}/gradle-project" \ - --gradle-user-home="${T}/gradle-homedir" \ - --stacktrace \ - --exclude-task test \ - :desktop:build \ - || die "gradle failed" - - # Force JAVA_HOME until dev-java/openjdk:11 supports USE=gentoo-vm - sed -i \ - -e "/^DEFAULT_JVM_OPTS=/i export JAVA_HOME='${JAVA_HOME}'" \ - desktop/build/app/bin/bisq-desktop \ - || die "failed to alter desktop/build/app/bin/bisq-desktop" -} - -src_install () { - # Binary - into /opt/bisq - dobin desktop/build/app/bin/bisq-desktop - dosym ../../opt/bisq/bin/bisq-desktop /usr/bin/bisq - - # Libraries - insinto /opt/bisq - doins -r desktop/build/app/lib - - # Documentation - dodoc README.md CONTRIBUTING.md - dodoc -r docs/. -} diff --git a/net-p2p/bisq/bisq-1.8.0.ebuild b/net-p2p/bisq/bisq-1.8.0.ebuild new file mode 100644 index 00000000..6586da18 --- /dev/null +++ b/net-p2p/bisq/bisq-1.8.0.ebuild @@ -0,0 +1,85 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils java-pkg-2 + +DESCRIPTION="Decentralized governance for a decentralized exchange" +HOMEPAGE="https://bisq.network" + +LICENSE="AGPL-3+" +SLOT="0" +KEYWORDS="~amd64" + +DEPEND="dev-java/gradle-bin + || ( + dev-java/openjdk:11 + dev-java/openjdk-bin:11 + ) + " +RDEPEND="|| ( + dev-java/openjdk:11[javafx] + ( + dev-java/openjdk-bin:11 + dev-java/openjfx:11 + ) + ) +" + +SRC_URI="https://bisq.network/downloads/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +# FIXME identify all download made by gradle +# See https://stackoverflow.com/questions/37697622/gradle-get-url-of-dependency-artifact +RESTRICT="network-sandbox" + +src_prepare () { + default + + if has_version "dev-java/openjdk:11" ; then + JAVA_HOME="${EPREFIX}/usr/$(get_libdir)/openjdk-11" + elif has_version "dev-java/openjdk-bin:11" ; then + JAVA_HOME="${EPREFIX}/opt/openjdk-bin-11" + else + die "Unable to find java" + fi + + export JAVA_HOME +} + +src_compile () { + # FIXME add --offline + gradle \ + -Djava.io.tmpdir="${T}" \ + --info \ + --console=verbose \ + --no-daemon \ + --no-build-cache \ + --project-cache-dir="${T}/gradle-project" \ + --gradle-user-home="${T}/gradle-homedir" \ + --stacktrace \ + --exclude-task test \ + :desktop:build \ + || die "gradle failed" + + # Force JAVA_HOME until dev-java/openjdk:11 supports USE=gentoo-vm + sed -i \ + -e "/^DEFAULT_JVM_OPTS=/i export JAVA_HOME='${JAVA_HOME}'" \ + desktop/build/app/bin/bisq-desktop \ + || die "failed to alter desktop/build/app/bin/bisq-desktop" +} + +src_install () { + # Binary + into /opt/bisq + dobin desktop/build/app/bin/bisq-desktop + dosym ../../opt/bisq/bin/bisq-desktop /usr/bin/bisq + + # Libraries + insinto /opt/bisq + doins -r desktop/build/app/lib + + # Documentation + dodoc README.md CONTRIBUTING.md + dodoc -r docs/. +} -- cgit v1.2.3