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 8BBA21581C1 for ; Sun, 14 Jul 2024 17:48:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8DFC9E2AA9; Sun, 14 Jul 2024 17:48:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 6F3B2E2AA9 for ; Sun, 14 Jul 2024 17:48:00 +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 6B300341C4B for ; Sun, 14 Jul 2024 17:47:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D01861DBB for ; Sun, 14 Jul 2024 17:47:57 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1720970381.cc90318eca5c0d00b2fe4117781fca5245f017d5.flow@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: dev-lang/harec/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-lang/harec/harec-0.24.2.ebuild X-VCS-Directories: dev-lang/harec/ X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: cc90318eca5c0d00b2fe4117781fca5245f017d5 X-VCS-Branch: master Date: Sun, 14 Jul 2024 17:47:57 +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: e35b4725-ab55-4db6-8b56-c62cbd87d2f2 X-Archives-Hash: dedfd23041b2278cd1893faa60878da7 commit: cc90318eca5c0d00b2fe4117781fca5245f017d5 Author: Haelwenn (lanodan) Monnier hacktivis me> AuthorDate: Sun Jul 14 15:19:41 2024 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Sun Jul 14 15:19:41 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=cc90318e dev-lang/harec: add 0.24.2 Signed-off-by: Haelwenn (lanodan) Monnier hacktivis.me> dev-lang/harec/harec-0.24.2.ebuild | 43 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/dev-lang/harec/harec-0.24.2.ebuild b/dev-lang/harec/harec-0.24.2.ebuild new file mode 100644 index 000000000..b215ee6dd --- /dev/null +++ b/dev-lang/harec/harec-0.24.2.ebuild @@ -0,0 +1,43 @@ +# Copyright 2021-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit toolchain-funcs + +if [[ "${PV}" = "9999" ]]; then + inherit git-r3 + EGIT_REPO_URI="https://git.sr.ht/~sircmpwn/harec" +else + MY_PV="$(ver_rs 3 -)" + MY_P="${PN}-${MY_PV}" + SRC_URI="https://git.sr.ht/~sircmpwn/harec/archive/${MY_PV}.tar.gz -> ${MY_P}.tar.gz" + S="${WORKDIR}/${MY_P}" + KEYWORDS="~amd64 ~arm64 ~riscv" +fi + +DESCRIPTION="The Hare compiler" +HOMEPAGE="https://harelang.org/" +LICENSE="GPL-3" +SLOT="0" + +DEPEND=">=sys-devel/qbe-1.2" +RDEPEND="${DEPEND}" + +src_prepare() { + default + + cp configs/linux.mk config.mk || die + sed -i \ + -e 's/-Werror//' \ + -e 's/CC =/CC ?=/' \ + -e 's/AS =/AS ?=/' \ + -e 's/LD =/LD ?=/' \ + config.mk || die + + tc-export CC AS LD +} + +src_install() { + emake DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install +}