-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[new package] crystal 1.15.0 #23200
Open
HertzDevil
wants to merge
3
commits into
msys2:master
Choose a base branch
from
HertzDevil:crystal-1.15.0
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[new package] crystal 1.15.0 #23200
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Maintainer: Quinton Miller <[email protected]> | ||
|
||
_realname=crystal | ||
pkgbase="mingw-w64-${_realname}" | ||
pkgname="${MINGW_PACKAGE_PREFIX}-${_realname}" | ||
_major=1 | ||
_minor=15 | ||
_patch=0 | ||
_version="${_major}.${_minor}.${_patch}" | ||
_tag=${_version} | ||
pkgver=${_version} | ||
pkgrel=1 | ||
pkgdesc="Fast and statically typed, compiled language with Ruby-like syntax (mingw-w64)" | ||
arch=('any') | ||
mingw_arch=('ucrt64' 'mingw64' 'clang64') | ||
url="https://crystal-lang.org/" | ||
msys2_repository_url="https://github.com/crystal-lang/crystal" | ||
msys2_documentation_url="https://crystal-lang.org/reference/${_major}.${_minor}/" | ||
msys2_changelog_url="https://github.com/crystal-lang/crystal/releases/tag/${_tag}" | ||
msys2_references=( | ||
"archlinux: crystal" | ||
) | ||
license=('spdx:Apache-2.0 WITH Swift-exception') | ||
depends=( | ||
"${MINGW_PACKAGE_PREFIX}-cc" | ||
"${MINGW_PACKAGE_PREFIX}-gc" | ||
"${MINGW_PACKAGE_PREFIX}-pcre2" | ||
"${MINGW_PACKAGE_PREFIX}-gmp" | ||
"${MINGW_PACKAGE_PREFIX}-libffi" | ||
"${MINGW_PACKAGE_PREFIX}-libiconv" | ||
"${MINGW_PACKAGE_PREFIX}-libxml2" | ||
"${MINGW_PACKAGE_PREFIX}-libyaml" | ||
"${MINGW_PACKAGE_PREFIX}-llvm" | ||
"${MINGW_PACKAGE_PREFIX}-openssl" | ||
"${MINGW_PACKAGE_PREFIX}-zlib" | ||
) | ||
makedepends=( | ||
"git" | ||
) | ||
checkdepends=( | ||
"${MINGW_PACKAGE_PREFIX}-lld" # needed for linking std_spec | ||
) | ||
source=( | ||
https://github.com/crystal-lang/crystal/releases/download/1.15.0/crystal-1.15.0-windows-x86_64-gnu-unsupported.zip # stage 0 compiler | ||
) | ||
sha256sums=( | ||
'7d7df1b4a99cb3f938106ba45e0b55ce1d9913491999f1acaa57da168a18becb' | ||
) | ||
|
||
prepare() { | ||
# workaround for lack of native symlink support in Git | ||
git clone https://github.com/crystal-lang/crystal.git "$pkgname-$pkgver" -c core.symlinks=true || \ | ||
HertzDevil marked this conversation as resolved.
Show resolved
Hide resolved
|
||
(cd "$pkgname-$pkgver" && MSYS='winsymlinks:nativestrict' git restore --source=HEAD :/) | ||
} | ||
|
||
build() { | ||
cd "$pkgname-$pkgver" | ||
CRYSTAL="$srcdir/bin/crystal.exe" make interpreter=1 release=1 | ||
} | ||
|
||
check() { | ||
cd "$pkgname-$pkgver" | ||
# the full suite is run on the crystal-lang/crystal repo's own CI | ||
CRYSTAL_SPEC_COMPILER_BIN="$(pwd)/.build/crystal.exe" make std_spec | ||
} | ||
|
||
package() { | ||
cd "$pkgname-$pkgver" | ||
make install DESTDIR="$pkgdir" PREFIX="${MINGW_PREFIX}" deref_symlinks=1 | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The stage 0 compiler is always 1.15.0, it doesn't change with the MSYS2 package version
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But older releases in crystal repository have those compiled tarball also, not the gnu one. Wouldn't future releases have that *-gnu-unsupported.zip ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe, but if we always use a recent version of the compiler then I believe Crystal itself can be added to
makedepends
instead once it is available in MSYS2, so there is never a need to use any version other than 1.15.0 here