Obsolete
/
recipes
Archived
3
0
Fork 0

Crystal recipe update.

master
Luka Vandervelden 2019-08-23 14:11:11 +02:00
parent e3660e031c
commit a57bc9bb82
1 changed files with 38 additions and 17 deletions

View File

@ -1,9 +1,7 @@
name: crystal name: crystal
version: 0.29.9 version: 0.30.1
release: 1 release: 1
sources: https://github.com/crystal-lang/crystal/archive/8b3dba72bd681118b2b761c68d7d2fdcbbbfceb2.zip sources: https://github.com/crystal-lang/crystal/archive/%{version}.tar.gz -> %{name}-%{version}.tar.gz
options:
- make: release=1 LLVM_CONFIG=/usr/bad/llvm-6/bin/llvm-config
dependencies: dependencies:
- libyaml - libyaml
@ -11,17 +9,40 @@ dependencies:
- pcre - pcre
- openssl - openssl
dirname: crystal-8b3dba72bd681118b2b761c68d7d2fdcbbbfceb2 @build
@install cd %{name}-%{version}
set -e make release=1 \
cd %{dirname}; FLAGS="--release --no-debug" \
PKG="%{pkg}"; CRYSTAL_PATH="$(pwd)/src" \
mkdir -p "$PKG/usr/bin"; CRYSTAL_CONFIG_VERSION="%{version}" \
mkdir -p "$PKG/usr/lib/crystal/core"; CRYSTAL_CONFIG_PATH="lib:/usr/lib/crystal" \
mkdir -p "$PKG/usr/share/man/man1"; CRYSTAL_CACHE_DIR="/tmp/crystal" \
%{name} -D -m 755 .build/crystal "$PKG"/usr/bin/crystal; LLVM_CONFIG=/usr/bad/llvm-6/bin/llvm-config
%{name} -D -m 644 man/crystal.1 "$PKG"/usr/share/man/man1/crystal.1; make docs CRYSTAL_CACHE_DIR="/tmp/crystal"
cp -r src/* "$PKG/usr/lib/crystal/core";
cd "$PKG/usr/lib/crystal/core"; @install
nuke ext/sigfault.* llvm/ext/llvm_ext.o cd %{name}-%{version}
mkdir -p \
"%{pkg}/usr/bin" \
"%{pkg}/usr/lib" \
"%{pkg}/usr/share/man/man1"
install -m755 ".build/crystal" "%{pkg}/usr/bin/crystal"
cp -r src "%{pkg}/usr/lib/crystal"
(
cd "%{pkg}/usr/lib/crystal"
rm -rf ext/sigfault.* llvm/ext/llvm_ext.o
)
mkdir -p "%{pkg}/usr/share/doc/crystal"
cp -r docs "%{pkg}/usr/share/doc/crystal/api"
cp -r samples "%{pkg}/usr/share/doc/crystal/"
install -m644 man/crystal.1 "%{pkg}/usr/share/man/man1/"
# Well probably want those at some point… in due time, and in splits.
#install -m644 etc/completion.bash "%{pkg}/usr/share/bash-completion/completions/crystal"
#install -m644 etc/completion.zsh "%{pkg}/usr/share/zsh/site-functions/_crystal"