dev-lang/dafny: fixes; regen Manifest; z3 4.8.5
Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Maciej Barć <xgqt@gentoo.org>
This commit is contained in:
parent
a57d2819e3
commit
623d9c3069
@ -1 +1 @@
|
|||||||
DIST dafny-3.3.0.tar.gz 3413584 BLAKE2B 5d9cd2da9559cbc5584fe9c6dccf0773ba7b981f3708dc8695907243d647e34ad43ed89fb64a95f9b646209d5f963ca0dd287764d3b7ae89335c8fbb50091eac SHA512 1a9af37a1826176f369e1c732e561bfa1e10a5b1fe7c0b61d7e64754052b806f776e70c40080c93cde4a47a7cb9f9e208899d77be88104606d833f77abd160ab
|
DIST dafny-3.3.0.tar.gz 3719703 BLAKE2B a5eba706dd592f2bcff83b73fd650c429d71200bb65d9d5db74642640e2d7deb1ed0cb282cd36fa11f0a30357ce6296c867dd712183b64782c222041e0a72378 SHA512 ca8b37fac3620e5732677cf09ca8699823b84485b37dabd60fd0307b03b761c0ef90d7526a6599b1360337e6405c33fc2ecbe599a8a9a38476885a3fdae55977
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
|
|
||||||
EAPI=8
|
EAPI=8
|
||||||
|
|
||||||
DOTNET_FRAMEWORK="5.0"
|
DOTNET_V=5.0
|
||||||
|
DOTNET=net${DOTNET_V}
|
||||||
|
|
||||||
DESCRIPTION="Verification-aware programming language"
|
DESCRIPTION="Verification-aware programming language"
|
||||||
HOMEPAGE="https://dafny-lang.github.io/dafny/"
|
HOMEPAGE="https://dafny-lang.github.io/dafny/"
|
||||||
@ -12,7 +13,7 @@ if [[ "${PV}" == *9999* ]]; then
|
|||||||
inherit git-r3
|
inherit git-r3
|
||||||
EGIT_REPO_URI="https://github.com/dafny-lang/${PN}.git"
|
EGIT_REPO_URI="https://github.com/dafny-lang/${PN}.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/dafny-lang/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
|
SRC_URI="https://github.com/dafny-lang/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -20,18 +21,22 @@ fi
|
|||||||
RESTRICT="network-sandbox test"
|
RESTRICT="network-sandbox test"
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE="debug"
|
IUSE="debug doc"
|
||||||
|
|
||||||
BDEPEND="
|
|
||||||
|| ( dev-java/gradle-bin dev-java/gradle )
|
|
||||||
"
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
>=virtual/jdk-1.8.0:*
|
>=virtual/jdk-1.8.0:*
|
||||||
virtual/dotnet-sdk:${DOTNET_FRAMEWORK}
|
virtual/dotnet-sdk:${DOTNET_V}
|
||||||
"
|
"
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
${DEPEND}
|
${DEPEND}
|
||||||
sci-mathematics/z3
|
~sci-mathematics/z3-4.8.5
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
|| ( dev-java/gradle-bin dev-java/gradle )
|
||||||
|
doc? (
|
||||||
|
dev-texlive/texlive-xetex
|
||||||
|
|| ( app-text/pandoc app-text/pandoc-bin )
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
DAFNY_EXES="
|
DAFNY_EXES="
|
||||||
@ -43,36 +48,46 @@ DAFNY_EXES="
|
|||||||
QA_PREBUILT="${DAFNY_EXES}"
|
QA_PREBUILT="${DAFNY_EXES}"
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
|
unset _JAVA_OPTIONS
|
||||||
|
export GRADLE_USER_HOME="${HOME}/.gradle"
|
||||||
|
|
||||||
if use debug ; then
|
if use debug ; then
|
||||||
DOTNET_CONFIGURATION="Debug"
|
DOTNET_CONFIGURATION=Debug
|
||||||
else
|
else
|
||||||
DOTNET_CONFIGURATION="Release"
|
DOTNET_CONFIGURATION=Release
|
||||||
fi
|
fi
|
||||||
export DOTNET_CONFIGURATION
|
export DOTNET_CONFIGURATION
|
||||||
einfo "DOTNET_CONFIGURATION=${DOTNET_CONFIGURATION}"
|
einfo "DOTNET_CONFIGURATION: ${DOTNET_CONFIGURATION}"
|
||||||
|
|
||||||
default
|
default
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
dotnet restore --no-cache ./Source/Dafny.sln ||
|
ebegin "Restoring"
|
||||||
die "dotnet restore filed"
|
dotnet restore --no-cache ./Source/Dafny.sln
|
||||||
|
eend $? || die "dotnet restore filed"
|
||||||
}
|
}
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
dotnet build --configuration "${DOTNET_CONFIGURATION}" ./Source/Dafny.sln ||
|
ebegin "Building"
|
||||||
die "dotnet build failed"
|
dotnet build --configuration "${DOTNET_CONFIGURATION}" ./Source/Dafny.sln
|
||||||
|
eend $? || die "dotnet build failed"
|
||||||
|
|
||||||
|
use doc && emake -j1 refman-release
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
insinto /usr/share/${PN}
|
insinto /usr/share/${PN}
|
||||||
doins -r ./Binaries/net${DOTNET_FRAMEWORK}/*
|
doins -r ./Binaries/${DOTNET}/*
|
||||||
|
|
||||||
local exe
|
local exe
|
||||||
for exe in ${DAFNY_EXES} ; do
|
for exe in ${DAFNY_EXES} ; do
|
||||||
# fix permissions (make executable)
|
|
||||||
fperms +x "/${exe}"
|
fperms +x "/${exe}"
|
||||||
# create symlinks to bin (also convert to a lowercase name)
|
|
||||||
dosym "../../${exe}" "/usr/bin/$(basename "${exe,,}")"
|
dosym "../../${exe}" "/usr/bin/$(basename "${exe,,}")"
|
||||||
|
dosym "../../${exe}" "/usr/bin/$(basename "${exe}")"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
dodoc *.md *.txt
|
||||||
|
|
||||||
|
use doc && dodoc docs/DafnyRef/DafnyRef.pdf
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user