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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E203015800A for ; Thu, 15 Jun 2023 19:12:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 2957FE0960; Thu, 15 Jun 2023 19:12:48 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 144BAE0960 for ; Thu, 15 Jun 2023 19:12:47 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2E9A8335DBF for ; Thu, 15 Jun 2023 19:12:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 9534BA8E for ; Thu, 15 Jun 2023 19:12:45 +0000 (UTC) From: "Haelwenn Monnier" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Haelwenn Monnier" Message-ID: <1686856325.31510b33b14fb9553bb7125e9fd36de5db5964ed.lanodan@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-lang/hare/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lang/hare/Manifest dev-lang/hare/hare-0_pre20230615.ebuild X-VCS-Directories: dev-lang/hare/ X-VCS-Committer: lanodan X-VCS-Committer-Name: Haelwenn Monnier X-VCS-Revision: 31510b33b14fb9553bb7125e9fd36de5db5964ed X-VCS-Branch: dev Date: Thu, 15 Jun 2023 19:12:45 +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: fe616c73-799f-41b0-929d-37443093d4a6 X-Archives-Hash: a8280c12f814013a764c86aaf20b327e commit: 31510b33b14fb9553bb7125e9fd36de5db5964ed Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Thu Jun 15 19:11:43 2023 +0000 Commit: Haelwenn Monnier hacktivis me> CommitDate: Thu Jun 15 19:12:05 2023 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=31510b33 dev-lang/hare: add 0_pre20230615 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> dev-lang/hare/Manifest | 1 + dev-lang/hare/hare-0_pre20230615.ebuild | 57 +++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+) diff --git a/dev-lang/hare/Manifest b/dev-lang/hare/Manifest index c4ef64eec..f60decb06 100644 --- a/dev-lang/hare/Manifest +++ b/dev-lang/hare/Manifest @@ -1 +1,2 @@ +DIST hare-0cf443bbfb121fbf04d0d138161b6073a088bef9.tar.gz 725094 BLAKE2B 4ba04e73a70b4257dd8448a6a899058422bc0492f8f5598a1f705e4164a82a4e348f3877de710c17f2aebe909893d5d271242eb987dba37233a86fb881464f8c SHA512 9ac6322713366d7a7fa41ce86584e045a274c7a4b2389d96fe47d18133b233cc0a9f4ed41f2ed4c64f8d8e9601ed0dbe2cda6d89204e1add42f3f8a5a2688e94 DIST hare-464ec7a660b12ab1ef8e4dcc9d00604cec996c6e.tar.gz 699656 BLAKE2B cacf3a229abfad6c3c43c1d590f8bfcd37bb0617fd27d2c293a137723dd47d7d51f9a08157d8b056932cf83d4539817c850a2a0761ce4d1bed842683d20369be SHA512 0c5d7416b9a28227e376e1b8ed8fd0c19e6646738bed8b334bf5ad2837d10b03b11a7c842e8eee04b28faf62cc1042cd99bcdc8b8d65e92f27a4eb5ad8076be2 diff --git a/dev-lang/hare/hare-0_pre20230615.ebuild b/dev-lang/hare/hare-0_pre20230615.ebuild new file mode 100644 index 000000000..08ab7b2e4 --- /dev/null +++ b/dev-lang/hare/hare-0_pre20230615.ebuild @@ -0,0 +1,57 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +if [[ "${PV}" = 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/hare" + SLOT="0" +else + EGIT_COMMIT="0cf443bbfb121fbf04d0d138161b6073a088bef9" + MY_P="${PN}-${EGIT_COMMIT}" + SRC_URI="https://git.sr.ht/~sircmpwn/hare/archive/${EGIT_COMMIT}.tar.gz -> ${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + SLOT="0/${PV}" + + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +DESCRIPTION="The Hare systems programming language" +HOMEPAGE="https://harelang.org/" +LICENSE="MPL-2.0 GPL-3" + +DEPEND=" + sys-devel/qbe + >=dev-lang/harec-0_pre20220702 +" +BDEPEND=" + app-text/scdoc +" +RDEPEND="${DEPEND}" + +# hare and haredoc are built by hare +QA_FLAGS_IGNORED="usr/bin/hare usr/bin/haredoc" + +src_configure() { + local target_arch + case ${ARCH} in + amd64 ) target_arch=x86_64 ;; + arm64 ) target_arch=aarch64 ;; + riscv ) target_arch=riscv64 ;; + * ) die "unsupported architecture: ${ARCH}" ;; + esac + + cp config.example.mk config.mk || die + sed -i \ + -e 's;=aarch64-;=;' \ + -e 's;=riscv64-;=;' \ + -e "s;^ARCH =.*;ARCH = ${target_arch};" \ + -e 's;^PREFIX =.*;PREFIX = /usr;' \ + -e 's;^AS =;AS ?=;' \ + -e 's;^LD =;LD ?=;' \ + -e 's;^AR =;AR ?=;' \ + config.mk || die + + sed -i 's; $(DESTDIR)$(LOCALSRCDIR);;' Makefile || die +}