From 03c576ab8d4aa67228a74f4b8aeda5c4b5daab53 Mon Sep 17 00:00:00 2001 From: Fabian Castelli Date: Sat, 28 Aug 2021 09:54:48 +0200 Subject: [PATCH] Prepare tar and git download option --- deal.II-toolchain/packages/ginkgo.package | 31 +++++++++++++++++++---- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/deal.II-toolchain/packages/ginkgo.package b/deal.II-toolchain/packages/ginkgo.package index 21c1b40..2836784 100644 --- a/deal.II-toolchain/packages/ginkgo.package +++ b/deal.II-toolchain/packages/ginkgo.package @@ -2,11 +2,32 @@ ## GINKGO ## ################################################################################ -VERSION=v1.4.0 -NAME=ginkgo.git -SOURCE=https://github.com/ginkgo-project/ -EXTRACTSTO=ginkgo-${VERSION} -PACKING=git +# By default load the tarball. +# To load the git repository define a variable CANDI_GINKGO_LOAD_TARBALL=OFF. +if [ -z ${CANDI_GINKGO_LOAD_TARBALL} ]; then + CANDI_GINKGO_LOAD_TARBALL=ON +fi + +if [ ${CANDI_GINKGO_LOAD_TARBALL} = ON ]; then + # download release tarball + VERSION=1.4.0 + CHECKSUM=6dcadbd3e93f6ec58ef6cda5b980fbf51ea3c7c13e27952ef38804058ac93f08 + CHECKSUM="${CHECKSUM} 10d244ce127cca3c735587d836c6308cfca0c855" + CHECKSUM="${CHECKSUM} d7ff9d564f8ca96b9ad33621821aff48" + + NAME=v${VERSION} + SOURCE=https://github.com/ginkgo-project/ginkgo/archive/refs/tags/ + EXTRACTSTO=ginkgo-${VERSION} + PACKING=.tar.gz +else + # download git repository + VERSION=v1.4.0 + NAME=ginkgo.git + SOURCE=https://github.com/ginkgo-project/ + EXTRACTSTO=ginkgo-${VERSION} + PACKING=git +fi +unset CANDI_GINKGO_LOAD_TARBALL BUILDCHAIN=cmake -- 2.39.5