Install this version:
emerge -a =dev-lang/crystal-bin-1.20.2
If this version is masked, you can unmask it using the autounmask tool or standard emerge options:
autounmask =dev-lang/crystal-bin-1.20.2
Or alternatively:
emerge --autounmask-write -a =dev-lang/crystal-bin-1.20.2
| Version | EAPI | Keywords | Slot |
|---|---|---|---|
| 1.20.2 | 9 | -* ~amd64 | 0 |
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
MY_PN="${PN%-bin}"
BV="${PV}-1"
BV_AMD64="${BV}-linux-x86_64"
DESCRIPTION="The Crystal Programming Language"
HOMEPAGE="https://crystal-lang.org https://github.com/crystal-lang/crystal"
SRC_URI="
amd64? ( https://github.com/${MY_PN}-lang/${MY_PN}/releases/download/${PV}/${MY_PN}-${BV_AMD64}.tar.gz )
doc? ( https://github.com/${MY_PN}-lang/${MY_PN}/releases/download/${PV}/${MY_PN}-${PV}-docs.tar.gz )
"
S="${WORKDIR}/${MY_PN}-${BV}"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="-* ~amd64"
IUSE="doc"
# file collisions
RDEPEND="
!dev-lang/crystal
!dev-util/shards
!games-mud/crystal
!sci-chemistry/tinker
"
QA_PREBUILT="usr/bin/.*"
src_prepare() {
default
rm -r share/licenses || die
gunzip share/man/*/*.gz || die
}
src_install() {
dobin bin/*
insinto /usr
doins -r share
insinto /usr/$(get_libdir)
doins -r lib/crystal
use doc && HTML_DOCS=( "${WORKDIR}"/${MY_PN}-${PV}-docs )
einstalldocs
}
Manage flags for this package:
euse -i <flag> -p dev-lang/crystal-bin |
euse -E <flag> -p dev-lang/crystal-bin |
euse -D <flag> -p dev-lang/crystal-bin
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | crystal-1.20.2-1-linux-x86_64.tar.gz | 57694161 bytes | https://github.com/crystal-lang/crystal/releases/download/1.20.2/crystal-1.20.2-1-linux-x86_64.tar.gz |
| DIST | crystal-1.20.2-docs.tar.gz | 17289153 bytes | https://github.com/crystal-lang/crystal/releases/download/1.20.2/crystal-1.20.2-docs.tar.gz |