From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id EA0C413835A for ; Thu, 17 Dec 2020 07:29:43 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 42788E0992; Thu, 17 Dec 2020 07:29:43 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 18C1FE0992 for ; Thu, 17 Dec 2020 07:29:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 695543410D0 for ; Thu, 17 Dec 2020 07:29:41 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9502C38A for ; Thu, 17 Dec 2020 07:29:38 +0000 (UTC) From: "Sergei Trofimovich" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sergei Trofimovich" Message-ID: <1608190172.91089b1b6477243613403652fe95b9be2baf1462.slyfox@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/agda-stdlib/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/agda-stdlib/Manifest sci-mathematics/agda-stdlib/agda-stdlib-2.6.1.2.1.4.ebuild sci-mathematics/agda-stdlib/metadata.xml X-VCS-Directories: sci-mathematics/agda-stdlib/ X-VCS-Committer: slyfox X-VCS-Committer-Name: Sergei Trofimovich X-VCS-Revision: 91089b1b6477243613403652fe95b9be2baf1462 X-VCS-Branch: master Date: Thu, 17 Dec 2020 07:29:38 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e772c97f-3889-44f0-ac02-2156bbe78801 X-Archives-Hash: ba44133fbf7d9f8ba2c518feb8036bb1 commit: 91089b1b6477243613403652fe95b9be2baf1462 Author: Jack Todaro posteo org> AuthorDate: Thu Dec 17 05:37:00 2020 +0000 Commit: Sergei Trofimovich gentoo org> CommitDate: Thu Dec 17 07:29:32 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91089b1b sci-mathematics/agda-stdlib: bump up to 2.6.1.2.1.4 Signed-off-by: Jack Todaro posteo.org> Signed-off-by: Sergei Trofimovich gentoo.org> sci-mathematics/agda-stdlib/Manifest | 1 + .../agda-stdlib/agda-stdlib-2.6.1.2.1.4.ebuild | 67 ++++++++++++++++++++++ sci-mathematics/agda-stdlib/metadata.xml | 9 +-- 3 files changed, 71 insertions(+), 6 deletions(-) diff --git a/sci-mathematics/agda-stdlib/Manifest b/sci-mathematics/agda-stdlib/Manifest index 4279dcb29b8..690b60fabc1 100644 --- a/sci-mathematics/agda-stdlib/Manifest +++ b/sci-mathematics/agda-stdlib/Manifest @@ -1 +1,2 @@ DIST agda-stdlib-2.5.2.0.13.tar.gz 264701 BLAKE2B f35b419aac1b80af86217a86fb8e21a2f3427ef9629c8f2e284036859cd89da16ce1b64ceb87f8a3030b5bdb2a68b4f59f74a717fc1e13378ecb20cc6b28f59c SHA512 340a7b9cb15793cdbe99f558a32eaab3476b94b4d43d45bdc92c6b368197d075c977fd2f6ce0c5b0baf584289a2218b07dd030ad2b83f6d9e4bc7effee91eece +DIST agda-stdlib-2.6.1.2.1.4.tar.gz 816654 BLAKE2B c8e6b6f86f32dd2e3d57da4a21066be4a441e71bc3a7cb96d8000f28c56cbb114a00e5df2777b00a8a9fc1a0f94b00bdf4b72eb46f0245ab482a41b6a9d772ee SHA512 90c05d54eaf1d7c78d00f73044afa1f3b4d99df622d40b3cea88fe280f0770ccaeddd787d8fb384c150123f592bb6a7ec24b842a9fcc2936f581d847928223ca diff --git a/sci-mathematics/agda-stdlib/agda-stdlib-2.6.1.2.1.4.ebuild b/sci-mathematics/agda-stdlib/agda-stdlib-2.6.1.2.1.4.ebuild new file mode 100644 index 00000000000..55a498c1f26 --- /dev/null +++ b/sci-mathematics/agda-stdlib/agda-stdlib-2.6.1.2.1.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +CABAL_FEATURES="profile" +inherit haskell-cabal elisp-common + +## shared with sci-mathematics/agda +# upstream does not maintain version ordering: +# https://github.com/agda/agda-stdlib/releases +# 0.11 -> 2.5.0.20160213 -> 2.5.0.20160412 -> 0.12 -> 0.13 +# As Agda-stdlib is tied to Agda version we encode +# both versions in gentoo version. +## +MY_UPSTREAM_AGDA_STDLIB_V="1.4" +MY_GENTOO_AGDA_STDLIB_V="${PV}.${MY_UPSTREAM_AGDA_STDLIB_V}" +MY_UPSTREAM_AGDA_V="${PV%.${MY_UPSTREAM_AGDA_STDLIB_V}}" + +DESCRIPTION="Agda standard library" +HOMEPAGE="https://wiki.portal.chalmers.se/agda/" +SRC_URI="https://github.com/agda/${PN}/archive/v${MY_UPSTREAM_AGDA_STDLIB_V}.tar.gz -> ${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +RDEPEND=">=sci-mathematics/agda-${MY_UPSTREAM_AGDA_V}:=[profile?] +" +DEPEND="${RDEPEND} + >=dev-haskell/cabal-1.24.2.0 + >=dev-haskell/filemanip-0.3.6.2[profile?] =dev-lang/ghc-8.0.2 +" + +S=${WORKDIR}/${PN}-${MY_UPSTREAM_AGDA_STDLIB_V} + +src_compile() { + haskell-cabal_src_compile + "${S}"/dist/build/GenerateEverything/GenerateEverything \ + || die "GenerateEverything failed" + local prof + use profile && prof="--ghc-flag=-prof" + agda +RTS -K1G -RTS ${prof} \ + -i "${S}" -i "${S}"/src "${S}"/Everything.agda || die + # Although my agda-9999 build has + # /var/tmp/portage/sci-mathematics/agda-9999/work/agda-9999/dist/build/autogen/Paths_Agda.hs + # containing: + # datadir = "/usr/share/agda-9999/ghc-7.6.1" + # it fails without the --css option like: + # /usr/share/agda-9999/ghc-7.4.1/Agda.css: copyFile: does not exist + local cssdir=$(egrep 'datadir *=' "${S}/dist/build/autogen/Paths_lib.hs" | sed -e 's@datadir = \(.*\)@\1@') + agda --html -i "${S}" -i "${S}"/src --css="${cssdir}/Agda.css" "${S}"/README.agda || die +} + +src_test() { + agda -i "${S}" -i "${S}"/src README.agda || die +} + +src_install() { + insinto usr/share/agda-stdlib + insopts --preserve-timestamps + doins -r src/* + dodoc -r html/* + doins "${FILESDIR}/standard-library.agda-lib" +} diff --git a/sci-mathematics/agda-stdlib/metadata.xml b/sci-mathematics/agda-stdlib/metadata.xml index 06549522e12..37374b54118 100644 --- a/sci-mathematics/agda-stdlib/metadata.xml +++ b/sci-mathematics/agda-stdlib/metadata.xml @@ -5,13 +5,10 @@ sci-mathematics@gentoo.org Gentoo Mathematics Project - - haskell@gentoo.org - Gentoo Haskell + + haskell@gentoo.org + Gentoo Haskell - - Install agda-lib-ffi for compilation using the MAlonzo backend - agda/agda-stdlib