Skip to Content.
Sympa Menu

sm-commit - [SM-Commit] GIT changes to master grimoire by Conner Clere (e084dc37f9d2123b1a21590d71c981ffb68f8a45)

sm-commit AT lists.ibiblio.org

Subject: Source Mage code commit list

List archive

Chronological Thread  
  • From: Conner Clere <scm AT sourcemage.org>
  • To: sm-commit AT lists.ibiblio.org
  • Subject: [SM-Commit] GIT changes to master grimoire by Conner Clere (e084dc37f9d2123b1a21590d71c981ffb68f8a45)
  • Date: Sun, 5 Mar 2023 16:54:19 +0000

GIT changes to master grimoire by Conner Clere <xenanthropy AT sourcemage.org>:

ChangeLog | 3 +++
devel/zig-bootstrap/BUILD | 14 ++++++++++++++
devel/zig-bootstrap/DEPENDS | 3 +++
devel/zig-bootstrap/DETAILS | 42 ++++++++++++++++++++++++++++++++++++++++++
devel/zig-bootstrap/HISTORY | 3 +++
devel/zig-bootstrap/INSTALL | 7 +++++++
6 files changed, 72 insertions(+)

New commits:
commit e084dc37f9d2123b1a21590d71c981ffb68f8a45
Author: Conner Clere <xenanthropy AT sourcemage.org>
Commit: Conner Clere <xenanthropy AT sourcemage.org>

zig-bootstrap: new spell, zig via bootstrapping

diff --git a/ChangeLog b/ChangeLog
index db9a592..05ff5d6 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,6 @@
+2023-03-05 Conner Clere <xenanthropy AT sourcemage.org>
+ * devel/zig-bootstrap: new spell, zig via bootstrapping
+
2023-03-03 Pavel Vinogradov <public AT sourcemage.org>
* net/netifrc: new spell, network configuration tools from OpenRC

diff --git a/devel/zig-bootstrap/BUILD b/devel/zig-bootstrap/BUILD
new file mode 100755
index 0000000..d3ef444
--- /dev/null
+++ b/devel/zig-bootstrap/BUILD
@@ -0,0 +1,14 @@
+BUILDX="${BUILD//-pc/}" &&
+BUILDX="${BUILDX/i686/i386}" &&
+
+CXXFLAGS="${CXXFLAGS//-DPIC}" &&
+disable_pic force &&
+cd "${SOURCE_DIRECTORY}" &&
+
+if [[ $(get_spell_provider $SPELL NINJA-BUILD) == "ninja-build-system" ]];
then
+ CMAKE_GENERATOR=Ninja ./build ${BUILDX} $(uname -m)
+elif [[ $(get_spell_provider $SPELL NINJA-BUILD) == "samurai" ]]; then
+ CMAKE_GENERATOR=Ninja CMAKE_MAKE_PROGRAM=samu ./build ${BUILDX} $(uname -m)
+else
+ CMAKE_BUILD_PARALLEL_LEVEL="$MAKE_NJOBS" ./build ${BUILDX} $(uname -m)
+fi
diff --git a/devel/zig-bootstrap/DEPENDS b/devel/zig-bootstrap/DEPENDS
new file mode 100755
index 0000000..49a8137
--- /dev/null
+++ b/devel/zig-bootstrap/DEPENDS
@@ -0,0 +1,3 @@
+depends cmake &&
+
+optional_depends NINJA-BUILD '' '' 'Build with ninja/samurai?'
diff --git a/devel/zig-bootstrap/DETAILS b/devel/zig-bootstrap/DETAILS
new file mode 100755
index 0000000..3541a31
--- /dev/null
+++ b/devel/zig-bootstrap/DETAILS
@@ -0,0 +1,42 @@
+ SPELL=zig-bootstrap
+ VERSION=0.10.1
+ SOURCE="${SPELL}-${VERSION}.tar.gz"
+
SOURCE_URL[0]=https://github.com/ziglang/${SPELL}/archive/${VERSION}.tar.gz
+
SOURCE_HASH=sha256:fa29851d467d842bf05d8f5dd79a143985367b3eeddcfb9ed383e9cade3f4e85
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELL}-${VERSION}"
+ WEB_SITE="https://ziglang.org/";
+ LICENSE[0]="MIT"
+ ENTERED=20230305
+ KEYWORDS="zig devel"
+ SHORT="programming language for maintaining robust, optimal, and
reusable software"
+cat << EOF
+Zig is a general-purpose programming language and toolchain for maintaining
+robust, optimal, and reusable software.
+
+* A Simple Language
+
+Focus on debugging your application rather than debugging your programming
+language knowledge.
+
+- No hidden control flow.
+- No hidden memory allocations.
+- No preprocessor, no macros.
+
+* Comptime
+
+A fresh approach to metaprogramming based on compile-time code execution
+and lazy evaluation.
+
+- Call any function at compile-time.
+- Manipulate types as values without runtime overhead.
+- Comptime emulates the target architecture.
+
+* Performance Meets Safety
+
+Write fast, clear code capable of handling all error conditions.
+
+- The language gracefully guides your error handling logic.
+- Configurable runtime checks help you strike a balance between performance
+ and safety guarantees.
+- Take advantage of vector types to express SIMD instructions portably.
+EOF
diff --git a/devel/zig-bootstrap/HISTORY b/devel/zig-bootstrap/HISTORY
new file mode 100644
index 0000000..c471196
--- /dev/null
+++ b/devel/zig-bootstrap/HISTORY
@@ -0,0 +1,3 @@
+2023-03-05 Conner Clere <xenanthropy AT sourcemage.org>
+ * BUILD, DEPENDS, INSTALL, DETAILS: version 0.10.1, new spell
+
diff --git a/devel/zig-bootstrap/INSTALL b/devel/zig-bootstrap/INSTALL
new file mode 100755
index 0000000..b0cbb22
--- /dev/null
+++ b/devel/zig-bootstrap/INSTALL
@@ -0,0 +1,7 @@
+BUILDX=${BUILD//-pc/} &&
+BUILDX=${BUILDX/i686/i386} &&
+FULLPATH="zig-${BUILDX}-$(uname -m)" &&
+
+cd "${SOURCE_DIRECTORY}/out/${FULLPATH}/" &&
+find . | cpio --pass-through --make-directories --unconditional --verbose \
+ "${INSTALL_ROOT}/usr/"



  • [SM-Commit] GIT changes to master grimoire by Conner Clere (e084dc37f9d2123b1a21590d71c981ffb68f8a45), Conner Clere, 03/05/2023

Archive powered by MHonArc 2.6.24.

Top of Page