sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to master grimoire by Ismael Luceno (79768d32855738fba2710b9e5782ca88ae20dcc7)
- From: Ismael Luceno <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to master grimoire by Ismael Luceno (79768d32855738fba2710b9e5782ca88ae20dcc7)
- Date: Wed, 12 Jul 2023 23:12:06 +0000
GIT changes to master grimoire by Ismael Luceno <ismael AT sourcemage.org>:
ChangeLog
| 3
devel/cproc/DEPENDS
| 1
devel/cproc/DETAILS
| 27 ++++
devel/cproc/HISTORY
| 2
devel/cproc/PRE_BUILD
| 3
devel/cproc/patches/0001-Make-the-configure-script-comply-with-GNU-style.patch
| 55 ++++++++++
6 files changed, 91 insertions(+)
New commits:
commit 79768d32855738fba2710b9e5782ca88ae20dcc7
Author: Ismael Luceno <ismael AT sourcemage.org>
Commit: Ismael Luceno <ismael AT sourcemage.org>
cproc: new spell, QBE-based C11 compiler
diff --git a/ChangeLog b/ChangeLog
index f7c5651..4392f59 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-07-12 Ismael Luceno <ismael AT sourcemage.org>
+ * devel/cproc: new spell, QBE-based C11 compiler
+
2023-07-12 Conner Clere <xenanthropy AT sourcemage.org>
* x11/picom: new spell, lightweight x11 compositor based on compton
* fonts-x11/ttf-firacode-nerdfont: new spell, fira code with nerdfont
patches
diff --git a/devel/cproc/DEPENDS b/devel/cproc/DEPENDS
new file mode 100755
index 0000000..c4b4763
--- /dev/null
+++ b/devel/cproc/DEPENDS
@@ -0,0 +1 @@
+depends qbe
diff --git a/devel/cproc/DETAILS b/devel/cproc/DETAILS
new file mode 100755
index 0000000..171dc8f
--- /dev/null
+++ b/devel/cproc/DETAILS
@@ -0,0 +1,27 @@
+ SPELL=cproc
+ VERSION=0+git.2022-12-14
+ REF=0985a7893a4b5de63a67ebab445892d9fffe275b
+ SOURCE="$SPELL-$REF.tar.gz"
+ WEB_SITE="https://git.sr.ht/~mcf/cproc/"
+ SOURCE_URL[0]="$WEB_SITE/archive/$REF.tar.gz"
+
SOURCE_HASH=sha512:cbc38f304ac1d12c691c42cd67a6229f6ae6549a1270be17857b72ee1817d9c167d5e7bbe58f266cf56ee848453da923b1d910d660ee24abc3d5ed54b955035e
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$REF"
+ LICENSE[0]="ISC"
+ ENTERED=20230713
+ KEYWORDS=""
+ SHORT="QBE-based C11 compiler"
+cat << EOF
+cproc is a C11 compiler using QBE as a backend. It is released under the
+ISC license.
+
+Some C23 features and GNU C extensions are also implemented.
+
+There is still much to do, but it currently implements most of the language
+and is capable of building software including itself, mcpp, gcc 4.7,
binutils,
+and more.
+
+It was inspired by several other small C compilers including 8cc, c, lacc,
+and scc.
+
+All architectures supported by QBE should work.
+EOF
diff --git a/devel/cproc/HISTORY b/devel/cproc/HISTORY
new file mode 100644
index 0000000..efc7b4f
--- /dev/null
+++ b/devel/cproc/HISTORY
@@ -0,0 +1,2 @@
+2023-07-13 Ismael Luceno <ismael AT sourcemage.org>
+ * DEPENDS, DETAILS, PRE_BUILD: spell created
diff --git a/devel/cproc/PRE_BUILD b/devel/cproc/PRE_BUILD
new file mode 100755
index 0000000..c230ad1
--- /dev/null
+++ b/devel/cproc/PRE_BUILD
@@ -0,0 +1,3 @@
+default_pre_build &&
+cd "$SOURCE_DIRECTORY" &&
+apply_patch_dir patches
diff --git
a/devel/cproc/patches/0001-Make-the-configure-script-comply-with-GNU-style.patch
b/devel/cproc/patches/0001-Make-the-configure-script-comply-with-GNU-style.patch
new file mode 100644
index 0000000..74184ee
--- /dev/null
+++
b/devel/cproc/patches/0001-Make-the-configure-script-comply-with-GNU-style.patch
@@ -0,0 +1,55 @@
+From b65e9b7c4b2a06fbb8caa32ceee89a709fdce668 Mon Sep 17 00:00:00 2001
+From: Ismael Luceno <ismael AT sourcemage.org>
+Date: Thu, 13 Jul 2023 00:40:35 +0200
+Subject: [PATCH] Make the configure script comply with GNU style
+
+Ignores: --infodir, --localstatedir, --mandir, --sysconfdir, and --target
+Changes: --target for --host, and --host for --build
+
+Source: Source Mage
+Upstream-Status: Pending
+Signed-off-by: Ismael Luceno <ismael AT sourcemage.org>
+---
+ configure | 10 ++++++----
+ 1 file changed, 6 insertions(+), 4 deletions(-)
+
+diff --git a/configure b/configure
+index fe5688af6476..5a88651ffe0a 100755
+--- a/configure
++++ b/configure
+@@ -15,8 +15,8 @@ for arg ; do
+ case "$arg" in
+ --prefix=*) prefix=${arg#*=} ;;
+ --bindir=*) bindir=${arg#*=} ;;
+- --host=*) host=${arg#*=} ;;
+- --target=*) target=${arg#*=} ;;
++ --build=*) host=${arg#*=} ;;
++ --host=*) target=${arg#*=} ;;
+ --with-cpp=*) DEFAULT_PREPROCESSOR=${arg#*=} ;;
+ --with-qbe=*) DEFAULT_QBE=${arg#*=} ;;
+ --with-as=*) DEFAULT_ASSEMBLER=${arg#*=} ;;
+@@ -26,17 +26,19 @@ for arg ; do
+ CC=*) CC=${arg#*=} ;;
+ CFLAGS=*) CFLAGS=${arg#*=} ;;
+ LDFLAGS=*) LDFLAGS=${arg#*=} ;;
++ # ignored GNU-standard arguments
++ --sysconfdir=*|--localstatedir=*|--mandir=*|--infodir=*|--target=*);;
+ *) fail "unknown option '$arg'"
+ esac
+ done
+
+ : ${CC:=cc}
+
+-printf 'checking host system type... '
++printf 'checking build host system type... '
+ test -n "$host" || host=$($CC -dumpmachine 2>/dev/null) || fail "could not
determine host"
+ printf '%s\n' "$host"
+
+-printf 'checking target system type... '
++printf 'checking toolchain host system type... '
+ test -n "$target" || target=$host
+ printf '%s\n' "$target"
+
+--
+2.40.1
+
- [SM-Commit] GIT changes to master grimoire by Ismael Luceno (79768d32855738fba2710b9e5782ca88ae20dcc7), Ismael Luceno, 07/12/2023
Archive powered by MHonArc 2.6.24.