summaryrefslogtreecommitdiff
path: root/dev-lang/crystal
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/crystal')
-rw-r--r--dev-lang/crystal/Manifest10
-rw-r--r--dev-lang/crystal/crystal-1.15.1-r1.ebuild (renamed from dev-lang/crystal/crystal-1.15.1.ebuild)8
-rw-r--r--dev-lang/crystal/crystal-1.16.0-r1.ebuild (renamed from dev-lang/crystal/crystal-1.16.0.ebuild)8
-rw-r--r--dev-lang/crystal/crystal-1.16.1-r1.ebuild124
-rw-r--r--dev-lang/crystal/crystal-1.16.2-r1.ebuild124
5 files changed, 262 insertions, 12 deletions
diff --git a/dev-lang/crystal/Manifest b/dev-lang/crystal/Manifest
index 79278054b79f..79ebe1b0e8e1 100644
--- a/dev-lang/crystal/Manifest
+++ b/dev-lang/crystal/Manifest
@@ -5,6 +5,12 @@ DIST crystal-1.15.1-1-linux-x86_64.tar.gz 51499223 BLAKE2B 11f94a67c97215f410c4a
DIST crystal-1.15.1.gh.tar.gz 3814922 BLAKE2B 0667e93e3c2b7b80d44347377303195161bfee1709fa64e78fd978cc3409813836542642ac04054d94bf280828a29e592af6db8fdbd4a7bf8f04e8ef62ca209e SHA512 3c552bf4acb06a5e0e3adae2a22cc42c8a003b91a3c9f2ce4cc80d790f5981e94178ad0667504f4d709dfa3f1bc9505ef8ae42b8eb79489f4d1396bd9fc456ff
DIST crystal-1.16.0-1-linux-x86_64.tar.gz 51689322 BLAKE2B 853a5152d0b6addbbcafc65b7a608fa2502b3aaef47aa0c1f5f36a57e2abc93885dc6d8fffb15510d6f489b628c1118e25b8481f4e5dbd3f0e0a3b96ea2a72f5 SHA512 6d6372d47331a950c11fc02386223f16bf06b647cfe3ea7ed9a3e82d80732d93baca6786b95f2f1f26670e447000c4ee912781f8edb8c3bd639f4c08ceefd938
DIST crystal-1.16.0.gh.tar.gz 3717850 BLAKE2B da8a4502efbfa784fc02549fb1022c00b51a00701c307fb256caa26df920667718f8f9da1a3705b682c2fe5c1e2670f9ac35fcb7877298300ba46593b66390d9 SHA512 8f1bda2bb077c989d4760f88cc065dd13bdd424547d4733bcc650315c6086fbfd1fb3fde72597f396f75675966c177df538223502ab743af0c531e0d06dc5676
-EBUILD crystal-1.15.1.ebuild 2784 BLAKE2B cff25e85a08daf3126d27420128d048e82f56086f7777d678ced3a4c208f654be13d4c88722e115078fd12764b6d467faeefa2eafea26b44e3068f5d4a8f2875 SHA512 d8cb55ed0837398f12b336175686d889682f83271819d8b74602349ce63d4f5427cac3a244ba01c14b9034122a8ce5905066889de0742f6672fd1e0c2cb2703c
-EBUILD crystal-1.16.0.ebuild 2785 BLAKE2B cf0495de84b1af4d292bd05c153db8a1412dcfed2a4bef00abd4c6b984d368b822f162c09ab0177f0b070e39aae2cbfc3582630c51f6f7bfe4a9c6efa83b406e SHA512 5333b4f5456ab7a58c3df1669627dae50e9a82ab71c77ddf564fba73e3d182c29721a7ac624b3e1ab0584f79097d6ca37f0c313b420d29507aedafb4c1de7b94
+DIST crystal-1.16.1-1-linux-x86_64.tar.gz 51688372 BLAKE2B d4d1decd73b9ef4290ccaf1bde38aa5faa5e93786f6376312171a354f15b60a1952c6a1fd545108d7616bc090949b0e442a273f6b9b31e5f9549a26f56697890 SHA512 766f7e31ea348037c89bf19156fdb34e1072092759f4c5e0210bba802e1f4da02a021a4dc531c09c0b5c2bcc0b159f885155da9da19625f0c07352b140d81c88
+DIST crystal-1.16.1.gh.tar.gz 3719816 BLAKE2B 512d5d5907420a6fa4f1ed5449afe7d9f6e19f479f5817ea03dbb399103b6debe4b50443bb2fc3a21d38e6021b2293809e32db2bf5fa69be01f6825ae7123284 SHA512 e498645a3c653283c00534b813ebbbfc3a6688fc1895b266570ccd2581a286492dc92299af53509e37cf81344a527b23ac2b932e65390fab150969895e24ea4a
+DIST crystal-1.16.2-1-linux-x86_64.tar.gz 51722506 BLAKE2B 3c4ee66b8cb8cb50aa4f7a6192e2c9e3c6dd153e35dddcfad14edf7a6c6c8c06b411808811a91d4fba6540c82064fe063ebf2313e1c4a7fc52747b4fed7044f6 SHA512 9bc023642c540cde095983e6b5ce440a01ea4603f309d4044fdce77f332d0037199599b69f0b1046e95b1b8c43cec6d4260e47de2ca97a459b4e6120dbfd71a9
+DIST crystal-1.16.2.gh.tar.gz 3719814 BLAKE2B f2f04fe6637bf4df49b7becd745588452f17a85abecca1bfa609b6b18f8980aef3e10461e66553672cd94c4351eb10a232f71c89ab0bb0eac4a52cef7fab93ef SHA512 c72cc30dc97ad43f08a0206429119bacabcedd810401501954a36e800e5444b5f5b9a56bed8edae684628f08f583bfc15bf3ff5d00ab60ecdb3f5553b65f1960
+EBUILD crystal-1.15.1-r1.ebuild 2783 BLAKE2B c29917c1dafed6f7b80d081a4c0c35485b0723168ef23706de75cf27feb045a9c9ecdcaae382aa8c800e23f2843708b47e77d5e9719aeced50c237185ca732f3 SHA512 9a0d249d3d937eb2ee884d25388528fb2673a87e1af2f762140b26151293573b3b74d965858dd18531fb89097e0c9db852b4a2d8714e1721391e1e33d1a1d7ad
+EBUILD crystal-1.16.0-r1.ebuild 2784 BLAKE2B 62a45ea861c524e0ff6ff337d7eed2f0b455bff91277883944dabae1f96bd9b3fe799bcc87151a0aae852ee1e222ea5b9b88901c3364a6ee5a285d0615b6fb29 SHA512 dd03072ea9a3b5bba967175cf6c997b1007d9e0957950692f187f28f20ae0169486be07414a6e4f61d301b6dd61230ceccb28c574967aacfe574a4c088390159
+EBUILD crystal-1.16.1-r1.ebuild 2784 BLAKE2B 62a45ea861c524e0ff6ff337d7eed2f0b455bff91277883944dabae1f96bd9b3fe799bcc87151a0aae852ee1e222ea5b9b88901c3364a6ee5a285d0615b6fb29 SHA512 dd03072ea9a3b5bba967175cf6c997b1007d9e0957950692f187f28f20ae0169486be07414a6e4f61d301b6dd61230ceccb28c574967aacfe574a4c088390159
+EBUILD crystal-1.16.2-r1.ebuild 2784 BLAKE2B 62a45ea861c524e0ff6ff337d7eed2f0b455bff91277883944dabae1f96bd9b3fe799bcc87151a0aae852ee1e222ea5b9b88901c3364a6ee5a285d0615b6fb29 SHA512 dd03072ea9a3b5bba967175cf6c997b1007d9e0957950692f187f28f20ae0169486be07414a6e4f61d301b6dd61230ceccb28c574967aacfe574a4c088390159
MISC metadata.xml 762 BLAKE2B 591f38c882318a6564501cc61abe6222264b65adeaffaf3b23d959ee86b83bae33eaf99029229705f92070fa539fd6d63d8242afc38475904483a9a0b997effd SHA512 ea223d568a3c336a43b183efc61bd1f1a9d1e5e0e8d963275e0b23ee879551bc7d8aae797b1e2edba49d119ad306692599eb535c5d164ebee0c6721dfeab78dc
diff --git a/dev-lang/crystal/crystal-1.15.1.ebuild b/dev-lang/crystal/crystal-1.15.1-r1.ebuild
index 6b61638ca307..8967275dd0cd 100644
--- a/dev-lang/crystal/crystal-1.15.1.ebuild
+++ b/dev-lang/crystal/crystal-1.15.1-r1.ebuild
@@ -33,6 +33,8 @@ DEPEND="
dev-libs/libatomic_ops:=
dev-libs/libevent:=
dev-libs/libpcre2:=[unicode]
+ dev-libs/libxml2:=
+ dev-libs/libyaml
dev-libs/pcl:=
$(llvm_gen_dep '
llvm-core/llvm:${LLVM_SLOT}=
@@ -44,11 +46,7 @@ DEPEND="
sys-libs/libunwind:=
)
"
-RDEPEND="
- ${DEPEND}
- dev-libs/libxml2
- dev-libs/libyaml
-"
+RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch"
diff --git a/dev-lang/crystal/crystal-1.16.0.ebuild b/dev-lang/crystal/crystal-1.16.0-r1.ebuild
index 573dc999fa39..bb8e6f2132a4 100644
--- a/dev-lang/crystal/crystal-1.16.0.ebuild
+++ b/dev-lang/crystal/crystal-1.16.0-r1.ebuild
@@ -33,6 +33,8 @@ DEPEND="
dev-libs/libatomic_ops:=
dev-libs/libevent:=
dev-libs/libpcre2:=[unicode]
+ dev-libs/libxml2:=
+ dev-libs/libyaml
dev-libs/pcl:=
$(llvm_gen_dep '
llvm-core/llvm:${LLVM_SLOT}=
@@ -44,11 +46,7 @@ DEPEND="
sys-libs/libunwind:=
)
"
-RDEPEND="
- ${DEPEND}
- dev-libs/libxml2
- dev-libs/libyaml
-"
+RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch"
diff --git a/dev-lang/crystal/crystal-1.16.1-r1.ebuild b/dev-lang/crystal/crystal-1.16.1-r1.ebuild
new file mode 100644
index 000000000000..bb8e6f2132a4
--- /dev/null
+++ b/dev-lang/crystal/crystal-1.16.1-r1.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+BV="${PV}-1"
+BV_AMD64="${BV}-linux-x86_64"
+
+LLVM_COMPAT=( {18..19} )
+
+inherit llvm-r1 multiprocessing shell-completion toolchain-funcs
+
+DESCRIPTION="The Crystal Programming Language"
+HOMEPAGE="https://crystal-lang.org/
+ https://github.com/crystal-lang/crystal/"
+SRC_URI="
+ https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+ amd64? (
+ https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_AMD64}.tar.gz
+ )
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc debug llvm-libunwind"
+RESTRICT="test" # Upstream test suite not reliable.
+
+DEPEND="
+ dev-libs/boehm-gc:=[threads]
+ dev-libs/gmp:=
+ dev-libs/libatomic_ops:=
+ dev-libs/libevent:=
+ dev-libs/libpcre2:=[unicode]
+ dev-libs/libxml2:=
+ dev-libs/libyaml
+ dev-libs/pcl:=
+ $(llvm_gen_dep '
+ llvm-core/llvm:${LLVM_SLOT}=
+ ')
+ llvm-libunwind? (
+ llvm-runtimes/libunwind:=
+ )
+ !llvm-libunwind? (
+ sys-libs/libunwind:=
+ )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch"
+ "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch"
+ "${FILESDIR}/${PN}-1.15.0-remove-enviroment-clearing-tests.patch"
+)
+
+src_prepare() {
+ default
+
+ # Link against system boehm-gc instead of upstream prebuilt static library
+ # bug #929123, #929989 and #931100
+ # https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612
+ rm "${WORKDIR}/crystal-${BV}"/lib/crystal/libgc.a || die
+}
+
+src_configure() {
+ local bootstrap_path="${WORKDIR}/${PN}-${BV}/bin"
+ if [[ ! -d "${bootstrap_path}" ]] ; then
+ eerror "Binary tarball does not contain expected directory:"
+ die "'${bootstrap_path}' path does not exist."
+ fi
+
+ # crystal uses 'LLVM_TARGETS' to override default list of targets
+ unset LLVM_TARGETS
+
+ MY_EMAKE_COMMON_ARGS=(
+ PATH="${bootstrap_path}:${PATH}"
+
+ CRYSTAL_CONFIG_VERSION="${PV}"
+ CRYSTAL_CONFIG_PATH="lib:${EPREFIX}/usr/$(get_libdir)/crystal"
+
+ $(usex debug "" release=1)
+ progress=true
+ stats=1
+ threads="$(makeopts_jobs)"
+ verbose=1
+ check_lld= # disable opportunistic lld
+
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ LLVM_CONFIG="$(get_llvm_prefix -d)/bin/llvm-config"
+ )
+}
+
+src_compile() {
+ emake "${MY_EMAKE_COMMON_ARGS[@]}"
+
+ use doc && emake docs "${MY_EMAKE_COMMON_ARGS[@]}"
+}
+
+src_test() {
+ emake std_spec "${MY_EMAKE_COMMON_ARGS[@]}"
+}
+
+src_install() {
+ insinto "/usr/$(get_libdir)/crystal"
+ doins -r src/.
+
+ exeinto /usr/bin
+ doexe .build/crystal
+
+ newzshcomp etc/completion.zsh _crystal
+ newfishcomp etc/completion.fish crystal.fish
+
+ dodoc -r samples
+ doman "man/${PN}.1"
+ newbashcomp etc/completion.bash "${PN}"
+
+ if use doc ; then
+ docinto api
+ dodoc -r docs/.
+ fi
+}
diff --git a/dev-lang/crystal/crystal-1.16.2-r1.ebuild b/dev-lang/crystal/crystal-1.16.2-r1.ebuild
new file mode 100644
index 000000000000..bb8e6f2132a4
--- /dev/null
+++ b/dev-lang/crystal/crystal-1.16.2-r1.ebuild
@@ -0,0 +1,124 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+BV="${PV}-1"
+BV_AMD64="${BV}-linux-x86_64"
+
+LLVM_COMPAT=( {18..19} )
+
+inherit llvm-r1 multiprocessing shell-completion toolchain-funcs
+
+DESCRIPTION="The Crystal Programming Language"
+HOMEPAGE="https://crystal-lang.org/
+ https://github.com/crystal-lang/crystal/"
+SRC_URI="
+ https://github.com/crystal-lang/crystal/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz
+ amd64? (
+ https://github.com/crystal-lang/crystal/releases/download/${BV/-*}/crystal-${BV_AMD64}.tar.gz
+ )
+"
+
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="doc debug llvm-libunwind"
+RESTRICT="test" # Upstream test suite not reliable.
+
+DEPEND="
+ dev-libs/boehm-gc:=[threads]
+ dev-libs/gmp:=
+ dev-libs/libatomic_ops:=
+ dev-libs/libevent:=
+ dev-libs/libpcre2:=[unicode]
+ dev-libs/libxml2:=
+ dev-libs/libyaml
+ dev-libs/pcl:=
+ $(llvm_gen_dep '
+ llvm-core/llvm:${LLVM_SLOT}=
+ ')
+ llvm-libunwind? (
+ llvm-runtimes/libunwind:=
+ )
+ !llvm-libunwind? (
+ sys-libs/libunwind:=
+ )
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix.patch"
+ "${FILESDIR}/${PN}-0.27.0-gentoo-tests-long-unix-2.patch"
+ "${FILESDIR}/${PN}-1.15.0-remove-enviroment-clearing-tests.patch"
+)
+
+src_prepare() {
+ default
+
+ # Link against system boehm-gc instead of upstream prebuilt static library
+ # bug #929123, #929989 and #931100
+ # https://github.com/crystal-lang/crystal/issues/12035#issuecomment-2522606612
+ rm "${WORKDIR}/crystal-${BV}"/lib/crystal/libgc.a || die
+}
+
+src_configure() {
+ local bootstrap_path="${WORKDIR}/${PN}-${BV}/bin"
+ if [[ ! -d "${bootstrap_path}" ]] ; then
+ eerror "Binary tarball does not contain expected directory:"
+ die "'${bootstrap_path}' path does not exist."
+ fi
+
+ # crystal uses 'LLVM_TARGETS' to override default list of targets
+ unset LLVM_TARGETS
+
+ MY_EMAKE_COMMON_ARGS=(
+ PATH="${bootstrap_path}:${PATH}"
+
+ CRYSTAL_CONFIG_VERSION="${PV}"
+ CRYSTAL_CONFIG_PATH="lib:${EPREFIX}/usr/$(get_libdir)/crystal"
+
+ $(usex debug "" release=1)
+ progress=true
+ stats=1
+ threads="$(makeopts_jobs)"
+ verbose=1
+ check_lld= # disable opportunistic lld
+
+ AR="$(tc-getAR)"
+ CC="$(tc-getCC)"
+ CXX="$(tc-getCXX)"
+ LLVM_CONFIG="$(get_llvm_prefix -d)/bin/llvm-config"
+ )
+}
+
+src_compile() {
+ emake "${MY_EMAKE_COMMON_ARGS[@]}"
+
+ use doc && emake docs "${MY_EMAKE_COMMON_ARGS[@]}"
+}
+
+src_test() {
+ emake std_spec "${MY_EMAKE_COMMON_ARGS[@]}"
+}
+
+src_install() {
+ insinto "/usr/$(get_libdir)/crystal"
+ doins -r src/.
+
+ exeinto /usr/bin
+ doexe .build/crystal
+
+ newzshcomp etc/completion.zsh _crystal
+ newfishcomp etc/completion.fish crystal.fish
+
+ dodoc -r samples
+ doman "man/${PN}.1"
+ newbashcomp etc/completion.bash "${PN}"
+
+ if use doc ; then
+ docinto api
+ dodoc -r docs/.
+ fi
+}