diff options
author | 2024-03-30 22:33:34 +0100 | |
---|---|---|
committer | 2024-03-31 00:09:29 +0100 | |
commit | f27e271ea2f7dd8ad6f71431c9e6ec94225ccfc1 (patch) | |
tree | 7638b6aa623216729cb775e9d40295f10037dbf0 /dev-util/shards/shards-0.18.0.ebuild | |
parent | dev-util/shards: drop old 0.17.3 (diff) | |
download | gentoo-f27e271ea2f7dd8ad6f71431c9e6ec94225ccfc1.tar.gz gentoo-f27e271ea2f7dd8ad6f71431c9e6ec94225ccfc1.tar.bz2 gentoo-f27e271ea2f7dd8ad6f71431c9e6ec94225ccfc1.zip |
dev-util/shards: bump to 0.18.0
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'dev-util/shards/shards-0.18.0.ebuild')
-rw-r--r-- | dev-util/shards/shards-0.18.0.ebuild | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/dev-util/shards/shards-0.18.0.ebuild b/dev-util/shards/shards-0.18.0.ebuild new file mode 100644 index 000000000000..0f0cbfd373dc --- /dev/null +++ b/dev-util/shards/shards-0.18.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit multiprocessing toolchain-funcs + +CRYSTAL_MOLINILLO_PV="0.2.0" +CRYSTAL_MOLINILLO_P="crystal-molinillo-${CRYSTAL_MOLINILLO_PV}" + +DESCRIPTION="Dependency manager for the Crystal language" +HOMEPAGE="https://github.com/crystal-lang/shards/" +SRC_URI=" + https://github.com/crystal-lang/shards/archive/v${PV}.tar.gz + -> ${P}.tar.gz + https://github.com/crystal-lang/crystal-molinillo/archive/v${CRYSTAL_MOLINILLO_PV}.tar.gz + -> ${CRYSTAL_MOLINILLO_P}.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64" +RESTRICT="test" # Missing files in the tarball. + +RDEPEND=" + >dev-lang/crystal-0.11.1 + dev-libs/libyaml:= +" +DEPEND=" + ${RDEPEND} +" + +DOCS=( CHANGELOG.md README.md SPEC.md ) + +QA_PREBUILT=".*" # Generated by Crystal. + +src_prepare() { + default + + # bundle crystal-molinillo to bootstrap 'shards' + mkdir -p lib || die + ln -s "../../${CRYSTAL_MOLINILLO_P}" lib/molinillo || die + + tc-export CC +} + +src_compile() { + emake release=1 \ + FLAGS="--link-flags=\"${LDFLAGS}\" --verbose --threads $(makeopts_jobs)" +} + +src_install() { + exeinto /usr/bin + doexe "bin/${PN}" + + doman man/* + einstalldocs +} |