Skip to Content.
Sympa Menu

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

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 (2f888095de7d71d36191811eb9e7de3bb818c912)
  • Date: Wed, 22 Mar 2023 01:53:47 +0000

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

ChangeLog | 1 +
devel/crystal-lang/BUILD | 5 +++++
devel/crystal-lang/CONFIGURE | 1 +
devel/crystal-lang/DEPENDS | 21 +++++++++++++++++++++
devel/crystal-lang/DETAILS | 30 ++++++++++++++++++++++++++++++
devel/crystal-lang/HISTORY | 4 ++++
devel/crystal-lang/INSTALL | 28 ++++++++++++++++++++++++++++
devel/crystal-lang/PREPARE | 2 ++
devel/crystal-lang/PRE_BUILD | 6 ++++++
9 files changed, 98 insertions(+)

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

crystal-lang: new spell, crystal programming language

diff --git a/ChangeLog b/ChangeLog
index 00e11a4..1e86570 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
2023-03-21 Conner Clere <xenanthropy AT sourcemage.org>
* utils/wdisplays: new spell, graphical screen manager for wayland
+ * devel/crystal-lang: new spell, crystal programming language

2023-03-20 Pavel Vinogradov <public AT sourcemage.org>
* wm-addons/hyprpaper: new spell, a blazing fast wayland wallpaper
utility
diff --git a/devel/crystal-lang/BUILD b/devel/crystal-lang/BUILD
new file mode 100755
index 0000000..9d63068
--- /dev/null
+++ b/devel/crystal-lang/BUILD
@@ -0,0 +1,5 @@
+CRYSTAL="${SOURCE_DIRECTORY}/crystal-bin/crystal-1.7.3-1/bin/crystal" \
+LLVM_CONFIG="${INSTALL_ROOT}/usr/bin/llvm-config" \
+make crystal progress=true release=1 verbose=1 stats=1 threads="$MAKE_NJOBS"
\
+CRYSTAL_CONFIG_PATH="lib:${INSTALL_ROOT}/usr/lib/crystal"
+#CRYSTAL_PATH="${SOURCE_DIRECTORY}/src" CRYSTAL_CONFIG_VERSION=${VERSION} \
diff --git a/devel/crystal-lang/CONFIGURE b/devel/crystal-lang/CONFIGURE
new file mode 100755
index 0000000..f432a93
--- /dev/null
+++ b/devel/crystal-lang/CONFIGURE
@@ -0,0 +1 @@
+config_query SAMPLES "Install samples?" n
diff --git a/devel/crystal-lang/DEPENDS b/devel/crystal-lang/DEPENDS
new file mode 100755
index 0000000..8692343
--- /dev/null
+++ b/devel/crystal-lang/DEPENDS
@@ -0,0 +1,21 @@
+depends PKG-CONFIG &&
+depends libgc &&
+depends gmp &&
+depends libatomic_ops &&
+depends libevent &&
+depends pcre &&
+depends libxml2 &&
+depends libyaml &&
+depends -sub LLD llvm &&
+depends libunwind &&
+depends libbsd &&
+depends libedit &&
+runtime_depends crystal-shards &&
+
+optional_depends bash-completion '' '' 'Install bash completion files?' &&
+
+optional_depends zsh '' '' 'Install zsh completion files?' &&
+
+optional_depends fish '' '' 'Install fish completion files?' &&
+
+optional_depends man '' '' 'Install man-pages?'
diff --git a/devel/crystal-lang/DETAILS b/devel/crystal-lang/DETAILS
new file mode 100755
index 0000000..089ca75
--- /dev/null
+++ b/devel/crystal-lang/DETAILS
@@ -0,0 +1,30 @@
+ SPELL=crystal-lang
+ SPELLX=crystal
+ VERSIONX=1.7.3
+if [[ "$CRYSTAL_LANG_BRANCH" == "stable" ]]; then
+ VERSION=1.7.3
+ SOURCE=${SPELLX}-${VERSION}.tar.gz
+SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELLX-$VERSION
+
SOURCE_URL[0]=https://github.com/${SPELLX}-lang/${SPELLX}/archive/${VERSION}.tar.gz
+
SOURCE_HASH=sha256:3ad94dd2835a58af8dabf18d6cdf3791eb49cdfc6fdc6fd6a4e59abf0e860a6f
+else
+ VERSION=1.8.0-dev
+ SOURCE="${SPELLX}-git.tar.gz"
+SOURCE_DIRECTORY="${BUILD_DIRECTORY}/${SPELLX}-git"
+
SOURCE_URL[0]="git_http://github.com/${SPELL}/${SPELLX}.git:${SPELLX}-git:01be77aeccf1d8a733ef59576976bc74da8ca1cd";
+ FORCE_DOWNLOAD="on"
+ SOURCE_IGNORE="volatile"
+fi
+ SOURCE2=${SPELLX}-${VERSIONX}-1-linux-x86_64.tar.gz
+
SOURCE2_URL[0]=https://github.com/${SPELLX}-lang/${SPELLX}/releases/download/${VERSIONX}/$SOURCE2
+
SOURCE2_HASH=sha256:c3231735948c8f45f5f5a05b99de01236a3e408888eb28c7ab707daa9bb1fd9c
+ WEB_SITE=https://www.crystal-lang.org/
+ LICENSE[0]=APACHE
+ ENTERED=20230320
+ KEYWORDS="crystal language shard"
+ SHORT="crystal programming language"
+cat << EOF
+Crystal is a programming language that resembles Ruby but compiles to
+native code and tries to be much more efficient, at the cost of
+disallowing certain dynamic aspects of Ruby.
+EOF
diff --git a/devel/crystal-lang/HISTORY b/devel/crystal-lang/HISTORY
new file mode 100644
index 0000000..4e3d2ae
--- /dev/null
+++ b/devel/crystal-lang/HISTORY
@@ -0,0 +1,4 @@
+2023-03-21 Conner Clere <xenanthropy AT sourcemage.org>
+ * INSTALL, BUILD, DEPENDS, CONFIGURE, DETAILS: ver 1.7.3/1.8.0-dev,
new spell
+ * PREPARE, PRE_BUILD: added
+
diff --git a/devel/crystal-lang/INSTALL b/devel/crystal-lang/INSTALL
new file mode 100755
index 0000000..0d6cc79
--- /dev/null
+++ b/devel/crystal-lang/INSTALL
@@ -0,0 +1,28 @@
+cd "${SOURCE_DIRECTORY}/src" &&
+find . | cpio --pass-through --make-directories --unconditional --verbose \
+ "${INSTALL_ROOT}/usr/lib/crystal/" &&
+
+cd "${SOURCE_DIRECTORY}" &&
+install -D "${SOURCE_DIRECTORY}/.build/crystal"
"${INSTALL_ROOT}/usr/bin/crystal" &&
+
+if is_depends_enabled $SPELL bash-completion; then
+ install -D "etc/completion.bash"
"${INSTALL_ROOT}/usr/share/bash-completion/completions/crystal"
+fi &&
+
+if is_depends_enabled $SPELL zsh; then
+ install -D "etc/completion.zsh"
"${INSTALL_ROOT}/usr/share/zsh/site-functions/_crystal"
+fi &&
+
+if is_depends_enabled $SPELL fish; then
+ install -D "etc/completion.fish"
"${INSTALL_ROOT}/usr/share/fish/vendor_completions.d/crystal.fish"
+fi &&
+
+if is_depends_enabled $SPELL man; then
+ install -D "man/crystal.1" "${INSTALL_ROOT}/usr/share/man/man1/crystal.1"
+fi &&
+
+if [[ $SAMPLES == "y" ]]; then
+ cd "${SOURCE_DIRECTORY}/samples" &&
+ find . | cpio --pass-through --make-directories --unconditional --verbose \
+ "${INSTALL_ROOT}/usr/share/doc/samples/"
+fi
diff --git a/devel/crystal-lang/PREPARE b/devel/crystal-lang/PREPARE
new file mode 100755
index 0000000..e38d86f
--- /dev/null
+++ b/devel/crystal-lang/PREPARE
@@ -0,0 +1,2 @@
+. "${GRIMOIRE}/FUNCTIONS" &&
+prepare_select_branch stable scm
diff --git a/devel/crystal-lang/PRE_BUILD b/devel/crystal-lang/PRE_BUILD
new file mode 100755
index 0000000..5d6cddb
--- /dev/null
+++ b/devel/crystal-lang/PRE_BUILD
@@ -0,0 +1,6 @@
+default_pre_build &&
+cd "${SOURCE_DIRECTORY}" &&
+
+mkdir crystal-bin &&
+cd crystal-bin &&
+unpack_file 2



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

Archive powered by MHonArc 2.6.24.

Top of Page