From nobody Sat Apr 30 09:41:55 2022 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id D21F21AAA88C; Sat, 30 Apr 2022 09:41:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Kr4BW5VTRz4r6d; Sat, 30 Apr 2022 09:41:55 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651311715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=623F0Be7v+8NSE6XOgApuRPVMrDEtmJsfSmZgeihABM=; b=yJ1DWn/7bKOSbvxLN9trBkzwV0NHQ75T1oJzLlydn3Cju9kvKWxKwoRi0uNBw3QRplvKgK +Banr3f4WPDJ3gj4Xn3AL0DMkB4/2CIBmtVz46WT2OO6xQ97ttEXHEkfpMQFLEPDomre0g oo9tYFM1zuUwIZRarriSQxaTKwKcJUXM4nOBJ5Vm3gJBXqLKo/4beF9yXDaaD7cun+ScEQ ZvFTJh8Bo4DzWvKcRGKI++LsgWuQMcLf3FSohtIe1RxpNRVZb7uTkX3voG4/TGl6vF1Q+h LFv/Npv4rRhMCTqRII7zZEgWaAAvuRdzE+7i159y9cMMon0IqZc1PIhdlQioOg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9CA101EBF1; Sat, 30 Apr 2022 09:41:55 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 23U9ftxQ093968; Sat, 30 Apr 2022 09:41:55 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23U9ftOv093967; Sat, 30 Apr 2022 09:41:55 GMT (envelope-from git) Date: Sat, 30 Apr 2022 09:41:55 GMT Message-Id: <202204300941.23U9ftOv093967@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: =?utf-8?Q?Stefan E=C3=9Fer?= Subject: git: 1f2cf638840d - main - lang/harec: add port of the Hare compiler written in C11 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: se X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1f2cf638840ddd88b84b30458140e7964ebcba50 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1651311715; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=623F0Be7v+8NSE6XOgApuRPVMrDEtmJsfSmZgeihABM=; b=jv21g6uoS5Qzsfz3bqiBG+7ynvtPSaDY2Zuj9Gq2BjTGXFGwNritv4ykby2muN0A6MTjSk uH9gevgl89/FXpa3xNMKqEOQKO716VfFCi0a8tEeAplJlj67FFgq3VHLD31QVNkcusHPXZ KCyJ8eF1xMQwm3zRXWldPCwEgZX21lMFiKATWz3jdEhD4wxKFaKy9F/fORgdVi4sjKkh5N Ix5ZHVzkULofnzmgI6FDAxKlRa5DDYofKagZoL3L3KF6OKBQwOnIXIk7a4kmhlJU8AR3iP HtXEE/z7junMB/jDELDqDZ3shpDSabjUeK4tQZuq8gOECFP1mb9uxuEtz7cHJQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1651311715; a=rsa-sha256; cv=none; b=HTrsHdfW8xO+dTBkZdgFhdujHZbjIzJE2OPY3PsoGpOmlDernUnmYL08OjY9t+rghIX+bI 5DUoT4OSwYvHaJt93YYsFOV4n5sLabZHqyGbD3yDv2ec92IWbPLZ1xb2SU9YK4Kx7ND1YX F8Haq/FU0CURLUyBIfpmvtoYC44UPjW6TFhzxmrh1MEvXXt8bUWkpmLZdj4eUVyxTlgadY UwmxFVfSR0xIt8dpDp969big9niuP1xUZTuENqfSKfz4gIVqJlMTSY8MPwnj+c+TC9dpIM MaqUiQED3q6xvg5h51amYCI0VCRcZXvXMwLiQ/jfeOKt4ey44UhrpFdL7nTpZw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by se: URL: https://cgit.FreeBSD.org/ports/commit/?id=1f2cf638840ddd88b84b30458140e7964ebcba50 commit 1f2cf638840ddd88b84b30458140e7964ebcba50 Author: Stefan Eßer AuthorDate: 2022-04-30 09:35:56 +0000 Commit: Stefan Eßer CommitDate: 2022-04-30 09:35:56 +0000 lang/harec: add port of the Hare compiler written in C11 The Hare programming language is a simple systems programming language that is currently under development. It supports code generation for amd64, aarch64, and riscv64 targets, but this port is currently limited to amd64 due to lack of testing on other FreeBSD architectures. --- lang/Makefile | 1 + lang/harec/Makefile | 37 +++++++++++++++++++++++++++++++++++++ lang/harec/distinfo | 3 +++ lang/harec/pkg-descr | 9 +++++++++ lang/harec/pkg-plist | 4 ++++ 5 files changed, 54 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index 5e37d6ff8a7d..9b5e6ba19833 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -121,6 +121,7 @@ SUBDIR += guile1 SUBDIR += guile2 SUBDIR += halide + SUBDIR += harec SUBDIR += haskell-mode.el SUBDIR += hermes SUBDIR += hla diff --git a/lang/harec/Makefile b/lang/harec/Makefile new file mode 100644 index 000000000000..45623dd27603 --- /dev/null +++ b/lang/harec/Makefile @@ -0,0 +1,37 @@ +PORTNAME= harec +PORTVERSION= g20220428 +CATEGORIES= lang +MASTER_SITES= https://git.sr.ht/~sircmpwn/${PORTNAME}/archive/ +DISTNAME= e5fb517 +DIST_SUBDIR= hare + +MAINTAINER= se@FreeBSD.org +COMMENT= Hare compiler written in C11 + +LICENSE= AGPLv3 +LICENSE_FILE= ${WRKSRC}/COPYING + +ONLY_FOR_ARCHS= amd64 # aarch64 riscv64 + +BUILD_DEPENDS= qbe:devel/qbe +RUN_DEPENDS= qbe:devel/qbe + +USES= compiler:c11 + +WRKSRC= ${WRKDIR}/${PORTNAME}-${DISTNAME} + +OPTIONS_DEFINE= DOCS + +do-build: + ${MKDIR} ${WRKSRC}/build + cd ${WRKSRC}/build && CFLAGS="${CFLAGS}" ../configure --prefix=${PREFIX} && make + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/harec ${STAGEDIR}${PREFIX}/bin + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${STAGEDIR}${DOCSDIR} + +#do-test: +# cd ${WRKSRC}/build && make check + +.include diff --git a/lang/harec/distinfo b/lang/harec/distinfo new file mode 100644 index 000000000000..b9454358f738 --- /dev/null +++ b/lang/harec/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1651310936 +SHA256 (hare/e5fb517.tar.gz) = 12694873b5c356b7962fba3a838167141a60dd8db713e715cf6f1eb25aa12944 +SIZE (hare/e5fb517.tar.gz) = 155242 diff --git a/lang/harec/pkg-descr b/lang/harec/pkg-descr new file mode 100644 index 000000000000..78320088de25 --- /dev/null +++ b/lang/harec/pkg-descr @@ -0,0 +1,9 @@ +This is the Hare compiler written in C. + +Hare is a systems programming language designed to be simple, stable, +and robust. Hare uses a static type system, manual memory management, +and a minimal runtime. It is well-suited to writing operating systems, +system tools, compilers, networking software, and other low-level, +high performance tasks. + +WWW: https://harelang.org/ diff --git a/lang/harec/pkg-plist b/lang/harec/pkg-plist new file mode 100644 index 000000000000..900ae4e1b7e2 --- /dev/null +++ b/lang/harec/pkg-plist @@ -0,0 +1,4 @@ +bin/harec +%%PORTDOCS%%%%DOCSDIR%%/declaration_solver.txt +%%PORTDOCS%%%%DOCSDIR%%/env.txt +%%PORTDOCS%%%%DOCSDIR%%/runtime.txt